Searched refs:IO_PAGE_SHIFT (Results 1 – 4 of 4) sorted by relevance
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()[all …]
40 #define CLUSTER_NPAGES (CLUSTER_SIZE >> IO_PAGE_SHIFT)102 upa_writeq(base + (npages << IO_PAGE_SHIFT), in iommu_flush()123 upa_writeq(base + (npages << IO_PAGE_SHIFT), in strbuf_flush()224 ent = (base & CLUSTER_MASK) >> (IO_PAGE_SHIFT + cnum); in free_streaming_cluster()225 iopte = iommu->page_table + ((base - MAP_BASE) >> IO_PAGE_SHIFT); in free_streaming_cluster()271 iopte_t *iopte = iommu->page_table + ((base - MAP_BASE) >> IO_PAGE_SHIFT); in free_consistent_cluster()314 iopte = alloc_consistent_cluster(iommu, size >> IO_PAGE_SHIFT); in sbus_alloc_consistent()322 *dvma_addr = MAP_BASE + ((iopte - iommu->page_table) << IO_PAGE_SHIFT); in sbus_alloc_consistent()324 npages = size >> IO_PAGE_SHIFT; in sbus_alloc_consistent()330 iommu_flush(iommu, *dvma_addr, size >> IO_PAGE_SHIFT); in sbus_alloc_consistent()[all …]
18 #define IO_PAGE_SHIFT 13 macro19 #define IO_PAGE_SIZE (1UL << IO_PAGE_SHIFT)
44 pgcount += ((end - start) >> IO_PAGE_SHIFT); in verify_lengths()226 (IO_PAGE_SIZE - 1UL)) >> IO_PAGE_SHIFT); in prepare_sg()227 dent_addr <<= IO_PAGE_SHIFT; in prepare_sg()239 (IO_PAGE_SIZE - 1UL)) >> IO_PAGE_SHIFT; in prepare_sg()