Home
last modified time | relevance | path

Searched refs:add_cnt (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/rtc/
H A Dsysfs.c318 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local
330 add_cnt++; in rtc_add_groups()
332 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups()
337 memcpy(groups + old_cnt, grps, add_cnt * sizeof(*groups)); in rtc_add_groups()
338 groups[old_cnt + add_cnt] = NULL; in rtc_add_groups()
/openbmc/linux/include/linux/
H A Dbtf.h500 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt,
538 u32 add_cnt, struct module *owner) in register_btf_id_dtor_kfuncs() argument
/openbmc/linux/tools/lib/bpf/
H A Dbtf.c142 size_t cur_cnt, size_t max_cnt, size_t add_cnt) in libbpf_add_mem() argument
147 if (cur_cnt + add_cnt <= *cap_cnt) in libbpf_add_mem()
151 if (cur_cnt + add_cnt > max_cnt) in libbpf_add_mem()
160 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in libbpf_add_mem()
161 new_cnt = cur_cnt + add_cnt; in libbpf_add_mem()
192 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) in btf_add_type_offs_mem() argument
195 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem()
H A Dlibbpf_internal.h282 size_t cur_cnt, size_t max_cnt, size_t add_cnt);
/openbmc/linux/kernel/bpf/
H A Dbtf.c7996 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt, in register_btf_id_dtor_kfuncs() argument
8019 if (add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs()
8026 ret = btf_check_dtor_kfuncs(btf, dtors, add_cnt); in register_btf_id_dtor_kfuncs()
8038 if (tab_cnt > U32_MAX - add_cnt) { in register_btf_id_dtor_kfuncs()
8042 if (tab_cnt + add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs()
8049 offsetof(struct btf_id_dtor_kfunc_tab, dtors[tab_cnt + add_cnt]), in register_btf_id_dtor_kfuncs()
8060 memcpy(tab->dtors + tab->cnt, dtors, add_cnt * sizeof(tab->dtors[0])); in register_btf_id_dtor_kfuncs()
8061 tab->cnt += add_cnt; in register_btf_id_dtor_kfuncs()