Lines Matching refs:base
124 static void pci_arena_free(struct iommu_arena *arena, unsigned long base, unsigned long npages)
128 for (i = base; i < (base + npages); i++)
189 static inline void free_npages(struct iommu *iommu, dma_addr_t base, unsigned long npages)
191 pci_arena_free(&iommu->arena, base >> IO_PAGE_SHIFT, npages);
301 iopte_t *base;
318 base = alloc_npages(iommu, npages);
324 if (unlikely(!base))
328 ((base - iommu->page_table) << IO_PAGE_SHIFT));
338 for (i = 0; i < npages; i++, base++, base_paddr += IO_PAGE_SIZE)
339 iopte_val(*base) = iopte_protection | base_paddr;
420 iopte_t *base;
434 base = iommu->page_table +
437 if (IOPTE_IS_DUMMY(iommu, base))
448 ctx = (iopte_val(*base) & IOPTE_CONTEXT) >> 47UL;
457 iopte_make_dummy(iommu, base + i);
552 iopte_t *base;
583 base = alloc_npages(iommu, npages);
590 if (base == NULL)
594 ((base - iommu->page_table) << IO_PAGE_SHIFT);
615 fill_sg(base, sglist, used, nelems, iopte_protection);
618 verify_sglist(sglist, nelems, base, npages);
636 iopte_t *base;
657 base = iommu->page_table +
661 if (IOPTE_IS_DUMMY(iommu, base))
670 ctx = (iopte_val(*base) & IOPTE_CONTEXT) >> 47UL;
678 iopte_make_dummy(iommu, base + i);