Searched refs:add_cnt (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/drivers/rtc/ |
D | sysfs.c | 318 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()
|
/linux-6.6.21/include/linux/ |
D | btf.h | 500 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
|
/linux-6.6.21/tools/lib/bpf/ |
D | btf.c | 142 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()
|
D | libbpf_internal.h | 268 size_t cur_cnt, size_t max_cnt, size_t add_cnt);
|
/linux-6.6.21/kernel/bpf/ |
D | btf.c | 7990 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt, in register_btf_id_dtor_kfuncs() argument 8013 if (add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs() 8020 ret = btf_check_dtor_kfuncs(btf, dtors, add_cnt); in register_btf_id_dtor_kfuncs() 8032 if (tab_cnt > U32_MAX - add_cnt) { in register_btf_id_dtor_kfuncs() 8036 if (tab_cnt + add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs() 8043 offsetof(struct btf_id_dtor_kfunc_tab, dtors[tab_cnt + add_cnt]), in register_btf_id_dtor_kfuncs() 8054 memcpy(tab->dtors + tab->cnt, dtors, add_cnt * sizeof(tab->dtors[0])); in register_btf_id_dtor_kfuncs() 8055 tab->cnt += add_cnt; in register_btf_id_dtor_kfuncs()
|