Searched refs:tx_done_idx (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/net/ethernet/natsemi/ |
H A D | ns83820.c | 449 u16 tx_done_idx; member in struct:ns83820 487 //free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC 489 (((NR_TX_DESC-2 + dev->tx_done_idx - dev->tx_free_idx) % NR_TX_DESC) > MIN_TX_DESC_FREE) 971 u32 cmdsts, tx_done_idx; do_tx_done() local 975 tx_done_idx = dev->tx_done_idx; do_tx_done() 976 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); do_tx_done() 978 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n", do_tx_done() 979 tx_done_idx, dev->tx_free_idx, le32_to_cpu(desc[DESC_CMDSTS])); do_tx_done() 980 while ((tx_done_idx != dev->tx_free_idx) && do_tx_done() 993 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n", do_tx_done() 994 tx_done_idx, dev->tx_free_idx, cmdsts); do_tx_done() 995 skb = dev->tx_skbs[tx_done_idx]; do_tx_done() 996 dev->tx_skbs[tx_done_idx] = NULL; do_tx_done() 1014 tx_done_idx = (tx_done_idx + 1) % NR_TX_DESC; do_tx_done() 1015 dev->tx_done_idx = tx_done_idx; do_tx_done() 1018 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); do_tx_done() 1064 unsigned tx_done_idx, last_idx; ns83820_hard_start_xmit() local 1084 tx_done_idx = dev->tx_done_idx; ns83820_hard_start_xmit() 1085 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; ns83820_hard_start_xmit() 1092 if (dev->tx_done_idx != tx_done_idx) { ns83820_hard_start_xmit() 1182 if (stopped && (dev->tx_done_idx != tx_done_idx) && start_tx_okay(dev)) ns83820_hard_start_xmit() 1490 if ((dev->tx_done_idx == dev->tx_free_idx) && ns83820_do_isr() 1505 if ((ISR_TXIDLE & isr) && (dev->tx_done_idx != dev->tx_free_idx)) { ns83820_do_isr() 1565 u32 tx_done_idx; ns83820_tx_timeout() local 1571 tx_done_idx = dev->tx_done_idx; ns83820_tx_timeout() 1572 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); ns83820_tx_timeout() 1574 printk(KERN_INFO "%s: tx_timeout: tx_done_idx=%d free_idx=%d cmdsts=%08x\n", ns83820_tx_timeout() 1576 tx_done_idx, dev->tx_free_idx, le32_to_cpu(desc[DESC_CMDSTS])); ns83820_tx_timeout() 1589 tx_done_idx = dev->tx_done_idx; ns83820_tx_timeout() 1590 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); ns83820_tx_timeout() 1592 printk(KERN_INFO "%s: after: tx_done_idx=%d free_idx=%d cmdsts=%08x\n", ns83820_tx_timeout() 1594 tx_done_idx, dev->tx_free_idx, le32_to_cpu(desc[DESC_CMDSTS])); ns83820_tx_timeout() 1606 dev->tx_done_idx, dev->tx_free_idx, atomic_read(&dev->nr_tx_skbs) ns83820_tx_watch() 1611 dev->tx_done_idx != dev->tx_free_idx) { ns83820_tx_watch() 1614 dev->tx_done_idx, dev->tx_free_idx, ns83820_tx_watch() 1646 dev->tx_done_idx = 0; ns83820_open()
|
Completed in 48 milliseconds