Lines Matching refs:IO_PAGE_SHIFT
157 ent = (base << (32 - IO_PAGE_SHIFT + PBM_LOGCLUSTERS - iommu->page_table_sz_bits)) in free_streaming_cluster()
225 iopte = alloc_consistent_cluster(iommu, size >> IO_PAGE_SHIFT); in pci_alloc_consistent()
233 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in pci_alloc_consistent()
235 npages = size >> IO_PAGE_SHIFT; in pci_alloc_consistent()
252 npages = size >> IO_PAGE_SHIFT; in pci_alloc_consistent()
272 npages = IO_PAGE_ALIGN(size) >> IO_PAGE_SHIFT; in pci_free_consistent()
276 ((dvma - iommu->page_table_map_base) >> IO_PAGE_SHIFT); in pci_free_consistent()
313 u32 daddr = dvma + (i << IO_PAGE_SHIFT); in pci_free_consistent()
349 npages >>= IO_PAGE_SHIFT; in pci_map_single()
357 ((base - iommu->page_table) << IO_PAGE_SHIFT)); in pci_map_single()
400 npages >>= IO_PAGE_SHIFT; in pci_unmap_single()
402 ((bus_addr - iommu->page_table_map_base) >> IO_PAGE_SHIFT); in pci_unmap_single()
469 ((IO_PAGE_SIZE - 1UL))) >> IO_PAGE_SHIFT; in fill_sg()
484 if (((tmp ^ pteval) >> IO_PAGE_SHIFT) != 0UL) { in fill_sg()
489 if (((tmp ^ (tmp + len - 1UL)) >> IO_PAGE_SHIFT) != 0UL) { in fill_sg()
515 (pteval << (64 - IO_PAGE_SHIFT)) != 0UL && in fill_sg()
518 (SG_ENT_PHYS_ADDRESS(sg) + sg->length - 1UL)) >> IO_PAGE_SHIFT) == 0UL) { in fill_sg()
522 if ((pteval << (64 - IO_PAGE_SHIFT)) == 0UL) in fill_sg()
575 dma_base = iommu->page_table_map_base + ((base - iommu->page_table) << IO_PAGE_SHIFT); in pci_map_sg()
638 npages = (IO_PAGE_ALIGN(sglist[i].dma_address + sglist[i].dma_length) - bus_addr) >> IO_PAGE_SHIFT; in pci_unmap_sg()
641 ((bus_addr - iommu->page_table_map_base) >> IO_PAGE_SHIFT); in pci_unmap_sg()
709 npages >>= IO_PAGE_SHIFT; in pci_dma_sync_single()
719 ((bus_addr - iommu->page_table_map_base)>>IO_PAGE_SHIFT); in pci_dma_sync_single()
776 ((sglist[0].dma_address - iommu->page_table_map_base) >> IO_PAGE_SHIFT); in pci_dma_sync_sg()
801 …npages = (IO_PAGE_ALIGN(sglist[i].dma_address + sglist[i].dma_length) - bus_addr) >> IO_PAGE_SHIFT; in pci_dma_sync_sg()