Home
last modified time | relevance | path

Searched refs:IOMMU_BTOP (Results 1 – 8 of 8) sorted by relevance

/titanic_50/usr/src/uts/sun4u/io/pci/
H A Dpci_iommu.c102 iommu_p->dvma_base_pg = IOMMU_BTOP(iommu_p->iommu_dvma_base); in iommu_create()
104 iommu_p->dvma_end_pg = IOMMU_BTOP(iommu_p->iommu_dvma_end); in iommu_create()
328 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping); in iommu_map_window()
340 pfn_index = IOMMU_BTOP(pfn_index); /* index into pfnlist */ in iommu_map_window()
381 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping); in iommu_unmap_window()
383 uint_t npages = IOMMU_BTOP(mp->dmai_winsize); in iommu_unmap_window()
H A Dpci_reloc.c199 dvma_pg = IOMMU_BTOP(mp->dmai_mapping); in pci_dvma_remap()
325 index = i + IOMMU_BTOP(va - baseva); in pci_fdvma_postrelocator()
332 dvma_pg = IOMMU_BTOP(mp->dmai_mapping) + index; in pci_fdvma_postrelocator()
333 pci_fdvma_remap(mp, va, dvma_pg, IOMMU_BTOP(length), in pci_fdvma_postrelocator()
H A Dpci_dma.c469 align = IOMMU_BTOP(align + 1); in pci_dma_attr2hdl()
889 xfer_sz = IOMMU_PTOB(IOMMU_BTOP(xfer_sz + pg_off)); /* page align */ in pci_dvma_win()
919 size_t npages = IOMMU_BTOP(mp->dmai_winsize); in pci_dvma_map_fast()
1021 dvma_pg = IOMMU_BTOP((ulong_t)dvma_addr); in pci_dvma_map()
1056 dvma_addr_t dvma_pg = IOMMU_BTOP(dvma_addr); in pci_dvma_unmap()
1070 npages = IOMMU_BTOP(mp->dmai_winsize) + HAS_REDZONE(mp); in pci_dvma_unmap()
1086 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping); in pci_dma_sync_unmap()
1347 pfn_lo = IOMMU_BTOP(dev_attr_p->dma_attr_addr_lo); in pci_dma_physwin()
1348 pfn_hi = IOMMU_BTOP(dev_attr_p->dma_attr_addr_hi); in pci_dma_physwin()
1361 pfn_lo = IOMMU_BTOP(mp->dmai_attr.dma_attr_addr_lo); in pci_dma_physwin()
[all …]
H A Dpci_fdvma.c85 dvma_pg = IOMMU_BTOP(dvma_addr); in pci_fdvma_load()
135 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping + IOMMU_PTOB(index)); in pci_fdvma_unload()
224 dvma_pg = IOMMU_BTOP((ulong_t)vmem_xalloc(iommu_p->iommu_dvma_map, in pci_fdvma_reserve()
H A Dpcisch.c1220 tsb_size_prop = IOMMU_BTOP(dvma_prop->dvma_len) * sizeof (uint64_t); in pci_iommu_setup()
3644 (dvma_addr_t)IOMMU_BTOP((dvma_addr_t)dvma_addr), npages); in pci_vmem_free()
H A Dpcipsy.c1213 tsb_size_prop = IOMMU_BTOP(dvma_prop->dvma_len) * sizeof (uint64_t); in pci_iommu_setup()
/titanic_50/usr/src/uts/sun4u/sys/pci/
H A Dpci_iommu.h57 #define IOMMU_BTOP(x) ((x) >> IOMMU_PAGE_SHIFT) macro
58 #define IOMMU_BTOPR(x) IOMMU_BTOP((x) + IOMMU_PAGE_OFFSET)
H A Dpci_dma.h146 #define PCI_DMA_WINNPGS(mp) IOMMU_BTOP((mp)->dmai_winsize)