Lines Matching +full:tx +full:- +full:sec
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
32 * the value of the rate limit is non-zero
38 #define IAVF_INTRL_8K 125 /* 8000 ints/sec */
39 #define IAVF_INTRL_62K 16 /* 62500 ints/sec */
40 #define IAVF_INTRL_83K 12 /* 83333 ints/sec */
86 * iavf_test_staterr - tests bits in Rx descriptor status and error fields
98 return !!(rx_desc->wb.qword1.status_error_len & in iavf_test_staterr()
106 if ((i) == (r)->count) \
108 r->next_to_clean = i; \
114 if ((i) == (r)->count) \
128 /* The size limit for a transmit buffer in a descriptor is (16K - 1).
133 #define IAVF_MAX_DATA_PER_TXD (16 * 1024 - 1)
135 (IAVF_MAX_DATA_PER_TXD & ~(IAVF_MAX_READ_REQ_SIZE - 1))
138 * iavf_txd_use_count - estimate the number of descriptors needed for Tx
143 * though each descriptor can take up to 16K - 1 bytes of aligned memory.
154 * accurate as we have 4K - 1 of wiggle room that we can fit into the last
170 /* Tx Descriptors needed, worst case */
240 struct device *dev; /* Used on Tx for DMA mapping */
281 int prev_pkt_ctr; /* For Tx stall detection */
320 for (pos = (head).ring; pos != NULL; pos = pos->next)
334 * iavf_xmit_descriptor_count - calculate number of Tx descriptors needed
343 const skb_frag_t *frag = &skb_shinfo(skb)->frags[0]; in iavf_xmit_descriptor_count()
344 unsigned int nr_frags = skb_shinfo(skb)->nr_frags; in iavf_xmit_descriptor_count()
350 if (!nr_frags--) in iavf_xmit_descriptor_count()
360 * iavf_maybe_stop_tx - 1st level check for Tx stop conditions
374 * iavf_chk_linearize - Check if there are more than 8 fragments per packet
378 * Note: Our HW can't scatter-gather more than 8 fragments to build
395 * txring_txq - helper to convert from a ring to a queue
396 * @ring: Tx ring to find the netdev equivalent of
400 return netdev_get_tx_queue(ring->netdev, ring->queue_index); in txring_txq()