Lines Matching refs:nslots

194 	srp->tx_free = srp->desc.nslots;  in bge_reinit_send_ring()
241 for (slot = 0; slot < srp->desc.nslots; ++ssbdp, ++slot) in bge_reinit_send_ring()
260 uint32_t nslots; in bge_reinit_buff_ring() local
279 nslots = brp->desc.nslots; in bge_reinit_buff_ring()
280 ASSERT(brp->buf[0].nslots == nslots/BGE_SPLIT); in bge_reinit_buff_ring()
283 for (slot = 0; slot < nslots; ++hw_rbd_p, ++srbdp, ++slot) { in bge_reinit_buff_ring()
296 brp->rf_next = (nslots != 0) ? (nslots-1) : 0; in bge_reinit_buff_ring()
2130 dma_p->nslots = ~0U;
2173 slice->nslots = qty;
2199 uint32_t nslots; local
2223 nslots = brp->desc.nslots;
2224 ASSERT(brp->buf[0].nslots == nslots/BGE_SPLIT);
2236 brp->hw_rcb.flags = nslots > 0 ? 0 : RCB_FLAG_RING_DISABLED;
2252 srbdp = kmem_zalloc(nslots*sizeof (*srbdp), KM_SLEEP);
2260 for (slot = 0; slot < nslots/BGE_SPLIT; ++srbdp, ++slot)
2280 kmem_free(srbdp, brp->desc.nslots*sizeof (*srbdp));
2296 uint32_t nslots; local
2306 nslots = rrp->desc.nslots;
2307 ASSERT(nslots == 0 || nslots == 512 ||
2308 nslots == 1024 || nslots == 2048);
2314 rrp->hw_rcb.max_len = (uint16_t)nslots;
2315 rrp->hw_rcb.flags = nslots > 0 ? 0 : RCB_FLAG_RING_DISABLED;
2360 uint32_t nslots; local
2373 nslots = srp->desc.nslots;
2374 ASSERT(nslots == 0 || nslots == 512);
2380 srp->hw_rcb.max_len = (uint16_t)nslots;
2381 srp->hw_rcb.flags = nslots > 0 ? 0 : RCB_FLAG_RING_DISABLED;
2382 srp->hw_rcb.nic_ring_addr = NIC_MEM_SHADOW_SEND_RING(ring, nslots);
2399 if (nslots == 0)
2405 ssbdp = kmem_zalloc(nslots*sizeof (*ssbdp), KM_SLEEP);
2424 for (slot = 0; slot < nslots; ++ssbdp, ++slot) {
2453 uint32_t nslots; local
2463 nslots = srp->desc.nslots;
2464 if (nslots == 0)
2470 kmem_free(srp->sw_sbds, nslots*sizeof (*srp->sw_sbds));