Lines Matching refs:tx_new

103 	int tx_new;	/* TX descriptor ring pointer */  member
298 for (i = 0; priv->tx_ring[priv->tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
306 priv->tx_ring[priv->tx_new].buf = cpu_to_le32(phys_to_bus(priv->devno, in send_setup_frame()
308 priv->tx_ring[priv->tx_new].des1 = cpu_to_le32(TD_TER | TD_SET | SETUP_FRAME_LEN); in send_setup_frame()
309 priv->tx_ring[priv->tx_new].status = cpu_to_le32(T_OWN); in send_setup_frame()
313 for (i = 0; priv->tx_ring[priv->tx_new].status & cpu_to_le32(T_OWN); i++) { in send_setup_frame()
321 if (le32_to_cpu(priv->tx_ring[priv->tx_new].status) != 0x7FFFFFFF) { in send_setup_frame()
323 le32_to_cpu(priv->tx_ring[priv->tx_new].status)); in send_setup_frame()
326 priv->tx_new = (priv->tx_new + 1) % NUM_TX_DESC; in send_setup_frame()
339 for (i = 0; priv->tx_ring[priv->tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send_common()
347 priv->tx_ring[priv->tx_new].buf = cpu_to_le32(phys_to_bus(priv->devno, in dc21x4x_send_common()
349 priv->tx_ring[priv->tx_new].des1 = cpu_to_le32(TD_TER | TD_LS | TD_FS | length); in dc21x4x_send_common()
350 priv->tx_ring[priv->tx_new].status = cpu_to_le32(T_OWN); in dc21x4x_send_common()
354 for (i = 0; priv->tx_ring[priv->tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send_common()
362 if (le32_to_cpu(priv->tx_ring[priv->tx_new].status) & TD_ES) { in dc21x4x_send_common()
363 priv->tx_ring[priv->tx_new].status = 0x0; in dc21x4x_send_common()
370 priv->tx_new = (priv->tx_new + 1) % NUM_TX_DESC; in dc21x4x_send_common()
445 priv->tx_new = 0; in dc21x4x_init_common()