Lines Matching defs:hw_rh
1483 if (tx_ringp->hw_rh == (mac_ring_handle_t)arg2) {
2125 * specifically ringp->hw_rh, in either the TX or the RX ring,
2128 * ring->hw_rh is initialized only when a Hybrid resource is
2135 * ring->hw_rh at all.
2137 * For rings mapped to Hybrid resource ring->hw_rh is
2140 * we unmap ring->hw_rh. For rings mapped to LDC resources, we
2141 * stop the rx callbacks (in vgen) before we remove ring->hw_rh
2143 * Also, we access ring->hw_rh in vnet_rx_ring_stat().
2146 * hardware ring mapping (ringp->hw_rh) can be torn down in
2158 * resource (ringp->hw_rh) from disappearing.
2402 if (rx_ringp->hw_rh == NULL) {
2408 err = mac_hwring_start(rx_ringp->hw_rh);
2441 if (rx_ringp->hw_rh == NULL) {
2446 mac_hwring_stop(rx_ringp->hw_rh);
2472 (void) mac_hwring_getstat(rx_ringp->hw_rh, stat, val);
2479 vresp = (vnet_res_t *)rx_ringp->hw_rh;
2540 if (rx_ringp->hw_rh == NULL) {
2556 return (mac_hwring_enable_intr(rx_ringp->hw_rh));
2558 vresp = (vnet_res_t *)rx_ringp->hw_rh;
2572 if (rx_ringp->hw_rh == NULL) {
2588 return (mac_hwring_disable_intr(rx_ringp->hw_rh));
2590 vresp = (vnet_res_t *)rx_ringp->hw_rh;
2606 if (rx_ringp->hw_rh == NULL) {
2611 mp = mac_hwring_poll(rx_ringp->hw_rh, bytes_to_pickup);
2624 vresp = (vnet_res_t *)rx_ringp->hw_rh;
2793 mac_ring_handle_t hw_rh[VNET_NUM_HYBRID_RINGS];
2806 hw_ring_cnt = mac_hwrings_get(vnetp->hio_mch, &vnetp->rx_hwgh, hw_rh,
2841 rx_ringp->hw_rh = hw_rh[i];
2844 mac_hwring_setup(rx_ringp->hw_rh,
2849 rv = mac_hwring_start(rx_ringp->hw_rh);
2851 mac_hwring_teardown(rx_ringp->hw_rh);
2852 rx_ringp->hw_rh = NULL;
2859 hw_ring_cnt = mac_hwrings_get(vnetp->hio_mch, &vnetp->tx_hwgh, hw_rh,
2879 tx_ringp->hw_rh = hw_rh[i];
2912 tx_ringp->hw_rh = NULL;
2921 if (rx_ringp->hw_rh != NULL) {
2923 mac_hwring_stop(rx_ringp->hw_rh);
2926 mac_hwring_teardown(rx_ringp->hw_rh);
2927 rx_ringp->hw_rh = NULL;
2968 rx_ringp->hw_rh = (mac_ring_handle_t)vresp;
2984 rx_ringp->hw_rh = (mac_ring_handle_t)vresp;
2999 rx_ringp->hw_rh = NULL;
3038 rx_ringp->hw_rh = NULL;
3053 rx_ringp->hw_rh = NULL;
3150 ret_mp = mac_hwring_tx(tx_ringp->hw_rh, mp);