Lines Matching full:global
39 dma_free_wc(context->global->dev, PT_SIZE, v1_context->pgtable_cpu, in etnaviv_iommuv1_free()
42 context->global->v1.shared_context = NULL; in etnaviv_iommuv1_free()
71 v1_context->pgtable_cpu[index] = context->global->bad_page_dma; in etnaviv_iommuv1_unmap()
100 gpu_write(gpu, VIVS_MC_MEMORY_BASE_ADDR_RA, context->global->memory_base); in etnaviv_iommuv1_restore()
101 gpu_write(gpu, VIVS_MC_MEMORY_BASE_ADDR_FE, context->global->memory_base); in etnaviv_iommuv1_restore()
102 gpu_write(gpu, VIVS_MC_MEMORY_BASE_ADDR_TX, context->global->memory_base); in etnaviv_iommuv1_restore()
103 gpu_write(gpu, VIVS_MC_MEMORY_BASE_ADDR_PEZ, context->global->memory_base); in etnaviv_iommuv1_restore()
104 gpu_write(gpu, VIVS_MC_MEMORY_BASE_ADDR_PE, context->global->memory_base); in etnaviv_iommuv1_restore()
127 etnaviv_iommuv1_context_alloc(struct etnaviv_iommu_global *global) in etnaviv_iommuv1_context_alloc() argument
132 mutex_lock(&global->lock); in etnaviv_iommuv1_context_alloc()
139 if (global->v1.shared_context) { in etnaviv_iommuv1_context_alloc()
140 context = global->v1.shared_context; in etnaviv_iommuv1_context_alloc()
142 mutex_unlock(&global->lock); in etnaviv_iommuv1_context_alloc()
148 mutex_unlock(&global->lock); in etnaviv_iommuv1_context_alloc()
152 v1_context->pgtable_cpu = dma_alloc_wc(global->dev, PT_SIZE, in etnaviv_iommuv1_context_alloc()
158 memset32(v1_context->pgtable_cpu, global->bad_page_dma, PT_ENTRIES); in etnaviv_iommuv1_context_alloc()
161 context->global = global; in etnaviv_iommuv1_context_alloc()
166 context->global->v1.shared_context = context; in etnaviv_iommuv1_context_alloc()
168 mutex_unlock(&global->lock); in etnaviv_iommuv1_context_alloc()
173 mutex_unlock(&global->lock); in etnaviv_iommuv1_context_alloc()