Home
last modified time | relevance | path

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

12345678910>>...37

/linux/tools/testing/selftests/memfd/
A Dmemfd_test.c39 int r, fd; in mfd_assert_new() local
59 int fd; in mfd_assert_reopen_fd() local
646 int fd; in test_create() local
692 int fd; in test_basic() local
744 int fd; in test_seal_write() local
770 int fd, fd2; in test_seal_future_write() local
810 int fd; in test_seal_shrink() local
836 int fd; in test_seal_grow() local
862 int fd; in test_seal_resize() local
929 int fd; in test_share_mmap() local
[all …]
A 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/arch/um/os-Linux/
A Dfile.c108 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()
291 int os_sync_file(int fd) in os_sync_file()
323 int fd; in os_file_size() local
364 int os_set_exec_close(int fd) in os_set_exec_close()
404 int os_set_fd_async(int fd) in os_set_fd_async()
[all …]
/linux/fs/
A Dfile.c473 unsigned int fd; in alloc_fd() local
547 void put_unused_fd(unsigned int fd) in put_unused_fd()
633 int close_fd(unsigned fd) in close_fd()
817 unsigned fd = i * BITS_PER_LONG; in do_close_on_exec() local
922 struct file *fget(unsigned int fd) in fget()
928 struct file *fget_raw(unsigned int fd) in fget_raw()
965 unsigned int fd = *ret_fd; in task_lookup_next_fd_rcu() local
1015 unsigned long __fdget(unsigned int fd) in __fdget()
1021 unsigned long __fdget_raw(unsigned int fd) in __fdget_raw()
1026 unsigned long __fdget_pos(unsigned int fd) in __fdget_pos()
[all …]
/linux/tools/testing/vsock/
A 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/include/linux/
A 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()
/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.c181 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
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
510 struct fdomain *fd; in fdomain_create() local
574 struct fdomain *fd = shost_priv(sh); in fdomain_destroy() local
[all …]
/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/tools/lib/bpf/
A Dbpf.c71 int fd; in sys_bpf_fd() local
80 int fd; in sys_bpf_prog_load() local
92 int fd; in libbpf__bpf_create_map_xattr() local
199 int fd; in bpf_create_map_in_map_node() local
260 int fd; in libbpf__bpf_prog_load() local
438 int fd; in bpf_verify_program() local
643 int fd; in bpf_obj_get() local
716 int fd; in bpf_link_create() local
797 int fd; in bpf_iter_create() local
955 int fd; in bpf_prog_get_fd_by_id() local
[all …]
/linux/arch/um/drivers/
A 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()
523 int fd = -1, gairet; in user_init_socket_fds() local
721 int fd, in uml_vector_sendmmsg()
[all …]
/linux/tools/testing/selftests/vm/
A 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
A Dmadv_populate.c29 static uint64_t pagemap_get_entry(int fd, char *start) in pagemap_get_entry()
41 static bool pagemap_is_populated(int fd, char *start) in pagemap_is_populated()
49 static bool pagemap_is_softdirty(int fd, char *start) in pagemap_is_softdirty()
163 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_populated() local
177 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_populated() local
235 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_softdirty() local
249 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_softdirty() local
263 int fd = open("/proc/self/clear_refs", O_WRONLY); in clear_softdirty() local
/linux/fs/hfsplus/
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 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/arch/xtensa/kernel/
A 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
554 struct flush_data fd = { in flush_cache_page() local
571 struct flush_data fd = { in flush_cache_range() local
587 struct flush_data fd = { in flush_icache_range() local
606 struct flush_data fd = { in system_invalidate_dcache_range() local
[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/arch/powerpc/kernel/
A 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/tools/testing/selftests/net/
A Dmsg_zerocopy.c141 static int do_poll(int fd, int events) in do_poll()
157 static int do_accept(int fd) in do_accept()
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()
492 int fd; in do_tx() local
572 int fd; in do_setup_rx() local
604 static void do_flush_tcp(int fd) in do_flush_tcp()
622 static void do_flush_datagram(int fd, int type) in do_flush_datagram()
[all …]
/linux/include/soc/fsl/
A Ddpaa2-fd.h103 static inline dma_addr_t dpaa2_fd_get_addr(const struct dpaa2_fd *fd) in dpaa2_fd_get_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()
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()
206 static inline void dpaa2_fd_set_len(struct dpaa2_fd *fd, u32 len) in dpaa2_fd_set_len()
240 const struct dpaa2_fd *fd) in dpaa2_fd_get_format()
[all …]
/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/powerpc/
A 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/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()
/linux/drivers/clk/
A 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/drivers/infiniband/hw/hfi1/
A 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()
679 static int set_rcvarray_entry(struct hfi1_filedata *fd, in set_rcvarray_entry()
748 static int unprogram_rcvarray(struct hfi1_filedata *fd, u32 tidinfo, in unprogram_rcvarray()
782 static void clear_tid_node(struct hfi1_filedata *fd, struct tid_rb_node *node) in clear_tid_node()
[all …]
/linux/drivers/clk/ti/
A Dfapll.c78 struct fapll_data *fd; member
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
247 struct fapll_data *fd = to_fapll(hw); in ti_fapll_set_rate() local
413 struct fapll_data *fd = synth->fd; in ti_fapll_synth_round_rate() local
447 struct fapll_data *fd = synth->fd; in ti_fapll_synth_set_rate() local
[all …]

Completed in 51 milliseconds

12345678910>>...37