Searched refs:ARRAY_SIZE (Results 1 – 20 of 20) sorted by relevance
| /samples/kfifo/ |
| A D | dma-example.c | 64 sg_init_table(sg, ARRAY_SIZE(sg)); in example_init() 65 nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); in example_init() 95 nents = kfifo_dma_out_prepare(&fifo, sg, ARRAY_SIZE(sg), 8); in example_init()
|
| A D | inttype-example.c | 97 if (j != ARRAY_SIZE(expected_result)) { in testfunc()
|
| A D | record-example.c | 111 if (i != ARRAY_SIZE(expected_result)) { in testfunc()
|
| A D | bytestream-example.c | 104 if (j != ARRAY_SIZE(expected_result)) { in testfunc()
|
| /samples/coresight/ |
| A D | coresight-cfg-sample.c | 36 .nr_feat_refs = ARRAY_SIZE(afdo2_ref_names),
|
| /samples/cgroup/ |
| A D | memcg_event_listener.c | 33 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) macro 153 for (i = 0; i < ARRAY_SIZE(map); ++i) { in read_memcg_events() 176 for (i = 0; i < ARRAY_SIZE(map); ++i) { in read_memcg_events() 238 ret = poll(fds, ARRAY_SIZE(fds), -1); in monitor_events()
|
| /samples/bpf/ |
| A D | tracex5_user.c | 28 .len = (unsigned short)ARRAY_SIZE(filter), in install_accept_all_seccomp()
|
| A D | sock_example.c | 62 size_t insns_cnt = ARRAY_SIZE(prog); in test_sock()
|
| A D | xdp_sample.bpf.h | 119 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
|
| A D | cookie_uid_helper_example.c | 34 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) macro 166 prog, ARRAY_SIZE(prog), &opts); in prog_load()
|
| A D | tracex3_user.c | 42 const int num_colors = ARRAY_SIZE(color);
|
| A D | test_map_in_map_user.c | 33 #define NR_TESTS ARRAY_SIZE(test_names)
|
| A D | fds_example.c | 56 size_t insns_cnt = ARRAY_SIZE(insns); in bpf_prog_create()
|
| A D | xdp_sample.bpf.c | 38 for (int i = 0; i < ARRAY_SIZE(a) && (a)[i]; i++) { \
|
| A D | test_lru_dist.c | 521 for (f = 0; f < ARRAY_SIZE(map_flags); f++) { in main()
|
| /samples/seccomp/ |
| A D | user-trap.c | 24 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) macro 101 .len = (unsigned short)ARRAY_SIZE(filter), in user_trap_syscall()
|
| /samples/tsm-mr/ |
| A D | tsm_mr_sample.c | 91 .nr_mrs = ARRAY_SIZE(sample_mrs),
|
| /samples/vfio-mdev/ |
| A D | mbochs.c | 211 if (index < ARRAY_SIZE(vbe_name_list)) in vbe_name() 351 if (index < ARRAY_SIZE(mdev_state->vbe)) in handle_mmio_write() 388 if (index < ARRAY_SIZE(mdev_state->vbe)) in handle_mmio_read() 512 for (i = 0; i < ARRAY_SIZE(mdev_state->vbe); i++) in mbochs_reset() 1441 ARRAY_SIZE(mbochs_mdev_types)); in mbochs_dev_init()
|
| A D | mdpy.c | 728 ARRAY_SIZE(mdpy_mdev_types)); in mdpy_dev_init()
|
| A D | mtty.c | 2022 ARRAY_SIZE(mtty_mdev_types)); in mtty_dev_init()
|
Completed in 35 milliseconds