Searched refs:nr_elems (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_btf.h | 24 #define BTF_ARRAY_ENC(type, index_type, nr_elems) \ argument 25 (type), (index_type), (nr_elems) 26 #define BTF_TYPE_ARRAY_ENC(type, index_type, nr_elems) \ argument 28 BTF_ARRAY_ENC(type, index_type, nr_elems) 30 #define BTF_STRUCT_ENC(name, nr_elems, sz) \ argument 31 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_STRUCT, 0, nr_elems), sz) 33 #define BTF_UNION_ENC(name, nr_elems, sz) \ argument 34 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_UNION, 0, nr_elems), sz)
|
/openbmc/linux/kernel/bpf/ |
H A D | bpf_lru_list.c | 566 u32 nr_elems) in bpf_common_lru_populate() argument 571 for (i = 0; i < nr_elems; i++) { in bpf_common_lru_populate() 584 u32 nr_elems) in bpf_percpu_lru_populate() argument 590 pcpu_entries = nr_elems / num_possible_cpus(); in bpf_percpu_lru_populate() 606 if (i == nr_elems) in bpf_percpu_lru_populate() 614 u32 elem_size, u32 nr_elems) in bpf_lru_populate() argument 618 nr_elems); in bpf_lru_populate() 621 nr_elems); in bpf_lru_populate()
|
H A D | percpu_freelist.c | 100 u32 nr_elems) in pcpu_freelist_populate() argument 105 n = nr_elems / num_possible_cpus(); in pcpu_freelist_populate() 106 m = nr_elems % num_possible_cpus(); in pcpu_freelist_populate()
|
H A D | percpu_freelist.h | 30 u32 nr_elems);
|
H A D | bpf_lru_list.h | 74 u32 elem_size, u32 nr_elems);
|
/openbmc/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-btf.rst | 170 [8] ARRAY '(anon)' type_id=7 index_type_id=9 nr_elems=16 225 [2866] ARRAY '(anon)' type_id=52 index_type_id=51 nr_elems=4
|
H A D | bpftool-gen.rst | 391 [4] ARRAY '(anon)' type_id=1 index_type_id=21 nr_elems=2 427 [4] ARRAY '(anon)' type_id=5 index_type_id=8 nr_elems=6
|
/openbmc/linux/tools/lib/bpf/ |
H A D | btf.h | 180 int index_type_id, int elem_type_id, __u32 nr_elems);
|
H A D | btf.c | 1900 int btf__add_array(struct btf *btf, int index_type_id, int elem_type_id, __u32 nr_elems) in btf__add_array() argument 1924 a->nelems = nr_elems; in btf__add_array()
|