Lines Matching refs:nslots
61 uint32_t nslots; in nge_tx_recycle_all() local
64 nslots = srp->desc.nslots; in nge_tx_recycle_all()
66 for (slot = 0; slot < nslots; ++slot) { in nge_tx_recycle_all()
129 const uint64_t end = srp->desc.nslots * txd_size; in nge_tx_desc_sync()
158 uint32_t nslots; in nge_tx_recycle() local
182 nslots = srp->desc.nslots; in nge_tx_recycle()
184 used = nslots - free - used; in nge_tx_recycle()
186 ASSERT(slot == NEXT_INDEX(next, free, nslots)); in nge_tx_recycle()
208 for (free = 0; used-- != 0; slot = NEXT(slot, nslots), ++free) { in nge_tx_recycle()
246 ngep->watchdog = (srp->desc.nslots - srp->tx_free != 0); in nge_tx_recycle()
250 ASSERT(srp->tx_free <= nslots); in nge_tx_recycle()
251 ASSERT(srp->tc_next == NEXT_INDEX(srp->tx_next, srp->tx_free, nslots)); in nge_tx_recycle()
300 srp->tx_next = NEXT_INDEX(start, num, srp->desc.nslots); in nge_tx_alloc()
371 ASSERT(start_index < srp->desc.nslots); in nge_send_copy()
436 uint32_t nslots; in nge_send_mapped() local
451 nslots = srp->desc.nslots; in nge_send_mapped()
534 ASSERT(start_index < nslots); in nge_send_mapped()
539 end_index = NEXT_INDEX(start_index, slot - 1, nslots); in nge_send_mapped()
542 j = PREV(j, nslots), --i) { in nge_send_mapped()
561 for (j = start_index; end_index - j != 0; j = NEXT(j, nslots)) { in nge_send_mapped()