Home
last modified time | relevance | path

Searched refs:ptr_sz (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_size.c27 int ptr_sz; member
66 out->ptr_sz = bpf_core_field_size(struct core_reloc_size, ptr_field); in test_core_size()
Dcore_reloc_types.h798 int ptr_sz; member
/Linux-v6.6/tools/lib/bpf/
Dbtf.c123 int ptr_sz; member
497 if (btf->base_btf && btf->base_btf->ptr_sz > 0) in determine_ptr_size()
498 return btf->base_btf->ptr_sz; in determine_ptr_size()
524 if (!btf->ptr_sz) in btf_ptr_sz()
525 ((struct btf *)btf)->ptr_sz = determine_ptr_size(btf); in btf_ptr_sz()
526 return btf->ptr_sz < 0 ? sizeof(void *) : btf->ptr_sz; in btf_ptr_sz()
539 if (!btf->ptr_sz) in btf__pointer_size()
540 ((struct btf *)btf)->ptr_sz = determine_ptr_size(btf); in btf__pointer_size()
542 if (btf->ptr_sz < 0) in btf__pointer_size()
546 return btf->ptr_sz; in btf__pointer_size()
[all …]
Dbtf_dump.c83 int ptr_sz; member
169 d->ptr_sz = btf__pointer_size(btf) ? : sizeof(void *); in btf_dump__new()
868 {"long", d->ptr_sz * 8}, {"int", 32}, {"short", 16}, {"char", 8} in btf_dump_emit_bit_padding()
1141 } else if (t->size == 8 && d->ptr_sz == 8) { in btf_dump_emit_enum_def()
1835 nr_bytes = d->ptr_sz; in btf_dump_base_type_check_zero()
2133 if (ptr_is_aligned(d->btf, id, data) && d->ptr_sz == sizeof(void *)) { in btf_dump_ptr_data()
2138 memcpy(&pt, data, d->ptr_sz); in btf_dump_ptr_data()
2139 if (d->ptr_sz == 4) in btf_dump_ptr_data()
Dbtf.h133 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
/Linux-v6.6/drivers/firmware/
Dqcom_scm.c916 size_t ptr_sz; in qcom_scm_assign_mem() local
926 ptr_sz = ALIGN(src_sz, SZ_64) + ALIGN(mem_to_map_sz, SZ_64) + in qcom_scm_assign_mem()
929 ptr = dma_alloc_coherent(__scm->dev, ptr_sz, &ptr_phys, GFP_KERNEL); in qcom_scm_assign_mem()
961 dma_free_coherent(__scm->dev, ptr_sz, ptr, ptr_phys); in qcom_scm_assign_mem()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c271 size_t ptr_sz, char *str, const char *expected_val) in btf_dump_data() argument
294 ret = btf_dump__dump_type_data(d, type_id, ptr, ptr_sz, &opts); in btf_dump_data()
295 if (type_sz <= ptr_sz) { in btf_dump_data()
Dcore_reloc.c292 .ptr_sz = 8, /* always 8-byte pointer for BPF */ \