Home
last modified time | relevance | path

Searched refs:add_cnt (Results 1 – 3 of 3) 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/tools/lib/bpf/
H A Dlibbpf_internal.h300 size_t cur_cnt, size_t max_cnt, size_t add_cnt);
/linux/kernel/bpf/
H A Dbtf.c9240 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt, in __print_cand_cache()
9254 if (add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in __print_cand_cache()
9261 ret = btf_check_dtor_kfuncs(btf, dtors, add_cnt); in print_cand_cache()
9273 if (tab_cnt > U32_MAX - add_cnt) { in check_cand_cache()
9277 if (tab_cnt + add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in check_cand_cache()
9284 struct_size(tab, dtors, tab_cnt + add_cnt), in sizeof_cands()
9295 memcpy(tab->dtors + tab->cnt, dtors, add_cnt * sizeof(tab->dtors[0])); in populate_cand_cache()
9298 for (i = tab_cnt; i < tab_cnt + add_cnt; i++) { in populate_cand_cache()
9303 tab->cnt += add_cnt; in populate_cand_cache()
9083 register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc * dtors,u32 add_cnt,struct module * owner) register_btf_id_dtor_kfuncs() argument