Lines Matching refs:tx_new
137 static int tx_new; /* TX descriptor ring pointer */ variable
368 tx_new = 0; in dc21x4x_init()
386 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
393 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) packet)); in dc21x4x_send()
394 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_LS | TD_FS | length); in dc21x4x_send()
395 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in dc21x4x_send()
399 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
406 if (le32_to_cpu(tx_ring[tx_new].status) & TD_ES) { in dc21x4x_send()
409 le32_to_cpu(tx_ring[tx_new].status)); in dc21x4x_send()
411 tx_ring[tx_new].status = 0x0; in dc21x4x_send()
418 tx_new = (tx_new+1) % NUM_TX_DESC; in dc21x4x_send()
493 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
500 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) &setup_frame[0])); in send_setup_frame()
501 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_SET| SETUP_FRAME_LEN); in send_setup_frame()
502 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in send_setup_frame()
506 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
513 if (le32_to_cpu(tx_ring[tx_new].status) != 0x7FFFFFFF) { in send_setup_frame()
514 printf("TX error status2 = 0x%08X\n", le32_to_cpu(tx_ring[tx_new].status)); in send_setup_frame()
516 tx_new = (tx_new+1) % NUM_TX_DESC; in send_setup_frame()