Home
last modified time | relevance | path

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

/linux/drivers/rtc/
H A Dsysfs.c310 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local
315 add_cnt++; in rtc_add_groups()
317 if (add_cnt == 0) in rtc_add_groups()
328 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups()
333 memcpy(groups + old_cnt, grps, add_cnt * sizeof(*groups)); in rtc_add_groups()
334 groups[old_cnt + add_cnt] = NULL; in rtc_add_groups()
/linux/include/linux/
H A Dbtf.h593 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt,
664 u32 add_cnt, struct module *owner) in register_btf_id_dtor_kfuncs() argument
/linux/tools/lib/bpf/
H A Dlibbpf_internal.h300 size_t cur_cnt, size_t max_cnt, size_t add_cnt);
H A Dbtf.c203 size_t cur_cnt, size_t max_cnt, size_t add_cnt) in libbpf_add_mem() argument
208 if (cur_cnt + add_cnt <= *cap_cnt) in libbpf_add_mem()
212 if (cur_cnt + add_cnt > max_cnt) in libbpf_add_mem()
221 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in libbpf_add_mem()
222 new_cnt = cur_cnt + add_cnt; in libbpf_add_mem()
253 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) in btf_add_type_offs_mem() argument
256 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem()
/linux/kernel/bpf/
H A Dbtf.c9296 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt, in register_btf_id_dtor_kfuncs() argument
9310 if (add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs()
9317 ret = btf_check_dtor_kfuncs(btf, dtors, add_cnt); in register_btf_id_dtor_kfuncs()
9329 if (tab_cnt > U32_MAX - add_cnt) { in register_btf_id_dtor_kfuncs()
9333 if (tab_cnt + add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs()
9340 struct_size(tab, dtors, tab_cnt + add_cnt), in register_btf_id_dtor_kfuncs()
9351 memcpy(tab->dtors + tab->cnt, dtors, add_cnt * sizeof(tab->dtors[0])); in register_btf_id_dtor_kfuncs()
9354 for (i = tab_cnt; i < tab_cnt + add_cnt; i++) { in register_btf_id_dtor_kfuncs()
9359 tab->cnt += add_cnt; in register_btf_id_dtor_kfuncs()