| /tools/testing/selftests/memfd/ |
| D | memfd_test.c | 69 int r, fd; in mfd_assert_new() local 100 static unsigned int mfd_assert_get_seals(int fd) in mfd_assert_get_seals() 113 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals() 124 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals() 137 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals() 156 static void mfd_assert_size(int fd, size_t size) in mfd_assert_size() 172 static int mfd_assert_dup(int fd) in mfd_assert_dup() 185 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared() 203 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private() 221 static int mfd_assert_open(int fd, int flags, mode_t mode) in mfd_assert_open() [all …]
|
| D | fuse_test.c | 47 int r, fd; in mfd_assert_new() local 65 static __u64 mfd_assert_get_seals(int fd) in mfd_assert_get_seals() 78 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals() 90 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals() 104 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals() 125 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared() 143 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private() 232 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/testing/selftests/net/ |
| D | msg_zerocopy.c | 132 static void do_setsockopt(int fd, int level, int optname, int val) in do_setsockopt() 138 static int do_poll(int fd, int events) in do_poll() 154 static int do_accept(int fd) in do_accept() 167 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy) in do_sendmsg() 197 static void do_sendmsg_corked(int fd, struct msghdr *msg) in do_sendmsg_corked() 293 int fd; in do_setup_tx() local 310 static bool do_recv_completion(int fd) in do_recv_completion() 374 static void do_recv_completions(int fd) in do_recv_completions() 380 static void do_recv_remaining_completions(int fd) in do_recv_remaining_completions() 406 int fd; in do_tx() local [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 | psock_fanout.c | 76 int fd, val; in sock_fanout_open() local 97 static void sock_fanout_set_cbpf(int fd) in sock_fanout_set_cbpf() 115 static void sock_fanout_getopts(int fd, uint16_t *typeflags, uint16_t *group_id) in sock_fanout_getopts() 129 static void sock_fanout_set_ebpf(int fd) in sock_fanout_set_ebpf() 175 static char *sock_fanout_open_ring(int fd) in sock_fanout_open_ring() 207 static int sock_fanout_read_ring(int fd, void *ring) in sock_fanout_read_ring()
|
| D | reuseport_bpf_cpu.c | 77 static void attach_bpf(int fd) in attach_bpf() 100 int fd; in send_from_cpu() local 154 int i, fd; in receive_on_cpu() local
|
| D | reuseport_bpf_numa.c | 71 static void attach_bpf(int fd) in attach_bpf() 110 int fd; in send_from_node() local 162 int i, fd; in receive_on_node() local
|
| /tools/power/acpi/tools/acpidbg/ |
| D | acpidbg.c | 100 static int acpi_aml_set_fl(int fd, int flags) in acpi_aml_set_fl() 118 static int acpi_aml_set_fd(int fd, int maxfd, fd_set *set) in acpi_aml_set_fd() 126 static int acpi_aml_read(int fd, struct circ_buf *crc) in acpi_aml_read() 162 static int acpi_aml_read_batch_log(int fd, struct circ_buf *crc) in acpi_aml_read_batch_log() 226 static int acpi_aml_write(int fd, struct circ_buf *crc) in acpi_aml_write() 241 static int acpi_aml_write_batch_log(int fd, struct circ_buf *crc) in acpi_aml_write_batch_log() 258 static int acpi_aml_write_batch_cmd(int fd, struct circ_buf *crc) in acpi_aml_write_batch_cmd() 268 static void acpi_aml_loop(int fd) in acpi_aml_loop() 339 static bool acpi_aml_readable(int fd) in acpi_aml_readable() 363 static void acpi_aml_flush(int fd) in acpi_aml_flush() [all …]
|
| /tools/testing/selftests/exec/ |
| D | execveat.c | 27 static int execveat_(int fd, const char *path, char **argv, char **envp, in execveat_() 38 #define check_execveat_fail(fd, path, flags, errno) \ argument 40 static int _check_execveat_fail(int fd, const char *path, int flags, in _check_execveat_fail() 64 static int check_execveat_invoked_rc(int fd, const char *path, int flags, in check_execveat_invoked_rc() 111 static int check_execveat(int fd, const char *path, int flags) in check_execveat() 127 int fd = open(filename, flags); in open_or_die() local 155 int fd; in check_execveat_pathmax() local 223 int fd = open_or_die("execveat", O_RDONLY); in run_tests() local 363 int fd; in prerequisites() local
|
| /tools/testing/selftests/bpf/ |
| D | test_maps.c | 33 int fd; in test_hashmap() local 122 int fd, i, j; in test_hashmap_sizes() local 146 int fd, i; in test_hashmap_percpu() local 247 int fd, i, max_entries = 100000; in test_hashmap_walk() local 295 int key, next_key, fd; in test_arraymap() local 352 int key, next_key, fd, i; in test_arraymap_percpu() local 415 int key, fd, i; in test_arraymap_percpu_many_keys() local 446 int fd; in test_devmap() local 471 int err, i, fd, udp, sfd[6] = {0xdeadbeef}; in test_sockmap() local 909 int fd, i, value; in test_map_large() local [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
|
| D | spidev_test.c | 116 static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len) in transfer() 300 static void transfer_escaped_string(int fd, char *str) in transfer_escaped_string() 320 static void transfer_file(int fd, char *filename) in transfer_file() 370 static void transfer_buf(int fd, int len) in transfer_buf() 407 int fd; in main() local
|
| /tools/gpio/ |
| D | gpio-utils.c | 68 int fd; in gpiotools_request_linehandle() local 114 int gpiotools_set_values(const int fd, struct gpiohandle_data *data) in gpiotools_set_values() 137 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/power/acpi/tools/ec/ |
| D | ec_access.c | 126 void dump_ec(int fd) in dump_ec() 176 void read_ec_val(int fd, int byte_offset) in read_ec_val() 193 void write_ec_val(int fd, int byte_offset, uint8_t value) in write_ec_val() 210 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 | 73 int fdarray__add(struct fdarray *fda, int fd, short revents) in fdarray__add() 87 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() 91 int fd, nr = 0; in fdarray__filter() local 122 int fd, printed = fprintf(fp, "%d [ ", fda->nr); in fdarray__fprintf() local
|
| /tools/perf/util/ |
| D | data.c | 28 int fd = perf_data_file__is_read(file) ? in check_pipe() local 64 int fd; in open_file_read() local 104 int fd; in open_file_write() local 122 int fd; in open_file() local
|
| D | probe-file.c | 113 int fd; in probe_file__open() local 141 struct strlist *probe_file__get_rawlist(int fd) in probe_file__get_rawlist() 192 static struct strlist *__probe_file__get_namelist(int fd, bool include_group) in __probe_file__get_namelist() 230 struct strlist *probe_file__get_namelist(int fd) in probe_file__get_namelist() 235 int probe_file__add_event(int fd, struct probe_trace_event *tev) in probe_file__add_event() 259 static int __del_trace_probe_event(int fd, struct str_node *ent) in __del_trace_probe_event() 293 int probe_file__get_events(int fd, struct strfilter *filter, in probe_file__get_events() 321 int probe_file__del_strlist(int fd, struct strlist *namelist) in probe_file__del_strlist() 334 int probe_file__del_events(int fd, struct strfilter *filter) in probe_file__del_events() 422 int ret, fd; in probe_cache__open() local [all …]
|
| /tools/testing/selftests/timers/ |
| D | clocksource-switch.c | 42 int fd, i; in get_clocksources() local 77 int fd; in get_cur_clocksource() local 88 int fd; in change_clocksource() local
|
| /tools/laptop/freefall/ |
| D | freefall.c | 43 int fd = open(unload_heads_path, O_RDONLY); in valid_disk() local 57 int fd = open(path, O_RDWR); in write_int() local 109 int fd, ret; in main() local
|
| /tools/laptop/dslm/ |
| D | dslm.c | 29 static int check_powermode(int fd) in check_powermode() 66 static void measure(int fd) in measure() 134 int fd; in main() local
|
| /tools/lib/bpf/ |
| D | bpf.c | 123 int fd; in bpf_load_program() local 170 int bpf_map_update_elem(int fd, const void *key, const void *value, in bpf_map_update_elem() 184 int bpf_map_lookup_elem(int fd, const void *key, void *value) in bpf_map_lookup_elem() 196 int bpf_map_delete_elem(int fd, const void *key) in bpf_map_delete_elem() 207 int bpf_map_get_next_key(int fd, const void *key, void *next_key) in bpf_map_get_next_key() 219 int bpf_obj_pin(int fd, const char *pathname) in bpf_obj_pin()
|
| /tools/perf/tests/ |
| D | dso-data.c | 23 int fd, i; in test_file() local 108 int fd = dso__data_get_fd(dso, machine); in dso__data_fd() local 255 int dso_cnt, limit, i, fd; in test__dso_data_cache() local 315 int fd, fd_extra; in test__dso_data_reopen() local
|
| D | bp_signal_overflow.c | 44 static long long bp_count(int fd) in bp_count() 66 int fd, i, fails = 0; in test__bp_signal_overflow() local
|