Lines Matching refs:tx_new
140 static int tx_new; /* TX descriptor ring pointer */ variable
371 tx_new = 0; in dc21x4x_init()
389 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
396 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) packet)); in dc21x4x_send()
397 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_LS | TD_FS | length); in dc21x4x_send()
398 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in dc21x4x_send()
402 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
409 if (le32_to_cpu(tx_ring[tx_new].status) & TD_ES) { in dc21x4x_send()
412 le32_to_cpu(tx_ring[tx_new].status)); in dc21x4x_send()
414 tx_ring[tx_new].status = 0x0; in dc21x4x_send()
421 tx_new = (tx_new+1) % NUM_TX_DESC; in dc21x4x_send()
496 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
503 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) &setup_frame[0])); in send_setup_frame()
504 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_SET| SETUP_FRAME_LEN); in send_setup_frame()
505 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in send_setup_frame()
509 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
516 if (le32_to_cpu(tx_ring[tx_new].status) != 0x7FFFFFFF) { in send_setup_frame()
517 printf("TX error status2 = 0x%08X\n", le32_to_cpu(tx_ring[tx_new].status)); in send_setup_frame()
519 tx_new = (tx_new+1) % NUM_TX_DESC; in send_setup_frame()