Home
last modified time | relevance | path

Searched refs:cpu_ptr (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager.c59 mqd_mem_obj->cpu_ptr = dev->dqm->hiq_sdma_mqd.cpu_ptr; in allocate_hiq_mqd()
84 mqd_mem_obj->cpu_ptr = (uint32_t *)((uint64_t) in allocate_sdma_mqd()
85 dev->dqm->hiq_sdma_mqd.cpu_ptr + offset); in allocate_sdma_mqd()
Dkfd_kernel_queue.c91 kq->pq_kernel_addr = kq->pq->cpu_ptr; in kq_initialize()
101 kq->eop_kernel_addr = kq->eop_mem->cpu_ptr; in kq_initialize()
112 kq->rptr_kernel = kq->rptr_mem->cpu_ptr; in kq_initialize()
121 kq->wptr_kernel = kq->wptr_mem->cpu_ptr; in kq_initialize()
172 kq->fence_kernel_address = kq->fence_mem_obj->cpu_ptr; in kq_initialize()
Dkfd_mqd_manager_v9.c117 (void *)&(mqd_mem_obj->cpu_ptr), true); in allocate_mqd()
139 m = (struct v9_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
333 m = (struct v9_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
375 m = (struct v9_sdma_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
436 m = (struct v9_sdma_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd_sdma()
Dkfd_mqd_manager_cik.c96 m = (struct cik_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
149 m = (struct cik_sdma_rlc_registers *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
277 m = (struct cik_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
315 m = (struct cik_sdma_rlc_registers *) mqd_mem_obj->cpu_ptr; in restore_mqd_sdma()
Dkfd_mqd_manager_v10.c96 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
274 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
312 m = (struct v10_sdma_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
374 m = (struct v10_sdma_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd_sdma()
Dkfd_mqd_manager_vi.c99 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
309 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
354 m = (struct vi_sdma_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
414 m = (struct vi_sdma_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd_sdma()
Dkfd_packet_manager.c110 *(void **)rl_buffer = pm->ib_buffer_obj->cpu_ptr; in pm_allocate_runlist_ib()
424 pm->ib_buffer_obj->cpu_ptr, pm->ib_size_bytes, false); in pm_debugfs_runlist()
Dkfd_mqd_manager_v11.c113 m = (struct v11_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
312 m = (struct v11_sdma_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
Dkfd_device.c1026 (*mem_obj)->cpu_ptr = kfd_gtt_sa_calc_cpu_addr( in kfd_gtt_sa_allocate()
1032 (uint64_t *) (*mem_obj)->gpu_addr, (*mem_obj)->cpu_ptr); in kfd_gtt_sa_allocate()
Dkfd_priv.h243 uint32_t *cpu_ptr; member
Dkfd_device_queue_manager.c1510 dqm->fence_addr = (uint64_t *)dqm->fence_mem->cpu_ptr; in start_cpsch()
2254 (void *)&(mem_obj->cpu_ptr), false); in allocate_hiq_sdma_mqd()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sa.c67 &sa_manager->gpu_addr, &sa_manager->cpu_ptr); in amdgpu_sa_bo_manager_init()
73 memset(sa_manager->cpu_ptr, 0, sa_manager->size); in amdgpu_sa_bo_manager_init()
98 amdgpu_bo_free_kernel(&sa_manager->bo, &sa_manager->gpu_addr, &sa_manager->cpu_ptr); in amdgpu_sa_bo_manager_fini()
Dsdma_v6_0.c897 volatile uint32_t *cpu_ptr = NULL; in sdma_v6_0_ring_test_ring() local
906 cpu_ptr = amdgpu_mes_ctx_get_offs_cpu_addr(ring, offset); in sdma_v6_0_ring_test_ring()
907 *cpu_ptr = tmp; in sdma_v6_0_ring_test_ring()
936 tmp = le32_to_cpu(*cpu_ptr); in sdma_v6_0_ring_test_ring()
973 volatile uint32_t *cpu_ptr = NULL; in sdma_v6_0_ring_test_ib() local
987 cpu_ptr = amdgpu_mes_ctx_get_offs_cpu_addr(ring, offset); in sdma_v6_0_ring_test_ib()
988 *cpu_ptr = tmp; in sdma_v6_0_ring_test_ib()
1032 tmp = le32_to_cpu(*cpu_ptr); in sdma_v6_0_ring_test_ib()
Dsdma_v5_2.c895 volatile uint32_t *cpu_ptr = NULL; in sdma_v5_2_ring_test_ring() local
904 cpu_ptr = amdgpu_mes_ctx_get_offs_cpu_addr(ring, offset); in sdma_v5_2_ring_test_ring()
905 *cpu_ptr = tmp; in sdma_v5_2_ring_test_ring()
934 tmp = le32_to_cpu(*cpu_ptr); in sdma_v5_2_ring_test_ring()
972 volatile uint32_t *cpu_ptr = NULL; in sdma_v5_2_ring_test_ib() local
986 cpu_ptr = amdgpu_mes_ctx_get_offs_cpu_addr(ring, offset); in sdma_v5_2_ring_test_ib()
987 *cpu_ptr = tmp; in sdma_v5_2_ring_test_ib()
1031 tmp = le32_to_cpu(*cpu_ptr); in sdma_v5_2_ring_test_ib()
Dsdma_v5_0.c1024 volatile uint32_t *cpu_ptr = NULL; in sdma_v5_0_ring_test_ring() local
1033 cpu_ptr = amdgpu_mes_ctx_get_offs_cpu_addr(ring, offset); in sdma_v5_0_ring_test_ring()
1034 *cpu_ptr = tmp; in sdma_v5_0_ring_test_ring()
1063 tmp = le32_to_cpu(*cpu_ptr); in sdma_v5_0_ring_test_ring()
1101 volatile uint32_t *cpu_ptr = NULL; in sdma_v5_0_ring_test_ib() local
1115 cpu_ptr = amdgpu_mes_ctx_get_offs_cpu_addr(ring, offset); in sdma_v5_0_ring_test_ib()
1116 *cpu_ptr = tmp; in sdma_v5_0_ring_test_ib()
1161 tmp = le32_to_cpu(*cpu_ptr); in sdma_v5_0_ring_test_ib()
Damdgpu_amdkfd.c277 void **cpu_ptr, bool cp_mqd_gfx9) in amdgpu_amdkfd_alloc_gtt_mem() argument
331 *cpu_ptr = cpu_ptr_tmp; in amdgpu_amdkfd_alloc_gtt_mem()
Damdgpu_object.h347 return sa_bo->manager->cpu_ptr + sa_bo->soffset; in amdgpu_sa_bo_cpu_addr()
Damdgpu_amdkfd.h212 void **cpu_ptr, bool mqd_gfx9);
Damdgpu.h436 void *cpu_ptr; member
/linux-6.1.9/drivers/net/ethernet/microchip/
Dlan743x_main.c2226 void *cpu_ptr = NULL; in lan743x_tx_ring_init() local
2246 cpu_ptr = dma_alloc_coherent(&tx->adapter->pdev->dev, in lan743x_tx_ring_init()
2248 if (!cpu_ptr) { in lan743x_tx_ring_init()
2254 tx->ring_cpu_ptr = (struct lan743x_tx_descriptor *)cpu_ptr; in lan743x_tx_ring_init()
2257 cpu_ptr = kcalloc(tx->ring_size, sizeof(*tx->buffer_info), GFP_KERNEL); in lan743x_tx_ring_init()
2258 if (!cpu_ptr) { in lan743x_tx_ring_init()
2262 tx->buffer_info = (struct lan743x_tx_buffer_info *)cpu_ptr; in lan743x_tx_ring_init()
2264 cpu_ptr = dma_alloc_coherent(&tx->adapter->pdev->dev, in lan743x_tx_ring_init()
2267 if (!cpu_ptr) { in lan743x_tx_ring_init()
2272 tx->head_cpu_ptr = cpu_ptr; in lan743x_tx_ring_init()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_helpers.c919 &da->gpu_addr, &da->cpu_ptr); in dm_helpers_allocate_gpu_mem()
931 return da->cpu_ptr; in dm_helpers_allocate_gpu_mem()
944 if (pvMem == da->cpu_ptr) { in dm_helpers_free_gpu_mem()
945 amdgpu_bo_free_kernel(&da->bo, &da->gpu_addr, &da->cpu_ptr); in dm_helpers_free_gpu_mem()
Damdgpu_dm.h171 void *cpu_ptr; member
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_object.h180 return sa_bo->manager->cpu_ptr + sa_bo->soffset; in radeon_sa_bo_cpu_addr()
Dradeon_sa.c118 r = radeon_bo_kmap(sa_manager->bo, &sa_manager->cpu_ptr); in radeon_sa_bo_manager_start()
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/
Damd_powerplay.c147 void *cpu_ptr = NULL; in pp_reserve_vram_for_smu() local
155 &cpu_ptr)) { in pp_reserve_vram_for_smu()
162 lower_32_bits((unsigned long)cpu_ptr), in pp_reserve_vram_for_smu()
163 upper_32_bits((unsigned long)cpu_ptr), in pp_reserve_vram_for_smu()

12