/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | bpf_experimental.h | 37 extern void bpf_obj_drop_impl(void *kptr, void *meta) __ksym; 40 #define bpf_obj_drop(kptr) bpf_obj_drop_impl(kptr, NULL) argument 51 extern void *bpf_refcount_acquire_impl(void *kptr, void *meta) __ksym; 54 #define bpf_refcount_acquire(kptr) bpf_refcount_acquire_impl(kptr, NULL) argument 160 extern void bpf_percpu_obj_drop_impl(void *kptr, void *meta) __ksym; 163 #define bpf_percpu_obj_drop(kptr) bpf_percpu_obj_drop_impl(kptr, NULL) argument
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
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()
|
H A D | task_kfunc_success.c | 145 struct task_struct *kptr; in BPF_PROG() local 164 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG() 165 if (!kptr) { in BPF_PROG() 170 bpf_task_release(kptr); in BPF_PROG() 178 struct task_struct *kptr; in BPF_PROG() local 198 kptr = v->task; in BPF_PROG() 199 if (!kptr) { in BPF_PROG() 202 kptr = bpf_task_acquire(kptr); in BPF_PROG() 203 if (!kptr) in BPF_PROG() 206 bpf_task_release(kptr); in BPF_PROG()
|
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 | 135 struct task_struct *kptr; in BPF_PROG() local 142 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG() 143 if (!kptr) in BPF_PROG()
|
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);
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_benchmark.c | 27 memcpy_toio(dst_bo->kptr, src_bo->kptr, size); in lsdc_copy_gtt_to_vram_cpu() 42 memcpy_fromio(dst_bo->kptr, src_bo->kptr, size); in lsdc_copy_vram_to_gtt_cpu() 57 memcpy(dst_bo->kptr, src_bo->kptr, size); in lsdc_copy_gtt_to_gtt_cpu()
|
H A D | lsdc_ttm.c | 373 if (lbo->kptr) in lsdc_bo_kmap() 382 lbo->kptr = ttm_kmap_obj_virtual(&lbo->kmap, &lbo->is_iomem); in lsdc_bo_kmap() 389 if (!lbo->kptr) in lsdc_bo_kunmap() 392 lbo->kptr = NULL; in lsdc_bo_kunmap() 401 memset_io((void __iomem *)lbo->kptr, 0, lbo->size); in lsdc_bo_clear() 403 memset(lbo->kptr, 0, lbo->size); in lsdc_bo_clear()
|
H A D | lsdc_ttm.h | 36 void *kptr; member
|
/openbmc/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_object.c | 167 if (bo->kptr) { in qxl_bo_vmap_locked() 185 bo->kptr = (void *)bo->map.vaddr_iomem; in qxl_bo_vmap_locked() 187 bo->kptr = bo->map.vaddr; in qxl_bo_vmap_locked() 226 if (bo->kptr) { in qxl_bo_kmap_atomic_page() 227 rptr = bo->kptr + (page_offset * PAGE_SIZE); in qxl_bo_kmap_atomic_page() 244 if (bo->kptr == NULL) in qxl_bo_vunmap_locked() 249 bo->kptr = NULL; in qxl_bo_vunmap_locked()
|
H A D | qxl_drv.h | 82 void *kptr; member
|
/openbmc/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 …]
|
/openbmc/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
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_object.c | 229 if (bo->kptr) { in radeon_bo_kmap() 231 *ptr = bo->kptr; in radeon_bo_kmap() 239 bo->kptr = ttm_kmap_obj_virtual(&bo->kmap, &is_iomem); in radeon_bo_kmap() 241 *ptr = bo->kptr; in radeon_bo_kmap() 249 if (bo->kptr == NULL) in radeon_bo_kunmap() 251 bo->kptr = NULL; in radeon_bo_kunmap()
|
H A D | radeon_fbdev.c | 265 info->screen_base = (__force void __iomem *)rbo->kptr; in radeon_fbdev_fb_helper_fb_probe()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | linked_list.c | 26 TEST(kptr, 40) 44 TEST(kptr, push_front) 45 TEST(kptr, push_back) 46 TEST(kptr, pop_front) 47 TEST(kptr, pop_back)
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process.c | 691 struct kfd_process_device *pdd, void **kptr) in kfd_process_free_gpuvm() argument 695 if (kptr && *kptr) { in kfd_process_free_gpuvm() 697 *kptr = NULL; in kfd_process_free_gpuvm() 713 uint32_t flags, struct kgd_mem **mem, void **kptr) in kfd_process_alloc_gpuvm() argument 735 if (kptr) { in kfd_process_alloc_gpuvm() 737 (struct kgd_mem *)*mem, kptr, NULL); in kfd_process_alloc_gpuvm() 754 *kptr = NULL; in kfd_process_alloc_gpuvm()
|
/openbmc/linux/drivers/gpu/drm/amd/include/ |
H A D | cgs_common.h | 77 void *kptr; member
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_cgs.c | 233 info->kptr = ucode->kaddr; in amdgpu_cgs_get_firmware_info() 445 info->kptr = (void *)src; in amdgpu_cgs_get_firmware_info()
|
H A D | amdgpu_object.c | 786 void *kptr; in amdgpu_bo_kmap() local 797 kptr = amdgpu_bo_kptr(bo); in amdgpu_bo_kmap() 798 if (kptr) { in amdgpu_bo_kmap() 800 *ptr = kptr; in amdgpu_bo_kmap()
|
H A D | amdgpu_cs.c | 1035 uint8_t *kptr; in amdgpu_cs_patch_ibs() local 1051 r = amdgpu_bo_kmap(aobj, (void **)&kptr); in amdgpu_cs_patch_ibs() 1055 kptr += va_start - (m->start * AMDGPU_GPU_PAGE_SIZE); in amdgpu_cs_patch_ibs() 1058 memcpy(ib->ptr, kptr, ib->length_dw * 4); in amdgpu_cs_patch_ibs() 1068 ib->ptr = (uint32_t *)kptr; in amdgpu_cs_patch_ibs()
|
H A D | amdgpu_ucode.c | 742 uint64_t mc_addr, void *kptr) in amdgpu_ucode_init_single_fw() argument 758 ucode->kaddr = kptr; in amdgpu_ucode_init_single_fw() 971 uint64_t mc_addr, void *kptr) in amdgpu_ucode_patch_jt() argument
|
/openbmc/linux/drivers/android/ |
H A D | binder_alloc.c | 1219 void *kptr; in binder_alloc_copy_user_to_buffer() local 1224 kptr = kmap_local_page(page) + pgoff; in binder_alloc_copy_user_to_buffer() 1225 ret = copy_from_user(kptr, from, size); in binder_alloc_copy_user_to_buffer() 1226 kunmap_local(kptr); in binder_alloc_copy_user_to_buffer()
|
/openbmc/linux/crypto/ |
H A D | vmac.c | 403 const u64 *kptr = tctx->nhkey; in vhash_blocks() local 412 nh_vmac_nhbytes(mptr, kptr, VMAC_NHBYTES/8, rh, rl); in vhash_blocks() 420 nh_vmac_nhbytes(mptr, kptr, VMAC_NHBYTES/8, rh, rl); in vhash_blocks()
|