Lines Matching refs:tx_new
156 static int tx_new; /* TX descriptor ring pointer */ variable
377 tx_new = 0; in dc21x4x_init()
395 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
402 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) packet)); in dc21x4x_send()
403 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_LS | TD_FS | length); in dc21x4x_send()
404 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in dc21x4x_send()
408 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
415 if (le32_to_cpu(tx_ring[tx_new].status) & TD_ES) { in dc21x4x_send()
418 le32_to_cpu(tx_ring[tx_new].status)); in dc21x4x_send()
420 tx_ring[tx_new].status = 0x0; in dc21x4x_send()
427 tx_new = (tx_new+1) % NUM_TX_DESC; in dc21x4x_send()
501 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
508 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) &setup_frame[0])); in send_setup_frame()
509 tx_ring[tx_new].des1 = cpu_to_le32(TD_TER | TD_SET| SETUP_FRAME_LEN); in send_setup_frame()
510 tx_ring[tx_new].status = cpu_to_le32(T_OWN); in send_setup_frame()
514 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
521 if (le32_to_cpu(tx_ring[tx_new].status) != 0x7FFFFFFF) { in send_setup_frame()
522 printf("TX error status2 = 0x%08X\n", le32_to_cpu(tx_ring[tx_new].status)); in send_setup_frame()
524 tx_new = (tx_new+1) % NUM_TX_DESC; in send_setup_frame()