Lines Matching refs:npages

934 	uint64_t npages;  in map_unity_domain()  local
964 npages = mp->ml_size/IMMU_PAGESIZE + 1; in map_unity_domain()
967 dcookies[0].dck_npages = npages; in map_unity_domain()
969 (void) dvma_map(domain, start, npages, dcookies, in map_unity_domain()
982 npages = mp->ml_size/IMMU_PAGESIZE + 1; in map_unity_domain()
985 dcookies[0].dck_npages = npages; in map_unity_domain()
987 (void) dvma_map(domain, start, npages, in map_unity_domain()
999 npages = mp->ml_size/IMMU_PAGESIZE + 1; in map_unity_domain()
1002 dcookies[0].dck_npages = npages; in map_unity_domain()
1004 (void) dvma_map(domain, start, npages, in map_unity_domain()
1849 uint64_t npages; in PTE_clear_all() local
1860 npages = *npages_ptr; in PTE_clear_all()
1870 for (; npages > 0 && idx <= IMMU_PGTABLE_MAXIDX; idx++, hwp++) { in PTE_clear_all()
1873 npages--; in PTE_clear_all()
1877 *npages_ptr = npages; in PTE_clear_all()
2423 dvma_alloc(domain_t *domain, ddi_dma_attr_t *dma_attr, uint_t npages, int kmf) in dvma_alloc() argument
2430 xsize = npages * IMMU_PAGESIZE; in dvma_alloc()
2539 dvma_free(domain_t *domain, uint64_t dvma, uint64_t npages) in dvma_free() argument
2541 uint64_t size = npages * IMMU_PAGESIZE; in dvma_free()
2561 size_t npages, npgalloc; in immu_map_dvmaseg() local
2650 npages = 1; in immu_map_dvmaseg()
2669 npages++; in immu_map_dvmaseg()
2672 *ihp->ihp_preptes[npages - 1] = in immu_map_dvmaseg()
2683 npages, dcookies, dmax + 1, rdip, in immu_map_dvmaseg()
2689 uint_t, npages, uint_t, dmax+1); in immu_map_dvmaseg()
2691 dvma += (npages << IMMU_PAGESHIFT); in immu_map_dvmaseg()
2692 npages = 0; in immu_map_dvmaseg()
2706 if (ihp->ihp_npremapped == 0 && npages > 0) { in immu_map_dvmaseg()
2708 uint64_t, dvma, uint_t, npages, uint_t, dmax+1); in immu_map_dvmaseg()
2710 if (dvma_map(domain, dvma, npages, dcookies, in immu_map_dvmaseg()
2736 uint64_t dvma, npages; in immu_unmap_dvmaseg() local
2744 npages = IMMU_BTOPR(dvs[0].dvs_len + dmao->dmao_obj.dvma_obj.dv_off); in immu_unmap_dvmaseg()
2748 dvma_unmap(domain, dvma, npages, rdip); in immu_unmap_dvmaseg()
2750 dvma_free(domain, dvma, npages); in immu_unmap_dvmaseg()
2752 IMMU_DPROBE3(immu__dvma__free, dev_info_t *, rdip, uint_t, npages, in immu_unmap_dvmaseg()
2834 uint64_t npages; in immu_dvma_physmem_update() local
2860 npages = (IMMU_ROUNDUP(size) / IMMU_PAGESIZE) + 1; in immu_dvma_physmem_update()
2863 dcookies[0].dck_npages = npages; in immu_dvma_physmem_update()
2865 (void) dvma_map(domain, start, npages, in immu_dvma_physmem_update()