Lines Matching refs:gpummu
31 struct msm_gpummu *gpummu = to_msm_gpummu(mmu); in msm_gpummu_map() local
46 gpummu->table[idx++] = (addr + i) | prot_bits; in msm_gpummu_map()
50 gpu_write(gpummu->gpu, REG_A2XX_MH_MMU_INVALIDATE, in msm_gpummu_map()
58 struct msm_gpummu *gpummu = to_msm_gpummu(mmu); in msm_gpummu_unmap() local
63 gpummu->table[idx] = 0; in msm_gpummu_unmap()
65 gpu_write(gpummu->gpu, REG_A2XX_MH_MMU_INVALIDATE, in msm_gpummu_unmap()
77 struct msm_gpummu *gpummu = to_msm_gpummu(mmu); in msm_gpummu_destroy() local
79 dma_free_attrs(mmu->dev, TABLE_SIZE, gpummu->table, gpummu->pt_base, in msm_gpummu_destroy()
82 kfree(gpummu); in msm_gpummu_destroy()
95 struct msm_gpummu *gpummu; in msm_gpummu_new() local
97 gpummu = kzalloc(sizeof(*gpummu), GFP_KERNEL); in msm_gpummu_new()
98 if (!gpummu) in msm_gpummu_new()
101 gpummu->table = dma_alloc_attrs(dev, TABLE_SIZE + 32, &gpummu->pt_base, in msm_gpummu_new()
103 if (!gpummu->table) { in msm_gpummu_new()
104 kfree(gpummu); in msm_gpummu_new()
108 gpummu->gpu = gpu; in msm_gpummu_new()
109 msm_mmu_init(&gpummu->base, dev, &funcs, MSM_MMU_GPUMMU); in msm_gpummu_new()
111 return &gpummu->base; in msm_gpummu_new()