Lines Matching refs:pidx
440 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl()
441 struct rx_desc *d = &q->desc[q->pidx]; in refill_fl()
475 if (++q->pidx == q->size) { in refill_fl()
476 q->pidx = 0; in refill_fl()
510 struct rx_desc *to = &q->desc[q->pidx]; in recycle_rx_buf()
512 q->sdesc[q->pidx] = q->sdesc[idx]; in recycle_rx_buf()
520 if (++q->pidx == q->size) { in recycle_rx_buf()
521 q->pidx = 0; in recycle_rx_buf()
968 struct tx_desc *d, unsigned int pidx, in write_wr_hdr_sgl() argument
976 struct tx_sw_desc *sd = &q->sdesc[pidx]; in write_wr_hdr_sgl()
1016 if (++pidx == q->size) { in write_wr_hdr_sgl()
1017 pidx = 0; in write_wr_hdr_sgl()
1057 unsigned int pidx, unsigned int gen, in write_tx_pkt_wr() argument
1063 struct tx_desc *d = &q->desc[pidx]; in write_tx_pkt_wr()
1094 q->sdesc[pidx].skb = NULL; in write_tx_pkt_wr()
1119 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1142 unsigned int ndesc, pidx, credits, gen, compl; in t3_eth_xmit() local
1193 pidx = q->pidx; in t3_eth_xmit()
1194 q->pidx += ndesc; in t3_eth_xmit()
1195 if (q->pidx >= q->size) { in t3_eth_xmit()
1196 q->pidx -= q->size; in t3_eth_xmit()
1238 write_tx_pkt_wr(adap, skb, pi, pidx, gen, q, ndesc, compl); in t3_eth_xmit()
1375 write_imm(&q->desc[q->pidx], skb, skb->len, q->gen); in ctrl_xmit()
1378 if (++q->pidx >= q->size) { in ctrl_xmit()
1379 q->pidx = 0; in ctrl_xmit()
1407 write_imm(&q->desc[q->pidx], skb, skb->len, q->gen); in restart_ctrlq()
1409 if (++q->pidx >= q->size) { in restart_ctrlq()
1410 q->pidx = 0; in restart_ctrlq()
1503 struct sge_txq *q, unsigned int pidx, in write_ofld_wr() argument
1509 struct tx_desc *d = &q->desc[pidx]; in write_ofld_wr()
1512 q->sdesc[pidx].skb = NULL; in write_ofld_wr()
1533 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, in write_ofld_wr()
1570 unsigned int ndesc = calc_tx_descs_ofld(skb), pidx, gen; in ofld_xmit() local
1587 pidx = q->pidx; in ofld_xmit()
1588 q->pidx += ndesc; in ofld_xmit()
1589 if (q->pidx >= q->size) { in ofld_xmit()
1590 q->pidx -= q->size; in ofld_xmit()
1595 write_ofld_wr(adap, skb, q, pidx, gen, ndesc); in ofld_xmit()
1618 unsigned int gen, pidx; in restart_offloadq() local
1634 pidx = q->pidx; in restart_offloadq()
1635 q->pidx += ndesc; in restart_offloadq()
1636 if (q->pidx >= q->size) { in restart_offloadq()
1637 q->pidx -= q->size; in restart_offloadq()
1643 write_ofld_wr(adap, skb, q, pidx, gen, ndesc); in restart_offloadq()