Lines Matching full:global

56 			dma_free_wc(context->global->dev, SZ_4K,  in etnaviv_iommuv2_free()
61 dma_free_wc(context->global->dev, SZ_4K, v2_context->mtlb_cpu, in etnaviv_iommuv2_free()
64 clear_bit(v2_context->id, context->global->v2.pta_alloc); in etnaviv_iommuv2_free()
76 dma_alloc_wc(v2_context->base.global->dev, SZ_4K, in etnaviv_iommuv2_ensure_stlb()
181 (u32)context->global->bad_page_dma); in etnaviv_iommuv2_restore_nonsec()
204 lower_32_bits(context->global->v2.pta_dma)); in etnaviv_iommuv2_restore_sec()
206 upper_32_bits(context->global->v2.pta_dma)); in etnaviv_iommuv2_restore_sec()
210 lower_32_bits(context->global->bad_page_dma)); in etnaviv_iommuv2_restore_sec()
212 lower_32_bits(context->global->bad_page_dma)); in etnaviv_iommuv2_restore_sec()
215 upper_32_bits(context->global->bad_page_dma)) | in etnaviv_iommuv2_restore_sec()
217 upper_32_bits(context->global->bad_page_dma))); in etnaviv_iommuv2_restore_sec()
219 context->global->v2.pta_cpu[v2_context->id] = v2_context->mtlb_dma | in etnaviv_iommuv2_restore_sec()
270 etnaviv_iommuv2_context_alloc(struct etnaviv_iommu_global *global) in etnaviv_iommuv2_context_alloc() argument
279 mutex_lock(&global->lock); in etnaviv_iommuv2_context_alloc()
280 v2_context->id = find_first_zero_bit(global->v2.pta_alloc, in etnaviv_iommuv2_context_alloc()
283 set_bit(v2_context->id, global->v2.pta_alloc); in etnaviv_iommuv2_context_alloc()
285 mutex_unlock(&global->lock); in etnaviv_iommuv2_context_alloc()
288 mutex_unlock(&global->lock); in etnaviv_iommuv2_context_alloc()
290 v2_context->mtlb_cpu = dma_alloc_wc(global->dev, SZ_4K, in etnaviv_iommuv2_context_alloc()
298 global->v2.pta_cpu[v2_context->id] = v2_context->mtlb_dma; in etnaviv_iommuv2_context_alloc()
301 context->global = global; in etnaviv_iommuv2_context_alloc()
310 clear_bit(v2_context->id, global->v2.pta_alloc); in etnaviv_iommuv2_context_alloc()