Lines Matching refs:ptes
83 arena->ptes = __alloc_bootmem_node(NODE_DATA(nid), mem_size, align, 0); in iommu_arena_new_node()
84 if (!NODE_DATA(nid) || !arena->ptes) { in iommu_arena_new_node()
88 arena->ptes = __alloc_bootmem(mem_size, align, 0); in iommu_arena_new_node()
94 arena->ptes = __alloc_bootmem(mem_size, align, 0); in iommu_arena_new_node()
123 unsigned long *ptes; in iommu_arena_find_pages() local
138 ptes = arena->ptes; in iommu_arena_find_pages()
150 if (ptes[p+i]) in iommu_arena_find_pages()
182 unsigned long *ptes; in iommu_arena_alloc() local
188 ptes = arena->ptes; in iommu_arena_alloc()
201 ptes[p+i] = IOMMU_INVALID_PTE; in iommu_arena_alloc()
215 p = arena->ptes + ofs; in iommu_arena_free()
313 arena->ptes[i + dma_ofs] = mk_iommu_pte(paddr); in pci_map_single_1()
560 unsigned long *ptes; in sg_fill() local
615 ptes = &arena->ptes[dma_ofs]; in sg_fill()
634 *ptes++ = mk_iommu_pte(paddr); in sg_fill()
848 unsigned long *ptes; in iommu_reserve() local
856 ptes = arena->ptes; in iommu_reserve()
867 ptes[p+i] = IOMMU_RESERVED_PTE; in iommu_reserve()
878 unsigned long *ptes; in iommu_release() local
883 ptes = arena->ptes; in iommu_release()
887 if (ptes[i] != IOMMU_RESERVED_PTE) in iommu_release()
899 unsigned long *ptes; in iommu_bind() local
906 ptes = arena->ptes; in iommu_bind()
909 if (ptes[j] != IOMMU_RESERVED_PTE) { in iommu_bind()
916 ptes[j] = mk_iommu_pte(page_to_phys(pages[i])); in iommu_bind()
931 p = arena->ptes + pg_start; in iommu_unbind()