Lines Matching refs:ptei

28 		  dma_addr_t *list, u32 ptei, u32 ptes)  in nv44_vmm_pgt_fill()  argument
30 u32 pteo = (ptei << 2) & ~0x0000000f; in nv44_vmm_pgt_fill()
40 switch (ptei++ & 0x3) { in nv44_vmm_pgt_fill()
74 u32 ptei, u32 ptes, struct nvkm_vmm_map *map, u64 addr) in nv44_vmm_pgt_pte() argument
78 if (ptei & 3) { in nv44_vmm_pgt_pte()
79 const u32 pten = min(ptes, 4 - (ptei & 3)); in nv44_vmm_pgt_pte()
82 nv44_vmm_pgt_fill(vmm, pt, tmp, ptei, pten); in nv44_vmm_pgt_pte()
83 ptei += pten; in nv44_vmm_pgt_pte()
90 VMM_WO032(pt, vmm, ptei++ * 4, tmp[0] >> 0 | tmp[1] << 27); in nv44_vmm_pgt_pte()
91 VMM_WO032(pt, vmm, ptei++ * 4, tmp[1] >> 5 | tmp[2] << 22); in nv44_vmm_pgt_pte()
92 VMM_WO032(pt, vmm, ptei++ * 4, tmp[2] >> 10 | tmp[3] << 17); in nv44_vmm_pgt_pte()
93 VMM_WO032(pt, vmm, ptei++ * 4, tmp[3] >> 15 | 0x40000000); in nv44_vmm_pgt_pte()
100 nv44_vmm_pgt_fill(vmm, pt, tmp, ptei, ptes); in nv44_vmm_pgt_pte()
106 u32 ptei, u32 ptes, struct nvkm_vmm_map *map) in nv44_vmm_pgt_sgl() argument
108 VMM_MAP_ITER_SGL(vmm, pt, ptei, ptes, map, nv44_vmm_pgt_pte); in nv44_vmm_pgt_sgl()
113 u32 ptei, u32 ptes, struct nvkm_vmm_map *map) in nv44_vmm_pgt_dma() argument
117 if (ptei & 3) { in nv44_vmm_pgt_dma()
118 const u32 pten = min(ptes, 4 - (ptei & 3)); in nv44_vmm_pgt_dma()
119 nv44_vmm_pgt_fill(vmm, pt, map->dma, ptei, pten); in nv44_vmm_pgt_dma()
120 ptei += pten; in nv44_vmm_pgt_dma()
129 VMM_WO032(pt, vmm, ptei++ * 4, tmp[0] >> 0 | tmp[1] << 27); in nv44_vmm_pgt_dma()
130 VMM_WO032(pt, vmm, ptei++ * 4, tmp[1] >> 5 | tmp[2] << 22); in nv44_vmm_pgt_dma()
131 VMM_WO032(pt, vmm, ptei++ * 4, tmp[2] >> 10 | tmp[3] << 17); in nv44_vmm_pgt_dma()
132 VMM_WO032(pt, vmm, ptei++ * 4, tmp[3] >> 15 | 0x40000000); in nv44_vmm_pgt_dma()
137 nv44_vmm_pgt_fill(vmm, pt, map->dma, ptei, ptes); in nv44_vmm_pgt_dma()
142 VMM_MAP_ITER_DMA(vmm, pt, ptei, ptes, map, nv44_vmm_pgt_pte); in nv44_vmm_pgt_dma()
148 struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes) in nv44_vmm_pgt_unmap() argument
151 if (ptei & 3) { in nv44_vmm_pgt_unmap()
152 const u32 pten = min(ptes, 4 - (ptei & 3)); in nv44_vmm_pgt_unmap()
153 nv44_vmm_pgt_fill(vmm, pt, NULL, ptei, pten); in nv44_vmm_pgt_unmap()
154 ptei += pten; in nv44_vmm_pgt_unmap()
159 VMM_WO032(pt, vmm, ptei++ * 4, 0x00000000); in nv44_vmm_pgt_unmap()
160 VMM_WO032(pt, vmm, ptei++ * 4, 0x00000000); in nv44_vmm_pgt_unmap()
161 VMM_WO032(pt, vmm, ptei++ * 4, 0x00000000); in nv44_vmm_pgt_unmap()
162 VMM_WO032(pt, vmm, ptei++ * 4, 0x00000000); in nv44_vmm_pgt_unmap()
167 nv44_vmm_pgt_fill(vmm, pt, NULL, ptei, ptes); in nv44_vmm_pgt_unmap()