Lines Matching refs:npages
358 pgcnt_t npages; in i_ldc_mem_bind_handle() local
469 npages = (len+v_offset)/pg_size; in i_ldc_mem_bind_handle()
470 npages = ((len+v_offset)%pg_size == 0) ? npages : npages+1; in i_ldc_mem_bind_handle()
474 ldcp->id, vaddr, v_align, v_offset, npages); in i_ldc_mem_bind_handle()
479 if (npages > mtbl->num_avail) { in i_ldc_mem_bind_handle()
492 memseg->pages = kmem_zalloc((sizeof (ldc_page_t) * npages), KM_SLEEP); in i_ldc_mem_bind_handle()
494 kmem_zalloc((sizeof (ldc_mem_cookie_t) * npages), KM_SLEEP); in i_ldc_mem_bind_handle()
497 ldcp->id, npages); in i_ldc_mem_bind_handle()
544 for (i = 0; i < npages; i++) { in i_ldc_mem_bind_handle()
588 } else if (i == (npages - 1)) { in i_ldc_mem_bind_handle()
649 memseg->npages = npages; in i_ldc_mem_bind_handle()
661 ldcp->id, mhdl, vaddr, npages, memseg->ncookies); in i_ldc_mem_bind_handle()
763 for (i = 0; i < memseg->npages; i++) { in ldc_mem_unbind_handle()
805 kmem_free(memseg->pages, (sizeof (ldc_page_t) * memseg->npages)); in ldc_mem_unbind_handle()
807 (sizeof (ldc_mem_cookie_t) * memseg->npages)); in ldc_mem_unbind_handle()
872 pgcnt_t npages; in ldc_mem_copy() local
938 npages = (len+local_voff)/pg_size; in ldc_mem_copy()
939 npages = ((len+local_voff)%pg_size == 0) ? npages : npages+1; in ldc_mem_copy()
943 chid, vaddr, local_valign, local_voff, npages); in ldc_mem_copy()
1097 pgcnt_t npages; in ldc_mem_rdwr_cookie() local
1142 npages = (len + local_voff) / pg_size; in ldc_mem_rdwr_cookie()
1143 npages = ((len + local_voff) % pg_size == 0) ? npages : npages+1; in ldc_mem_rdwr_cookie()
1147 ldcp->id, vaddr, local_valign, local_voff, npages); in ldc_mem_rdwr_cookie()
1268 uint64_t exp_size = 0, base_off, map_size, npages; in i_ldc_mem_map() local
1322 npages = (map_size >> pg_shift); in i_ldc_mem_map()
1329 memseg->pages = kmem_zalloc((sizeof (ldc_page_t) * npages), KM_SLEEP); in i_ldc_mem_map()
1334 "pages=0x%llx\n", ldcp->id, exp_size, map_size, npages); in i_ldc_mem_map()
1353 (sizeof (ldc_page_t) * npages)); in i_ldc_mem_map()
1370 for (i = 0; i < npages; i++) { in i_ldc_mem_map()
1475 for (i = 0, tmpaddr = memseg->vaddr; i < npages; i++) { in i_ldc_mem_map()
1488 memseg->npages = npages; in i_ldc_mem_map()
1500 memseg->npages, memseg->ncookies); in i_ldc_mem_map()
1549 for (i = 0; i < memseg->npages; i++) { in ldc_mem_unmap()
1562 kmem_free(memseg->pages, (sizeof (ldc_page_t) * memseg->npages)); in ldc_mem_unmap()
2076 for (i = 0; i < memseg->npages; i++) { in i_ldc_mem_inject_dring_clear()