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()
2104 int hw_cidx = ntohs(READ_ONCE(q->stat->cidx)); in reclaim_completed_tx_imm()
2105 int reclaim = hw_cidx - q->cidx; in reclaim_completed_tx_imm()
2111 q->cidx = hw_cidx; in reclaim_completed_tx_imm()
3810 if (q->cidx == 0) in restore_rx_bufs()
3811 q->cidx = q->size - 1; in restore_rx_bufs()
3813 q->cidx--; in restore_rx_bufs()
3814 d = &q->sdesc[q->cidx]; in restore_rx_bufs()
3844 if (unlikely(++q->cidx == q->size)) { in rspq_next()
3845 q->cidx = 0; in rspq_next()
3900 rsd = &rxq->fl.sdesc[rxq->fl.cidx]; in process_responses()
4019 pktcount = eosw_txq->cidx - eosw_txq->last_cidx; in cxgb4_ethofld_restart()
4075 skb = eosw_txq->desc[eosw_txq->cidx].skb; in cxgb4_ethofld_rx_handler()
4083 eosw_txq->cidx == eosw_txq->flowc_idx)) { in cxgb4_ethofld_rx_handler()
4098 eosw_txq_advance_index(&eosw_txq->cidx, 1, in cxgb4_ethofld_rx_handler()
4447 iq->cidx = 0; in t4_sge_alloc_rxq()
4472 fl->pidx = fl->cidx = 0; in t4_sge_alloc_rxq()
4549 q->cidx = q->pidx = 0; in init_txq()