Lines Matching refs:hrec
472 struct htab_btf_record *hrec = ctx; in htab_mem_dtor() local
476 if (IS_ERR_OR_NULL(hrec->record)) in htab_mem_dtor()
479 map_value = htab_elem_value(elem, hrec->key_size); in htab_mem_dtor()
480 bpf_obj_free_fields(hrec->record, map_value); in htab_mem_dtor()
486 struct htab_btf_record *hrec = ctx; in htab_pcpu_mem_dtor() local
489 if (IS_ERR_OR_NULL(hrec->record)) in htab_pcpu_mem_dtor()
493 bpf_obj_free_fields(hrec->record, per_cpu_ptr(pptr, cpu)); in htab_pcpu_mem_dtor()
498 struct htab_btf_record *hrec = ctx; in htab_dtor_ctx_free() local
500 btf_record_free(hrec->record); in htab_dtor_ctx_free()
507 struct htab_btf_record *hrec; in bpf_ma_set_dtor() local
514 hrec = kzalloc(sizeof(*hrec), GFP_KERNEL); in bpf_ma_set_dtor()
515 if (!hrec) in bpf_ma_set_dtor()
517 hrec->key_size = map->key_size; in bpf_ma_set_dtor()
518 hrec->record = btf_record_dup(map->record); in bpf_ma_set_dtor()
519 if (IS_ERR(hrec->record)) { in bpf_ma_set_dtor()
520 err = PTR_ERR(hrec->record); in bpf_ma_set_dtor()
521 kfree(hrec); in bpf_ma_set_dtor()
524 bpf_mem_alloc_set_dtor(ma, dtor, htab_dtor_ctx_free, hrec); in bpf_ma_set_dtor()
2879 struct htab_btf_record *hrec = ctx; in rhtab_mem_dtor() local
2882 if (IS_ERR_OR_NULL(hrec->record)) in rhtab_mem_dtor()
2885 bpf_obj_free_fields(hrec->record, in rhtab_mem_dtor()
2886 rhtab_elem_value(elem, hrec->key_size)); in rhtab_mem_dtor()