Lines Matching refs:v1_context
35 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_free() local
39 dma_free_wc(context->global->dev, PT_SIZE, v1_context->pgtable_cpu, in etnaviv_iommuv1_free()
40 v1_context->pgtable_dma); in etnaviv_iommuv1_free()
44 kfree(v1_context); in etnaviv_iommuv1_free()
51 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_map() local
57 v1_context->pgtable_cpu[index] = paddr; in etnaviv_iommuv1_map()
65 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_unmap() local
71 v1_context->pgtable_cpu[index] = context->global->bad_page_dma; in etnaviv_iommuv1_unmap()
84 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_dump() local
86 memcpy(buf, v1_context->pgtable_cpu, PT_SIZE); in etnaviv_iommuv1_dump()
92 struct etnaviv_iommuv1_context *v1_context = to_v1_context(context); in etnaviv_iommuv1_restore() local
107 pgtable = (u32)v1_context->pgtable_dma; in etnaviv_iommuv1_restore()
129 struct etnaviv_iommuv1_context *v1_context; in etnaviv_iommuv1_context_alloc() local
146 v1_context = kzalloc(sizeof(*v1_context), GFP_KERNEL); in etnaviv_iommuv1_context_alloc()
147 if (!v1_context) { in etnaviv_iommuv1_context_alloc()
152 v1_context->pgtable_cpu = dma_alloc_wc(global->dev, PT_SIZE, in etnaviv_iommuv1_context_alloc()
153 &v1_context->pgtable_dma, in etnaviv_iommuv1_context_alloc()
155 if (!v1_context->pgtable_cpu) in etnaviv_iommuv1_context_alloc()
158 memset32(v1_context->pgtable_cpu, global->bad_page_dma, PT_ENTRIES); in etnaviv_iommuv1_context_alloc()
160 context = &v1_context->base; in etnaviv_iommuv1_context_alloc()
174 kfree(v1_context); in etnaviv_iommuv1_context_alloc()