Lines Matching +full:prefetch +full:- +full:dma
1 /* SPDX-License-Identifier: GPL-2.0 */
82 struct device *dev; /* device for dma mapping */
90 dma_addr_t dma; /* phys address of the ring */ member
235 struct timespec64 prev_ptp_time; /* Pre-reset PTP clock */
352 * PTHRESH - MAC will consider prefetch if it has fewer than this number of
354 * Setting this to 0 disables RX descriptor prefetch.
355 * HTHRESH - MAC will only prefetch if there are at least this many descriptors
358 * WTHRESH - RX descriptor writeback threshold - MAC will delay writing back
378 (SKB_WITH_OVERHEAD(IGC_RXBUFFER_2048) - IGC_SKB_PAD - IGC_TS_HDR_LEN)
380 #define IGC_MAX_FRAME_BUILD_SKB (IGC_RXBUFFER_2048 - IGC_TS_HDR_LEN)
390 /* igc_test_staterr - tests bits within Rx descriptor status and error fields */
394 return rx_desc->wb.upper.status_error & cpu_to_le32(stat_err_bits); in igc_test_staterr()
436 * so a DMA handle can be stored along with the buffer
450 DEFINE_DMA_UNMAP_ADDR(dma);
458 dma_addr_t dma; member
540 /* igc_desc_unused - calculate if we have unused descriptors */
543 u16 ntc = ring->next_to_clean; in igc_desc_unused()
544 u16 ntu = ring->next_to_use; in igc_desc_unused()
546 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in igc_desc_unused()
551 if (hw->phy.ops.get_phy_info) in igc_get_phy_info()
552 return hw->phy.ops.get_phy_info(hw); in igc_get_phy_info()
559 if (hw->phy.ops.reset) in igc_reset_phy()
560 return hw->phy.ops.reset(hw); in igc_reset_phy()
567 return netdev_get_tx_queue(tx_ring->netdev, tx_ring->queue_index); in txring_txq()
581 test_bit(IGC_RING_FLAG_RX_3K_BUFFER, &(ring)->flags)
583 set_bit(IGC_RING_FLAG_RX_3K_BUFFER, &(ring)->flags)
585 clear_bit(IGC_RING_FLAG_RX_3K_BUFFER, &(ring)->flags)
588 test_bit(IGC_RING_FLAG_RX_BUILD_SKB_ENABLED, &(ring)->flags)
613 if (hw->phy.ops.read_reg) in igc_read_phy_reg()
614 return hw->phy.ops.read_reg(hw, offset, data); in igc_read_phy_reg()
616 return -EOPNOTSUPP; in igc_read_phy_reg()
640 (&(((union igc_adv_rx_desc *)((R)->desc))[i]))
642 (&(((union igc_adv_tx_desc *)((R)->desc))[i]))
644 (&(((struct igc_adv_tx_context_desc *)((R)->desc))[i]))