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))
111 struct ef4_nic *efx = txq1->efx;
116 if (likely(fill_level < efx->txq_stop_thresh))
121 * validly be >= efx->txq_entries). Now try again using
140 EF4_BUG_ON_PARANOID(fill_level >= efx->txq_entries);
141 if (likely(fill_level < efx->txq_stop_thresh)) {
143 if (likely(!efx->loopback_selftest))
185 const struct ef4_nic_type *nic_type = tx_queue->efx->type;
209 struct ef4_nic *efx = tx_queue->efx;
210 struct device *dma_dev = &efx->pci_dev->dev;
360 struct ef4_nic *efx = tx_queue->efx;
371 netif_err(efx, tx_err, efx->net_dev,
374 ef4_schedule_reset(efx, RESET_TYPE_TX_SKIP);
397 struct ef4_nic *efx = netdev_priv(net_dev);
405 if (index >= efx->n_tx_channels) {
406 index -= efx->n_tx_channels;
409 tx_queue = ef4_get_tx_queue(efx, index, type);
416 struct ef4_nic *efx = tx_queue->efx;
420 netdev_get_tx_queue(efx->net_dev,
423 efx->n_tx_channels : 0));
429 struct ef4_nic *efx = netdev_priv(net_dev);
441 if (ef4_nic_rev(efx) < EF4_REV_FALCON_B0 || num_tc > EF4_MAX_TX_TC)
450 net_dev->tc_to_txq[tc].offset = tc * efx->n_tx_channels;
451 net_dev->tc_to_txq[tc].count = efx->n_tx_channels;
456 ef4_for_each_channel(channel, efx) {
478 efx->n_tx_channels);
495 struct ef4_nic *efx = tx_queue->efx;
514 likely(efx->port_enabled) &&
515 likely(netif_device_present(efx->net_dev))) {
519 if (fill_level <= efx->txq_wake_thresh)
541 struct ef4_nic *efx = tx_queue->efx;
546 entries = max(roundup_pow_of_two(efx->txq_entries), EF4_MIN_DMAQ_SIZE);
550 netif_dbg(efx, probe, efx->net_dev,
552 tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask);
585 struct ef4_nic *efx = tx_queue->efx;
587 netif_dbg(efx, drv, efx->net_dev,
599 tx_queue->tx_min_size = EF4_WORKAROUND_15592(efx) ? 33 : 0;
611 netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev,
636 netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev,
642 ef4_nic_free_buffer(tx_queue->efx,