Lines Matching refs:tx_cur

477 	int tx_cur;  in eepro100_init()  local
518 tx_cur = tx_next; in eepro100_init()
521 cfg_cmd = (struct descriptor *) &tx_ring[tx_cur]; in eepro100_init()
534 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_init()
538 !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C); in eepro100_init()
546 if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) { in eepro100_init()
548 le16_to_cpu (tx_ring[tx_cur].status)); in eepro100_init()
554 tx_cur = tx_next; in eepro100_init()
557 ias_cmd = (struct descriptor *) &tx_ring[tx_cur]; in eepro100_init()
571 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_init()
574 for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C); in eepro100_init()
583 if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) { in eepro100_init()
585 le16_to_cpu (tx_ring[tx_cur].status)); in eepro100_init()
598 int tx_cur; in eepro100_send() local
605 tx_cur = tx_next; in eepro100_send()
608 tx_ring[tx_cur].command = cpu_to_le16 ( TxCB_CMD_TRANSMIT | in eepro100_send()
612 tx_ring[tx_cur].status = 0; in eepro100_send()
613 tx_ring[tx_cur].count = cpu_to_le32 (tx_threshold); in eepro100_send()
614 tx_ring[tx_cur].link = in eepro100_send()
616 tx_ring[tx_cur].tx_desc_addr = in eepro100_send()
617 cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_cur].tx_buf_addr0)); in eepro100_send()
618 tx_ring[tx_cur].tx_buf_addr0 = in eepro100_send()
620 tx_ring[tx_cur].tx_buf_size0 = cpu_to_le32 (length); in eepro100_send()
630 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_send()
633 for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C); in eepro100_send()
641 if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) { in eepro100_send()
643 le16_to_cpu (tx_ring[tx_cur].status)); in eepro100_send()