/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 51 static ssize_t fd2name(int fd, char *buf, size_t bufsize) in fd2name() 77 int r, fd; in mfd_assert_new() local 97 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); in sysctl_assert_write() local 112 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); in sysctl_fail_write() local 129 int fd = open("/proc/sys/vm/memfd_noexec", O_RDONLY | O_CLOEXEC); in sysctl_assert_equal() local 155 int fd; in mfd_assert_reopen_fd() local 182 static unsigned int mfd_assert_get_seals(int fd) in mfd_assert_get_seals() 195 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals() 209 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals() 222 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals() [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/tcg/ |
H A D | fpu_helper.c | 88 uint64_t fd; in helper_fadd_s() local 97 uint64_t fd; in helper_fadd_d() local 106 uint64_t fd; in helper_fsub_s() local 115 uint64_t fd; in helper_fsub_d() local 124 uint64_t fd; in helper_fmul_s() local 133 uint64_t fd; in helper_fmul_d() local 142 uint64_t fd; in helper_fdiv_s() local 151 uint64_t fd; in helper_fdiv_d() local 160 uint64_t fd; in helper_fmax_s() local 169 uint64_t fd; in helper_fmax_d() local [all …]
|
/openbmc/qemu/net/ |
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 201 void tap_set_sndbuf(int fd, const NetdevTapOptions *tap, Error **errp) in tap_set_sndbuf() 205 int tap_probe_vnet_hdr(int fd, Error **errp) in tap_probe_vnet_hdr() 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 void tap_fd_set_vnet_hdr_len(int fd, int len) in tap_fd_set_vnet_hdr_len() 224 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 229 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() [all …]
|
H A D | tap-stub.c | 36 void tap_set_sndbuf(int fd, const NetdevTapOptions *tap, Error **errp) in tap_set_sndbuf() 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 void tap_fd_set_vnet_hdr_len(int fd, int len) in tap_fd_set_vnet_hdr_len() 59 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 64 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() 69 void tap_fd_set_offload(int fd, int csum, int tso4, in tap_fd_set_offload() 74 int tap_fd_enable(int fd) in tap_fd_enable() 79 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 132 void tap_set_sndbuf(int fd, const NetdevTapOptions *tap, Error **errp) in tap_set_sndbuf() 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() 188 void tap_fd_set_vnet_hdr_len(int fd, int len) in tap_fd_set_vnet_hdr_len() 197 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 214 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() 231 void tap_fd_set_offload(int fd, int csum, int tso4, in tap_fd_set_offload() 272 int tap_fd_enable(int fd) in tap_fd_enable() [all …]
|
H A D | tap-solaris.c | 183 int fd; in tap_open() local 205 void tap_set_sndbuf(int fd, const NetdevTapOptions *tap, Error **errp) in tap_set_sndbuf() 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 void tap_fd_set_vnet_hdr_len(int fd, int len) in tap_fd_set_vnet_hdr_len() 228 int tap_fd_set_vnet_le(int fd, int is_le) in tap_fd_set_vnet_le() 233 int tap_fd_set_vnet_be(int fd, int is_be) in tap_fd_set_vnet_be() 238 void tap_fd_set_offload(int fd, int csum, int tso4, in tap_fd_set_offload() 243 int tap_fd_enable(int fd) in tap_fd_enable() [all …]
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | file.c | 43 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 …]
|
/openbmc/libpldm/src/firmware_device/ |
H A D | fd.c | 112 static void pldm_fd_set_state(struct pldm_fd *fd, in pldm_fd_set_state() 127 static void pldm_fd_set_idle(struct pldm_fd *fd, in pldm_fd_set_idle() 137 static void pldm_fd_idle_timeout(struct pldm_fd *fd) in pldm_fd_idle_timeout() 169 static void pldm_fd_get_aux_state(const struct pldm_fd *fd, uint8_t *aux_state, in pldm_fd_get_aux_state() 196 static uint64_t pldm_fd_now(struct pldm_fd *fd) in pldm_fd_now() 202 static bool pldm_fd_req_should_send(struct pldm_fd *fd) in pldm_fd_req_should_send() 236 static int pldm_fd_qdi(struct pldm_fd *fd, const struct pldm_header_info *hdr, in pldm_fd_qdi() 271 static int pldm_fd_fw_param(struct pldm_fd *fd, in pldm_fd_fw_param() 371 static int pldm_fd_request_update(struct pldm_fd *fd, in pldm_fd_request_update() 424 static void pldm_fd_maybe_cancel_component(struct pldm_fd *fd) in pldm_fd_maybe_cancel_component() [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() 91 static void do_test(int fd, size_t size, enum test_type type, bool shared) in do_test() 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() 329 static void test_shared_rw_fast_pin(int fd, size_t size) in test_shared_rw_fast_pin() 334 static void test_shared_ro_pin(int fd, size_t size) in test_shared_ro_pin() 339 static void test_shared_ro_fast_pin(int fd, size_t size) in test_shared_ro_fast_pin() [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/linux/fs/ |
H A D | file.c | 246 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec() 251 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec() 257 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd() 265 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd() 484 unsigned int fd; in alloc_fd() local 550 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd() 558 void put_unused_fd(unsigned int fd) in put_unused_fd() 584 void fd_install(unsigned int fd, struct file *file) in fd_install() 619 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file() 636 int close_fd(unsigned fd) in close_fd() [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/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 | 123 static inline void fdomain_make_bus_idle(struct fdomain *fd) in fdomain_make_bus_idle() 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 267 struct fdomain *fd = container_of(work, struct fdomain, work); in fdomain_work() 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 [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/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() 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 …]
|
/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 98 #define xsend(fd, buf, len, flags) \ argument 106 #define xrecv_nonblock(fd, buf, len, flags) \ argument [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() 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()
|