Lines Matching defs:efx

27 	return INDIRECT_CALL_2(tx_queue->efx->type->tx_enqueue,
44 INDIRECT_CALL_2(channel->efx->type->rx_packet,
48 static inline bool efx_rx_buf_hash_valid(struct efx_nic *efx, const u8 *prefix)
50 if (efx->type->rx_buf_hash_valid)
51 return INDIRECT_CALL_1(efx->type->rx_buf_hash_valid,
65 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx))
70 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \
73 static inline bool efx_rss_enabled(struct efx_nic *efx)
75 return efx->rss_spread > 1;
82 * @efx: NIC in which to insert the filter
105 static inline s32 efx_filter_insert_filter(struct efx_nic *efx,
109 return efx->type->filter_insert(efx, spec, replace_equal);
114 * @efx: NIC from which to remove the filter
121 static inline int efx_filter_remove_id_safe(struct efx_nic *efx,
125 return efx->type->filter_remove_safe(efx, priority, filter_id);
130 * @efx: NIC from which to remove the filter
139 efx_filter_get_filter_safe(struct efx_nic *efx,
143 return efx->type->filter_get_safe(efx, priority, filter_id, spec);
146 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx,
149 return efx->type->filter_count_rx_used(efx, priority);
151 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx)
153 return efx->type->filter_get_rx_id_limit(efx);
155 static inline s32 efx_filter_get_rx_ids(struct efx_nic *efx,
159 return efx->type->filter_get_rx_ids(efx, priority, buf, size);
172 unsigned int efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
173 unsigned int efx_ticks_to_usecs(struct efx_nic *efx, unsigned int ticks);
174 int efx_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs,
177 void efx_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs,
181 void efx_update_sw_stats(struct efx_nic *efx, u64 *stats);
185 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts,
187 static inline int efx_mtd_probe(struct efx_nic *efx)
189 return efx->type->mtd_probe(efx);
191 void efx_mtd_rename(struct efx_nic *efx);
192 void efx_mtd_remove(struct efx_nic *efx);
194 static inline int efx_mtd_probe(struct efx_nic *efx) { return 0; }
195 static inline void efx_mtd_rename(struct efx_nic *efx) {}
196 static inline void efx_mtd_remove(struct efx_nic *efx) {}
200 static inline unsigned int efx_vf_size(struct efx_nic *efx)
202 return 1 << efx->vi_scale;
206 static inline void efx_device_detach_sync(struct efx_nic *efx)
208 struct net_device *dev = efx->net_dev;
219 static inline void efx_device_attach_if_not_resetting(struct efx_nic *efx)
221 if ((efx->state != STATE_DISABLED) && !efx->reset_pending)
222 netif_device_attach(efx->net_dev);
234 int efx_xdp_tx_buffers(struct efx_nic *efx, int n, struct xdp_frame **xdpfs,