/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 76 int r, fd; in mfd_assert_new() local 154 int fd; in mfd_assert_reopen_fd() local 827 int fd; in test_create() local 876 int fd; in test_basic() local 928 int fd; in test_seal_write() local 994 int fd; in test_seal_shrink() local 1020 int fd; in test_seal_grow() local 1046 int fd; in test_seal_resize() local 1073 int fd; in test_exec_seal() local 1123 int fd; in test_exec_no_seal() local [all …]
|
H A D | fuse_test.c | 46 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
|
/openbmc/qemu/target/loongarch/ |
H A D | fpu_helper.c | 87 uint64_t fd; in helper_fadd_s() local 96 uint64_t fd; in helper_fadd_d() local 105 uint64_t fd; in helper_fsub_s() local 114 uint64_t fd; in helper_fsub_d() local 123 uint64_t fd; in helper_fmul_s() local 132 uint64_t fd; in helper_fmul_d() local 141 uint64_t fd; in helper_fdiv_s() local 150 uint64_t fd; in helper_fdiv_d() local 159 uint64_t fd; in helper_fmax_s() local 168 uint64_t fd; in helper_fmax_d() local [all …]
|
/openbmc/qemu/net/ |
H A D | tap-stub.c | 40 int tap_probe_vnet_hdr(int fd, Error **errp) in tap_probe_vnet_hdr() 45 int tap_probe_has_ufo(int fd) in tap_probe_has_ufo() 50 int tap_probe_has_uso(int fd) in tap_probe_has_uso() 55 int tap_probe_vnet_hdr_len(int fd, int len) in tap_probe_vnet_hdr_len() 60 void tap_fd_set_vnet_hdr_len(int fd, int len) in tap_fd_set_vnet_hdr_len() 64 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 69 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() 79 int tap_fd_enable(int fd) in tap_fd_enable() 84 int tap_fd_disable(int fd) in tap_fd_disable() 89 int tap_fd_get_ifname(int fd, char *ifname) in tap_fd_get_ifname() [all …]
|
H A D | tap-bsd.c | 41 int fd; in tap_open() local 111 int fd, s, ret; in tap_open_clone() local 156 int fd = -1; in tap_open() local 210 int tap_probe_has_ufo(int fd) in tap_probe_has_ufo() 215 int tap_probe_has_uso(int fd) in tap_probe_has_uso() 220 int tap_probe_vnet_hdr_len(int fd, int len) in tap_probe_vnet_hdr_len() 229 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 234 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() 244 int tap_fd_enable(int fd) in tap_fd_enable() 249 int tap_fd_disable(int fd) in tap_fd_disable() [all …]
|
H A D | tap-linux.c | 44 int fd, ret; in tap_open() local 149 int tap_probe_vnet_hdr(int fd, Error **errp) in tap_probe_vnet_hdr() 164 int tap_probe_has_ufo(int fd) in tap_probe_has_ufo() 176 int tap_probe_has_uso(int fd) in tap_probe_has_uso() 189 int tap_probe_vnet_hdr_len(int fd, int len) in tap_probe_vnet_hdr_len() 208 void tap_fd_set_vnet_hdr_len(int fd, int len) in tap_fd_set_vnet_hdr_len() 217 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 234 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() 292 int tap_fd_enable(int fd) in tap_fd_enable() 310 int tap_fd_disable(int fd) in tap_fd_disable() [all …]
|
H A D | tap-solaris.c | 183 int fd; in tap_open() local 209 int tap_probe_vnet_hdr(int fd, Error **errp) in tap_probe_vnet_hdr() 214 int tap_probe_has_ufo(int fd) in tap_probe_has_ufo() 219 int tap_probe_has_uso(int fd) in tap_probe_has_uso() 224 int tap_probe_vnet_hdr_len(int fd, int len) in tap_probe_vnet_hdr_len() 229 void tap_fd_set_vnet_hdr_len(int fd, int len) in tap_fd_set_vnet_hdr_len() 233 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 238 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() 248 int tap_fd_enable(int fd) in tap_fd_enable() 253 int tap_fd_disable(int fd) in tap_fd_disable() [all …]
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | file.c | 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() 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 …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | gup_longterm.c | 38 static __fsword_t get_fs_type(int fd) in get_fs_type() 238 int fd; in run_with_memfd() local 255 int fd; in run_with_tmpfile() local 278 int fd; in run_with_local_tmpfile() local 302 int fd; in run_with_memfd_hugetlb() local 324 static void test_shared_rw_pin(int fd, size_t size) in test_shared_rw_pin() 334 static void test_shared_ro_pin(int fd, size_t size) in test_shared_ro_pin() 344 static void test_private_rw_pin(int fd, size_t size) in test_private_rw_pin() 354 static void test_private_ro_pin(int fd, size_t size) in test_private_ro_pin() 365 static void test_shared_iouring(int fd, size_t size) in test_shared_iouring() [all …]
|
H A D | memfd_secret.c | 46 static void test_file_apis(int fd) in test_file_apis() 59 static void test_mlock_limit(int fd) in test_mlock_limit() 86 static void try_process_vm_read(int fd, int pipefd[2]) in try_process_vm_read() 110 static void try_ptrace(int fd, int pipefd[2]) in try_ptrace() 161 static void test_remote_access(int fd, const char *name, in test_remote_access() 162 void (*func)(int fd, int pipefd[2])) in test_remote_access() 201 static void test_process_vm_read(int fd) in test_process_vm_read() 206 static void test_ptrace(int fd) in test_ptrace() 265 int fd; in main() local
|
/openbmc/linux/tools/testing/vsock/ |
H A D | vsock_test.c | 40 int fd; in test_stream_connection_reset() local 76 int fd; in test_stream_bind_only_client() local 117 int fd; in test_stream_bind_only_server() local 137 int fd; in test_stream_client_close_client() local 151 int fd; in test_stream_client_close_server() local 172 int fd; in test_stream_server_close_client() local 193 int fd; in test_stream_server_close_server() local 265 int fd; in test_msg_peek_client() local 305 int fd; in test_msg_peek_server() local 403 int fd; in test_seqpacket_msg_bounds_client() local [all …]
|
/openbmc/phosphor-power/test/ |
H A D | file_descriptor_tests.cpp | 36 bool isValid(int fd) in isValid() 50 int fd = open("/etc/hosts", O_RDONLY); in createOpenFileDescriptor() local 65 int fd = createOpenFileDescriptor(); in TEST() local 75 int fd = createOpenFileDescriptor(); in TEST() local 128 int fd = createOpenFileDescriptor(); in TEST() local 154 int fd = createOpenFileDescriptor(); in TEST() local 171 int fd = createOpenFileDescriptor(); in TEST() local 188 int fd = createOpenFileDescriptor(); in TEST() local 204 int fd = createOpenFileDescriptor(); in TEST() local 224 int fd = createOpenFileDescriptor(); in TEST() local
|
/openbmc/linux/fs/ |
H A D | file.c | 502 unsigned int fd; in alloc_fd() local 576 void put_unused_fd(unsigned int fd) in put_unused_fd() 654 int close_fd(unsigned fd) in close_fd() 829 unsigned fd = i * BITS_PER_LONG; in do_close_on_exec() local 857 unsigned int fd, fmode_t mask) in __fget_files_rcu() 927 struct file *fget(unsigned int fd) in fget() 933 struct file *fget_raw(unsigned int fd) in fget_raw() 970 unsigned int fd = *ret_fd; in task_lookup_next_fd_rcu() local 1030 unsigned long __fdget(unsigned int fd) in __fdget() 1036 unsigned long __fdget_raw(unsigned int fd) in __fdget_raw() [all …]
|
/openbmc/gpioplus/src/gpioplus/internal/ |
H A D | sys.cpp | 28 int SysImpl::read(int fd, void* buf, size_t count) const in read() 33 int SysImpl::fcntl_setfl(int fd, int flags) const in fcntl_setfl() 43 int SysImpl::gpiohandle_get_line_values(int fd, in gpiohandle_get_line_values() 49 int SysImpl::gpiohandle_set_line_values(int fd, in gpiohandle_set_line_values() 55 int SysImpl::gpio_get_chipinfo(int fd, struct gpiochip_info* info) const in gpio_get_chipinfo() 60 int SysImpl::gpio_get_lineinfo(int fd, struct gpioline_info* info) const in gpio_get_lineinfo() 65 int SysImpl::gpio_get_linehandle(int fd, in gpio_get_linehandle() 71 int SysImpl::gpio_get_lineevent(int fd, struct gpioevent_request* request) const in gpio_get_lineevent()
|
/openbmc/linux/include/linux/ |
H A D | file.h | 36 struct fd { struct 43 static inline void fdput(struct fd fd) in fdput() 62 static inline struct fd fdget(unsigned int fd) in fdget() 67 static inline struct fd fdget_raw(unsigned int fd) in fdget_raw() 72 static inline struct fd fdget_pos(int fd) in fdget_pos()
|
/openbmc/linux/tools/testing/selftests/sync/ |
H A D | sync.c | 58 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()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | qcow2.py | 32 def cmd_dump_header(fd): argument 39 def cmd_dump_header_exts(fd): argument 44 def cmd_set_header(fd, name, value): argument 61 def cmd_add_header_ext(fd, magic, data): argument 74 def cmd_add_header_ext_stdio(fd, magic): argument 79 def cmd_del_header_ext(fd, magic): argument 101 def cmd_set_feature_bit(fd, group, bit): argument
|
/openbmc/linux/drivers/scsi/ |
H A D | fdomain.c | 186 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 …]
|
/openbmc/qemu/linux-user/ |
H A D | fd-trans.h | 39 static inline TargetFdDataFunc fd_trans_target_to_host_data(int fd) in fd_trans_target_to_host_data() 52 static inline TargetFdDataFunc fd_trans_host_to_target_data(int fd) in fd_trans_host_to_target_data() 65 static inline TargetFdAddrFunc fd_trans_target_to_host_addr(int fd) in fd_trans_target_to_host_addr() 78 static inline void internal_fd_trans_register_unsafe(int fd, in internal_fd_trans_register_unsafe() 94 static inline void fd_trans_register(int fd, TargetFdTrans *trans) in fd_trans_register() 100 static inline void internal_fd_trans_unregister_unsafe(int fd) in internal_fd_trans_unregister_unsafe() 107 static inline void fd_trans_unregister(int fd) in fd_trans_unregister()
|
/openbmc/linux/samples/uhid/ |
H A D | uhid-example.c | 159 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
|
/openbmc/gpioplus/test/internal/ |
H A D | fd.cpp | 46 Fd fd(expected_fd, std::false_type(), &mock); in TEST_F() local 55 Fd fd(-1, std::false_type(), &mock); in TEST_F() local 62 Fd fd(expected_fd, &mock); in TEST_F() local 108 Fd fd(path, flags, &mock); in TEST_F() local 126 Fd fd(expected_fd, std::false_type(), &mock); in TEST_F() local 141 Fd fd(expected_fd, std::false_type(), &mock); in TEST_F() local 150 Fd fd(expected_fd, std::false_type(), &mock); in TEST_F() local 169 Fd fd(expected_fd, std::false_type(), &mock); in TEST_F() local 181 Fd fd(expected_fd, std::false_type(), &mock); in TEST_F() local 192 Fd fd(expected_fd, std::false_type(), &mock); in TEST_F() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_helpers.h | 33 #define xaccept_nonblock(fd, addr, len) \ argument 42 #define xbind(fd, addr, len) \ argument 50 #define xclose(fd) \ argument 58 #define xconnect(fd, addr, len) \ argument 66 #define xgetsockname(fd, addr, len) \ argument 74 #define xgetsockopt(fd, level, name, val, len) \ argument 82 #define xlisten(fd, backlog) \ argument 90 #define xsetsockopt(fd, level, name, val, len) \ argument 182 static inline int poll_connect(int fd, unsigned int timeout_sec) in poll_connect() 208 static inline int poll_read(int fd, unsigned int timeout_sec) in poll_read() [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | vector_user.c | 134 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 …]
|
/openbmc/linux/fs/hfsplus/ |
H A D | bfind.c | 15 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()
|
/openbmc/qemu/util/ |
H A D | mmap-alloc.c | 33 QemuFsType qemu_fd_getfs(int fd) in qemu_fd_getfs() 60 size_t qemu_fd_getpagesize(int fd) in qemu_fd_getpagesize() 85 static bool map_noreserve_effective(int fd, uint32_t qemu_map_flags) in map_noreserve_effective() 152 static void *mmap_reserve(size_t size, int fd) in mmap_reserve() 184 static void *mmap_activate(void *ptr, size_t size, int fd, in mmap_activate() 237 static inline size_t mmap_guard_pagesize(int fd) in mmap_guard_pagesize() 247 void *qemu_ram_mmap(int fd, in qemu_ram_mmap() 297 void qemu_ram_munmap(int fd, void *ptr, size_t size) in qemu_ram_munmap()
|