Lines Matching refs:efx

29 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx);
34 void efx_set_default_rx_indir_table(struct efx_nic *efx,
36 void efx_rx_config_page_split(struct efx_nic *efx);
68 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx)) argument
73 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \ argument
76 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled() argument
78 return efx->rss_spread > 1; in efx_rss_enabled()
83 void efx_mac_reconfigure(struct efx_nic *efx);
110 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter() argument
114 return efx->type->filter_insert(efx, spec, replace_equal); in efx_filter_insert_filter()
126 static inline int efx_filter_remove_id_safe(struct efx_nic *efx, in efx_filter_remove_id_safe() argument
130 return efx->type->filter_remove_safe(efx, priority, filter_id); in efx_filter_remove_id_safe()
144 efx_filter_get_filter_safe(struct efx_nic *efx, in efx_filter_get_filter_safe() argument
148 return efx->type->filter_get_safe(efx, priority, filter_id, spec); in efx_filter_get_filter_safe()
151 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx, in efx_filter_count_rx_used() argument
154 return efx->type->filter_count_rx_used(efx, priority); in efx_filter_count_rx_used()
156 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx) in efx_filter_get_rx_id_limit() argument
158 return efx->type->filter_get_rx_id_limit(efx); in efx_filter_get_rx_id_limit()
160 static inline s32 efx_filter_get_rx_ids(struct efx_nic *efx, in efx_filter_get_rx_ids() argument
164 return efx->type->filter_get_rx_ids(efx, priority, buf, size); in efx_filter_get_rx_ids()
169 bool __efx_filter_rfs_expire(struct efx_nic *efx, unsigned quota);
176 __efx_filter_rfs_expire(channel->efx, 100)) in efx_filter_rfs_expire()
194 struct efx_arfs_rule *efx_rps_hash_find(struct efx_nic *efx,
200 struct efx_arfs_rule *efx_rps_hash_add(struct efx_nic *efx,
204 void efx_rps_hash_del(struct efx_nic *efx, const struct efx_filter_spec *spec);
208 struct efx_rss_context *efx_alloc_rss_context_entry(struct efx_nic *efx);
209 struct efx_rss_context *efx_find_rss_context_entry(struct efx_nic *efx, u32 id);
219 int efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries);
222 int efx_reconfigure_port(struct efx_nic *efx);
223 int __efx_reconfigure_port(struct efx_nic *efx);
229 int efx_reset(struct efx_nic *efx, enum reset_type method);
230 void efx_reset_down(struct efx_nic *efx, enum reset_type method);
231 int efx_reset_up(struct efx_nic *efx, enum reset_type method, bool ok);
232 int efx_try_recovery(struct efx_nic *efx);
235 void efx_schedule_reset(struct efx_nic *efx, enum reset_type type);
236 unsigned int efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
237 unsigned int efx_ticks_to_usecs(struct efx_nic *efx, unsigned int ticks);
238 int efx_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs,
241 void efx_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs,
247 int efx_port_dummy_op_int(struct efx_nic *efx);
248 void efx_port_dummy_op_void(struct efx_nic *efx);
251 void efx_update_sw_stats(struct efx_nic *efx, u64 *stats);
255 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts,
257 static inline int efx_mtd_probe(struct efx_nic *efx) in efx_mtd_probe() argument
259 return efx->type->mtd_probe(efx); in efx_mtd_probe()
261 void efx_mtd_rename(struct efx_nic *efx);
262 void efx_mtd_remove(struct efx_nic *efx);
264 static inline int efx_mtd_probe(struct efx_nic *efx) { return 0; } in efx_mtd_probe() argument
265 static inline void efx_mtd_rename(struct efx_nic *efx) {} in efx_mtd_rename() argument
266 static inline void efx_mtd_remove(struct efx_nic *efx) {} in efx_mtd_remove() argument
270 static inline unsigned int efx_vf_size(struct efx_nic *efx) in efx_vf_size() argument
272 return 1 << efx->vi_scale; in efx_vf_size()
278 netif_vdbg(channel->efx, intr, channel->efx->net_dev, in efx_schedule_channel()
291 void efx_link_status_changed(struct efx_nic *efx);
292 void efx_link_set_advertising(struct efx_nic *efx,
294 void efx_link_clear_advertising(struct efx_nic *efx);
295 void efx_link_set_wanted_fc(struct efx_nic *efx, u8);
297 static inline void efx_device_detach_sync(struct efx_nic *efx) in efx_device_detach_sync() argument
299 struct net_device *dev = efx->net_dev; in efx_device_detach_sync()
310 static inline void efx_device_attach_if_not_resetting(struct efx_nic *efx) in efx_device_attach_if_not_resetting() argument
312 if ((efx->state != STATE_DISABLED) && !efx->reset_pending) in efx_device_attach_if_not_resetting()
313 netif_device_attach(efx->net_dev); in efx_device_attach_if_not_resetting()