/openbsd/sys/net/ |
H A D | if_media.c | 343 uint64_t *kptr; in ifmedia_ioctl() local 346 kptr = mallocarray(nwords, sizeof(*kptr), M_TEMP, in ifmedia_ioctl() 348 ksiz = nwords * sizeof(*kptr); in ifmedia_ioctl() 355 free(kptr, M_TEMP, ksiz); in ifmedia_ioctl() 362 free(kptr, M_TEMP, ksiz); in ifmedia_ioctl() 371 kptr[nwords++] = ife->ifm_media; in ifmedia_ioctl() 376 error = copyout(kptr, ifmr->ifm_ulist, in ifmedia_ioctl() 377 nwords * sizeof(*kptr)); in ifmedia_ioctl() 378 free(kptr, M_TEMP, ksiz); in ifmedia_ioctl()
|
/openbsd/sys/dev/pci/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 | 272 info->screen_base = (__force void __iomem *)rbo->kptr; in radeon_fbdev_fb_helper_fb_probe() 285 ri->ri_bits = rbo->kptr; in radeon_fbdev_fb_helper_fb_probe()
|
H A D | radeon.h | 505 void *kptr; member
|
/openbsd/sys/dev/pci/drm/amd/amdkfd/ |
H A D | kfd_process.c | 690 struct kfd_process_device *pdd, void **kptr) in kfd_process_free_gpuvm() argument 694 if (kptr && *kptr) { in kfd_process_free_gpuvm() 696 *kptr = NULL; in kfd_process_free_gpuvm() 712 uint32_t flags, struct kgd_mem **mem, void **kptr) in kfd_process_alloc_gpuvm() argument 734 if (kptr) { in kfd_process_alloc_gpuvm() 736 (struct kgd_mem *)*mem, kptr, NULL); in kfd_process_alloc_gpuvm() 753 *kptr = NULL; in kfd_process_alloc_gpuvm()
|
/openbsd/usr.bin/vmstat/ |
H A D | dkstats.c | 564 deref_kptr(void *kptr, void *ptr, size_t len) in deref_kptr() argument 568 if (kvm_read(kd, (u_long)kptr, ptr, len) != len) { in deref_kptr() 571 "can't dereference kptr 0x%lx", (u_long)kptr); in deref_kptr()
|
/openbsd/sys/dev/pci/drm/amd/include/ |
H A D | cgs_common.h | 77 void *kptr; member
|
/openbsd/sys/dev/pci/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 | 788 void *kptr; in amdgpu_bo_kmap() local 799 kptr = amdgpu_bo_kptr(bo); in amdgpu_bo_kmap() 800 if (kptr) { in amdgpu_bo_kmap() 802 *ptr = kptr; in amdgpu_bo_kmap()
|
H A D | amdgpu_cs.c | 1037 uint8_t *kptr; in amdgpu_cs_patch_ibs() local 1053 r = amdgpu_bo_kmap(aobj, (void **)&kptr); in amdgpu_cs_patch_ibs() 1057 kptr += va_start - (m->start * AMDGPU_GPU_PAGE_SIZE); in amdgpu_cs_patch_ibs() 1060 memcpy(ib->ptr, kptr, ib->length_dw * 4); in amdgpu_cs_patch_ibs() 1070 ib->ptr = (uint32_t *)kptr; in amdgpu_cs_patch_ibs()
|
H A D | amdgpu_ucode.c | 746 uint64_t mc_addr, void *kptr) in amdgpu_ucode_init_single_fw() argument 762 ucode->kaddr = kptr; in amdgpu_ucode_init_single_fw() 975 uint64_t mc_addr, void *kptr) in amdgpu_ucode_patch_jt() argument
|
H A D | amdgpu_amdkfd.h | 310 void **kptr, uint64_t *size);
|
H A D | amdgpu_amdkfd_gpuvm.c | 2216 void **kptr, uint64_t *size) in amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel() argument 2240 ret = amdgpu_bo_kmap(bo, kptr); in amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel()
|
/openbsd/usr.sbin/procmap/ |
H A D | procmap.c | 565 load_vm_map_entries(kvm_t *kd, struct vm_map_entry *kptr, in load_vm_map_entries() argument 571 if (kptr == NULL) in load_vm_map_entries() 574 A(&map_ent) = (u_long)kptr; in load_vm_map_entries()
|
/openbsd/sys/dev/pci/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()
|
H A 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()
|
H A D | vega20_smumgr.c | 430 if (ret || !info.kptr) in vega20_smu_init()
|
H A D | iceland_smumgr.c | 222 (uint8_t *)info.kptr, ICELAND_SMC_SIZE, in iceland_smu_upload_firmware_image()
|
H A D | ci_smumgr.c | 2325 src = (uint8_t *)info.kptr; in ci_load_smc_ucode()
|