Lines Matching refs:cidx
316 unsigned int cidx = q->cidx; in free_tx_desc() local
319 d = &q->sdesc[cidx]; in free_tx_desc()
330 if (++cidx == q->size) { in free_tx_desc()
331 cidx = 0; in free_tx_desc()
335 q->cidx = cidx; in free_tx_desc()
343 int hw_cidx = ntohs(READ_ONCE(q->stat->cidx)); in reclaimable()
344 hw_cidx -= q->cidx; in reclaimable()
441 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in free_rx_bufs()
449 if (++q->cidx == q->size) in free_rx_bufs()
450 q->cidx = 0; in free_rx_bufs()
468 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in unmap_rx_buf()
474 if (++q->cidx == q->size) in unmap_rx_buf()
475 q->cidx = 0; in unmap_rx_buf()
1431 hw_cidx = ntohs(READ_ONCE(q->stat->cidx)); in t4_sge_eth_txq_egress_update()
2110 int hw_cidx = ntohs(READ_ONCE(q->stat->cidx)); in reclaim_completed_tx_imm()
2111 int reclaim = hw_cidx - q->cidx; in reclaim_completed_tx_imm()
2117 q->cidx = hw_cidx; in reclaim_completed_tx_imm()
3636 WRITE_ONCE(txq->q.stat->cidx, egr->cidx); in t4_tx_completion_handler()
3835 if (q->cidx == 0) in restore_rx_bufs()
3836 q->cidx = q->size - 1; in restore_rx_bufs()
3838 q->cidx--; in restore_rx_bufs()
3839 d = &q->sdesc[q->cidx]; in restore_rx_bufs()
3869 if (unlikely(++q->cidx == q->size)) { in rspq_next()
3870 q->cidx = 0; in rspq_next()
3925 rsd = &rxq->fl.sdesc[rxq->fl.cidx]; in process_responses()
4044 pktcount = eosw_txq->cidx - eosw_txq->last_cidx; in cxgb4_ethofld_restart()
4100 skb = eosw_txq->desc[eosw_txq->cidx].skb; in cxgb4_ethofld_rx_handler()
4108 eosw_txq->cidx == eosw_txq->flowc_idx)) { in cxgb4_ethofld_rx_handler()
4123 eosw_txq_advance_index(&eosw_txq->cidx, 1, in cxgb4_ethofld_rx_handler()
4472 iq->cidx = 0; in t4_sge_alloc_rxq()
4497 fl->pidx = fl->cidx = 0; in t4_sge_alloc_rxq()
4574 q->cidx = q->pidx = 0; in init_txq()