Lines Matching refs:sw_idx
6543 u32 sw_idx = tnapi->tx_cons; in tg3_tx() local
6553 while (sw_idx != hw_idx) { in tg3_tx()
6554 struct tg3_tx_ring_info *ri = &tnapi->tx_buffers[sw_idx]; in tg3_tx()
6563 if (tnapi->tx_ring[sw_idx].len_flags & TXD_FLAG_HWTSTAMP) { in tg3_tx()
6582 sw_idx = NEXT_TX(sw_idx); in tg3_tx()
6583 ri = &tnapi->tx_buffers[sw_idx]; in tg3_tx()
6586 sw_idx = NEXT_TX(sw_idx); in tg3_tx()
6589 ri = &tnapi->tx_buffers[sw_idx]; in tg3_tx()
6590 if (unlikely(ri->skb != NULL || sw_idx == hw_idx)) in tg3_tx()
6600 sw_idx = NEXT_TX(sw_idx); in tg3_tx()
6601 ri = &tnapi->tx_buffers[sw_idx]; in tg3_tx()
6604 sw_idx = NEXT_TX(sw_idx); in tg3_tx()
6620 tnapi->tx_cons = sw_idx; in tg3_tx()
6817 u32 sw_idx = tnapi->rx_rcb_ptr; in tg3_rx() local
6832 while (sw_idx != hw_idx && budget > 0) { in tg3_rx()
6834 struct tg3_rx_buffer_desc *desc = &tnapi->rx_rcb[sw_idx]; in tg3_rx()
6968 sw_idx++; in tg3_rx()
6969 sw_idx &= tp->rx_ret_ring_mask; in tg3_rx()
6972 if (sw_idx == hw_idx) { in tg3_rx()
6979 tnapi->rx_rcb_ptr = sw_idx; in tg3_rx()
6980 tw32_rx_mbox(tnapi->consmbox, sw_idx); in tg3_rx()