Lines Matching defs:tx_ring
555 struct nx_host_tx_ring *tx_ring;
562 tx_ring = adapter->tx_ring;
563 __netif_tx_lock_bh(tx_ring->txq);
565 producer = tx_ring->producer;
567 if (nr_desc >= netxen_tx_avail(tx_ring)) {
568 netif_tx_stop_queue(tx_ring->txq);
570 if (netxen_tx_avail(tx_ring) > nr_desc) {
571 if (netxen_tx_avail(tx_ring) > TX_STOP_THRESH)
572 netif_tx_wake_queue(tx_ring->txq);
574 __netif_tx_unlock_bh(tx_ring->txq);
580 pbuf = &tx_ring->cmd_buf_arr[producer];
584 memcpy(&tx_ring->desc_head[producer],
587 producer = get_next_index(producer, tx_ring->num_desc);
592 tx_ring->producer = producer;
594 netxen_nic_update_cmd_producer(adapter, tx_ring);
596 __netif_tx_unlock_bh(tx_ring->txq);