Searched refs:add_cnt (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.1/drivers/rtc/ |
D | sysfs.c | 317 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local 329 add_cnt++; in rtc_add_groups() 331 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups() 336 memcpy(groups + old_cnt, grps, add_cnt * sizeof(*groups)); in rtc_add_groups() 337 groups[old_cnt + add_cnt] = NULL; in rtc_add_groups()
|
/Linux-v6.1/include/linux/ |
D | btf.h | 418 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt, 447 u32 add_cnt, struct module *owner) in register_btf_id_dtor_kfuncs() argument
|
/Linux-v6.1/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 | 267 size_t cur_cnt, size_t max_cnt, size_t add_cnt);
|
/Linux-v6.1/kernel/bpf/ |
D | btf.c | 7536 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt, in register_btf_id_dtor_kfuncs() argument 7559 if (add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs() 7566 ret = btf_check_dtor_kfuncs(btf, dtors, add_cnt); in register_btf_id_dtor_kfuncs() 7578 if (tab_cnt > U32_MAX - add_cnt) { in register_btf_id_dtor_kfuncs() 7582 if (tab_cnt + add_cnt >= BTF_DTOR_KFUNC_MAX_CNT) { in register_btf_id_dtor_kfuncs() 7589 offsetof(struct btf_id_dtor_kfunc_tab, dtors[tab_cnt + add_cnt]), in register_btf_id_dtor_kfuncs() 7600 memcpy(tab->dtors + tab->cnt, dtors, add_cnt * sizeof(tab->dtors[0])); in register_btf_id_dtor_kfuncs() 7601 tab->cnt += add_cnt; in register_btf_id_dtor_kfuncs()
|