Home
last modified time | relevance | path

Searched refs:kptr (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dcgrp_kfunc_failure.c120 struct cgroup *kptr; in BPF_PROG() local
124 if (!kptr) in BPF_PROG()
127 bpf_cgroup_release(kptr); in BPF_PROG()
143 if (!kptr) in BPF_PROG()
146 bpf_cgroup_release(kptr); in BPF_PROG()
155 struct cgroup *kptr; in BPF_PROG() local
159 if (!kptr) in BPF_PROG()
171 struct cgroup *kptr; in BPF_PROG() local
179 if (!kptr) in BPF_PROG()
191 struct cgroup *kptr; in BPF_PROG() local
[all …]
A Dtask_kfunc_failure.c120 struct task_struct *kptr; in BPF_PROG() local
124 if (!kptr) in BPF_PROG()
127 bpf_task_release(kptr); in BPF_PROG()
143 if (!kptr) in BPF_PROG()
146 bpf_task_release(kptr); in BPF_PROG()
155 struct task_struct *kptr; in BPF_PROG() local
159 if (!kptr) in BPF_PROG()
162 bpf_task_release(kptr); in BPF_PROG()
171 struct task_struct *kptr; in BPF_PROG() local
179 if (!kptr) in BPF_PROG()
[all …]
A Dcgrp_kfunc_success.c64 struct cgroup *kptr; in BPF_PROG() local
83 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
84 if (!kptr) { in BPF_PROG()
89 bpf_cgroup_release(kptr); in BPF_PROG()
97 struct cgroup *kptr; in BPF_PROG() local
116 kptr = bpf_cgroup_kptr_get(&v->cgrp); in BPF_PROG()
117 if (!kptr) { in BPF_PROG()
122 bpf_cgroup_release(kptr); in BPF_PROG()
A Dtask_kfunc_success.c73 struct task_struct *kptr; in BPF_PROG() local
92 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
93 if (!kptr) { in BPF_PROG()
98 bpf_task_release(kptr); in BPF_PROG()
106 struct task_struct *kptr; in BPF_PROG() local
125 kptr = bpf_task_kptr_get(&v->task); in BPF_PROG()
126 if (kptr) { in BPF_PROG()
132 bpf_task_release(kptr); in BPF_PROG()
A Dlinked_list_fail.c57 CHECK(kptr, pop_front, &f->head);
58 CHECK(kptr, pop_back, &f->head);
81 CHECK(kptr, push_front, &f->head, b);
82 CHECK(kptr, push_back, &f->head, b);
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dbpf_experimental.h35 extern void bpf_obj_drop_impl(void *kptr, void *meta) __ksym;
38 #define bpf_obj_drop(kptr) bpf_obj_drop_impl(kptr, NULL) argument
/linux-6.3-rc2/drivers/gpu/drm/qxl/
A Dqxl_object.c167 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()
A Dqxl_drv.h82 void *kptr; member
/linux-6.3-rc2/drivers/message/fusion/
A Dmptctl.c95 u8 *kptr; member
1133 u8 *kptr; in kbuf_alloc_2_sgl() local
1140 kptr = buflist[i].kptr; in kbuf_alloc_2_sgl()
1178 void *kptr; in kfree_sgl() local
1182 kptr = bl->kptr; in kfree_sgl()
1198 void *kptr; in kfree_sgl() local
1202 kptr = bl->kptr; in kfree_sgl()
1753 bufIn.kptr = bufOut.kptr = NULL; in mptctl_do_mpt_command()
2146 if (bufIn.kptr == NULL) { in mptctl_do_mpt_command()
2291 if (bufOut.kptr != NULL) { in mptctl_do_mpt_command()
[all …]
/linux-6.3-rc2/Documentation/bpf/
A Dcpumasks.rst93 * recorded as a kptr.
129 /* struct containing the struct bpf_cpumask kptr which is stored in the map. */
146 * struct bpf_cpumask * kptr that is stored in a map can
152 struct bpf_cpumask *kptr;
156 /* Assume a bpf_cpumask * kptr was previously stored in the map. */
161 /* Acquire a reference to the bpf_cpumask * kptr that's already stored in the map. */
162 kptr = bpf_cpumask_kptr_get(&v->cpumask);
163 if (!kptr)
175 * original struct bpf_cpumask * kptr is still in the map. It will
180 bpf_cpumask_release(kptr);
A Dkfuncs.rst148 referenced kptr (by invoking bpf_kptr_xchg). If not, the verifier fails the
173 as a pointer to kptr, safely increments the refcount of the object it points to,
518 You may also acquire a reference to a ``struct cgroup`` kptr that's already
545 * struct cgroup kptr that is stored in a map can
551 struct cgroup *kptr;
555 /* Assume a cgroup kptr was previously stored in the map. */
561 kptr = bpf_cgroup_kptr_get(&v->cgroup);
562 if (!kptr)
574 * original struct cgroup kptr is still in the map. It will
579 bpf_cgroup_release(kptr);
[all …]
A Dbpf_design_QA.rst320 A: It depends. For bpf_spin_lock, bpf_timer: YES, for kptr and everything else:
326 For kptrs, they are also part of UAPI, but only with respect to the kptr
329 and will change across kernel releases. However, operations like accessing kptr
/linux-6.3-rc2/drivers/gpu/drm/radeon/
A Dradeon_object.c229 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()
A Dradeon_fb.c268 memset_io(rbo->kptr, 0x0, radeon_bo_size(rbo)); in radeonfb_create()
275 info->screen_base = rbo->kptr; in radeonfb_create()
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dlinked_list.c26 TEST(kptr, 32)
44 TEST(kptr, push_front)
45 TEST(kptr, push_back)
46 TEST(kptr, pop_front)
47 TEST(kptr, pop_back)
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_process.c692 struct kfd_process_device *pdd, void **kptr) in kfd_process_free_gpuvm() argument
696 if (kptr && *kptr) { in kfd_process_free_gpuvm()
698 *kptr = NULL; in kfd_process_free_gpuvm()
714 uint32_t flags, struct kgd_mem **mem, void **kptr) in kfd_process_alloc_gpuvm() argument
736 if (kptr) { in kfd_process_alloc_gpuvm()
738 (struct kgd_mem *)*mem, kptr, NULL); in kfd_process_alloc_gpuvm()
755 *kptr = NULL; in kfd_process_alloc_gpuvm()
/linux-6.3-rc2/drivers/gpu/drm/amd/include/
A Dcgs_common.h77 void *kptr; member
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_cgs.c230 info->kptr = ucode->kaddr; in amdgpu_cgs_get_firmware_info()
442 info->kptr = (void *)src; in amdgpu_cgs_get_firmware_info()
A Damdgpu_object.c762 void *kptr; in amdgpu_bo_kmap() local
773 kptr = amdgpu_bo_kptr(bo); in amdgpu_bo_kmap()
774 if (kptr) { in amdgpu_bo_kmap()
776 *ptr = kptr; in amdgpu_bo_kmap()
A Damdgpu_cs.c1033 uint8_t *kptr; in amdgpu_cs_patch_ibs() local
1049 r = amdgpu_bo_kmap(aobj, (void **)&kptr); in amdgpu_cs_patch_ibs()
1054 kptr += va_start - (m->start * AMDGPU_GPU_PAGE_SIZE); in amdgpu_cs_patch_ibs()
1057 memcpy(ib->ptr, kptr, ib->length_dw * 4); in amdgpu_cs_patch_ibs()
1064 ib->ptr = (uint32_t *)kptr; in amdgpu_cs_patch_ibs()
A Damdgpu_ucode.c744 uint64_t mc_addr, void *kptr) in amdgpu_ucode_init_single_fw() argument
760 ucode->kaddr = kptr; in amdgpu_ucode_init_single_fw()
973 uint64_t mc_addr, void *kptr) in amdgpu_ucode_patch_jt() argument
A Damdgpu_amdkfd.h297 void **kptr, uint64_t *size);
/linux-6.3-rc2/drivers/android/
A Dbinder_alloc.c1217 void *kptr; in binder_alloc_copy_user_to_buffer() local
1222 kptr = kmap_local_page(page) + pgoff; in binder_alloc_copy_user_to_buffer()
1223 ret = copy_from_user(kptr, from, size); in binder_alloc_copy_user_to_buffer()
1224 kunmap_local(kptr); in binder_alloc_copy_user_to_buffer()
/linux-6.3-rc2/crypto/
A Dvmac.c403 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()
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/smumgr/
A Dvega10_smumgr.c214 if (ret || !info.kptr) in vega10_smu_init()

Completed in 47 milliseconds

12