Searched refs:ptr_sz (Results 1 – 8 of 8) sorted by relevance
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | test_core_reloc_size.c | 27 int ptr_sz; member 66 out->ptr_sz = bpf_core_field_size(struct core_reloc_size, ptr_field); in test_core_size()
|
D | core_reloc_types.h | 798 int ptr_sz; member
|
/Linux-v6.6/tools/lib/bpf/ |
D | btf.c | 123 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 …]
|
D | btf_dump.c | 83 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()
|
D | btf.h | 133 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
|
/Linux-v6.6/drivers/firmware/ |
D | qcom_scm.c | 916 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/ |
D | btf_dump.c | 271 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()
|
D | core_reloc.c | 292 .ptr_sz = 8, /* always 8-byte pointer for BPF */ \
|