Lines Matching refs:efx
28 return INDIRECT_CALL_2(tx_queue->efx->type->tx_enqueue, in efx_enqueue_skb()
44 INDIRECT_CALL_2(channel->efx->type->rx_packet, in efx_rx_flush_packet()
48 static inline bool efx_rx_buf_hash_valid(struct efx_nic *efx, const u8 *prefix) in efx_rx_buf_hash_valid() argument
50 if (efx->type->rx_buf_hash_valid) in efx_rx_buf_hash_valid()
51 return INDIRECT_CALL_1(efx->type->rx_buf_hash_valid, in efx_rx_buf_hash_valid()
65 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx)) argument
70 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \ argument
73 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled() argument
75 return efx->rss_spread > 1; in efx_rss_enabled()
105 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter() argument
109 return efx->type->filter_insert(efx, spec, replace_equal); in efx_filter_insert_filter()
121 static inline int efx_filter_remove_id_safe(struct efx_nic *efx, in efx_filter_remove_id_safe() argument
125 return efx->type->filter_remove_safe(efx, priority, filter_id); in efx_filter_remove_id_safe()
139 efx_filter_get_filter_safe(struct efx_nic *efx, in efx_filter_get_filter_safe() argument
143 return efx->type->filter_get_safe(efx, priority, filter_id, spec); in efx_filter_get_filter_safe()
146 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx, in efx_filter_count_rx_used() argument
149 return efx->type->filter_count_rx_used(efx, priority); in efx_filter_count_rx_used()
151 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx) in efx_filter_get_rx_id_limit() argument
153 return efx->type->filter_get_rx_id_limit(efx); in efx_filter_get_rx_id_limit()
155 static inline s32 efx_filter_get_rx_ids(struct efx_nic *efx, in efx_filter_get_rx_ids() argument
159 return efx->type->filter_get_rx_ids(efx, priority, buf, size); in efx_filter_get_rx_ids()
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) in efx_mtd_probe() argument
189 return efx->type->mtd_probe(efx); in efx_mtd_probe()
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; } in efx_mtd_probe() argument
195 static inline void efx_mtd_rename(struct efx_nic *efx) {} in efx_mtd_rename() argument
196 static inline void efx_mtd_remove(struct efx_nic *efx) {} in efx_mtd_remove() argument
200 static inline unsigned int efx_vf_size(struct efx_nic *efx) in efx_vf_size() argument
202 return 1 << efx->vi_scale; in efx_vf_size()
206 static inline void efx_device_detach_sync(struct efx_nic *efx) in efx_device_detach_sync() argument
208 struct net_device *dev = efx->net_dev; in efx_device_detach_sync()
211 efx_detach_reps(efx); in efx_device_detach_sync()
222 static inline void efx_device_attach_if_not_resetting(struct efx_nic *efx) in efx_device_attach_if_not_resetting() argument
224 if ((efx->state != STATE_DISABLED) && !efx->reset_pending) { in efx_device_attach_if_not_resetting()
225 netif_device_attach(efx->net_dev); in efx_device_attach_if_not_resetting()
226 if (efx->state == STATE_NET_UP) in efx_device_attach_if_not_resetting()
227 efx_attach_reps(efx); in efx_device_attach_if_not_resetting()
240 int efx_xdp_tx_buffers(struct efx_nic *efx, int n, struct xdp_frame **xdpfs,