| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | task_kfunc_success.c | 147 struct task_struct *task, *kptr, *acquired; in test_task_xchg_release() local 167 kptr = bpf_kptr_xchg(&v->task, NULL); in test_task_xchg_release() 168 if (!kptr) { in test_task_xchg_release() 176 bpf_task_release(kptr); in test_task_xchg_release() 180 kptr = bpf_kptr_xchg(&local->task, kptr); in test_task_xchg_release() 181 if (kptr) { in test_task_xchg_release() 184 bpf_task_release(kptr); in test_task_xchg_release() 188 kptr = bpf_kptr_xchg(&local->task, NULL); in test_task_xchg_release() 189 if (!kptr) { in test_task_xchg_release() 196 acquired = bpf_task_acquire(kptr); in test_task_xchg_release() [all …]
|
| H A D | cgrp_kfunc_success.c | 67 struct cgroup *kptr, *cg; in BPF_PROG() local 86 kptr = v->cgrp; in BPF_PROG() 87 if (!kptr) { in BPF_PROG() 92 cg = bpf_cgroup_ancestor(kptr, 1); in BPF_PROG() 96 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG() 97 if (!kptr) { in BPF_PROG() 102 bpf_cgroup_release(kptr); in BPF_PROG() 110 struct cgroup *kptr; in BPF_PROG() local 130 kptr = v->cgrp; in BPF_PROG() 131 if (!kptr) in BPF_PROG() [all...] |
| H A D | cgrp_kfunc_failure.c | 140 struct cgroup *kptr; in BPF_PROG() local 147 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG() 148 if (!kptr) in BPF_PROG() 160 struct cgroup *kptr; in BPF_PROG() local 168 kptr = v->cgrp; in BPF_PROG() 169 if (kptr) in BPF_PROG() 171 bpf_cgroup_release(kptr); in BPF_PROG()
|
| H A D | task_kfunc_failure.c | 136 struct task_struct *kptr; in BPF_PROG() local 143 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG() 144 if (!kptr) in BPF_PROG()
|
| H A D | kptr_xchg_inline.c | 16 private(kptr) struct bin_data __kptr * ptr;
|
| H A D | linked_list_fail.c | 57 CHECK(kptr, pop_front, &f->head); 58 CHECK(kptr, pop_back, &f->head); 80 CHECK(kptr, push_front, &f->head, &b->node); 81 CHECK(kptr, push_back, &f->head, &b->node);
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_object.c | 162 if (bo->kptr) { in qxl_bo_vmap_locked() 176 bo->kptr = (void *)bo->map.vaddr_iomem; in qxl_bo_vmap_locked() 178 bo->kptr = bo->map.vaddr; in qxl_bo_vmap_locked() 225 if (bo->kptr) { in qxl_bo_kmap_atomic_page() 226 rptr = bo->kptr + (page_offset * PAGE_SIZE); in qxl_bo_kmap_atomic_page() 243 if (bo->kptr == NULL) in qxl_bo_vunmap_locked() 248 bo->kptr = NULL; in qxl_bo_vunmap_locked()
|
| H A D | qxl_drv.h | 81 void *kptr; member
|
| /linux/drivers/message/fusion/ |
| H A D | mptctl.c | 95 u8 *kptr; member 904 if (copy_from_user(bl->kptr, ufwbuf+fw_bytes_copied, bl->len)) { in mptctl_do_fw_download() 1064 buflist[buflist_ent].kptr = dma_alloc_coherent(&ioc->pcidev->dev, in kbuf_alloc_2_sgl() 1067 if (buflist[buflist_ent].kptr == NULL) { in kbuf_alloc_2_sgl() 1083 buflist[buflist_ent].kptr, in kbuf_alloc_2_sgl() 1133 u8 *kptr; in kbuf_alloc_2_sgl() local 1140 kptr = buflist[i].kptr; in kbuf_alloc_2_sgl() 1143 dma_free_coherent(&ioc->pcidev->dev, len, kptr, in kbuf_alloc_2_sgl() 1178 void *kptr; in kfree_sgl() local 1182 kptr = bl->kptr; in kfree_sgl() [all …]
|
| /linux/Documentation/bpf/ |
| H A D | cpumasks.rst | 93 * recorded as a kptr. 124 /* struct containing the struct bpf_cpumask kptr which is stored in the map. */ 141 * struct bpf_cpumask * kptr that is stored in a map can 147 struct bpf_cpumask *kptr; 151 /* Assume a bpf_cpumask * kptr was previously stored in the map. */ 157 /* Acquire a reference to the bpf_cpumask * kptr that's already stored in the map. */ 158 kptr = v->cpumask; 159 if (!kptr) { 169 bpf_cpumask_setall(kptr);
|
| H A D | bpf_design_QA.rst | 315 A: It depends. For bpf_spin_lock, bpf_timer: YES, for kptr and everything else: 321 For kptrs, they are also part of UAPI, but only with respect to the kptr 324 and will change across kernel releases. However, operations like accessing kptr
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_ttm.c | 368 if (lbo->kptr) in lsdc_bo_kmap() 377 lbo->kptr = ttm_kmap_obj_virtual(&lbo->kmap, &lbo->is_iomem); in lsdc_bo_kmap() 384 if (!lbo->kptr) in lsdc_bo_kunmap() 387 lbo->kptr = NULL; in lsdc_bo_kunmap() 396 memset_io((void __iomem *)lbo->kptr, 0, lbo->size); in lsdc_bo_clear() 398 memset(lbo->kptr, 0, lbo->size); in lsdc_bo_clear()
|
| H A D | lsdc_ttm.h | 36 void *kptr; member
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_object.c | 228 if (bo->kptr) { in radeon_bo_kmap() 230 *ptr = bo->kptr; in radeon_bo_kmap() 238 bo->kptr = ttm_kmap_obj_virtual(&bo->kmap, &is_iomem); in radeon_bo_kmap() 240 *ptr = bo->kptr; in radeon_bo_kmap() 248 if (bo->kptr == NULL) in radeon_bo_kunmap() 250 bo->kptr = NULL; in radeon_bo_kunmap()
|
| /linux/tools/sched_ext/include/scx/ |
| H A D | common.bpf.h | 385 void bpf_obj_drop_impl(void *kptr, void *meta) __ksym; 388 #define bpf_obj_drop(kptr) bpf_obj_drop_impl(kptr, NULL) argument 411 void *bpf_refcount_acquire_impl(void *kptr, void *meta) __ksym; 412 #define bpf_refcount_acquire(kptr) bpf_refcount_acquire_impl(kptr, NULL) argument
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | linked_list.c | 27 TEST(kptr, 40) 45 TEST(kptr, push_front) 46 TEST(kptr, push_back) 47 TEST(kptr, pop_front) 48 TEST(kptr, pop_back)
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_dev_coredump.c | 224 u8 *kptr; in amdgpu_devcoredump_print_ibs() local 315 kptr = amdgpu_bo_kptr(abo); in amdgpu_devcoredump_print_ibs() 316 kptr += offset; in amdgpu_devcoredump_print_ibs() 317 memcpy(ib_content, kptr, coredump->ibs[i].ib_size_dw * 4); in amdgpu_devcoredump_print_ibs()
|
| H A D | amdgpu_object.c | 829 void *kptr; in amdgpu_bo_kmap() local 840 kptr = amdgpu_bo_kptr(bo); in amdgpu_bo_kmap() 841 if (kptr) { in amdgpu_bo_kmap() 843 *ptr = kptr; in amdgpu_bo_kmap()
|
| H A D | amdgpu_cs.c | 1048 uint8_t *kptr; in amdgpu_cs_patch_ibs() local 1064 r = amdgpu_bo_kmap(aobj, (void **)&kptr); in amdgpu_cs_patch_ibs() 1068 kptr += va_start - (m->start * AMDGPU_GPU_PAGE_SIZE); in amdgpu_cs_patch_ibs() 1071 memcpy(ib->ptr, kptr, ib->length_dw * 4); in amdgpu_cs_patch_ibs() 1081 ib->ptr = (uint32_t *)kptr; in amdgpu_cs_patch_ibs()
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_process.c | 735 struct kfd_process_device *pdd, void **kptr) in kfd_process_free_gpuvm() argument 739 if (kptr && *kptr) { in kfd_process_free_gpuvm() 741 *kptr = NULL; in kfd_process_free_gpuvm() 773 uint32_t flags, struct kgd_mem **mem, void **kptr) in kfd_process_alloc_gpuvm() argument 795 if (kptr) { in kfd_process_alloc_gpuvm() 803 kptr, NULL, domain); in kfd_process_alloc_gpuvm() 820 *kptr = NULL; in kfd_process_alloc_gpuvm()
|
| /linux/drivers/gpu/drm/amd/include/ |
| H A D | cgs_common.h | 77 void *kptr; member
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 217 t = btf_type_by_id(field->kptr.btf, field->kptr.btf_id); in bpf_obj_pin_uptrs() 675 if (rec->fields[i].kptr.module) in btf_record_free() 676 module_put(rec->fields[i].kptr.module); in btf_record_free() 677 if (btf_is_kernel(rec->fields[i].kptr.btf)) in btf_record_free() 678 btf_put(rec->fields[i].kptr.btf); in btf_record_free() 727 if (btf_is_kernel(fields[i].kptr.btf)) in btf_record_dup() 728 btf_get(fields[i].kptr.btf); in btf_record_dup() 729 if (fields[i].kptr.module && !try_module_get(fields[i].kptr in btf_record_dup() [all...] |
| H A D | btf.c | 3469 } kptr; member 3581 info->kptr.type_id = res_id; in btf_find_kptr() 3989 t = btf_type_by_id(btf, info->kptr.type_id); in btf_parse_kptr() 3999 field->kptr.dtor = NULL; in btf_parse_kptr() 4000 id = info->kptr.type_id; in btf_parse_kptr() 4049 field->kptr.dtor = (void *)addr; in btf_parse_kptr() 4053 field->kptr.btf_id = id; in btf_parse_kptr() 4054 field->kptr.btf = kptr_btf; in btf_parse_kptr() 4055 field->kptr.module = mod; in btf_parse_kptr() 4287 if (btf_is_kernel(rec->fields[i].kptr.btf)) in btf_check_and_fixup_fields() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
| H A D | vega10_smumgr.c | 218 if (ret || !info.kptr) in vega10_smu_init()
|
| H A D | vega12_smumgr.c | 221 if (ret || !info.kptr) in vega12_smu_init()
|