Lines Matching defs:vr

626 				if (current->vr && current->vr->nxge ==
1051 nhd->vr[region].region = region;
1151 nxge_hio_vr_t *vr; /* The Virtualization Region */
1171 vr = (nxge_hio_vr_t *)nxge->shares[group->sindex].vrp;
1172 if ((vr != NULL) && (group->n_mac_addrs)) {
1403 nxge_hio_vr_t *vr)
1415 fp = &nhd->hio.vr;
1419 if ((hv_rv = (*fp->assign)(vr->region, cookie, &vr->cookie))) {
1422 "vr->assign() returned %d", major, hv_rv));
1423 nxge_hio_unshare(vr);
1432 (nxge->niu_cfg_hdl, vr->region, cookie, &vr->cookie))) {
1435 "vr->assign() returned %d", major, hv_rv));
1436 nxge_hio_unshare(vr);
1445 "vr->assign() success", major));
1450 dc = vr->tx_group.dc;
1455 (vr->cookie, dc->channel, &slot);
1460 vr->cookie, dc->channel, hv_rv));
1464 dc->cookie = vr->cookie;
1477 dc = vr->rx_group.dc;
1482 (vr->cookie, dc->channel, &slot);
1487 vr->cookie, dc->channel, hv_rv));
1491 dc->cookie = vr->cookie;
1506 nxge_hio_vr_t *vr)
1508 nxge_t *nxge = (nxge_t *)vr->nxge;
1516 dc = vr->tx_group.dc;
1519 hv_rv = (*tx->unassign)(vr->cookie, dc->page);
1524 vr->cookie, dc->page, hv_rv));
1529 dc = vr->rx_group.dc;
1532 hv_rv = (*rx->unassign)(vr->cookie, dc->page);
1537 vr->cookie, dc->page, hv_rv));
1542 fp = &nhd->hio.vr;
1544 hv_rv = (*fp->unassign)(vr->cookie);
1548 "vr->assign(%x) failed: %ld",
1549 vr->cookie, hv_rv));
1559 nxge_hio_vr_t *vr; /* The Virtualization Region */
1564 if (nhd->hio.vr.assign == 0 || nhd->hio.tx.assign == 0 ||
1573 if ((vr = nxge_hio_vr_share(nxge)) == 0)
1576 shp = &nxge->shares[vr->region];
1578 shp->index = vr->region;
1579 shp->vrp = (void *)vr;
1595 nxge_hio_vr_t *vr;
1600 vr = shp->vrp;
1611 nxge_hio_unshare(vr);
1661 nxge_hio_vr_t *vr; /* The Virtualization Region */
1677 vr = shp->vrp;
1709 rg->sindex = vr->region;
1710 vr->rdc_tbl = rg->rdctbl;
1711 shp->rxgroup = vr->rdc_tbl;
1743 vr->tdc_tbl = nxge->pt_config.hw_config.def_mac_txdma_grpid +
1745 rg->sindex = vr->region;
1757 nxge_hio_vr_t *vr; /* The Virtualization Region */
1760 vr = shp->vrp;
1765 vr->rdc_tbl = 0;
1771 vr->tdc_tbl = 0;
1784 nxge_hio_vr_t *vr;
1793 vr = (nxge_hio_vr_t *)shp->vrp;
1801 rv = nxge_hio_addres(vr, MAC_RING_TYPE_TX, &tmap);
1807 rv = nxge_hio_addres(vr, MAC_RING_TYPE_RX, &rmap);
1809 nxge_hio_remres(vr, MAC_RING_TYPE_TX, tmap);
1819 &hv_tmap, &hv_rmap, vr))) {
1820 nxge_hio_remres(vr, MAC_RING_TYPE_TX, tmap);
1821 nxge_hio_remres(vr, MAC_RING_TYPE_RX, rmap);
1830 *rcookie = (((uint64_t)nxge->niu_cfg_hdl) << 32) | vr->cookie;
1872 nxge_hio_vr_t *vr;
1901 if (nhd->vr[region].nxge == 0)
1910 vr = &nhd->vr[region];
1911 vr->nxge = (uintptr_t)nxge;
1912 vr->region = (uintptr_t)region;
1920 return (vr);
1925 nxge_hio_vr_t *vr)
1927 nxge_t *nxge = (nxge_t *)vr->nxge;
1936 "vr->nxge is NULL"));
1944 * nxge_hio_hostinfo_uninit(nxge, vr);
1949 * (void) nxge_fzc_rdc_tbl_unbind(nxge, vr->rdc_tbl);
1956 region = vr->region;
1957 (void) memset(vr, 0, sizeof (*vr));
1958 vr->region = region;
1968 nxge_hio_addres(nxge_hio_vr_t *vr, mac_ring_type_t type, uint64_t *map)
1976 ASSERT(vr != NULL);
1977 ASSERT(vr->nxge != NULL);
1978 nxge = (nxge_t *)vr->nxge;
1989 groupid = vr->tdc_tbl -
1994 groupid = vr->rdc_tbl -
2009 if ((rv = nxge_hio_dc_share(nxge, vr, type, i)) < 0) {
2032 nxge_hio_vr_t *vr,
2036 nxge_t *nxge = (nxge_t *)vr->nxge;
2041 "vr->nxge is NULL"));
2051 group = (type == MAC_RING_TYPE_TX ? &vr->tx_group : &vr->rx_group);
2055 nxge_hio_dc_unshare(nxge, vr, type, dc->channel);
2208 nxge_hio_vr_t *vr,
2274 rdc_grp = &nxge->pt_config.rdc_grps[vr->rdc_tbl];
2289 * vr The VR that <channel> will belong to.
2301 nxge_hio_vr_t *vr,
2317 nxge_hio_rdc_share(nxge, vr, channel);
2321 nxge_hio_rdc_unshare(nxge, vr->rdc_tbl, channel);
2323 nxge_hio_tdc_unshare(nxge, vr->tdc_tbl, channel);
2336 dc->vr = vr;
2342 * vr->[t|r]x_group is used by the service domain to
2346 group = (type == MAC_RING_TYPE_TX ? &vr->tx_group : &vr->rx_group);
2519 * vr The VR that <channel> belongs to.
2531 nxge_hio_vr_t *vr,
2543 group = (type == MAC_RING_TYPE_TX) ? &vr->tx_group : &vr->rx_group;
2551 dc->vr = 0;
2555 nxge_hio_rdc_unshare(nxge, vr->rdc_tbl, channel);
2557 nxge_hio_tdc_unshare(nxge, vr->tdc_tbl, channel);