Lines Matching refs:np
1332 uint_t np; in iommu_dma_mctl() local
1353 np = dmareq->dmar_object.dmao_size; in iommu_dma_mctl()
1355 if (np > softsp->dma_reserve) { in iommu_dma_mctl()
1362 softsp->dma_reserve -= np; in iommu_dma_mctl()
1371 iommu_ptob(np), IOMMU_PAGESIZE, 0, in iommu_dma_mctl()
1378 softsp->dma_reserve += np; in iommu_dma_mctl()
1395 iommu_fast_dvma->pagecnt = kmem_zalloc(np * in iommu_dma_mctl()
1399 iommu_fast_dvma->sync_flag = kmem_zalloc(np * in iommu_dma_mctl()
1404 kmem_zalloc(np * sizeof (uint64_t), KM_SLEEP); in iommu_dma_mctl()
1406 for (i = 0; i < np; i++) in iommu_dma_mctl()
1411 mp->dmai_ndvmapages = np; in iommu_dma_mctl()
1428 uint_t np = npages = mp->dmai_ndvmapages; in iommu_dma_mctl() local
1452 softsp->dma_reserve += np; in iommu_dma_mctl()
1457 (void *)(uintptr_t)ioaddr, iommu_ptob(np)); in iommu_dma_mctl()
1460 (void *)(uintptr_t)ioaddr, iommu_ptob(np)); in iommu_dma_mctl()
1463 kmem_free(iommu_fast_dvma->pagecnt, np * sizeof (uint_t)); in iommu_dma_mctl()
1464 kmem_free(iommu_fast_dvma->sync_flag, np * sizeof (int)); in iommu_dma_mctl()
1465 kmem_free(iommu_fast_dvma->phys_sync_flag, np * in iommu_dma_mctl()
1471 ("Release: Base addr %x size %x\n", ioaddr, np)); in iommu_dma_mctl()