Searched defs:dvma_pg (Results 1 - 8 of 8) sorted by relevance

/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_fdvma.c57 px_dvma_addr_t dvma_addr, dvma_pg; local
79 dvma_pg = MMU_BTOP(dvma_addr);
80 pg_index = dvma_pg - mmu_p->dvma_base_pg;
106 px_dvma_addr_t dvma_pg = MMU_BTOP(mp->dmai_mapping + MMU_PTOB(index)); local
112 px_mmu_unmap_pages(px_p->px_mmu_p, mp, dvma_pg, npages);
135 px_dvma_addr_t dvma_pg; local
176 dvma_pg = MMU_BTOP((ulong_t)vmem_xalloc(mmu_p->mmu_dvma_map,
180 if (dvma_pg == 0) {
201 mp->dmai_mapping = MMU_PTOB(dvma_pg);
H A Dpx_mmu.c177 px_mmu_map_pages(px_mmu_t *mmu_p, ddi_dma_impl_t *mp, px_dvma_addr_t dvma_pg, argument
181 px_dvma_addr_t pg_index = MMU_PAGE_INDEX(mmu_p, dvma_pg);
187 (uint_t)pg_index, dvma_pg, (uint_t)npages, (uint_t)pfn_index);
228 px_mmu_unmap_pages(px_mmu_t *mmu_p, ddi_dma_impl_t *mp, px_dvma_addr_t dvma_pg, argument
231 px_dvma_addr_t pg_index = MMU_PAGE_INDEX(mmu_p, dvma_pg);
235 (uint_t)mmu_p->dvma_base_pg, (uint_t)pg_index, dvma_pg,
273 px_dvma_addr_t dvma_pg = MMU_BTOP(mp->dmai_mapping); local
283 mp->dmai_mapping = MMU_PTOB(dvma_pg) | win_pg0_off;
287 ret = px_mmu_map_pages(mmu_p, mp, dvma_pg, MMU_BTOPR(win_size),
305 px_dvma_addr_t dvma_pg local
[all...]
H A Dpx_dma.c708 px_dvma_addr_t dvma_pg; local
733 dvma_pg = mmu_p->dvma_base_pg + i;
764 mp->dmai_mapping = mp->dmai_roffset | MMU_PTOB(dvma_pg);
782 px_dvma_addr_t dvma_pg, dvma_pg_index; local
816 dvma_pg = MMU_BTOP((ulong_t)dvma_addr);
817 dvma_pg_index = dvma_pg - mmu_p->dvma_base_pg;
818 DBG(DBG_DMA_MAP, dip, "fallback dvma_pages: dvma_pg=%x index=%x\n",
819 dvma_pg, dvma_pg_index);
820 if (dvma_pg == 0)
823 mp->dmai_mapping = mp->dmai_roffset | MMU_PTOB(dvma_pg);
859 px_dvma_addr_t dvma_pg = MMU_BTOP(dvma_addr); local
[all...]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_fdvma.c57 dvma_addr_t dvma_addr, dvma_pg; local
85 dvma_pg = IOMMU_BTOP(dvma_addr);
86 pg_index = dvma_pg - iommu_p->dvma_base_pg;
113 IOMMU_PAGE_FLUSH(iommu_p, (dvma_pg + i));
135 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping + IOMMU_PTOB(index)); local
146 iommu_unmap_pages(pci_p->pci_iommu_p, dvma_pg, npg);
156 iommu_unmap_pages(pci_p->pci_iommu_p, dvma_pg, npg);
182 dvma_addr_t dvma_pg; local
224 dvma_pg = IOMMU_BTOP((ulong_t)vmem_xalloc(iommu_p->iommu_dvma_map,
228 if (dvma_pg
[all...]
H A Dpci_iommu.c263 dvma_addr_t dvma_pg, size_t npages, size_t pfn_index)
266 dvma_addr_t pg_index = dvma_pg - iommu_p->dvma_base_pg;
278 (uint_t)iommu_p->dvma_base_pg, (uint_t)pg_index, dvma_pg,
328 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping); local
337 mp->dmai_mapping = IOMMU_PTOB(dvma_pg) | win_pg0_off;
341 iommu_map_pages(iommu_p, mp, dvma_pg, IOMMU_BTOPR(win_size), pfn_index);
345 iommu_unmap_pages(iommu_t *iommu_p, dvma_addr_t dvma_pg, uint_t npages) argument
347 dvma_addr_t pg_index = IOMMU_PAGE_INDEX(iommu_p, dvma_pg);
349 for (; npages; npages--, dvma_pg++, pg_index++) {
350 DEBUG1(DBG_UNMAP_WIN|DBG_CONT, 0, " %x", dvma_pg);
262 iommu_map_pages(iommu_t *iommu_p, ddi_dma_impl_t *mp, dvma_addr_t dvma_pg, size_t npages, size_t pfn_index) argument
359 iommu_remap_pages(iommu_t *iommu_p, ddi_dma_impl_t *mp, dvma_addr_t dvma_pg, size_t npages, size_t pfn_index) argument
381 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping); local
[all...]
H A Dpci_reloc.c195 dvma_addr_t dvma_pg; local
199 dvma_pg = IOMMU_BTOP(mp->dmai_mapping);
201 dvma_pg += idx;
205 "pci_dvma_remap: dvma_pg 0x%llx len 0x%llx idx 0x%x\n",
206 dvma_pg, length, idx);
209 iommu_remap_pages(iommu_p, mp, dvma_pg, npgs, idx);
215 pci_fdvma_remap(ddi_dma_impl_t *mp, caddr_t kvaddr, dvma_addr_t dvma_pg, argument
223 dvma_addr_t pg_index = dvma_pg - iommu_p->dvma_base_pg;
239 DEBUG3(DBG_FAST_DVMA, dip, "remap dvma_pg %x -> pfn %x,"
240 " old tte 0x%llx\n", dvma_pg
288 dvma_addr_t dvma_pg; local
[all...]
H A Dpci_dma.c918 dvma_addr_t dvma_pg; local
950 dvma_pg = iommu_p->dvma_base_pg + i;
956 DEBUG5(DBG_DMA_MAP, dip, "fast %p:dvma_pg=%x tte0(%p)=%08x.%08x\n", mp,
957 dvma_pg, tte_addr, HI32(*tte_addr), LO32(*tte_addr));
970 mp->dmai_mapping = mp->dmai_roffset | IOMMU_PTOB(dvma_pg);
988 dvma_addr_t dvma_pg, dvma_pg_index; local
1021 dvma_pg = IOMMU_BTOP((ulong_t)dvma_addr);
1022 dvma_pg_index = dvma_pg - iommu_p->dvma_base_pg;
1023 DEBUG2(DBG_DMA_MAP, dip, "fallback dvma_pages: dvma_pg=%x index=%x\n",
1024 dvma_pg, dvma_pg_inde
1056 dvma_addr_t dvma_pg = IOMMU_BTOP(dvma_addr); local
1086 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping); local
[all...]
H A Dpcisch.c80 dvma_addr_t dvma_pg, int npages);
3579 tm_vmem_free(ddi_dma_impl_t *mp, iommu_t *iommu_p, dvma_addr_t dvma_pg, argument
3595 req_max_p->dur_base = dvma_pg;

Completed in 290 milliseconds