Lines Matching refs:efx

229 	struct efx_nic *efx ____cacheline_aligned_in_smp;
342 struct efx_nic *efx; member
426 struct efx_nic *efx; member
606 struct efx_nic *efx; member
645 #define LOOPBACK_MODE(efx) \ argument
646 STRING_TABLE_LOOKUP((efx)->loopback_mode, efx_loopback_mode)
717 int (*probe) (struct efx_nic *efx);
718 int (*init) (struct efx_nic *efx);
719 void (*fini) (struct efx_nic *efx);
720 void (*remove) (struct efx_nic *efx);
721 int (*reconfigure) (struct efx_nic *efx);
722 bool (*poll) (struct efx_nic *efx);
723 void (*get_settings) (struct efx_nic *efx,
725 int (*set_settings) (struct efx_nic *efx,
727 void (*set_npage_adv) (struct efx_nic *efx, u32);
728 int (*test_alive) (struct efx_nic *efx);
729 const char *(*test_name) (struct efx_nic *efx, unsigned int index);
730 int (*run_tests) (struct efx_nic *efx, int *results, unsigned flags);
731 int (*get_module_eeprom) (struct efx_nic *efx,
734 int (*get_module_info) (struct efx_nic *efx,
1065 static inline int efx_dev_registered(struct efx_nic *efx) in efx_dev_registered() argument
1067 return efx->net_dev->reg_state == NETREG_REGISTERED; in efx_dev_registered()
1070 static inline unsigned int efx_port_num(struct efx_nic *efx) in efx_port_num() argument
1072 return efx->port_num; in efx_port_num()
1223 unsigned int (*mem_map_size)(struct efx_nic *efx);
1224 int (*probe)(struct efx_nic *efx);
1225 void (*remove)(struct efx_nic *efx);
1226 int (*init)(struct efx_nic *efx);
1227 int (*dimension_resources)(struct efx_nic *efx);
1228 void (*fini)(struct efx_nic *efx);
1229 void (*monitor)(struct efx_nic *efx);
1232 int (*reset)(struct efx_nic *efx, enum reset_type method);
1233 int (*probe_port)(struct efx_nic *efx);
1234 void (*remove_port)(struct efx_nic *efx);
1236 int (*fini_dmaq)(struct efx_nic *efx);
1237 void (*prepare_flush)(struct efx_nic *efx);
1238 void (*finish_flush)(struct efx_nic *efx);
1239 void (*prepare_flr)(struct efx_nic *efx);
1240 void (*finish_flr)(struct efx_nic *efx);
1241 size_t (*describe_stats)(struct efx_nic *efx, u8 *names);
1242 size_t (*update_stats)(struct efx_nic *efx, u64 *full_stats,
1244 void (*start_stats)(struct efx_nic *efx);
1245 void (*pull_stats)(struct efx_nic *efx);
1246 void (*stop_stats)(struct efx_nic *efx);
1247 void (*set_id_led)(struct efx_nic *efx, enum efx_led_mode mode);
1249 int (*reconfigure_port)(struct efx_nic *efx);
1250 void (*prepare_enable_fc_tx)(struct efx_nic *efx);
1251 int (*reconfigure_mac)(struct efx_nic *efx);
1252 bool (*check_mac_fault)(struct efx_nic *efx);
1253 void (*get_wol)(struct efx_nic *efx, struct ethtool_wolinfo *wol);
1254 int (*set_wol)(struct efx_nic *efx, u32 type);
1255 void (*resume_wol)(struct efx_nic *efx);
1256 int (*test_chip)(struct efx_nic *efx, struct efx_self_tests *tests);
1257 int (*test_nvram)(struct efx_nic *efx);
1258 void (*mcdi_request)(struct efx_nic *efx,
1261 bool (*mcdi_poll_response)(struct efx_nic *efx);
1262 void (*mcdi_read_response)(struct efx_nic *efx, efx_dword_t *pdu,
1264 int (*mcdi_poll_reboot)(struct efx_nic *efx);
1265 void (*mcdi_reboot_detected)(struct efx_nic *efx);
1266 void (*irq_enable_master)(struct efx_nic *efx);
1267 void (*irq_test_generate)(struct efx_nic *efx);
1268 void (*irq_disable_non_ev)(struct efx_nic *efx);
1275 int (*rx_push_rss_config)(struct efx_nic *efx, bool user,
1289 int (*filter_table_probe)(struct efx_nic *efx);
1290 void (*filter_table_restore)(struct efx_nic *efx);
1291 void (*filter_table_remove)(struct efx_nic *efx);
1292 void (*filter_update_rx_scatter)(struct efx_nic *efx);
1293 s32 (*filter_insert)(struct efx_nic *efx,
1295 int (*filter_remove_safe)(struct efx_nic *efx,
1298 int (*filter_get_safe)(struct efx_nic *efx,
1301 int (*filter_clear_rx)(struct efx_nic *efx,
1303 u32 (*filter_count_rx_used)(struct efx_nic *efx,
1305 u32 (*filter_get_rx_id_limit)(struct efx_nic *efx);
1306 s32 (*filter_get_rx_ids)(struct efx_nic *efx,
1310 s32 (*filter_rfs_insert)(struct efx_nic *efx,
1312 bool (*filter_rfs_expire_one)(struct efx_nic *efx, u32 flow_id,
1316 int (*mtd_probe)(struct efx_nic *efx);
1325 void (*ptp_write_host_time)(struct efx_nic *efx, u32 host_time);
1326 int (*ptp_set_ts_sync_events)(struct efx_nic *efx, bool en, bool temp);
1327 int (*ptp_set_ts_config)(struct efx_nic *efx,
1329 int (*sriov_configure)(struct efx_nic *efx, int num_vfs);
1330 int (*sriov_init)(struct efx_nic *efx);
1331 void (*sriov_fini)(struct efx_nic *efx);
1332 bool (*sriov_wanted)(struct efx_nic *efx);
1333 void (*sriov_reset)(struct efx_nic *efx);
1334 void (*sriov_flr)(struct efx_nic *efx, unsigned vf_i);
1335 int (*sriov_set_vf_mac)(struct efx_nic *efx, int vf_i, u8 *mac);
1336 int (*sriov_set_vf_vlan)(struct efx_nic *efx, int vf_i, u16 vlan,
1338 int (*sriov_set_vf_spoofchk)(struct efx_nic *efx, int vf_i,
1340 int (*sriov_get_vf_config)(struct efx_nic *efx, int vf_i,
1342 int (*sriov_set_vf_link_state)(struct efx_nic *efx, int vf_i,
1344 int (*sriov_get_phys_port_id)(struct efx_nic *efx,
1346 int (*vswitching_probe)(struct efx_nic *efx);
1347 int (*vswitching_restore)(struct efx_nic *efx);
1348 void (*vswitching_remove)(struct efx_nic *efx);
1349 int (*get_mac_address)(struct efx_nic *efx, unsigned char *perm_addr);
1350 int (*set_mac_address)(struct efx_nic *efx);
1380 efx_get_channel(struct efx_nic *efx, unsigned index) in efx_get_channel() argument
1382 EFX_BUG_ON_PARANOID(index >= efx->n_channels); in efx_get_channel()
1383 return efx->channel[index]; in efx_get_channel()
1401 efx_get_tx_queue(struct efx_nic *efx, unsigned index, unsigned type) in efx_get_tx_queue() argument
1403 EFX_BUG_ON_PARANOID(index >= efx->n_tx_channels || in efx_get_tx_queue()
1405 return &efx->channel[efx->tx_channel_offset + index]->tx_queue[type]; in efx_get_tx_queue()
1410 return channel->channel - channel->efx->tx_channel_offset < in efx_channel_has_tx_queues()
1411 channel->efx->n_tx_channels; in efx_channel_has_tx_queues()
1424 return !(tx_queue->efx->net_dev->num_tc < 2 && in efx_tx_queue_used()