/tools/testing/selftests/memfd/ |
D | memfd_test.c | 39 int r, fd; in mfd_assert_new() local 59 int r, 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 …]
|
D | fuse_test.c | 45 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
|
/tools/testing/selftests/sync/ |
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()
|
/tools/power/acpi/tools/acpidbg/ |
D | acpidbg.c | 97 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 …]
|
/tools/testing/selftests/net/ |
D | msg_zerocopy.c | 136 static void do_setsockopt(int fd, int level, int optname, int val) in do_setsockopt() 142 static int do_poll(int fd, int events) in do_poll() 158 static int do_accept(int fd) in do_accept() 184 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) in do_sendmsg() 227 static void do_sendmsg_corked(int fd, struct msghdr *msg) in do_sendmsg_corked() 325 int fd; in do_setup_tx() local 360 static bool do_recvmsg_completion(int fd) in do_recvmsg_completion() 393 static bool do_recv_completion(int fd, int domain) in do_recv_completion() 461 static void do_recv_completions(int fd, int domain) in do_recv_completions() 467 static void do_recv_remaining_completions(int fd, int domain) in do_recv_remaining_completions() [all …]
|
D | reuseport_bpf.c | 94 static void attach_ebpf(int fd, uint16_t mod) in attach_ebpf() 133 static void attach_cbpf(int fd, uint16_t mod) in attach_cbpf() 152 static void build_recv_group(const struct test_params p, int fd[], uint16_t mod, in build_recv_group() 194 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from() local 213 static void test_recv_order(const struct test_params p, int fd[], int mod) in test_recv_order() 275 int i, fd[p.recv_socks]; in test_reuseport_ebpf() local 292 int i, fd[p.recv_socks]; in test_reuseport_cbpf() local 351 int fd, bpf_fd; in test_filter_no_reuseport() local 415 int fd = open("/proc/sys/net/ipv4/tcp_fastopen", 0); in enable_fastopen() local
|
D | ipv6_flowlabel_mgr.c | 48 static int flowlabel_get(int fd, uint32_t label, uint8_t share, uint16_t flags) in flowlabel_get() 64 static int flowlabel_put(int fd, uint32_t label) in flowlabel_put() 74 static void run_tests(int fd) in run_tests() 185 int fd; in main() local
|
D | udpgso.c | 277 static unsigned int get_device_mtu(int fd, const char *ifname) in get_device_mtu() 291 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() 304 static void set_device_mtu(int fd, int mtu) in set_device_mtu() 319 static void set_pmtu_discover(int fd, bool is_ipv4) in set_pmtu_discover() 337 static unsigned int get_path_mtu(int fd, bool is_ipv4) in get_path_mtu() 369 int fd, ret, alen, off = 0; in set_route_mtu() local 432 static bool __send_one(int fd, struct msghdr *msg, int flags) in __send_one() 451 static bool send_one(int fd, int len, int gso_len, in send_one() 492 static int recv_one(int fd, int flags) in recv_one()
|
D | tcp_fastopen_backup_key.c | 51 static void get_keys(int fd, uint32_t *keys) in get_keys() 69 static void set_keys(int fd, uint32_t *keys) in set_keys() 150 int fd, sz, ret; in connect_and_send() local 202 static bool is_listen_fd(int fd) in is_listen_fd() 213 static void rotate_key(int fd) in rotate_key() 249 int fd, epfd; in run_one_test() local
|
D | psock_fanout.c | 64 int fd, val; in sock_fanout_open() local 98 static void sock_fanout_set_cbpf(int fd) in sock_fanout_set_cbpf() 116 static void sock_fanout_getopts(int fd, uint16_t *typeflags, uint16_t *group_id) in sock_fanout_getopts() 130 static void sock_fanout_set_ebpf(int fd) in sock_fanout_set_ebpf() 176 static char *sock_fanout_open_ring(int fd) in sock_fanout_open_ring() 208 static int sock_fanout_read_ring(int fd, void *ring) in sock_fanout_read_ring()
|
/tools/perf/tests/ |
D | wp.c | 14 #define WP_TEST_ASSERT_VAL(fd, text, val) \ argument 24 static int wp_read(int fd, long long *count, int size) in wp_read() 53 int fd; in __event() local 67 int fd; in wp_ro_test() local 86 int fd; in wp_wo_test() local 105 int fd; in wp_rw_test() local 125 int fd, ret; in wp_modify_test() local
|
D | bp_account.c | 35 int fd; in __event() local 75 int i, fd[wp_cnt], fd_wp, ret; in bp_accounting() local 108 int fd[100], cnt = 0, i; in detect_cnt() local 131 int fd, ret = 1; in detect_ioctl() local 145 int i, fd[wp_cnt + bp_cnt], ret; in detect_share() local
|
/tools/testing/selftests/proc/ |
D | fd-003-kthread.c | 44 int dir_fd, fd; in kernel_thread_fd() local 96 static void test_readdir(int fd) in test_readdir() 122 static void test_lookup_fail(int fd, const char *pathname) in test_lookup_fail() 131 static void test_lookup(int fd) in test_lookup() 158 int fd; in main() local
|
/tools/testing/selftests/bpf/ |
D | test_maps.c | 40 int fd; in test_hashmap() local 129 int fd, i, j; in test_hashmap_sizes() local 153 int fd, i; in test_hashmap_percpu() local 254 int i, fd, ret; in helper_fill_hashmap() local 276 int fd, i, max_entries = 1000; in test_hashmap_walk() local 347 int key, next_key, fd; in test_arraymap() local 404 int key, next_key, fd, i; in test_arraymap_percpu() local 467 int key, fd, i; in test_arraymap_percpu_many_keys() local 498 int fd; in test_devmap() local 513 int fd; in test_devmap_hash() local [all …]
|
/tools/testing/selftests/exec/ |
D | execveat.c | 28 static int execveat_(int fd, const char *path, char **argv, char **envp, in execveat_() 39 #define check_execveat_fail(fd, path, flags, errno) \ argument 41 static int _check_execveat_fail(int fd, const char *path, int flags, in _check_execveat_fail() 65 static int check_execveat_invoked_rc(int fd, const char *path, int flags, in check_execveat_invoked_rc() 112 static int check_execveat(int fd, const char *path, int flags) in check_execveat() 128 int fd = open(filename, flags); in open_or_die() local 156 int fd; in check_execveat_pathmax() local 235 int fd = open_or_die("execveat", O_RDONLY); in run_tests() local 375 int fd; in prerequisites() local
|
/tools/testing/selftests/powerpc/ |
D | utils.c | 32 int rc, fd; in read_auxv() local 132 int rc = -1, fd; in read_debugfs_file() local 154 int rc = -1, fd; in write_debugfs_file() local 200 int fd; in perf_event_open_counter() local 213 int perf_event_enable(int fd) in perf_event_enable() 223 int perf_event_disable(int fd) in perf_event_disable() 233 int perf_event_reset(int fd) in perf_event_reset()
|
/tools/testing/selftests/sparc64/drivers/ |
D | adi-test.c | 184 static int read_adi(int fd, unsigned char *buf, int buf_sz) in read_adi() 208 static int pread_adi(int fd, unsigned char *buf, in pread_adi() 240 static int write_adi(int fd, const unsigned char * const buf, int buf_sz) in write_adi() 263 static int pwrite_adi(int fd, const unsigned char * const buf, in pwrite_adi() 297 static off_t seek_adi(int fd, off_t offset, int whence) in seek_adi() 317 static int test0_prpw_aligned_1byte(int fd) in test0_prpw_aligned_1byte() 351 static int test1_prpw_aligned_4096bytes(int fd) in test1_prpw_aligned_4096bytes() 391 static int test2_prpw_aligned_10327bytes(int fd) in test2_prpw_aligned_10327bytes() 431 static int test3_prpw_unaligned_12541bytes(int fd) in test3_prpw_unaligned_12541bytes() 470 static int test4_lseek(int fd) in test4_lseek() [all …]
|
/tools/spi/ |
D | spidev_fdx.c | 18 static void do_read(int fd, int len) in do_read() 49 static void do_msg(int fd, int len) in do_msg() 80 static void dumpstat(const char *name, int fd) in dumpstat() 111 int fd; in main() local
|
/tools/gpio/ |
D | gpio-utils.c | 65 int fd; in gpiotools_request_linehandle() local 112 int gpiotools_set_values(const int fd, struct gpiohandle_data *data) in gpiotools_set_values() 136 int gpiotools_get_values(const int fd, struct gpiohandle_data *data) in gpiotools_get_values() 159 int gpiotools_release_linehandle(const int fd) in gpiotools_release_linehandle() 206 int fd; in gpiotools_gets() local
|
/tools/bpf/bpftool/ |
D | map.c | 96 int fd; in map_parse_fd() local 133 int fd; in map_parse_fd_and_info() local 399 int fd; in parse_elem() local 482 static int show_map_close_json(int fd, struct bpf_map_info *info) in show_map_close_json() 564 static int show_map_close_plain(int fd, struct bpf_map_info *info) in show_map_close_plain() 651 int fd; in do_show() local 709 static int dump_map_elem(int fd, void *key, void *value, in dump_map_elem() 777 int fd; in do_dump() local 883 int fd, err; in do_update() local 966 int fd; in do_lookup() local [all …]
|
/tools/perf/lib/ |
D | lib.c | 10 static ssize_t ion(bool is_read, int fd, void *buf, size_t n) in ion() 36 ssize_t readn(int fd, void *buf, size_t n) in readn() 44 ssize_t writen(int fd, const void *buf, size_t n) in writen()
|
/tools/power/acpi/tools/ec/ |
D | ec_access.c | 125 void dump_ec(int fd) in dump_ec() 175 void read_ec_val(int fd, int byte_offset) in read_ec_val() 192 void write_ec_val(int fd, int byte_offset, uint8_t value) in write_ec_val() 209 int fd; in main() local
|
/tools/testing/selftests/efivarfs/ |
D | open-unlink.c | 16 int fd; in set_immutable() local 47 int fd; in get_immutable() local 72 int fd, rc; in main() local
|
/tools/lib/api/fd/ |
D | array.c | 72 int fdarray__add(struct fdarray *fda, int fd, short revents) in fdarray__add() 86 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() 90 int fd, nr = 0; in fdarray__filter() local 121 int fd, printed = fprintf(fp, "%d [ ", fda->nr); in fdarray__fprintf() local
|
/tools/io_uring/ |
D | liburing.h | 107 static inline void io_uring_prep_rw(int op, struct io_uring_sqe *sqe, int fd, in io_uring_prep_rw() 119 static inline void io_uring_prep_readv(struct io_uring_sqe *sqe, int fd, in io_uring_prep_readv() 126 static inline void io_uring_prep_read_fixed(struct io_uring_sqe *sqe, int fd, in io_uring_prep_read_fixed() 133 static inline void io_uring_prep_writev(struct io_uring_sqe *sqe, int fd, in io_uring_prep_writev() 140 static inline void io_uring_prep_write_fixed(struct io_uring_sqe *sqe, int fd, in io_uring_prep_write_fixed() 147 static inline void io_uring_prep_poll_add(struct io_uring_sqe *sqe, int fd, in io_uring_prep_poll_add() 164 static inline void io_uring_prep_fsync(struct io_uring_sqe *sqe, int fd, in io_uring_prep_fsync()
|