Lines Matching refs:nrings
5961 mac_ring_t *ring, mac_ring_t **rings, int nrings) in mac_reclaim_ring_from_grp() argument
5994 for (j = 0; j < nrings; j++) { in mac_reclaim_ring_from_grp()
5998 if (j >= nrings) in mac_reclaim_ring_from_grp()
6044 for (j = 0; j < nrings; j++) { in mac_reclaim_ring_from_grp()
6048 if (j < nrings) in mac_reclaim_ring_from_grp()
6075 for (j = 0; j < nrings; j++) { in mac_reclaim_ring_from_grp()
6079 if (j >= nrings) in mac_reclaim_ring_from_grp()
6114 for (j = 0; j < nrings; j++) { in mac_reclaim_ring_from_grp()
6118 if (j >= nrings) in mac_reclaim_ring_from_grp()
6153 uint_t nrings; in i_mac_group_allocate_rings() local
6166 mip->mi_share_capab.ms_squery(share, ring_type, NULL, &nrings); in i_mac_group_allocate_rings()
6167 ASSERT(nrings != 0); in i_mac_group_allocate_rings()
6168 rings = kmem_alloc(nrings * sizeof (mac_ring_handle_t), in i_mac_group_allocate_rings()
6171 (mac_ring_handle_t *)rings, &nrings); in i_mac_group_allocate_rings()
6172 for (i = 0; i < nrings; i++) { in i_mac_group_allocate_rings()
6182 ring, rings, nrings) != 0) { in i_mac_group_allocate_rings()
6215 nrings = i; in i_mac_group_allocate_rings()
6217 if (nrings != ringcnt) { in i_mac_group_allocate_rings()
6225 if (src_group->mrg_cur_count - nrings < 1) { in i_mac_group_allocate_rings()
6232 for (i = 0; i < nrings; i++) { in i_mac_group_allocate_rings()
6249 for (i = 0; i < nrings; i++) { in i_mac_group_allocate_rings()
6278 kmem_free(rings, nrings * sizeof (mac_ring_handle_t)); in i_mac_group_allocate_rings()
6338 int nrings; in mac_reserve_rx_group() local
6492 nrings = rxhw ? need_rings : isprimary ? donor_grp_rcnt: 1; in mac_reserve_rx_group()
6500 if (nrings <= donor_grp_rcnt) { in mac_reserve_rx_group()
6502 donorgrp, grp, share, nrings); in mac_reserve_rx_group()
6904 int nrings; in mac_reserve_tx_group() local
6981 nrings = (mrp->mrp_mask & MRP_TX_RINGS) != 0 ? mrp->mrp_ntxrings : 1; in mac_reserve_tx_group()
7016 nrings <= defnrings) { in mac_reserve_tx_group()
7091 share, nrings); in mac_reserve_tx_group()