/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
D | msm_gem_vma.c | 14 struct msm_gem_address_space *aspace = container_of(kref, in msm_gem_address_space_destroy() local 17 drm_mm_takedown(&aspace->mm); in msm_gem_address_space_destroy() 18 if (aspace->mmu) in msm_gem_address_space_destroy() 19 aspace->mmu->funcs->destroy(aspace->mmu); in msm_gem_address_space_destroy() 20 put_pid(aspace->pid); in msm_gem_address_space_destroy() 21 kfree(aspace); in msm_gem_address_space_destroy() 25 void msm_gem_address_space_put(struct msm_gem_address_space *aspace) in msm_gem_address_space_put() argument 27 if (aspace) in msm_gem_address_space_put() 28 kref_put(&aspace->kref, msm_gem_address_space_destroy); in msm_gem_address_space_put() 32 msm_gem_address_space_get(struct msm_gem_address_space *aspace) in msm_gem_address_space_get() argument [all …]
|
D | msm_gem.c | 319 struct msm_gem_address_space *aspace) in add_vma() argument 330 vma->aspace = aspace; in add_vma() 338 struct msm_gem_address_space *aspace) in lookup_vma() argument 346 if (vma->aspace == aspace) in lookup_vma() 372 if (vma->aspace) { in put_iova() 373 msm_gem_purge_vma(vma->aspace, vma); in put_iova() 374 msm_gem_close_vma(vma->aspace, vma); in put_iova() 381 struct msm_gem_address_space *aspace, uint64_t *iova, in msm_gem_get_iova_locked() argument 390 vma = lookup_vma(obj, aspace); in msm_gem_get_iova_locked() 393 vma = add_vma(obj, aspace); in msm_gem_get_iova_locked() [all …]
|
D | msm_drv.h | 59 struct msm_gem_address_space *aspace; member 242 int msm_gem_init_vma(struct msm_gem_address_space *aspace, 245 void msm_gem_purge_vma(struct msm_gem_address_space *aspace, 247 void msm_gem_unmap_vma(struct msm_gem_address_space *aspace, 249 int msm_gem_map_vma(struct msm_gem_address_space *aspace, 252 void msm_gem_close_vma(struct msm_gem_address_space *aspace, 257 msm_gem_address_space_get(struct msm_gem_address_space *aspace); 259 void msm_gem_address_space_put(struct msm_gem_address_space *aspace); 283 struct msm_gem_address_space *aspace, uint64_t *iova); 285 struct msm_gem_address_space *aspace, uint64_t *iova, [all …]
|
D | msm_gpu.c | 703 msm_gem_unpin_iova(&msm_obj->base, submit->aspace); in retire_submit() 787 msm_gem_get_and_pin_iova(&msm_obj->base, submit->aspace, &iova); in msm_gpu_submit() 837 struct msm_gem_address_space *aspace = NULL; in msm_gpu_create_private_address_space() local 846 aspace = gpu->funcs->create_private_address_space(gpu); in msm_gpu_create_private_address_space() 847 if (!IS_ERR(aspace)) in msm_gpu_create_private_address_space() 848 aspace->pid = get_pid(task_pid(task)); in msm_gpu_create_private_address_space() 851 if (IS_ERR_OR_NULL(aspace)) in msm_gpu_create_private_address_space() 852 aspace = msm_gem_address_space_get(gpu->aspace); in msm_gpu_create_private_address_space() 854 return aspace; in msm_gpu_create_private_address_space() 930 gpu->aspace = gpu->funcs->create_address_space(gpu, pdev); in msm_gpu_init() [all …]
|
D | msm_fb.c | 56 struct msm_gem_address_space *aspace) in msm_framebuffer_prepare() argument 62 ret = msm_gem_get_and_pin_iova(fb->obj[i], aspace, &iova); in msm_framebuffer_prepare() 72 struct msm_gem_address_space *aspace) in msm_framebuffer_cleanup() argument 77 msm_gem_unpin_iova(fb->obj[i], aspace); in msm_framebuffer_cleanup() 81 struct msm_gem_address_space *aspace, int plane) in msm_framebuffer_iova() argument 85 return msm_gem_iova(fb->obj[plane], aspace) + fb->offsets[plane]; in msm_framebuffer_iova()
|
D | msm_ringbuffer.c | 31 gpu->aspace, &ring->bo, &ring->iova); in msm_ringbuffer_new() 69 msm_gem_kernel_put(ring->bo, ring->gpu->aspace, false); in msm_ringbuffer_destroy()
|
D | msm_gem.h | 37 struct msm_gem_address_space *aspace; member 141 struct msm_gem_address_space *aspace; member
|
/kernel/linux/linux-5.10/drivers/vme/bridges/ |
D | vme_fake.c | 48 u32 aspace; member 56 u32 aspace; member 156 dma_addr_t buf_base, u32 aspace, u32 cycle) in fake_slave_set() argument 168 switch (aspace) { in fake_slave_set() 212 bridge->slaves[i].aspace = aspace; in fake_slave_set() 225 dma_addr_t *buf_base, u32 *aspace, u32 *cycle) in fake_slave_get() argument 240 *aspace = bridge->slaves[i].aspace; in fake_slave_get() 253 u32 aspace, u32 cycle, u32 dwidth) in fake_master_set() argument 296 switch (aspace) { in fake_master_set() 320 bridge->masters[i].aspace = aspace; in fake_master_set() [all …]
|
D | vme_tsi148.c | 473 dma_addr_t pci_base, u32 aspace, u32 cycle) in tsi148_slave_set() argument 489 switch (aspace) { in tsi148_slave_set() 618 dma_addr_t *pci_base, u32 *aspace, u32 *cycle) in tsi148_slave_get() argument 656 *aspace = 0; in tsi148_slave_get() 664 *aspace |= VME_A16; in tsi148_slave_get() 668 *aspace |= VME_A24; in tsi148_slave_get() 672 *aspace |= VME_A32; in tsi148_slave_get() 676 *aspace |= VME_A64; in tsi148_slave_get() 808 unsigned long long vme_base, unsigned long long size, u32 aspace, in tsi148_master_set() argument 965 switch (aspace) { in tsi148_master_set() [all …]
|
D | vme_ca91cx42.c | 335 dma_addr_t pci_base, u32 aspace, u32 cycle) in ca91cx42_slave_set() argument 349 switch (aspace) { in ca91cx42_slave_set() 441 dma_addr_t *pci_base, u32 *aspace, u32 *cycle) in ca91cx42_slave_get() argument 467 *aspace = 0; in ca91cx42_slave_get() 474 *aspace = VME_A16; in ca91cx42_slave_get() 476 *aspace = VME_A24; in ca91cx42_slave_get() 478 *aspace = VME_A32; in ca91cx42_slave_get() 480 *aspace = VME_USER1; in ca91cx42_slave_get() 482 *aspace = VME_USER2; in ca91cx42_slave_get() 590 unsigned long long vme_base, unsigned long long size, u32 aspace, in ca91cx42_master_set() argument [all …]
|
/kernel/linux/linux-5.10/drivers/vme/ |
D | vme.c | 172 u32 aspace, cycle, dwidth; in vme_get_size() local 177 &aspace, &cycle, &dwidth); in vme_get_size() 185 &buf_base, &aspace, &cycle); in vme_get_size() 202 int vme_check_window(u32 aspace, unsigned long long vme_base, in vme_check_window() argument 210 switch (aspace) { in vme_check_window() 372 dma_addr_t buf_base, u32 aspace, u32 cycle) in vme_slave_set() argument 390 if (!(((image->address_attr & aspace) == aspace) && in vme_slave_set() 396 retval = vme_check_window(aspace, vme_base, size); in vme_slave_set() 401 aspace, cycle); in vme_slave_set() 422 dma_addr_t *buf_base, u32 *aspace, u32 *cycle) in vme_slave_get() argument [all …]
|
D | vme_bridge.h | 49 u32 aspace; member 86 u32 aspace; /* Address space of error window*/ member 186 struct vme_bridge *bridge, u32 aspace,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_kms.c | 130 struct msm_gem_address_space *aspace = kms->aspace; in mdp4_destroy() local 133 msm_gem_unpin_iova(mdp4_kms->blank_cursor_bo, kms->aspace); in mdp4_destroy() 136 if (aspace) { in mdp4_destroy() 137 aspace->mmu->funcs->detach(aspace->mmu); in mdp4_destroy() 138 msm_gem_address_space_put(aspace); in mdp4_destroy() 403 struct msm_gem_address_space *aspace; in mdp4_kms_init() local 511 aspace = msm_gem_address_space_create(mmu, in mdp4_kms_init() 514 if (IS_ERR(aspace)) { in mdp4_kms_init() 517 ret = PTR_ERR(aspace); in mdp4_kms_init() 521 kms->aspace = aspace; in mdp4_kms_init() [all …]
|
D | mdp4_plane.c | 104 msm_framebuffer_cleanup(fb, kms->aspace); in mdp4_plane_cleanup_fb() 154 msm_framebuffer_iova(fb, kms->aspace, 0)); in mdp4_plane_set_scanout() 156 msm_framebuffer_iova(fb, kms->aspace, 1)); in mdp4_plane_set_scanout() 158 msm_framebuffer_iova(fb, kms->aspace, 2)); in mdp4_plane_set_scanout() 160 msm_framebuffer_iova(fb, kms->aspace, 3)); in mdp4_plane_set_scanout()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/adreno/ |
D | a5xx_preempt.c | 235 MSM_BO_UNCACHED | MSM_BO_MAP_PRIV, gpu->aspace, &bo, &iova); in preempt_init_ring() 243 MSM_BO_UNCACHED, gpu->aspace, &counters_bo, &counters_iova); in preempt_init_ring() 245 msm_gem_kernel_put(bo, gpu->aspace, true); in preempt_init_ring() 277 msm_gem_kernel_put(a5xx_gpu->preempt_bo[i], gpu->aspace, true); in a5xx_preempt_fini() 279 gpu->aspace, true); in a5xx_preempt_fini()
|
D | a2xx_gpu.c | 109 msm_gpummu_params(gpu->aspace->mmu, &pt_base, &tran_error); in a2xx_hw_init() 455 struct msm_gem_address_space *aspace; in a2xx_create_address_space() local 457 aspace = msm_gem_address_space_create(mmu, "gpu", SZ_16M, in a2xx_create_address_space() 460 if (IS_ERR(aspace) && !IS_ERR(mmu)) in a2xx_create_address_space() 463 return aspace; in a2xx_create_address_space() 535 if (!gpu->aspace) { in a2xx_gpu_init()
|
D | a6xx_gmu.c | 1115 msm_gem_kernel_put(gmu->hfi.obj, gmu->aspace, false); in a6xx_gmu_memory_free() 1116 msm_gem_kernel_put(gmu->debug.obj, gmu->aspace, false); in a6xx_gmu_memory_free() 1117 msm_gem_kernel_put(gmu->icache.obj, gmu->aspace, false); in a6xx_gmu_memory_free() 1118 msm_gem_kernel_put(gmu->dcache.obj, gmu->aspace, false); in a6xx_gmu_memory_free() 1119 msm_gem_kernel_put(gmu->dummy.obj, gmu->aspace, false); in a6xx_gmu_memory_free() 1120 msm_gem_kernel_put(gmu->log.obj, gmu->aspace, false); in a6xx_gmu_memory_free() 1122 gmu->aspace->mmu->funcs->detach(gmu->aspace->mmu); in a6xx_gmu_memory_free() 1123 msm_gem_address_space_put(gmu->aspace); in a6xx_gmu_memory_free() 1152 ret = msm_gem_get_and_pin_iova_range(bo->obj, gmu->aspace, &bo->iova, in a6xx_gmu_memory_alloc() 1175 gmu->aspace = msm_gem_address_space_create(mmu, "gmu", 0x0, 0x80000000); in a6xx_gmu_memory_probe() [all …]
|
D | a5xx_gpu.c | 762 gpu->aspace, &a5xx_gpu->shadow_bo, in a5xx_hw_init() 871 msm_gem_unpin_iova(a5xx_gpu->pm4_bo, gpu->aspace); in a5xx_destroy() 876 msm_gem_unpin_iova(a5xx_gpu->pfp_bo, gpu->aspace); in a5xx_destroy() 881 msm_gem_unpin_iova(a5xx_gpu->gpmu_bo, gpu->aspace); in a5xx_destroy() 886 msm_gem_unpin_iova(a5xx_gpu->shadow_bo, gpu->aspace); in a5xx_destroy() 1264 SZ_1M, MSM_BO_UNCACHED, gpu->aspace, in a5xx_crashdumper_init() 1365 msm_gem_kernel_put(dumper.bo, gpu->aspace, true); in a5xx_gpu_state_get_hlsq_regs() 1373 msm_gem_kernel_put(dumper.bo, gpu->aspace, true); in a5xx_gpu_state_get_hlsq_regs() 1598 if (gpu->aspace) in a5xx_gpu_init() 1599 msm_mmu_set_fault_handler(gpu->aspace->mmu, gpu, a5xx_fault_handler); in a5xx_gpu_init()
|
D | a5xx_debugfs.c | 119 msm_gem_unpin_iova(a5xx_gpu->pm4_bo, gpu->aspace); in reset_set() 125 msm_gem_unpin_iova(a5xx_gpu->pfp_bo, gpu->aspace); in reset_set()
|
D | a6xx_gpu.c | 105 if (msm_iommu_pagetable_params(ctx->aspace->mmu, &ttbr, &asid)) in a6xx_set_pagetable() 875 gpu->aspace, &a6xx_gpu->shadow_bo, in a6xx_hw_init() 1171 msm_gem_unpin_iova(a6xx_gpu->sqe_bo, gpu->aspace); in a6xx_destroy() 1176 msm_gem_unpin_iova(a6xx_gpu->shadow_bo, gpu->aspace); in a6xx_destroy() 1219 mmu = msm_iommu_pagetable_create(gpu->aspace->mmu); in a6xx_create_private_address_space() 1316 if (gpu->aspace) in a6xx_gpu_init() 1317 msm_mmu_set_fault_handler(gpu->aspace->mmu, gpu, in a6xx_gpu_init()
|
/kernel/linux/linux-5.10/drivers/staging/vme/devices/ |
D | vme_user.h | 14 __u32 aspace; /* Address Space */ member 36 __u32 aspace; /* Address Space */ member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_kms.c | 222 struct msm_gem_address_space *aspace = kms->aspace; in mdp5_kms_destroy() local 231 if (aspace) { in mdp5_kms_destroy() 232 aspace->mmu->funcs->detach(aspace->mmu); in mdp5_kms_destroy() 233 msm_gem_address_space_put(aspace); in mdp5_kms_destroy() 585 struct msm_gem_address_space *aspace; in mdp5_kms_init() local 635 aspace = msm_gem_address_space_create(mmu, "mdp5", in mdp5_kms_init() 638 if (IS_ERR(aspace)) { in mdp5_kms_init() 641 ret = PTR_ERR(aspace); in mdp5_kms_init() 645 kms->aspace = aspace; in mdp5_kms_init() 649 aspace = NULL; in mdp5_kms_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_formats.c | 773 struct msm_gem_address_space *aspace, in _dpu_format_populate_addrs_ubwc() argument 785 if (aspace) in _dpu_format_populate_addrs_ubwc() 786 base_addr = msm_framebuffer_iova(fb, aspace, 0); in _dpu_format_populate_addrs_ubwc() 864 struct msm_gem_address_space *aspace, in _dpu_format_populate_addrs_linear() argument 881 if (aspace) in _dpu_format_populate_addrs_linear() 883 msm_framebuffer_iova(fb, aspace, i); in _dpu_format_populate_addrs_linear() 894 struct msm_gem_address_space *aspace, in dpu_format_populate_layout() argument 926 ret = _dpu_format_populate_addrs_ubwc(aspace, fb, layout); in dpu_format_populate_layout() 928 ret = _dpu_format_populate_addrs_linear(aspace, fb, layout); in dpu_format_populate_layout()
|
D | dpu_kms.c | 827 if (!dpu_kms->base.aspace) in _dpu_kms_mmu_destroy() 830 mmu = dpu_kms->base.aspace->mmu; in _dpu_kms_mmu_destroy() 833 msm_gem_address_space_put(dpu_kms->base.aspace); in _dpu_kms_mmu_destroy() 835 dpu_kms->base.aspace = NULL; in _dpu_kms_mmu_destroy() 841 struct msm_gem_address_space *aspace; in _dpu_kms_mmu_init() local 853 aspace = msm_gem_address_space_create(mmu, "dpu1", in _dpu_kms_mmu_init() 856 if (IS_ERR(aspace)) { in _dpu_kms_mmu_init() 858 return PTR_ERR(aspace); in _dpu_kms_mmu_init() 861 dpu_kms->base.aspace = aspace; in _dpu_kms_mmu_init()
|
D | dpu_formats.h | 62 struct msm_gem_address_space *aspace,
|