Home
last modified time | relevance | path

Searched refs:sw_cons (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c244 u32 sw_cons, raw_cons; in bnxt_qplib_service_nq() local
253 sw_cons = HWQ_CMP(raw_cons, hwq); in bnxt_qplib_service_nq()
255 nqe = &nq_ptr[NQE_PG(sw_cons)][NQE_IDX(sw_cons)]; in bnxt_qplib_service_nq()
328 u32 sw_cons; in bnxt_qplib_nq_irq() local
331 sw_cons = HWQ_CMP(hwq->cons, hwq); in bnxt_qplib_nq_irq()
333 prefetch(&nq_ptr[NQE_PG(sw_cons)][NQE_IDX(sw_cons)]); in bnxt_qplib_nq_irq()
615 u32 sw_prod, sw_cons, count = 0; in bnxt_qplib_modify_srq() local
618 sw_cons = HWQ_CMP(srq_hwq->cons, srq_hwq); in bnxt_qplib_modify_srq()
620 count = sw_prod > sw_cons ? sw_prod - sw_cons : in bnxt_qplib_modify_srq()
621 srq_hwq->max_elements - sw_cons + sw_prod; in bnxt_qplib_modify_srq()
[all …]
Dqplib_rcfw.c372 u32 sw_cons, raw_cons; in bnxt_qplib_service_creq() local
379 sw_cons = HWQ_CMP(raw_cons, creq); in bnxt_qplib_service_creq()
381 creqe = &creq_ptr[get_creq_pg(sw_cons)][get_creq_idx(sw_cons)]; in bnxt_qplib_service_creq()
429 u32 sw_cons; in bnxt_qplib_creq_irq() local
432 sw_cons = HWQ_CMP(creq->cons, creq); in bnxt_qplib_creq_irq()
434 prefetch(&creq_ptr[get_creq_pg(sw_cons)][get_creq_idx(sw_cons)]); in bnxt_qplib_creq_irq()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbnx2.c2851 u16 hw_cons, sw_cons, sw_ring_cons; in bnx2_tx_int() local
2860 sw_cons = txr->tx_cons; in bnx2_tx_int()
2862 while (sw_cons != hw_cons) { in bnx2_tx_int()
2867 sw_ring_cons = BNX2_TX_RING_IDX(sw_cons); in bnx2_tx_int()
2879 last_idx = sw_cons + tx_buf->nr_frags + 1; in bnx2_tx_int()
2898 sw_cons = BNX2_NEXT_TX_BD(sw_cons); in bnx2_tx_int()
2900 tx_buf = &txr->tx_buf_ring[BNX2_TX_RING_IDX(sw_cons)]; in bnx2_tx_int()
2907 sw_cons = BNX2_NEXT_TX_BD(sw_cons); in bnx2_tx_int()
2915 if (hw_cons == sw_cons) in bnx2_tx_int()
2921 txr->tx_cons = sw_cons; in bnx2_tx_int()
[all …]
Dcnic.c2915 u16 hw_cons, sw_cons; in cnic_l2_completion() local
2929 sw_cons = cp->rx_cons; in cnic_l2_completion()
2930 while (sw_cons != hw_cons) { in cnic_l2_completion()
2933 cqe = &cqe_ring[sw_cons & BNX2X_MAX_RCQ_DESC_CNT]; in cnic_l2_completion()
2942 sw_cons = BNX2X_NEXT_RCQE(sw_cons); in cnic_l2_completion()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c276 u16 hw_cons, sw_cons, bd_cons = txdata->tx_bd_cons; in bnx2x_tx_int() local
286 sw_cons = txdata->tx_pkt_cons; in bnx2x_tx_int()
291 while (sw_cons != hw_cons) { in bnx2x_tx_int()
294 pkt_cons = TX_BD(sw_cons); in bnx2x_tx_int()
298 txdata->txq_index, hw_cons, sw_cons, pkt_cons); in bnx2x_tx_int()
303 sw_cons++; in bnx2x_tx_int()
308 txdata->tx_pkt_cons = sw_cons; in bnx2x_tx_int()
1500 u16 sw_cons = txdata->tx_pkt_cons; in bnx2x_free_tx_skbs_queue() local
1502 while (sw_cons != sw_prod) { in bnx2x_free_tx_skbs_queue()
1503 bnx2x_free_tx_pkt(bp, txdata, TX_BD(sw_cons), in bnx2x_free_tx_skbs_queue()
[all …]
Dbnx2x_main.c5442 u16 hw_cons, sw_cons, sw_prod; in bnx2x_eq_int() local
5466 sw_cons = bp->eq_cons; in bnx2x_eq_int()
5470 hw_cons, sw_cons, atomic_read(&bp->eq_spq_left)); in bnx2x_eq_int()
5472 for (; sw_cons != hw_cons; in bnx2x_eq_int()
5473 sw_prod = NEXT_EQ_IDX(sw_prod), sw_cons = NEXT_EQ_IDX(sw_cons)) { in bnx2x_eq_int()
5475 elem = &bp->eq_ring[EQ_DESC(sw_cons)]; in bnx2x_eq_int()
5653 bp->eq_cons = sw_cons; in bnx2x_eq_int()