Lines Matching defs:efx

23 	return INDIRECT_CALL_1(tx_queue->efx->type->tx_enqueue,
47 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_siena_tx_max_skb_descs(efx))
52 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \
55 static inline bool efx_rss_enabled(struct efx_nic *efx)
57 return efx->rss_spread > 1;
64 * @efx: NIC in which to insert the filter
87 static inline s32 efx_filter_insert_filter(struct efx_nic *efx,
91 return efx->type->filter_insert(efx, spec, replace_equal);
96 * @efx: NIC from which to remove the filter
103 static inline int efx_filter_remove_id_safe(struct efx_nic *efx,
107 return efx->type->filter_remove_safe(efx, priority, filter_id);
112 * @efx: NIC from which to remove the filter
121 efx_filter_get_filter_safe(struct efx_nic *efx,
125 return efx->type->filter_get_safe(efx, priority, filter_id, spec);
128 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx,
131 return efx->type->filter_count_rx_used(efx, priority);
133 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx)
135 return efx->type->filter_get_rx_id_limit(efx);
137 static inline s32 efx_filter_get_rx_ids(struct efx_nic *efx,
141 return efx->type->filter_get_rx_ids(efx, priority, buf, size);
154 unsigned int efx_siena_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
155 int efx_siena_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs,
158 void efx_siena_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs,
162 void efx_siena_update_sw_stats(struct efx_nic *efx, u64 *stats);
166 int efx_siena_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts,
168 static inline int efx_mtd_probe(struct efx_nic *efx)
170 return efx->type->mtd_probe(efx);
172 void efx_siena_mtd_rename(struct efx_nic *efx);
173 void efx_siena_mtd_remove(struct efx_nic *efx);
175 static inline int efx_mtd_probe(struct efx_nic *efx) { return 0; }
176 static inline void efx_siena_mtd_rename(struct efx_nic *efx) {}
177 static inline void efx_siena_mtd_remove(struct efx_nic *efx) {}
181 static inline unsigned int efx_vf_size(struct efx_nic *efx)
183 return 1 << efx->vi_scale;
187 static inline void efx_device_detach_sync(struct efx_nic *efx)
189 struct net_device *dev = efx->net_dev;
200 static inline void efx_device_attach_if_not_resetting(struct efx_nic *efx)
202 if ((efx->state != STATE_DISABLED) && !efx->reset_pending)
203 netif_device_attach(efx->net_dev);
215 int efx_siena_xdp_tx_buffers(struct efx_nic *efx, int n,