• Home
  • Raw
  • Download

Lines Matching refs:tx_ring

702 	struct ixgb_desc_ring *txdr = &adapter->tx_ring;  in ixgb_setup_tx_resources()
739 u64 tdba = adapter->tx_ring.dma; in ixgb_configure_tx()
740 u32 tdlen = adapter->tx_ring.count * sizeof(struct ixgb_tx_desc); in ixgb_configure_tx()
916 vfree(adapter->tx_ring.buffer_info); in ixgb_free_tx_resources()
917 adapter->tx_ring.buffer_info = NULL; in ixgb_free_tx_resources()
919 dma_free_coherent(&pdev->dev, adapter->tx_ring.size, in ixgb_free_tx_resources()
920 adapter->tx_ring.desc, adapter->tx_ring.dma); in ixgb_free_tx_resources()
922 adapter->tx_ring.desc = NULL; in ixgb_free_tx_resources()
957 struct ixgb_desc_ring *tx_ring = &adapter->tx_ring; in ixgb_clean_tx_ring() local
964 for (i = 0; i < tx_ring->count; i++) { in ixgb_clean_tx_ring()
965 buffer_info = &tx_ring->buffer_info[i]; in ixgb_clean_tx_ring()
969 size = sizeof(struct ixgb_buffer) * tx_ring->count; in ixgb_clean_tx_ring()
970 memset(tx_ring->buffer_info, 0, size); in ixgb_clean_tx_ring()
974 memset(tx_ring->desc, 0, tx_ring->size); in ixgb_clean_tx_ring()
976 tx_ring->next_to_use = 0; in ixgb_clean_tx_ring()
977 tx_ring->next_to_clean = 0; in ixgb_clean_tx_ring()
1157 struct ixgb_desc_ring *txdr = &adapter->tx_ring; in ixgb_watchdog()
1249 i = adapter->tx_ring.next_to_use; in ixgb_tso()
1250 context_desc = IXGB_CONTEXT_DESC(adapter->tx_ring, i); in ixgb_tso()
1251 buffer_info = &adapter->tx_ring.buffer_info[i]; in ixgb_tso()
1272 if (++i == adapter->tx_ring.count) i = 0; in ixgb_tso()
1273 adapter->tx_ring.next_to_use = i; in ixgb_tso()
1293 i = adapter->tx_ring.next_to_use; in ixgb_tx_csum()
1294 context_desc = IXGB_CONTEXT_DESC(adapter->tx_ring, i); in ixgb_tx_csum()
1295 buffer_info = &adapter->tx_ring.buffer_info[i]; in ixgb_tx_csum()
1310 if (++i == adapter->tx_ring.count) i = 0; in ixgb_tx_csum()
1311 adapter->tx_ring.next_to_use = i; in ixgb_tx_csum()
1326 struct ixgb_desc_ring *tx_ring = &adapter->tx_ring; in ixgb_tx_map() local
1335 i = tx_ring->next_to_use; in ixgb_tx_map()
1338 buffer_info = &tx_ring->buffer_info[i]; in ixgb_tx_map()
1361 if (i == tx_ring->count) in ixgb_tx_map()
1375 if (i == tx_ring->count) in ixgb_tx_map()
1378 buffer_info = &tx_ring->buffer_info[i]; in ixgb_tx_map()
1402 tx_ring->buffer_info[i].skb = skb; in ixgb_tx_map()
1403 tx_ring->buffer_info[first].next_to_watch = i; in ixgb_tx_map()
1415 i += tx_ring->count; in ixgb_tx_map()
1417 buffer_info = &tx_ring->buffer_info[i]; in ixgb_tx_map()
1427 struct ixgb_desc_ring *tx_ring = &adapter->tx_ring; in ixgb_tx_queue() local
1446 i = tx_ring->next_to_use; in ixgb_tx_queue()
1449 buffer_info = &tx_ring->buffer_info[i]; in ixgb_tx_queue()
1450 tx_desc = IXGB_TX_DESC(*tx_ring, i); in ixgb_tx_queue()
1458 if (++i == tx_ring->count) i = 0; in ixgb_tx_queue()
1470 tx_ring->next_to_use = i; in ixgb_tx_queue()
1477 struct ixgb_desc_ring *tx_ring = &adapter->tx_ring; in __ixgb_maybe_stop_tx() local
1487 if (likely(IXGB_DESC_UNUSED(tx_ring) < size)) in __ixgb_maybe_stop_tx()
1497 struct ixgb_desc_ring *tx_ring, int size) in ixgb_maybe_stop_tx() argument
1499 if (likely(IXGB_DESC_UNUSED(tx_ring) >= size)) in ixgb_maybe_stop_tx()
1532 if (unlikely(ixgb_maybe_stop_tx(netdev, &adapter->tx_ring, in ixgb_xmit_frame()
1541 first = adapter->tx_ring.next_to_use; in ixgb_xmit_frame()
1559 ixgb_maybe_stop_tx(netdev, &adapter->tx_ring, DESC_NEEDED); in ixgb_xmit_frame()
1563 adapter->tx_ring.buffer_info[first].time_stamp = 0; in ixgb_xmit_frame()
1564 adapter->tx_ring.next_to_use = first; in ixgb_xmit_frame()
1844 struct ixgb_desc_ring *tx_ring = &adapter->tx_ring; in ixgb_clean_tx_irq() local
1851 i = tx_ring->next_to_clean; in ixgb_clean_tx_irq()
1852 eop = tx_ring->buffer_info[i].next_to_watch; in ixgb_clean_tx_irq()
1853 eop_desc = IXGB_TX_DESC(*tx_ring, eop); in ixgb_clean_tx_irq()
1859 tx_desc = IXGB_TX_DESC(*tx_ring, i); in ixgb_clean_tx_irq()
1860 buffer_info = &tx_ring->buffer_info[i]; in ixgb_clean_tx_irq()
1872 if (++i == tx_ring->count) i = 0; in ixgb_clean_tx_irq()
1875 eop = tx_ring->buffer_info[i].next_to_watch; in ixgb_clean_tx_irq()
1876 eop_desc = IXGB_TX_DESC(*tx_ring, eop); in ixgb_clean_tx_irq()
1879 tx_ring->next_to_clean = i; in ixgb_clean_tx_irq()
1882 IXGB_DESC_UNUSED(tx_ring) >= DESC_NEEDED)) { in ixgb_clean_tx_irq()
1898 if (tx_ring->buffer_info[eop].time_stamp && in ixgb_clean_tx_irq()
1899 time_after(jiffies, tx_ring->buffer_info[eop].time_stamp + HZ) in ixgb_clean_tx_irq()
1916 tx_ring->next_to_use, in ixgb_clean_tx_irq()
1917 tx_ring->next_to_clean, in ixgb_clean_tx_irq()
1918 tx_ring->buffer_info[eop].time_stamp, in ixgb_clean_tx_irq()