Lines Matching defs:efx
19 #include "efx.h"
35 ef4_nic_alloc_buffer(tx_queue->efx, page_buf, PAGE_SIZE,
57 struct device *dma_dev = &tx_queue->efx->pci_dev->dev;
72 netif_vdbg(tx_queue->efx, tx_done, tx_queue->efx->net_dev,
81 unsigned int ef4_tx_max_skb_descs(struct ef4_nic *efx)
95 if (EF4_WORKAROUND_5391(efx))
110 struct ef4_nic *efx = txq1->efx;
115 if (likely(fill_level < efx->txq_stop_thresh))
120 * validly be >= efx->txq_entries). Now try again using
139 EF4_BUG_ON_PARANOID(fill_level >= efx->txq_entries);
140 if (likely(fill_level < efx->txq_stop_thresh)) {
142 if (likely(!efx->loopback_selftest))
184 const struct ef4_nic_type *nic_type = tx_queue->efx->type;
208 struct ef4_nic *efx = tx_queue->efx;
209 struct device *dma_dev = &efx->pci_dev->dev;
359 struct ef4_nic *efx = tx_queue->efx;
370 netif_err(efx, tx_err, efx->net_dev,
373 ef4_schedule_reset(efx, RESET_TYPE_TX_SKIP);
396 struct ef4_nic *efx = netdev_priv(net_dev);
404 if (index >= efx->n_tx_channels) {
405 index -= efx->n_tx_channels;
408 tx_queue = ef4_get_tx_queue(efx, index, type);
415 struct ef4_nic *efx = tx_queue->efx;
419 netdev_get_tx_queue(efx->net_dev,
422 efx->n_tx_channels : 0));
428 struct ef4_nic *efx = netdev_priv(net_dev);
440 if (ef4_nic_rev(efx) < EF4_REV_FALCON_B0 || num_tc > EF4_MAX_TX_TC)
449 net_dev->tc_to_txq[tc].offset = tc * efx->n_tx_channels;
450 net_dev->tc_to_txq[tc].count = efx->n_tx_channels;
455 ef4_for_each_channel(channel, efx) {
477 efx->n_tx_channels);
494 struct ef4_nic *efx = tx_queue->efx;
513 likely(efx->port_enabled) &&
514 likely(netif_device_present(efx->net_dev))) {
518 if (fill_level <= efx->txq_wake_thresh)
540 struct ef4_nic *efx = tx_queue->efx;
545 entries = max(roundup_pow_of_two(efx->txq_entries), EF4_MIN_DMAQ_SIZE);
549 netif_dbg(efx, probe, efx->net_dev,
551 tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask);
584 struct ef4_nic *efx = tx_queue->efx;
586 netif_dbg(efx, drv, efx->net_dev,
598 tx_queue->tx_min_size = EF4_WORKAROUND_15592(efx) ? 33 : 0;
610 netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev,
635 netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev,
641 ef4_nic_free_buffer(tx_queue->efx,