Lines Matching refs:ptes
89 arena->ptes = memblock_alloc_node(sizeof(*arena), align, nid);
90 if (!NODE_DATA(nid) || !arena->ptes) {
91 printk("%s: couldn't allocate arena ptes from node %d\n"
94 arena->ptes = memblock_alloc(mem_size, align);
95 if (!arena->ptes)
106 arena->ptes = memblock_alloc(mem_size, align);
107 if (!arena->ptes)
138 unsigned long *ptes;
147 /* Search forward for the first mask-aligned sequence of N free ptes */
148 ptes = arena->ptes;
160 if (ptes[p+i])
192 unsigned long *ptes;
197 /* Search for N empty ptes */
198 ptes = arena->ptes;
211 ptes[p+i] = IOMMU_INVALID_PTE;
225 p = arena->ptes + ofs;
323 arena->ptes[i + dma_ofs] = mk_iommu_pte(paddr);
426 /* If we're freeing ptes above the `next_entry' pointer (they
570 unsigned long *ptes;
624 physically contiguous subsegment to fill in the ptes. */
625 ptes = &arena->ptes[dma_ofs];
644 *ptes++ = mk_iommu_pte(paddr);
804 /* If we're freeing ptes above the `next_entry' pointer (they
857 unsigned long *ptes;
864 /* Search for N empty ptes. */
865 ptes = arena->ptes;
876 ptes[p+i] = IOMMU_RESERVED_PTE;
887 unsigned long *ptes;
892 ptes = arena->ptes;
896 if (ptes[i] != IOMMU_RESERVED_PTE)
908 unsigned long *ptes;
915 ptes = arena->ptes;
918 if (ptes[j] != IOMMU_RESERVED_PTE) {
925 ptes[j] = mk_iommu_pte(page_to_phys(pages[i]));
940 p = arena->ptes + pg_start;