Lines Matching refs:tx_new
138 static int tx_new; /* TX descriptor ring pointer */ variable
369 tx_new = 0; in dc21x4x_init()
387 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
394 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) packet)); in dc21x4x_send()
395 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_LS | TD_FS | length); in dc21x4x_send()
396 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in dc21x4x_send()
400 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
407 if (le32_to_cpu(tx_ring[tx_new].status) & TD_ES) { in dc21x4x_send()
410 le32_to_cpu(tx_ring[tx_new].status)); in dc21x4x_send()
412 tx_ring[tx_new].status = 0x0; in dc21x4x_send()
419 tx_new = (tx_new+1) % NUM_TX_DESC; in dc21x4x_send()
494 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
501 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) &setup_frame[0])); in send_setup_frame()
502 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_SET| SETUP_FRAME_LEN); in send_setup_frame()
503 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in send_setup_frame()
507 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
514 if (le32_to_cpu(tx_ring[tx_new].status) != 0x7FFFFFFF) { in send_setup_frame()
515 printf("TX error status2 = 0x%08X\n", le32_to_cpu(tx_ring[tx_new].status)); in send_setup_frame()
517 tx_new = (tx_new+1) % NUM_TX_DESC; in send_setup_frame()