Lines Matching defs:tx_done_idx
360 u16 tx_done_idx;
398 //free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC
400 (((NR_TX_DESC-2 + dev->tx_done_idx - dev->tx_free_idx) % NR_TX_DESC) > MIN_TX_DESC_FREE)
893 u32 cmdsts, tx_done_idx;
897 tx_done_idx = dev->tx_done_idx;
898 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE);
900 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
901 tx_done_idx, dev->tx_free_idx, le32_to_cpu(desc[DESC_CMDSTS]));
902 while ((tx_done_idx != dev->tx_free_idx) &&
915 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
916 tx_done_idx, dev->tx_free_idx, cmdsts);
917 skb = dev->tx_skbs[tx_done_idx];
918 dev->tx_skbs[tx_done_idx] = NULL;
936 tx_done_idx = (tx_done_idx + 1) % NR_TX_DESC;
937 dev->tx_done_idx = tx_done_idx;
940 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE);
986 unsigned tx_done_idx, last_idx;
1006 tx_done_idx = dev->tx_done_idx;
1007 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC;
1014 if (dev->tx_done_idx != tx_done_idx) {
1105 if (stopped && (dev->tx_done_idx != tx_done_idx) && start_tx_okay(dev))
1406 if ((dev->tx_done_idx == dev->tx_free_idx) &&
1421 if ((ISR_TXIDLE & isr) && (dev->tx_done_idx != dev->tx_free_idx)) {
1479 u32 tx_done_idx;
1485 tx_done_idx = dev->tx_done_idx;
1486 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE);
1488 printk(KERN_INFO "%s: tx_timeout: tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
1490 tx_done_idx, dev->tx_free_idx, le32_to_cpu(desc[DESC_CMDSTS]));
1503 tx_done_idx = dev->tx_done_idx;
1504 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE);
1506 printk(KERN_INFO "%s: after: tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
1508 tx_done_idx, dev->tx_free_idx, le32_to_cpu(desc[DESC_CMDSTS]));
1520 dev->tx_done_idx, dev->tx_free_idx, atomic_read(&dev->nr_tx_skbs)
1525 dev->tx_done_idx != dev->tx_free_idx) {
1528 dev->tx_done_idx, dev->tx_free_idx,
1560 dev->tx_done_idx = 0;