Lines Matching refs:tx_ring
200 static struct TxFD tx_ring[NUM_TX_DESC]; /* TX descriptor ring */ variable
524 cfg_cmd = (struct descriptor *) &tx_ring[tx_cur]; in eepro100_init()
527 cfg_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_init()
537 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_init()
541 !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C); in eepro100_init()
549 if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) { in eepro100_init()
551 le16_to_cpu (tx_ring[tx_cur].status)); in eepro100_init()
560 ias_cmd = (struct descriptor *) &tx_ring[tx_cur]; in eepro100_init()
563 ias_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_init()
574 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_init()
577 for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C); in eepro100_init()
586 if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) { in eepro100_init()
588 le16_to_cpu (tx_ring[tx_cur].status)); in eepro100_init()
611 tx_ring[tx_cur].command = cpu_to_le16 ( TxCB_CMD_TRANSMIT | in eepro100_send()
615 tx_ring[tx_cur].status = 0; in eepro100_send()
616 tx_ring[tx_cur].count = cpu_to_le32 (tx_threshold); in eepro100_send()
617 tx_ring[tx_cur].link = in eepro100_send()
618 cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_send()
619 tx_ring[tx_cur].tx_desc_addr = in eepro100_send()
620 cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_cur].tx_buf_addr0)); in eepro100_send()
621 tx_ring[tx_cur].tx_buf_addr0 = in eepro100_send()
623 tx_ring[tx_cur].tx_buf_size0 = cpu_to_le32 (length); in eepro100_send()
633 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_send()
636 for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C); in eepro100_send()
644 if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) { in eepro100_send()
646 le16_to_cpu (tx_ring[tx_cur].status)); in eepro100_send()
899 tx_ring[i].status = 0; in purge_tx_ring()
900 tx_ring[i].command = 0; in purge_tx_ring()
901 tx_ring[i].link = 0; in purge_tx_ring()
902 tx_ring[i].tx_desc_addr = 0; in purge_tx_ring()
903 tx_ring[i].count = 0; in purge_tx_ring()
905 tx_ring[i].tx_buf_addr0 = 0; in purge_tx_ring()
906 tx_ring[i].tx_buf_size0 = 0; in purge_tx_ring()
907 tx_ring[i].tx_buf_addr1 = 0; in purge_tx_ring()
908 tx_ring[i].tx_buf_size1 = 0; in purge_tx_ring()