Lines Matching defs:ptes
84 arena->ptes = __alloc_bootmem_node(NODE_DATA(nid), mem_size, align, 0);
85 if (!NODE_DATA(nid) || !arena->ptes) {
86 printk("%s: couldn't allocate arena ptes from node %d\n"
89 arena->ptes = __alloc_bootmem(mem_size, align, 0);
95 arena->ptes = __alloc_bootmem(mem_size, align, 0);
124 unsigned long *ptes;
138 /* Search forward for the first mask-aligned sequence of N free ptes */
139 ptes = arena->ptes;
151 if (ptes[p+i])
183 unsigned long *ptes;
188 /* Search for N empty ptes */
189 ptes = arena->ptes;
202 ptes[p+i] = IOMMU_INVALID_PTE;
216 p = arena->ptes + ofs;
314 arena->ptes[i + dma_ofs] = mk_iommu_pte(paddr);
419 /* If we're freeing ptes above the `next_entry' pointer (they
561 unsigned long *ptes;
615 physically contiguous subsegment to fill in the ptes. */
616 ptes = &arena->ptes[dma_ofs];
635 *ptes++ = mk_iommu_pte(paddr);
797 /* If we're freeing ptes above the `next_entry' pointer (they
850 unsigned long *ptes;
857 /* Search for N empty ptes. */
858 ptes = arena->ptes;
869 ptes[p+i] = IOMMU_RESERVED_PTE;
880 unsigned long *ptes;
885 ptes = arena->ptes;
889 if (ptes[i] != IOMMU_RESERVED_PTE)
901 unsigned long *ptes;
908 ptes = arena->ptes;
911 if (ptes[j] != IOMMU_RESERVED_PTE) {
918 ptes[j] = mk_iommu_pte(page_to_phys(pages[i]));
933 p = arena->ptes + pg_start;