Lines Matching refs:ptes
28 dma_addr_t *list, u32 ptei, u32 ptes) in nv44_vmm_pgt_fill() argument
38 while (ptes--) { in nv44_vmm_pgt_fill()
74 u32 ptei, u32 ptes, struct nvkm_vmm_map *map, u64 addr) in nv44_vmm_pgt_pte() argument
79 const u32 pten = min(ptes, 4 - (ptei & 3)); in nv44_vmm_pgt_pte()
84 ptes -= pten; in nv44_vmm_pgt_pte()
87 while (ptes >= 4) { in nv44_vmm_pgt_pte()
94 ptes -= 4; in nv44_vmm_pgt_pte()
97 if (ptes) { in nv44_vmm_pgt_pte()
98 for (i = 0; i < ptes; i++, addr += 0x1000) 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
118 const u32 pten = min(ptes, 4 - (ptei & 3)); in nv44_vmm_pgt_dma()
121 ptes -= pten; in nv44_vmm_pgt_dma()
125 while (ptes >= 4) { in nv44_vmm_pgt_dma()
133 ptes -= 4; in nv44_vmm_pgt_dma()
136 if (ptes) { in nv44_vmm_pgt_dma()
137 nv44_vmm_pgt_fill(vmm, pt, map->dma, ptei, ptes); in nv44_vmm_pgt_dma()
138 map->dma += 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
152 const u32 pten = min(ptes, 4 - (ptei & 3)); in nv44_vmm_pgt_unmap()
155 ptes -= pten; in nv44_vmm_pgt_unmap()
158 while (ptes > 4) { in nv44_vmm_pgt_unmap()
163 ptes -= 4; in nv44_vmm_pgt_unmap()
166 if (ptes) in nv44_vmm_pgt_unmap()
167 nv44_vmm_pgt_fill(vmm, pt, NULL, ptei, ptes); in nv44_vmm_pgt_unmap()