Home
last modified time | relevance | path

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

/openbsd/sys/net/
H A Dif_media.c343 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 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()
H A Dradeon_fbdev.c272 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 Dradeon.h505 void *kptr; member
/openbsd/sys/dev/pci/drm/amd/amdkfd/
H A Dkfd_process.c690 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 Ddkstats.c564 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 Dcgs_common.h77 void *kptr; member
/openbsd/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_cgs.c233 info->kptr = ucode->kaddr; in amdgpu_cgs_get_firmware_info()
445 info->kptr = (void *)src; in amdgpu_cgs_get_firmware_info()
H A Damdgpu_object.c788 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 Damdgpu_cs.c1037 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 Damdgpu_ucode.c746 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 Damdgpu_amdkfd.h310 void **kptr, uint64_t *size);
H A Damdgpu_amdkfd_gpuvm.c2216 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 Dprocmap.c565 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 Dvega10_smumgr.c218 if (ret || !info.kptr) in vega10_smu_init()
H A Dvega12_smumgr.c221 if (ret || !info.kptr) in vega12_smu_init()
H A Dsmu7_smumgr.c490 …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 Dvega20_smumgr.c430 if (ret || !info.kptr) in vega20_smu_init()
H A Diceland_smumgr.c222 (uint8_t *)info.kptr, ICELAND_SMC_SIZE, in iceland_smu_upload_firmware_image()
H A Dci_smumgr.c2325 src = (uint8_t *)info.kptr; in ci_load_smc_ucode()