Lines Matching refs:snfv
2408 snf_vmap_desbfree(snf_vmap_desbinfo *snfv)
2410 ASSERT(snfv->snfv_ref != 0);
2411 if (atomic_dec_32_nv(&snfv->snfv_ref) == 0) {
2412 vpm_unmap_pages(snfv->snfv_vml, S_READ);
2413 VN_RELE(snfv->snfv_vp);
2414 kmem_free(snfv, sizeof (snf_vmap_desbinfo));
2490 snf_vmap_desbinfo *snfv;
2499 snfv = kmem_zalloc(sizeof (snf_vmap_desbinfo),
2513 (size_t)maxsize, (VPM_FETCHPAGE), snfv->snfv_vml,
2521 kmem_free(snfv, sizeof (snf_vmap_desbinfo));
2525 snfv->snfv_frtn.free_func = snf_vmap_desbfree;
2526 snfv->snfv_frtn.free_arg = (caddr_t)snfv;
2530 for (i = 0; (snfv->snfv_vml[i].vs_addr != NULL) &&
2533 mblk_size = MIN(snfv->snfv_vml[i].vs_len -
2536 (uchar_t *)snfv->snfv_vml[i].vs_addr +
2538 &snfv->snfv_frtn);
2548 vpm_unmap_pages(snfv->snfv_vml,
2550 kmem_free(snfv,
2563 snfv->snfv_ref++;
2571 snfv->snfv_vp = fvp;