Lines Matching refs:tx_index
639 int tx_index; in amd8111e_tx() local
643 tx_index = lp->tx_complete_idx & TX_RING_DR_MOD_MASK; in amd8111e_tx()
644 status = le16_to_cpu(lp->tx_ring[tx_index].tx_flags); in amd8111e_tx()
649 lp->tx_ring[tx_index].buff_phy_addr = 0; in amd8111e_tx()
652 if (lp->tx_skbuff[tx_index]) { in amd8111e_tx()
653 pci_unmap_single(lp->pci_dev, lp->tx_dma_addr[tx_index], in amd8111e_tx()
654 lp->tx_skbuff[tx_index]->len, in amd8111e_tx()
656 dev_consume_skb_irq(lp->tx_skbuff[tx_index]); in amd8111e_tx()
657 lp->tx_skbuff[tx_index] = NULL; in amd8111e_tx()
658 lp->tx_dma_addr[tx_index] = 0; in amd8111e_tx()
664 le16_to_cpu(lp->tx_ring[tx_index].buff_count); in amd8111e_tx()
1235 int tx_index = lp->tx_idx & TX_BUFF_MOD_MASK; in amd8111e_tx_queue_avail() local
1236 if (lp->tx_skbuff[tx_index]) in amd8111e_tx_queue_avail()
1252 int tx_index; in amd8111e_start_xmit() local
1257 tx_index = lp->tx_idx & TX_RING_DR_MOD_MASK; in amd8111e_start_xmit()
1259 lp->tx_ring[tx_index].buff_count = cpu_to_le16(skb->len); in amd8111e_start_xmit()
1261 lp->tx_skbuff[tx_index] = skb; in amd8111e_start_xmit()
1262 lp->tx_ring[tx_index].tx_flags = 0; in amd8111e_start_xmit()
1266 lp->tx_ring[tx_index].tag_ctrl_cmd |= in amd8111e_start_xmit()
1268 lp->tx_ring[tx_index].tag_ctrl_info = in amd8111e_start_xmit()
1273 lp->tx_dma_addr[tx_index] = in amd8111e_start_xmit()
1275 lp->tx_ring[tx_index].buff_phy_addr = in amd8111e_start_xmit()
1276 cpu_to_le32(lp->tx_dma_addr[tx_index]); in amd8111e_start_xmit()
1280 lp->tx_ring[tx_index].tx_flags |= in amd8111e_start_xmit()