/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_object.c | 167 if (bo->kptr) { in qxl_bo_vmap_locked() 178 bo->kptr = (void *)bo->map.vaddr_iomem; in qxl_bo_vmap_locked() 180 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()
|
D | qxl_drv.h | 84 void *kptr; member
|
D | qxl_cmd.c | 392 DRM_DEBUG_DRIVER("mem = %llx, from %p\n", create->mem, bo->kptr); in qxl_io_create_primary()
|
D | qxl_display.c | 1211 qdev->monitors_config = qdev->monitors_config_bo->kptr; in qxl_create_monitors_object()
|
/linux-6.1.9/drivers/message/fusion/ |
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-6.1.9/drivers/gpu/drm/radeon/ |
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()
|
D | radeon_fb.c | 266 memset_io(rbo->kptr, 0x0, radeon_bo_size(rbo)); in radeonfb_create() 273 info->screen_base = rbo->kptr; in radeonfb_create()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_process.c | 692 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.1.9/drivers/gpu/drm/amd/include/ |
D | cgs_common.h | 77 void *kptr; member
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_cgs.c | 230 info->kptr = ucode->kaddr; in amdgpu_cgs_get_firmware_info() 449 info->kptr = (void *)src; in amdgpu_cgs_get_firmware_info()
|
D | amdgpu_object.c | 759 void *kptr; in amdgpu_bo_kmap() local 770 kptr = amdgpu_bo_kptr(bo); in amdgpu_bo_kmap() 771 if (kptr) { in amdgpu_bo_kmap() 773 *ptr = kptr; in amdgpu_bo_kmap()
|
D | amdgpu_cs.c | 1034 uint8_t *kptr; in amdgpu_cs_patch_ibs() local 1050 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() 1065 ib->ptr = (uint32_t *)kptr; in amdgpu_cs_patch_ibs()
|
D | amdgpu_ucode.c | 744 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
|
D | amdgpu_amdkfd.h | 292 void **kptr, uint64_t *size);
|
D | amdgpu_amdkfd_gpuvm.c | 2164 void **kptr, uint64_t *size) in amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel() argument 2188 ret = amdgpu_bo_kmap(bo, kptr); in amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel()
|
/linux-6.1.9/drivers/android/ |
D | binder_alloc.c | 1217 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.1.9/crypto/ |
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()
|
/linux-6.1.9/Documentation/bpf/ |
D | kfuncs.rst | 106 referenced kptr (by invoking bpf_kptr_xchg). If not, the verifier fails the 131 as a pointer to kptr, safely increments the refcount of the object it points to,
|
/linux-6.1.9/kernel/bpf/ |
D | syscall.c | 531 if (tab->off[i].kptr.module) in bpf_map_free_kptr_off_tab() 532 module_put(tab->off[i].kptr.module); in bpf_map_free_kptr_off_tab() 533 btf_put(tab->off[i].kptr.btf); in bpf_map_free_kptr_off_tab() 552 btf_get(tab->off[i].kptr.btf); in bpf_map_copy_kptr_off_tab() 553 if (tab->off[i].kptr.module && !try_module_get(tab->off[i].kptr.module)) { in bpf_map_copy_kptr_off_tab() 555 if (tab->off[i].kptr.module) in bpf_map_copy_kptr_off_tab() 556 module_put(tab->off[i].kptr.module); in bpf_map_copy_kptr_off_tab() 557 btf_put(tab->off[i].kptr.btf); in bpf_map_copy_kptr_off_tab() 605 off_desc->kptr.dtor((void *)old_ptr); in bpf_map_free_kptrs()
|
D | helpers.c | 1374 unsigned long *kptr = map_value; in BPF_CALL_2() local 1376 return xchg(kptr, (unsigned long)ptr); in BPF_CALL_2()
|
D | btf.c | 3500 tab->off[i].kptr.dtor = (void *)addr; in btf_parse_kptrs() 3505 tab->off[i].kptr.btf_id = id; in btf_parse_kptrs() 3506 tab->off[i].kptr.btf = kernel_btf; in btf_parse_kptrs() 3507 tab->off[i].kptr.module = mod; in btf_parse_kptrs() 3517 btf_put(tab->off[i].kptr.btf); in btf_parse_kptrs() 3518 if (tab->off[i].kptr.module) in btf_parse_kptrs() 3519 module_put(tab->off[i].kptr.module); in btf_parse_kptrs() 6411 if (!btf_struct_ids_match(log, btf, ref_id, 0, off_desc->kptr.btf, in btf_check_func_arg_match() 6412 off_desc->kptr.btf_id, true)) { in btf_check_func_arg_match()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | vega10_smumgr.c | 214 if (ret || !info.kptr) in vega10_smu_init()
|
D | vega12_smumgr.c | 221 if (ret || !info.kptr) in vega12_smu_init()
|
D | smu7_smumgr.c | 490 …result = smu7_upload_smc_firmware_data(hwmgr, info.image_size, (uint32_t *)info.kptr, SMU7_SMC_SIZ… in smu7_upload_smu_firmware_image()
|
D | vega20_smumgr.c | 430 if (ret || !info.kptr) in vega20_smu_init()
|