Lines Matching refs:sw_cons
2844 u16 hw_cons, sw_cons, sw_ring_cons;
2853 sw_cons = txr->tx_cons;
2855 while (sw_cons != hw_cons) {
2860 sw_ring_cons = BNX2_TX_RING_IDX(sw_cons);
2872 last_idx = sw_cons + tx_buf->nr_frags + 1;
2891 sw_cons = BNX2_NEXT_TX_BD(sw_cons);
2893 tx_buf = &txr->tx_buf_ring[BNX2_TX_RING_IDX(sw_cons)];
2900 sw_cons = BNX2_NEXT_TX_BD(sw_cons);
2908 if (hw_cons == sw_cons)
2914 txr->tx_cons = sw_cons;
3143 u16 hw_cons, sw_cons, sw_ring_cons, sw_prod, sw_ring_prod;
3151 sw_cons = rxr->rx_cons;
3158 while (sw_cons != hw_cons) {
3167 sw_ring_cons = BNX2_RX_RING_IDX(sw_cons);
3183 next_ring_idx = BNX2_RX_RING_IDX(BNX2_NEXT_RX_BD(sw_cons));
3278 sw_cons = BNX2_NEXT_RX_BD(sw_cons);
3285 if (sw_cons == hw_cons) {
3290 rxr->rx_cons = sw_cons;