Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 1109) sorted by relevance

12345678910>>...45

/linux/tools/testing/selftests/memfd/
A Dmemfd_test.c74 int r, fd; in mfd_assert_new() local
152 int fd; in mfd_assert_reopen_fd() local
821 int fd; in test_create() local
870 int fd; in test_basic() local
922 int fd; in test_seal_write() local
988 int fd; in test_seal_shrink() local
1014 int fd; in test_seal_grow() local
1040 int fd; in test_seal_resize() local
1067 int fd; in test_exec_seal() local
1117 int fd; in test_exec_no_seal() local
[all …]
A Dfuse_test.c46 int r, fd; in mfd_assert_new() local
64 static __u64 mfd_assert_get_seals(int fd) in mfd_assert_get_seals()
77 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals()
89 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals()
103 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals()
124 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared()
142 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private()
231 int fd, mfd, r; in main() local
/linux/arch/um/os-Linux/
A Dfile.c109 int os_set_slip(int fd) in os_set_slip()
182 int fd, err, f = 0; in os_open_file() local
219 int fd, err; in os_connect_socket() local
244 int os_dup_file(int fd) in os_dup_file()
254 void os_close_file(int fd) in os_close_file()
258 int os_fsync_file(int fd) in os_fsync_file()
302 int os_sync_file(int fd) in os_sync_file()
334 int fd; in os_file_size() local
375 int os_set_exec_close(int fd) in os_set_exec_close()
415 int os_set_fd_async(int fd) in os_set_fd_async()
[all …]
/linux/tools/testing/selftests/mm/
A Dgup_longterm.c38 static __fsword_t get_fs_type(int fd) in get_fs_type()
246 int fd; in run_with_memfd() local
263 int fd; in run_with_tmpfile() local
287 int fd; in run_with_local_tmpfile() local
311 int fd; in run_with_memfd_hugetlb() local
333 static void test_shared_rw_pin(int fd, size_t size) in test_shared_rw_pin()
343 static void test_shared_ro_pin(int fd, size_t size) in test_shared_ro_pin()
353 static void test_private_rw_pin(int fd, size_t size) in test_private_rw_pin()
363 static void test_private_ro_pin(int fd, size_t size) in test_private_ro_pin()
374 static void test_shared_iouring(int fd, size_t size) in test_shared_iouring()
[all …]
A Dmemfd_secret.c45 static void test_file_apis(int fd) in test_file_apis()
58 static void test_mlock_limit(int fd) in test_mlock_limit()
85 static void test_vmsplice(int fd, const char *desc) in test_vmsplice()
124 static void try_process_vm_read(int fd, int pipefd[2]) in try_process_vm_read()
148 static void try_ptrace(int fd, int pipefd[2]) in try_ptrace()
199 static void test_remote_access(int fd, const char *name, in test_remote_access()
200 void (*func)(int fd, int pipefd[2])) in test_remote_access()
238 static void test_process_vm_read(int fd) in test_process_vm_read()
243 static void test_ptrace(int fd) in test_ptrace()
302 int fd; in main() local
/linux/tools/testing/vsock/
A Dvsock_test.c44 int fd; in test_stream_connection_reset() local
80 int fd; in test_stream_bind_only_client() local
121 int fd; in test_stream_bind_only_server() local
141 int fd; in test_stream_client_close_client() local
155 int fd; in test_stream_client_close_server() local
176 int fd; in test_stream_server_close_client() local
197 int fd; in test_stream_server_close_server() local
268 int fd; in test_msg_peek_client() local
297 int fd; in test_msg_peek_server() local
366 int fd; in test_seqpacket_msg_bounds_client() local
[all …]
/linux/fs/
A Dfile.c488 unsigned int fd; in alloc_fd() local
562 void put_unused_fd(unsigned int fd) in put_unused_fd()
647 int close_fd(unsigned fd) in close_fd()
805 unsigned fd = i * BITS_PER_LONG; in do_close_on_exec() local
924 unsigned int fd, fmode_t mask) in __fget_files_rcu()
1016 struct file *fget(unsigned int fd) in fget()
1022 struct file *fget_raw(unsigned int fd) in fget_raw()
1066 unsigned int fd = *ret_fd; in task_lookup_next_fdget_rcu() local
1126 struct fd fdget(unsigned int fd) in fdget()
1132 struct fd fdget_raw(unsigned int fd) in fdget_raw()
[all …]
/linux/tools/testing/selftests/sync/
A Dsync.c58 int sync_wait(int fd, int timeout) in sync_wait()
84 static struct sync_file_info *sync_file_info(int fd) in sync_file_info()
131 int sync_fence_size(int fd) in sync_fence_size()
146 int sync_fence_count_with_status(int fd, int status) in sync_fence_count_with_status()
171 int sw_sync_timeline_inc(int fd, unsigned int count) in sw_sync_timeline_inc()
178 int sw_sync_timeline_is_valid(int fd) in sw_sync_timeline_is_valid()
189 void sw_sync_timeline_destroy(int fd) in sw_sync_timeline_destroy()
195 int sw_sync_fence_create(int fd, const char *name, unsigned int value) in sw_sync_fence_create()
211 int sw_sync_fence_is_valid(int fd) in sw_sync_fence_is_valid()
217 void sw_sync_fence_destroy(int fd) in sw_sync_fence_destroy()
/linux/drivers/scsi/
A Dfdomain.c186 struct fdomain *fd = shost_priv(sh); in fdomain_select() local
210 static void fdomain_finish_cmd(struct fdomain *fd) in fdomain_finish_cmd()
220 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_read_data() local
240 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_write_data() local
388 struct fdomain *fd = dev_id; in fdomain_irq() local
408 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_queue() local
441 struct fdomain *fd = shost_priv(sh); in fdomain_abort() local
462 struct fdomain *fd = shost_priv(sh); in fdomain_host_reset() local
518 struct fdomain *fd; in fdomain_create() local
582 struct fdomain *fd = shost_priv(sh); in fdomain_destroy() local
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dsockmap_helpers.h29 #define take_fd(fd) __get_and_null(fd, -EBADF) argument
47 #define xaccept_nonblock(fd, addr, len) \ argument
56 #define xbind(fd, addr, len) \ argument
64 #define xclose(fd) \ argument
72 #define xconnect(fd, addr, len) \ argument
80 #define xgetsockname(fd, addr, len) \ argument
88 #define xgetsockopt(fd, level, name, val, len) \ argument
196 static inline void close_fd(int *fd) in close_fd()
204 static inline int poll_connect(int fd, unsigned int timeout_sec) in poll_connect()
230 static inline int poll_read(int fd, unsigned int timeout_sec) in poll_read()
[all …]
/linux/tools/testing/selftests/filesystems/eventfd/
A Deventfd_test.c47 int fd, flags; in TEST() local
61 int fd, flags; in TEST() local
75 int fd, flags; in TEST() local
90 int fd, flags; in TEST() local
115 static int verify_fdinfo(int fd, struct error *err, const char *prefix, in verify_fdinfo()
169 int fd, ret; in TEST() local
197 int fd; in TEST() local
225 int fd; in TEST() local
253 int fd; in TEST() local
287 int fd; in TEST() local
/linux/samples/uhid/
A Duhid-example.c159 static int uhid_write(int fd, const struct uhid_event *ev) in uhid_write()
176 static int create(int fd) in create()
194 static void destroy(int fd) in destroy()
225 static int event(int fd) in event()
278 static int send_event(int fd) in send_event()
301 static int keyboard(int fd) in keyboard()
389 int fd; in main() local
/linux/arch/xtensa/kernel/
A Dsmp.c498 struct flush_data *fd = arg; in ipi_flush_tlb_page() local
504 struct flush_data fd = { in flush_tlb_page() local
513 struct flush_data *fd = arg; in ipi_flush_tlb_range() local
520 struct flush_data fd = { in flush_tlb_range() local
530 struct flush_data *fd = arg; in ipi_flush_tlb_kernel_range() local
536 struct flush_data fd = { in flush_tlb_kernel_range() local
564 struct flush_data fd = { in flush_cache_page() local
581 struct flush_data fd = { in flush_cache_range() local
597 struct flush_data fd = { in flush_icache_range() local
616 struct flush_data fd = { in system_invalidate_dcache_range() local
[all …]
/linux/fs/hfsplus/
A Dbfind.c15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
33 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
44 struct hfs_find_data *fd, in hfs_find_1st_rec_by_cnid()
82 struct hfs_find_data *fd, in hfs_find_rec_by_key()
103 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd, in __hfs_brec_find()
153 int hfs_brec_find(struct hfs_find_data *fd, search_strategy_t do_key_compare) in hfs_brec_find()
207 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
220 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()
/linux/arch/um/drivers/
A Dvector_user.c137 int fd = -1; in create_tap_fd() local
167 int fd = -1; in create_raw_fd() local
203 int fd = -1, i; in user_init_tap_fds() local
312 int fd = -1; in user_init_unix_fds() local
390 long fd; in strtofd() local
410 int fd = -1; in user_init_fd_fds() local
560 bool uml_raw_enable_qdisc_bypass(int fd) in uml_raw_enable_qdisc_bypass()
572 bool uml_raw_enable_vnet_headers(int fd) in uml_raw_enable_vnet_headers()
604 int fd = -1, gairet; in user_init_socket_fds() local
804 int fd, in uml_vector_sendmmsg()
[all …]
/linux/tools/lib/bpf/
A Dbpf.c81 int fd; in sys_bpf_fd() local
89 int fd; in sys_bpf_prog_load() local
177 int fd; in bpf_map_create() local
615 int fd; in bpf_obj_get_opts() local
921 int fd; in bpf_iter_create() local
1054 int fd; in bpf_prog_get_fd_by_id_opts() local
1077 int fd; in bpf_map_get_fd_by_id_opts() local
1100 int fd; in bpf_btf_get_fd_by_id_opts() local
1123 int fd; in bpf_link_get_fd_by_id_opts() local
1182 int fd; in bpf_raw_tracepoint_open_opts() local
[all …]
/linux/tools/testing/selftests/net/
A Dmsg_zerocopy.c143 static int do_poll(int fd, int events) in do_poll()
159 static int do_accept(int fd) in do_accept()
327 int fd; in do_setup_tx() local
362 static bool do_recvmsg_completion(int fd) in do_recvmsg_completion()
395 static bool do_recv_completion(int fd, int domain) in do_recv_completion()
463 static void do_recv_completions(int fd, int domain) in do_recv_completions()
496 int fd; in do_tx() local
579 int fd; in do_setup_rx() local
611 static void do_flush_tcp(int fd) in do_flush_tcp()
629 static void do_flush_datagram(int fd, int type) in do_flush_datagram()
[all …]
/linux/include/soc/fsl/
A Ddpaa2-fd.h104 static inline dma_addr_t dpaa2_fd_get_addr(const struct dpaa2_fd *fd) in dpaa2_fd_get_addr()
125 static inline u32 dpaa2_fd_get_frc(const struct dpaa2_fd *fd) in dpaa2_fd_get_frc()
135 static inline void dpaa2_fd_set_frc(struct dpaa2_fd *fd, u32 frc) in dpaa2_fd_set_frc()
146 static inline u32 dpaa2_fd_get_ctrl(const struct dpaa2_fd *fd) in dpaa2_fd_get_ctrl()
156 static inline void dpaa2_fd_set_ctrl(struct dpaa2_fd *fd, u32 ctrl) in dpaa2_fd_set_ctrl()
167 static inline dma_addr_t dpaa2_fd_get_flc(const struct dpaa2_fd *fd) in dpaa2_fd_get_flc()
182 static inline bool dpaa2_fd_short_len(const struct dpaa2_fd *fd) in dpaa2_fd_short_len()
194 static inline u32 dpaa2_fd_get_len(const struct dpaa2_fd *fd) in dpaa2_fd_get_len()
207 static inline void dpaa2_fd_set_len(struct dpaa2_fd *fd, u32 len) in dpaa2_fd_set_len()
241 const struct dpaa2_fd *fd) in dpaa2_fd_get_format()
[all …]
/linux/arch/xtensa/platforms/iss/include/platform/
A Dsimcall.h39 static inline int simc_close(int fd) in simc_close()
44 static inline int simc_ioctl(int fd, int request, void *arg) in simc_ioctl()
54 static inline int simc_read(int fd, void *buf, size_t count) in simc_read()
59 static inline int simc_write(int fd, const void *buf, size_t count) in simc_write()
64 static inline int simc_poll(int fd) in simc_poll()
76 static inline int simc_lseek(int fd, uint32_t off, int whence) in simc_lseek()
/linux/tools/testing/selftests/kvm/
A Dguest_memfd_test.c23 static void test_file_read_write(int fd) in test_file_read_write()
37 static void test_mmap(int fd, size_t page_size) in test_mmap()
45 static void test_file_size(int fd, size_t page_size, size_t total_size) in test_file_size()
56 static void test_fallocate(int fd, size_t page_size, size_t total_size) in test_fallocate()
93 static void test_invalid_punch_hole(int fd, size_t page_size, size_t total_size) in test_invalid_punch_hole()
128 int fd; in test_create_guest_memfd_invalid() local
177 int fd; in main() local
/linux/tools/power/acpi/tools/acpidbg/
A Dacpidbg.c97 static int acpi_aml_set_fl(int fd, int flags) in acpi_aml_set_fl()
115 static int acpi_aml_set_fd(int fd, int maxfd, fd_set *set) in acpi_aml_set_fd()
123 static int acpi_aml_read(int fd, struct circ_buf *crc) in acpi_aml_read()
159 static int acpi_aml_read_batch_log(int fd, struct circ_buf *crc) in acpi_aml_read_batch_log()
223 static int acpi_aml_write(int fd, struct circ_buf *crc) in acpi_aml_write()
238 static int acpi_aml_write_batch_log(int fd, struct circ_buf *crc) in acpi_aml_write_batch_log()
255 static int acpi_aml_write_batch_cmd(int fd, struct circ_buf *crc) in acpi_aml_write_batch_cmd()
265 static void acpi_aml_loop(int fd) in acpi_aml_loop()
336 static bool acpi_aml_readable(int fd) in acpi_aml_readable()
360 static void acpi_aml_flush(int fd) in acpi_aml_flush()
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_maps.c40 int fd; in test_hashmap() local
135 int fd, i, j; in test_hashmap_sizes() local
158 int fd, i; in test_hashmap_percpu() local
270 int i, fd, ret; in helper_fill_hashmap() local
482 int key, fd, i; in test_arraymap_percpu_many_keys() local
513 int fd; in test_devmap() local
527 int fd; in test_devmap_hash() local
543 int fd, i; in test_queuemap() local
599 int fd, i; in test_stackmap() local
1316 int fd, i, value; in test_map_large() local
[all …]
/linux/drivers/clk/ti/
A Dfapll.c71 struct fapll_data *fd; member
111 static int ti_fapll_wait_lock(struct fapll_data *fd) in ti_fapll_wait_lock()
133 struct fapll_data *fd = to_fapll(hw); in ti_fapll_enable() local
145 struct fapll_data *fd = to_fapll(hw); in ti_fapll_disable() local
154 struct fapll_data *fd = to_fapll(hw); in ti_fapll_is_enabled() local
163 struct fapll_data *fd = to_fapll(hw); in ti_fapll_recalc_rate() local
186 struct fapll_data *fd = to_fapll(hw); in ti_fapll_get_parent() local
240 struct fapll_data *fd = to_fapll(hw); in ti_fapll_set_rate() local
406 struct fapll_data *fd = synth->fd; in ti_fapll_synth_round_rate() local
440 struct fapll_data *fd = synth->fd; in ti_fapll_synth_set_rate() local
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Duser_exp_rcv.c50 int hfi1_user_exp_rcv_init(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_init()
103 void hfi1_user_exp_rcv_free(struct hfi1_filedata *fd) in hfi1_user_exp_rcv_free()
132 static void unpin_rcv_pages(struct hfi1_filedata *fd, in unpin_rcv_pages()
159 static int pin_rcv_pages(struct hfi1_filedata *fd, struct tid_user_buf *tidbuf) in pin_rcv_pages()
246 int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_setup()
483 int hfi1_user_exp_rcv_clear(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_clear()
518 int hfi1_user_exp_rcv_invalid(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_invalid()
723 static int set_rcvarray_entry(struct hfi1_filedata *fd, in set_rcvarray_entry()
788 static int unprogram_rcvarray(struct hfi1_filedata *fd, u32 tidinfo) in unprogram_rcvarray()
841 static void clear_tid_node(struct hfi1_filedata *fd, struct tid_rb_node *node) in clear_tid_node()
[all …]
/linux/fs/hfs/
A Dbfind.c15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
44 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
55 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd) in __hfs_brec_find()
107 int hfs_brec_find(struct hfs_find_data *fd) in hfs_brec_find()
161 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
174 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()

Completed in 62 milliseconds

12345678910>>...45