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