Lines Matching defs:efx
28 return INDIRECT_CALL_2(tx_queue->efx->type->tx_enqueue,
42 INDIRECT_CALL_2(channel->efx->type->rx_packet,
46 static inline bool efx_rx_buf_hash_valid(struct efx_nic *efx, const u8 *prefix)
48 if (efx->type->rx_buf_hash_valid)
49 return INDIRECT_CALL_1(efx->type->rx_buf_hash_valid,
63 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx))
68 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \
71 static inline bool efx_rss_enabled(struct efx_nic *efx)
73 return efx->rss_spread > 1;
80 * @efx: NIC in which to insert the filter
103 static inline s32 efx_filter_insert_filter(struct efx_nic *efx,
107 return efx->type->filter_insert(efx, spec, replace_equal);
112 * @efx: NIC from which to remove the filter
119 static inline int efx_filter_remove_id_safe(struct efx_nic *efx,
123 return efx->type->filter_remove_safe(efx, priority, filter_id);
128 * @efx: NIC from which to remove the filter
137 efx_filter_get_filter_safe(struct efx_nic *efx,
141 return efx->type->filter_get_safe(efx, priority, filter_id, spec);
144 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx,
147 return efx->type->filter_count_rx_used(efx, priority);
149 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx)
151 return efx->type->filter_get_rx_id_limit(efx);
153 static inline s32 efx_filter_get_rx_ids(struct efx_nic *efx,
157 return efx->type->filter_get_rx_ids(efx, priority, buf, size);
170 unsigned int efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
171 unsigned int efx_ticks_to_usecs(struct efx_nic *efx, unsigned int ticks);
172 int efx_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs,
175 void efx_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs,
179 void efx_update_sw_stats(struct efx_nic *efx, u64 *stats);
183 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts,
185 static inline int efx_mtd_probe(struct efx_nic *efx)
187 return efx->type->mtd_probe(efx);
189 void efx_mtd_rename(struct efx_nic *efx);
190 void efx_mtd_remove(struct efx_nic *efx);
192 static inline int efx_mtd_probe(struct efx_nic *efx) { return 0; }
193 static inline void efx_mtd_rename(struct efx_nic *efx) {}
194 static inline void efx_mtd_remove(struct efx_nic *efx) {}
198 static inline unsigned int efx_vf_size(struct efx_nic *efx)
200 return 1 << efx->vi_scale;
204 static inline void efx_device_detach_sync(struct efx_nic *efx)
206 struct net_device *dev = efx->net_dev;
209 efx_detach_reps(efx);
220 static inline void efx_device_attach_if_not_resetting(struct efx_nic *efx)
222 if ((efx->state != STATE_DISABLED) && !efx->reset_pending) {
223 netif_device_attach(efx->net_dev);
224 if (efx->state == STATE_NET_UP)
225 efx_attach_reps(efx);
238 int efx_xdp_tx_buffers(struct efx_nic *efx, int n, struct xdp_frame **xdpfs,