Lines Matching refs:efx_nic

261 	struct efx_nic *efx ____cacheline_aligned_in_smp;
392 struct efx_nic *efx;
496 struct efx_nic *efx;
571 struct efx_nic *efx;
594 void (*handle_no_channel)(struct efx_nic *);
679 struct efx_nic;
996 struct efx_nic { struct
1001 struct efx_nic *primary; argument
1188 struct efx_nic efx; argument
1191 static inline struct efx_nic *efx_netdev_priv(struct net_device *dev) in efx_netdev_priv()
1199 static inline int efx_dev_registered(struct efx_nic *efx) in efx_dev_registered()
1204 static inline unsigned int efx_port_num(struct efx_nic *efx) in efx_port_num()
1378 unsigned int (*mem_bar)(struct efx_nic *efx);
1379 unsigned int (*mem_map_size)(struct efx_nic *efx);
1380 int (*probe)(struct efx_nic *efx);
1381 void (*remove)(struct efx_nic *efx);
1382 int (*init)(struct efx_nic *efx);
1383 int (*dimension_resources)(struct efx_nic *efx);
1384 void (*fini)(struct efx_nic *efx);
1385 void (*monitor)(struct efx_nic *efx);
1388 int (*reset)(struct efx_nic *efx, enum reset_type method);
1389 int (*probe_port)(struct efx_nic *efx);
1390 void (*remove_port)(struct efx_nic *efx);
1392 int (*fini_dmaq)(struct efx_nic *efx);
1393 void (*prepare_flush)(struct efx_nic *efx);
1394 void (*finish_flush)(struct efx_nic *efx);
1395 void (*prepare_flr)(struct efx_nic *efx);
1396 void (*finish_flr)(struct efx_nic *efx);
1397 size_t (*describe_stats)(struct efx_nic *efx, u8 *names);
1398 size_t (*update_stats)(struct efx_nic *efx, u64 *full_stats,
1400 size_t (*update_stats_atomic)(struct efx_nic *efx, u64 *full_stats,
1402 void (*start_stats)(struct efx_nic *efx);
1403 void (*pull_stats)(struct efx_nic *efx);
1404 void (*stop_stats)(struct efx_nic *efx);
1406 int (*reconfigure_port)(struct efx_nic *efx);
1407 void (*prepare_enable_fc_tx)(struct efx_nic *efx);
1408 int (*reconfigure_mac)(struct efx_nic *efx, bool mtu_only);
1409 bool (*check_mac_fault)(struct efx_nic *efx);
1410 void (*get_wol)(struct efx_nic *efx, struct ethtool_wolinfo *wol);
1411 int (*set_wol)(struct efx_nic *efx, u32 type);
1412 void (*resume_wol)(struct efx_nic *efx);
1413 void (*get_fec_stats)(struct efx_nic *efx,
1415 unsigned int (*check_caps)(const struct efx_nic *efx,
1418 int (*test_chip)(struct efx_nic *efx, struct efx_self_tests *tests);
1419 int (*test_nvram)(struct efx_nic *efx);
1420 void (*mcdi_request)(struct efx_nic *efx,
1423 bool (*mcdi_poll_response)(struct efx_nic *efx);
1424 void (*mcdi_read_response)(struct efx_nic *efx, efx_dword_t *pdu,
1426 int (*mcdi_poll_reboot)(struct efx_nic *efx);
1427 void (*mcdi_reboot_detected)(struct efx_nic *efx);
1428 void (*irq_enable_master)(struct efx_nic *efx);
1429 int (*irq_test_generate)(struct efx_nic *efx);
1430 void (*irq_disable_non_ev)(struct efx_nic *efx);
1440 int (*rx_push_rss_config)(struct efx_nic *efx, bool user,
1442 int (*rx_pull_rss_config)(struct efx_nic *efx);
1443 int (*rx_push_rss_context_config)(struct efx_nic *efx,
1447 int (*rx_pull_rss_context_config)(struct efx_nic *efx,
1449 void (*rx_restore_rss_contexts)(struct efx_nic *efx);
1464 int (*filter_table_probe)(struct efx_nic *efx);
1465 void (*filter_table_restore)(struct efx_nic *efx);
1466 void (*filter_table_remove)(struct efx_nic *efx);
1467 void (*filter_update_rx_scatter)(struct efx_nic *efx);
1468 s32 (*filter_insert)(struct efx_nic *efx,
1470 int (*filter_remove_safe)(struct efx_nic *efx,
1473 int (*filter_get_safe)(struct efx_nic *efx,
1476 int (*filter_clear_rx)(struct efx_nic *efx,
1478 u32 (*filter_count_rx_used)(struct efx_nic *efx,
1480 u32 (*filter_get_rx_id_limit)(struct efx_nic *efx);
1481 s32 (*filter_get_rx_ids)(struct efx_nic *efx,
1485 bool (*filter_rfs_expire_one)(struct efx_nic *efx, u32 flow_id,
1489 int (*mtd_probe)(struct efx_nic *efx);
1498 void (*ptp_write_host_time)(struct efx_nic *efx, u32 host_time);
1499 int (*ptp_set_ts_sync_events)(struct efx_nic *efx, bool en, bool temp);
1500 int (*ptp_set_ts_config)(struct efx_nic *efx,
1502 int (*sriov_configure)(struct efx_nic *efx, int num_vfs);
1503 int (*vlan_rx_add_vid)(struct efx_nic *efx, __be16 proto, u16 vid);
1504 int (*vlan_rx_kill_vid)(struct efx_nic *efx, __be16 proto, u16 vid);
1505 int (*get_phys_port_id)(struct efx_nic *efx,
1507 int (*sriov_init)(struct efx_nic *efx);
1508 void (*sriov_fini)(struct efx_nic *efx);
1509 bool (*sriov_wanted)(struct efx_nic *efx);
1510 void (*sriov_reset)(struct efx_nic *efx);
1511 void (*sriov_flr)(struct efx_nic *efx, unsigned vf_i);
1512 int (*sriov_set_vf_mac)(struct efx_nic *efx, int vf_i, const u8 *mac);
1513 int (*sriov_set_vf_vlan)(struct efx_nic *efx, int vf_i, u16 vlan,
1515 int (*sriov_set_vf_spoofchk)(struct efx_nic *efx, int vf_i,
1517 int (*sriov_get_vf_config)(struct efx_nic *efx, int vf_i,
1519 int (*sriov_set_vf_link_state)(struct efx_nic *efx, int vf_i,
1521 int (*vswitching_probe)(struct efx_nic *efx);
1522 int (*vswitching_restore)(struct efx_nic *efx);
1523 void (*vswitching_remove)(struct efx_nic *efx);
1524 int (*get_mac_address)(struct efx_nic *efx, unsigned char *perm_addr);
1525 int (*set_mac_address)(struct efx_nic *efx);
1526 u32 (*tso_versions)(struct efx_nic *efx);
1527 int (*udp_tnl_push_ports)(struct efx_nic *efx);
1528 bool (*udp_tnl_has_port)(struct efx_nic *efx, __be16 port);
1529 size_t (*print_additional_fwver)(struct efx_nic *efx, char *buf,
1531 void (*sensor_event)(struct efx_nic *efx, efx_qword_t *ev);
1532 unsigned int (*rx_recycle_ring_size)(const struct efx_nic *efx);
1564 efx_get_channel(struct efx_nic *efx, unsigned index) in efx_get_channel()
1585 efx_get_tx_channel(struct efx_nic *efx, unsigned int index) in efx_get_tx_channel()
1592 efx_get_xdp_channel(struct efx_nic *efx, unsigned int index) in efx_get_xdp_channel()
1624 efx_get_tx_queue(struct efx_nic *efx, unsigned int index, unsigned int type) in efx_get_tx_queue()
1754 static inline netdev_features_t efx_supported_features(const struct efx_nic *efx) in efx_supported_features()