Home
last modified time | relevance | path

Searched refs:mmu_context (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/etnaviv/
Detnaviv_buffer.c123 &gpu->mmu_context->cmdbuf_mapping) + in etnaviv_buffer_dump()
158 &gpu->mmu_context->cmdbuf_mapping) + in etnaviv_buffer_reserve()
173 etnaviv_cmdbuf_get_va(buffer, &gpu->mmu_context->cmdbuf_mapping) in etnaviv_buffer_init()
325 etnaviv_cmdbuf_get_va(buffer, &gpu->mmu_context->cmdbuf_mapping) in etnaviv_sync_point_queue()
340 struct etnaviv_iommu_context *mmu_context, unsigned int event, in etnaviv_buffer_queue() argument
348 bool switch_mmu_context = gpu->mmu_context != mmu_context; in etnaviv_buffer_queue()
349 unsigned int new_flush_seq = READ_ONCE(gpu->mmu_context->flush_seq); in etnaviv_buffer_queue()
360 &gpu->mmu_context->cmdbuf_mapping); in etnaviv_buffer_queue()
376 if (gpu->mmu_context->global->version == ETNAVIV_IOMMU_V1) in etnaviv_buffer_queue()
398 struct etnaviv_iommu_context *old_context = gpu->mmu_context; in etnaviv_buffer_queue()
[all …]
Detnaviv_dump.c128 mutex_lock(&gpu->mmu_context->lock); in etnaviv_core_dump()
130 mmu_size = etnaviv_iommu_dump_size(gpu->mmu_context); in etnaviv_core_dump()
160 mutex_unlock(&gpu->mmu_context->lock); in etnaviv_core_dump()
172 etnaviv_core_dump_mmu(&iter, gpu->mmu_context, mmu_size); in etnaviv_core_dump()
176 &gpu->mmu_context->cmdbuf_mapping)); in etnaviv_core_dump()
181 &gpu->mmu_context->cmdbuf_mapping)); in etnaviv_core_dump()
183 mutex_unlock(&gpu->mmu_context->lock); in etnaviv_core_dump()
Detnaviv_drv.c133 struct etnaviv_iommu_context *mmu_context; in etnaviv_mmu_show() local
143 mmu_context = gpu->mmu_context; in etnaviv_mmu_show()
144 if (mmu_context) in etnaviv_mmu_show()
145 etnaviv_iommu_context_get(mmu_context); in etnaviv_mmu_show()
148 if (!mmu_context) in etnaviv_mmu_show()
151 mutex_lock(&mmu_context->lock); in etnaviv_mmu_show()
152 drm_mm_print(&mmu_context->mm, &p); in etnaviv_mmu_show()
153 mutex_unlock(&mmu_context->lock); in etnaviv_mmu_show()
155 etnaviv_iommu_context_put(mmu_context); in etnaviv_mmu_show()
Detnaviv_gem.c252 struct drm_gem_object *obj, struct etnaviv_iommu_context *mmu_context, in etnaviv_gem_mapping_get() argument
261 mapping = etnaviv_gem_get_vram_mapping(etnaviv_obj, mmu_context); in etnaviv_gem_mapping_get()
270 mutex_lock(&mmu_context->lock); in etnaviv_gem_mapping_get()
271 if (mapping->context == mmu_context) in etnaviv_gem_mapping_get()
275 mutex_unlock(&mmu_context->lock); in etnaviv_gem_mapping_get()
308 etnaviv_iommu_context_get(mmu_context); in etnaviv_gem_mapping_get()
309 mapping->context = mmu_context; in etnaviv_gem_mapping_get()
312 ret = etnaviv_iommu_map_gem(mmu_context, etnaviv_obj, in etnaviv_gem_mapping_get()
313 mmu_context->global->memory_base, in etnaviv_gem_mapping_get()
316 etnaviv_iommu_context_put(mmu_context); in etnaviv_gem_mapping_get()
Detnaviv_gem.h97 struct etnaviv_iommu_context *mmu_context, *prev_mmu_context; member
123 struct drm_gem_object *obj, struct etnaviv_iommu_context *mmu_context,
Detnaviv_gpu.c631 &gpu->mmu_context->cmdbuf_mapping); in etnaviv_gpu_start_fe_idleloop()
635 etnaviv_iommu_restore(gpu, gpu->mmu_context); in etnaviv_gpu_start_fe_idleloop()
1043 gpu->mmu_context = NULL; in etnaviv_gpu_recover_hang()
1355 if (!gpu->mmu_context) { in etnaviv_gpu_submit()
1356 etnaviv_iommu_context_get(submit->mmu_context); in etnaviv_gpu_submit()
1357 gpu->mmu_context = submit->mmu_context; in etnaviv_gpu_submit()
1360 etnaviv_iommu_context_get(gpu->mmu_context); in etnaviv_gpu_submit()
1361 submit->prev_mmu_context = gpu->mmu_context; in etnaviv_gpu_submit()
1373 etnaviv_buffer_queue(gpu, submit->exec_state, submit->mmu_context, in etnaviv_gpu_submit()
1564 if (gpu->initialized && gpu->mmu_context) { in etnaviv_gpu_hw_suspend()
[all …]
Detnaviv_gem_submit.c233 submit->mmu_context, in submit_pin_objects()
382 if (submit->mmu_context) in submit_cleanup()
383 etnaviv_iommu_context_put(submit->mmu_context); in submit_cleanup()
536 submit->mmu_context = submit->ctx->mmu; in etnaviv_ioctl_gem_submit()
Detnaviv_gpu.h136 struct etnaviv_iommu_context *mmu_context; member
/Linux-v5.10/arch/microblaze/mm/
DMakefile8 obj-$(CONFIG_MMU) += pgtable.o mmu_context.o fault.o
/Linux-v5.10/arch/powerpc/mm/book3s32/
DMakefile9 obj-y += mmu.o hash_low.o mmu_context.o tlb.o
/Linux-v5.10/arch/nios2/mm/
DMakefile12 obj-y += mmu_context.o
/Linux-v5.10/arch/powerpc/mm/nohash/
DMakefile5 obj-y += mmu_context.o tlb.o tlb_low.o
/Linux-v5.10/arch/powerpc/mm/book3s64/
DMakefile8 mmu_context.o pgtable.o hash_tlb.o
/Linux-v5.10/arch/powerpc/mm/
DMakefile11 init-common.o mmu_context.o drmem.o
/Linux-v5.10/include/asm-generic/
DKbuild40 mandatory-y += mmu_context.h