Lines Matching refs:gpummu
38 struct msm_gpummu *gpummu = to_msm_gpummu(mmu); in msm_gpummu_map() local
52 gpummu->table[idx] = addr | prot_bits; in msm_gpummu_map()
58 gpu_write(gpummu->gpu, REG_A2XX_MH_MMU_INVALIDATE, in msm_gpummu_map()
66 struct msm_gpummu *gpummu = to_msm_gpummu(mmu); in msm_gpummu_unmap() local
71 gpummu->table[idx] = 0; in msm_gpummu_unmap()
73 gpu_write(gpummu->gpu, REG_A2XX_MH_MMU_INVALIDATE, in msm_gpummu_unmap()
81 struct msm_gpummu *gpummu = to_msm_gpummu(mmu); in msm_gpummu_destroy() local
83 dma_free_attrs(mmu->dev, TABLE_SIZE, gpummu->table, gpummu->pt_base, in msm_gpummu_destroy()
86 kfree(gpummu); in msm_gpummu_destroy()
99 struct msm_gpummu *gpummu; in msm_gpummu_new() local
101 gpummu = kzalloc(sizeof(*gpummu), GFP_KERNEL); in msm_gpummu_new()
102 if (!gpummu) in msm_gpummu_new()
105 gpummu->table = dma_alloc_attrs(dev, TABLE_SIZE + 32, &gpummu->pt_base, in msm_gpummu_new()
107 if (!gpummu->table) { in msm_gpummu_new()
108 kfree(gpummu); in msm_gpummu_new()
112 gpummu->gpu = gpu; in msm_gpummu_new()
113 msm_mmu_init(&gpummu->base, dev, &funcs); in msm_gpummu_new()
115 return &gpummu->base; in msm_gpummu_new()