Home
last modified time | relevance | path

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

12345678910>>...36

/Linux-v5.15/tools/testing/selftests/memfd/
Dmemfd_test.c39 int r, fd; in mfd_assert_new() local
59 int fd; in mfd_assert_reopen_fd() local
86 static unsigned int mfd_assert_get_seals(int fd) in mfd_assert_get_seals()
99 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals()
110 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals()
123 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals()
142 static void mfd_assert_size(int fd, size_t size) in mfd_assert_size()
158 static int mfd_assert_dup(int fd) in mfd_assert_dup()
171 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared()
189 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private()
[all …]
Dfuse_test.c45 int r, fd; in mfd_assert_new() local
63 static __u64 mfd_assert_get_seals(int fd) in mfd_assert_get_seals()
76 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals()
88 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals()
102 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals()
123 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared()
141 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private()
230 int fd, mfd, r; in main() local
/Linux-v5.15/arch/um/os-Linux/
Dfile.c43 int os_stat_fd(const int fd, struct uml_stat *ubuf) in os_stat_fd()
88 int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg) in os_ioctl_generic()
100 int os_get_ifname(int fd, char* namebuf) in os_get_ifname()
108 int os_set_slip(int fd) in os_set_slip()
123 int os_mode_fd(int fd, int mode) in os_mode_fd()
181 int fd, err, f = 0; in os_open_file() local
218 int fd, err; in os_connect_socket() local
243 void os_close_file(int fd) in os_close_file()
247 int os_fsync_file(int fd) in os_fsync_file()
254 int os_seek_file(int fd, unsigned long long offset) in os_seek_file()
[all …]
/Linux-v5.15/tools/testing/vsock/
Dvsock_test.c37 int fd; in test_stream_connection_reset() local
73 int fd; in test_stream_bind_only_client() local
114 int fd; in test_stream_bind_only_server() local
134 int fd; in test_stream_client_close_client() local
148 int fd; in test_stream_client_close_server() local
169 int fd; in test_stream_server_close_client() local
190 int fd; in test_stream_server_close_server() local
257 int fd; in test_stream_msg_peek_client() local
271 int fd; in test_stream_msg_peek_server() local
288 int fd; in test_seqpacket_msg_bounds_client() local
[all …]
/Linux-v5.15/fs/
Dfile.c233 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
238 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
244 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
252 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
473 unsigned int fd; in alloc_fd() local
539 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
547 void put_unused_fd(unsigned int fd) in put_unused_fd()
573 void fd_install(unsigned int fd, struct file *file) in fd_install()
609 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file()
633 int close_fd(unsigned fd) in close_fd()
[all …]
/Linux-v5.15/include/linux/
Dfile.h36 struct fd { struct
43 static inline void fdput(struct fd fd) in fdput()
63 static inline struct fd fdget(unsigned int fd) in fdget()
68 static inline struct fd fdget_raw(unsigned int fd) in fdget_raw()
73 static inline struct fd fdget_pos(int fd) in fdget_pos()
Dfdtable.h29 struct file __rcu **fd; /* current fd array */ member
36 static inline bool close_on_exec(unsigned int fd, const struct fdtable *fdt) in close_on_exec()
41 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open()
83 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw()
94 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked()
101 static inline struct file *files_lookup_fd_rcu(struct files_struct *files, unsigned int fd) in files_lookup_fd_rcu()
108 static inline struct file *lookup_fd_rcu(unsigned int fd) in lookup_fd_rcu()
/Linux-v5.15/tools/testing/selftests/sync/
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-v5.15/drivers/scsi/
Dfdomain.c118 static inline void fdomain_make_bus_idle(struct fdomain *fd) in fdomain_make_bus_idle()
181 struct fdomain *fd = shost_priv(sh); in fdomain_select() local
205 static void fdomain_finish_cmd(struct fdomain *fd) in fdomain_finish_cmd()
215 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_read_data() local
235 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_write_data() local
262 struct fdomain *fd = container_of(work, struct fdomain, work); in fdomain_work() local
382 struct fdomain *fd = dev_id; in fdomain_irq() local
401 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_queue() local
434 struct fdomain *fd = shost_priv(sh); in fdomain_abort() local
455 struct fdomain *fd = shost_priv(sh); in fdomain_host_reset() local
[all …]
/Linux-v5.15/samples/uhid/
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-v5.15/arch/um/drivers/
Dvector_user.c134 int fd = -1; in create_tap_fd() local
164 int fd = -1; in create_raw_fd() local
200 int fd = -1, i; in user_init_tap_fds() local
309 int fd = -1; in user_init_unix_fds() local
387 long fd; in strtofd() local
407 int fd = -1; in user_init_fd_fds() local
479 bool uml_raw_enable_qdisc_bypass(int fd) in uml_raw_enable_qdisc_bypass()
491 bool uml_raw_enable_vnet_headers(int fd) in uml_raw_enable_vnet_headers()
503 bool uml_tap_enable_vnet_headers(int fd) in uml_tap_enable_vnet_headers()
523 int fd = -1, gairet; in user_init_socket_fds() local
[all …]
/Linux-v5.15/tools/testing/selftests/vm/
Dmemfd_secret.c46 static void test_file_apis(int fd) in test_file_apis()
59 static void test_mlock_limit(int fd) in test_mlock_limit()
83 static void try_process_vm_read(int fd, int pipefd[2]) in try_process_vm_read()
107 static void try_ptrace(int fd, int pipefd[2]) in try_ptrace()
158 static void test_remote_access(int fd, const char *name, in test_remote_access()
159 void (*func)(int fd, int pipefd[2])) in test_remote_access()
198 static void test_process_vm_read(int fd) in test_process_vm_read()
203 static void test_ptrace(int fd) in test_ptrace()
262 int fd; in main() local
/Linux-v5.15/tools/lib/bpf/
Dbpf.c71 int fd; in sys_bpf_prog_load() local
83 int fd; in bpf_create_map_xattr() local
165 int fd; in bpf_create_map_in_map_node() local
226 int fd; in libbpf__bpf_prog_load() local
403 int fd; in bpf_verify_program() local
421 int bpf_map_update_elem(int fd, const void *key, const void *value, in bpf_map_update_elem()
437 int bpf_map_lookup_elem(int fd, const void *key, void *value) in bpf_map_lookup_elem()
451 int bpf_map_lookup_elem_flags(int fd, const void *key, void *value, __u64 flags) in bpf_map_lookup_elem_flags()
466 int bpf_map_lookup_and_delete_elem(int fd, const void *key, void *value) in bpf_map_lookup_and_delete_elem()
480 int bpf_map_lookup_and_delete_elem_flags(int fd, const void *key, void *value, __u64 flags) in bpf_map_lookup_and_delete_elem_flags()
[all …]
/Linux-v5.15/fs/hfsplus/
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 struct hfs_find_data *fd, in hfs_find_1st_rec_by_cnid()
93 struct hfs_find_data *fd, in hfs_find_rec_by_key()
114 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd, in __hfs_brec_find()
164 int hfs_brec_find(struct hfs_find_data *fd, search_strategy_t do_key_compare) in hfs_brec_find()
218 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
231 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()
/Linux-v5.15/arch/xtensa/kernel/
Dsmp.c488 struct flush_data *fd = arg; in ipi_flush_tlb_page() local
494 struct flush_data fd = { in flush_tlb_page() local
503 struct flush_data *fd = arg; in ipi_flush_tlb_range() local
510 struct flush_data fd = { in flush_tlb_range() local
520 struct flush_data *fd = arg; in ipi_flush_tlb_kernel_range() local
526 struct flush_data fd = { in flush_tlb_kernel_range() local
547 struct flush_data *fd = arg; in ipi_flush_cache_page() local
554 struct flush_data fd = { in flush_cache_page() local
564 struct flush_data *fd = arg; in ipi_flush_cache_range() local
571 struct flush_data fd = { in flush_cache_range() local
[all …]
/Linux-v5.15/arch/xtensa/platforms/iss/include/platform/
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-v5.15/arch/powerpc/kernel/
Dsys_ppc32.c53 unsigned long fd, unsigned long pgoff) in compat_sys_mmap2()
71 compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, in compat_sys_pread64()
77 compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, in compat_sys_pwrite64()
83 compat_ssize_t compat_sys_readahead(int fd, u32 r4, u32 offset1, u32 offset2, u32 count) in compat_sys_readahead()
94 asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offset1, u32 offset2, in compat_sys_fallocate()
101 asmlinkage int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long len1, in compat_sys_ftruncate64()
107 long ppc32_fadvise64(int fd, u32 unused, u32 offset1, u32 offset2, in ppc32_fadvise64()
114 asmlinkage long compat_sys_sync_file_range2(int fd, unsigned int flags, in compat_sys_sync_file_range2()
/Linux-v5.15/tools/testing/selftests/net/
Dmsg_zerocopy.c135 static void do_setsockopt(int fd, int level, int optname, int val) in do_setsockopt()
141 static int do_poll(int fd, int events) in do_poll()
157 static int do_accept(int fd) in do_accept()
183 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) in do_sendmsg()
226 static void do_sendmsg_corked(int fd, struct msghdr *msg) in do_sendmsg_corked()
324 int fd; in do_setup_tx() local
359 static bool do_recvmsg_completion(int fd) in do_recvmsg_completion()
392 static bool do_recv_completion(int fd, int domain) in do_recv_completion()
460 static void do_recv_completions(int fd, int domain) in do_recv_completions()
466 static void do_recv_remaining_completions(int fd, int domain) in do_recv_remaining_completions()
[all …]
/Linux-v5.15/include/soc/fsl/
Ddpaa2-fd.h103 static inline dma_addr_t dpaa2_fd_get_addr(const struct dpaa2_fd *fd) in dpaa2_fd_get_addr()
113 static inline void dpaa2_fd_set_addr(struct dpaa2_fd *fd, dma_addr_t addr) in dpaa2_fd_set_addr()
124 static inline u32 dpaa2_fd_get_frc(const struct dpaa2_fd *fd) in dpaa2_fd_get_frc()
134 static inline void dpaa2_fd_set_frc(struct dpaa2_fd *fd, u32 frc) in dpaa2_fd_set_frc()
145 static inline u32 dpaa2_fd_get_ctrl(const struct dpaa2_fd *fd) in dpaa2_fd_get_ctrl()
155 static inline void dpaa2_fd_set_ctrl(struct dpaa2_fd *fd, u32 ctrl) in dpaa2_fd_set_ctrl()
166 static inline dma_addr_t dpaa2_fd_get_flc(const struct dpaa2_fd *fd) in dpaa2_fd_get_flc()
176 static inline void dpaa2_fd_set_flc(struct dpaa2_fd *fd, dma_addr_t flc_addr) in dpaa2_fd_set_flc()
181 static inline bool dpaa2_fd_short_len(const struct dpaa2_fd *fd) in dpaa2_fd_short_len()
193 static inline u32 dpaa2_fd_get_len(const struct dpaa2_fd *fd) in dpaa2_fd_get_len()
[all …]
/Linux-v5.15/tools/power/acpi/tools/acpidbg/
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-v5.15/tools/testing/selftests/powerpc/
Dutils.c32 int rc, fd; in read_auxv() local
145 int rc = -1, fd; in read_sysfs_file() local
164 int rc = -1, fd; in read_debugfs_file() local
186 int rc = -1, fd; in write_debugfs_file() local
232 int fd; in perf_event_open_counter() local
245 int perf_event_enable(int fd) in perf_event_enable()
255 int perf_event_disable(int fd) in perf_event_disable()
265 int perf_event_reset(int fd) in perf_event_reset()
/Linux-v5.15/fs/hfs/
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()
/Linux-v5.15/drivers/clk/
Dclk-fractional-divider.c50 static inline u32 clk_fd_readl(struct clk_fractional_divider *fd) in clk_fd_readl()
58 static inline void clk_fd_writel(struct clk_fractional_divider *fd, u32 val) in clk_fd_writel()
69 struct clk_fractional_divider *fd = to_clk_fd(hw); in clk_fd_recalc_rate() local
109 struct clk_fractional_divider *fd = to_clk_fd(hw); in clk_fractional_divider_general_approximation() local
133 struct clk_fractional_divider *fd = to_clk_fd(hw); in clk_fd_round_rate() local
154 struct clk_fractional_divider *fd = to_clk_fd(hw); in clk_fd_set_rate() local
198 struct clk_fractional_divider *fd; in clk_hw_register_fractional_divider() local
253 struct clk_fractional_divider *fd; in clk_hw_unregister_fractional_divider() local
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c44 int hfi1_user_exp_rcv_init(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_init()
97 void hfi1_user_exp_rcv_free(struct hfi1_filedata *fd) in hfi1_user_exp_rcv_free()
126 static void unpin_rcv_pages(struct hfi1_filedata *fd, in unpin_rcv_pages()
153 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()
437 int hfi1_user_exp_rcv_clear(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_clear()
472 int hfi1_user_exp_rcv_invalid(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_invalid()
611 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *tbuf, in program_rcvarray()
679 static int set_rcvarray_entry(struct hfi1_filedata *fd, in set_rcvarray_entry()
749 static int unprogram_rcvarray(struct hfi1_filedata *fd, u32 tidinfo, in unprogram_rcvarray()
[all …]
/Linux-v5.15/drivers/clk/ti/
Dfapll.c78 struct fapll_data *fd; member
86 static bool ti_fapll_clock_is_bypass(struct fapll_data *fd) in ti_fapll_clock_is_bypass()
96 static void ti_fapll_set_bypass(struct fapll_data *fd) in ti_fapll_set_bypass()
107 static void ti_fapll_clear_bypass(struct fapll_data *fd) in ti_fapll_clear_bypass()
118 static int ti_fapll_wait_lock(struct fapll_data *fd) in ti_fapll_wait_lock()
140 struct fapll_data *fd = to_fapll(hw); in ti_fapll_enable() local
152 struct fapll_data *fd = to_fapll(hw); in ti_fapll_disable() local
161 struct fapll_data *fd = to_fapll(hw); in ti_fapll_is_enabled() local
170 struct fapll_data *fd = to_fapll(hw); in ti_fapll_recalc_rate() local
193 struct fapll_data *fd = to_fapll(hw); in ti_fapll_get_parent() local
[all …]

12345678910>>...36