Lines Matching refs:ptes
92 (NULL == (arena->ptes = __alloc_bootmem_node(NODE_DATA(nid),
96 printk("%s: couldn't allocate arena ptes from node %d\n"
99 arena->ptes = __alloc_bootmem(mem_size, align, 0);
105 arena->ptes = __alloc_bootmem(mem_size, align, 0);
133 unsigned long *ptes;
136 /* Search forward for the first mask-aligned sequence of N free ptes */
137 ptes = arena->ptes;
142 if (ptes[p+i])
155 if (ptes[p+i])
174 unsigned long *ptes;
179 /* Search for N empty ptes */
180 ptes = arena->ptes;
193 ptes[p+i] = IOMMU_INVALID_PTE;
207 p = arena->ptes + ofs;
285 arena->ptes[i + dma_ofs] = mk_iommu_pte(paddr);
377 /* If we're freeing ptes above the `next_entry' pointer (they
520 unsigned long *ptes;
574 physically contiguous subsegment to fill in the ptes. */
575 ptes = &arena->ptes[dma_ofs];
594 *ptes++ = mk_iommu_pte(paddr);
755 /* If we're freeing ptes above the `next_entry' pointer (they
811 unsigned long *ptes;
818 /* Search for N empty ptes. */
819 ptes = arena->ptes;
830 ptes[p+i] = IOMMU_RESERVED_PTE;
841 unsigned long *ptes;
846 ptes = arena->ptes;
850 if (ptes[i] != IOMMU_RESERVED_PTE)
862 unsigned long *ptes;
869 ptes = arena->ptes;
872 if (ptes[j] != IOMMU_RESERVED_PTE) {
879 ptes[j] = mk_iommu_pte(physaddrs[i]);
894 p = arena->ptes + pg_start;