Lines Matching refs:segmap
1542 if (desb->segmap != NULL) { in uri_desb_free()
1543 REF_RELE(desb->segmap); in uri_desb_free()
1556 uri_segmap_t *segmap = kmem_cache_alloc(uri_segmap_kmc, KM_SLEEP); in uri_segmap_map() local
1562 REF_INIT(segmap, 1, uri_segmap_inactive, uri_segmap_kmc); in uri_segmap_map()
1563 segmap->len = len; in uri_segmap_map()
1565 segmap->vp = rdp->data.vnode; in uri_segmap_map()
1567 segmap->base = segmap_getmapflt(segkmap, segmap->vp, rdp->off, len, in uri_segmap_map()
1570 if (segmap_fault(kas.a_hat, segkmap, segmap->base, len, in uri_segmap_map()
1572 REF_RELE(segmap); in uri_segmap_map()
1575 return (segmap); in uri_segmap_map()
1624 if (temp->segmap) { in uri_desb_chop()
1625 REF_HOLD(temp->segmap); in uri_desb_chop()
1631 if (temp->segmap) { in uri_desb_chop()
1632 REF_RELE(temp->segmap); in uri_desb_chop()
1716 uri_segmap_t *segmap = NULL; in uri_rd_response() local
1761 desb.segmap = NULL; in uri_rd_response()
1769 if (segmap == NULL) { in uri_rd_response()
1770 segmap = uri_segmap_map(&rd, in uri_rd_response()
1772 if (segmap == NULL) { in uri_rd_response()
1776 desb.segmap = segmap; in uri_rd_response()
1777 segmap_data = segmap->base; in uri_rd_response()
1778 segmap_sz = segmap->len; in uri_rd_response()
1787 rd.sz -= segmap->len; in uri_rd_response()
1788 rd.off += segmap->len; in uri_rd_response()
1789 REF_RELE(segmap); in uri_rd_response()
1790 segmap = NULL; in uri_rd_response()
1829 if (segmap) { in uri_rd_response()
1830 REF_RELE(segmap); in uri_rd_response()