Home
last modified time | relevance | path

Searched refs:nr_elems (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_btf.h22 #define BTF_ARRAY_ENC(type, index_type, nr_elems) \ argument
23 (type), (index_type), (nr_elems)
24 #define BTF_TYPE_ARRAY_ENC(type, index_type, nr_elems) \ argument
26 BTF_ARRAY_ENC(type, index_type, nr_elems)
28 #define BTF_STRUCT_ENC(name, nr_elems, sz) \ argument
29 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_STRUCT, 0, nr_elems), sz)
31 #define BTF_UNION_ENC(name, nr_elems, sz) \ argument
32 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_UNION, 0, nr_elems), sz)
/Linux-v5.15/kernel/bpf/
Dbpf_lru_list.c561 u32 nr_elems) in bpf_common_lru_populate() argument
566 for (i = 0; i < nr_elems; i++) { in bpf_common_lru_populate()
579 u32 nr_elems) in bpf_percpu_lru_populate() argument
585 pcpu_entries = nr_elems / num_possible_cpus(); in bpf_percpu_lru_populate()
601 if (i == nr_elems) in bpf_percpu_lru_populate()
609 u32 elem_size, u32 nr_elems) in bpf_lru_populate() argument
613 nr_elems); in bpf_lru_populate()
616 nr_elems); in bpf_lru_populate()
Dpercpu_freelist.c102 u32 nr_elems) in pcpu_freelist_populate() argument
107 pcpu_entries = nr_elems / num_possible_cpus() + 1; in pcpu_freelist_populate()
117 if (i == nr_elems) in pcpu_freelist_populate()
Dpercpu_freelist.h30 u32 nr_elems);
Dbpf_lru_list.h76 u32 elem_size, u32 nr_elems);
/Linux-v5.15/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst167 [8] ARRAY '(anon)' type_id=7 index_type_id=9 nr_elems=16
222 [2866] ARRAY '(anon)' type_id=52 index_type_id=51 nr_elems=4
/Linux-v5.15/tools/lib/bpf/
Dbtf.h109 int index_type_id, int elem_type_id, __u32 nr_elems);
Dbtf.c1840 int btf__add_array(struct btf *btf, int index_type_id, int elem_type_id, __u32 nr_elems) in btf__add_array() argument
1864 a->nelems = nr_elems; in btf__add_array()