Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 20 of 20) sorted by relevance

/samples/kfifo/
A Ddma-example.c64 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 Dinttype-example.c97 if (j != ARRAY_SIZE(expected_result)) { in testfunc()
A Drecord-example.c111 if (i != ARRAY_SIZE(expected_result)) { in testfunc()
A Dbytestream-example.c104 if (j != ARRAY_SIZE(expected_result)) { in testfunc()
/samples/coresight/
A Dcoresight-cfg-sample.c36 .nr_feat_refs = ARRAY_SIZE(afdo2_ref_names),
/samples/cgroup/
A Dmemcg_event_listener.c33 #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 Dtracex5_user.c28 .len = (unsigned short)ARRAY_SIZE(filter), in install_accept_all_seccomp()
A Dsock_example.c62 size_t insns_cnt = ARRAY_SIZE(prog); in test_sock()
A Dxdp_sample.bpf.h119 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
A Dcookie_uid_helper_example.c34 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) macro
166 prog, ARRAY_SIZE(prog), &opts); in prog_load()
A Dtracex3_user.c42 const int num_colors = ARRAY_SIZE(color);
A Dtest_map_in_map_user.c33 #define NR_TESTS ARRAY_SIZE(test_names)
A Dfds_example.c56 size_t insns_cnt = ARRAY_SIZE(insns); in bpf_prog_create()
A Dxdp_sample.bpf.c38 for (int i = 0; i < ARRAY_SIZE(a) && (a)[i]; i++) { \
A Dtest_lru_dist.c521 for (f = 0; f < ARRAY_SIZE(map_flags); f++) { in main()
/samples/seccomp/
A Duser-trap.c24 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) macro
101 .len = (unsigned short)ARRAY_SIZE(filter), in user_trap_syscall()
/samples/tsm-mr/
A Dtsm_mr_sample.c91 .nr_mrs = ARRAY_SIZE(sample_mrs),
/samples/vfio-mdev/
A Dmbochs.c211 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 Dmdpy.c728 ARRAY_SIZE(mdpy_mdev_types)); in mdpy_dev_init()
A Dmtty.c2022 ARRAY_SIZE(mtty_mdev_types)); in mtty_dev_init()

Completed in 35 milliseconds