Lines Matching refs:efx_nic
125 static void efx_ef10_rx_free_indir_table(struct efx_nic *efx);
126 static void efx_ef10_filter_table_remove(struct efx_nic *efx);
127 static int efx_ef10_filter_add_vlan(struct efx_nic *efx, u16 vid);
128 static void efx_ef10_filter_del_vlan_internal(struct efx_nic *efx,
130 static void efx_ef10_filter_del_vlan(struct efx_nic *efx, u16 vid);
131 static int efx_ef10_set_udp_tnl_ports(struct efx_nic *efx, bool unloading);
149 static int efx_ef10_get_warm_boot_count(struct efx_nic *efx) in efx_ef10_get_warm_boot_count()
162 static unsigned int efx_ef10_pf_mem_bar(struct efx_nic *efx) in efx_ef10_pf_mem_bar()
173 static unsigned int efx_ef10_vf_mem_bar(struct efx_nic *efx) in efx_ef10_vf_mem_bar()
178 static unsigned int efx_ef10_mem_map_size(struct efx_nic *efx) in efx_ef10_mem_map_size()
186 static bool efx_ef10_is_vf(struct efx_nic *efx) in efx_ef10_is_vf()
191 static int efx_ef10_get_pf_index(struct efx_nic *efx) in efx_ef10_get_pf_index()
210 static int efx_ef10_get_vf_index(struct efx_nic *efx) in efx_ef10_get_vf_index()
229 static int efx_ef10_init_datapath_caps(struct efx_nic *efx) in efx_ef10_init_datapath_caps()
320 static void efx_ef10_read_licensed_features(struct efx_nic *efx) in efx_ef10_read_licensed_features()
339 static int efx_ef10_get_sysclk_freq(struct efx_nic *efx) in efx_ef10_get_sysclk_freq()
352 static int efx_ef10_get_timer_workarounds(struct efx_nic *efx) in efx_ef10_get_timer_workarounds()
398 static void efx_ef10_process_timer_config(struct efx_nic *efx, in efx_ef10_process_timer_config()
427 static int efx_ef10_get_timer_config(struct efx_nic *efx) in efx_ef10_get_timer_config()
462 static int efx_ef10_get_mac_address_pf(struct efx_nic *efx, u8 *mac_address) in efx_ef10_get_mac_address_pf()
482 static int efx_ef10_get_mac_address_vf(struct efx_nic *efx, u8 *mac_address) in efx_ef10_get_mac_address_vf()
514 struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev)); in efx_ef10_show_link_control_flag()
526 struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev)); in efx_ef10_show_primary_flag()
534 static struct efx_ef10_vlan *efx_ef10_find_vlan(struct efx_nic *efx, u16 vid) in efx_ef10_find_vlan()
549 static int efx_ef10_add_vlan(struct efx_nic *efx, u16 vid) in efx_ef10_add_vlan()
602 static void efx_ef10_del_vlan_internal(struct efx_nic *efx, in efx_ef10_del_vlan_internal()
619 static int efx_ef10_del_vlan(struct efx_nic *efx, u16 vid) in efx_ef10_del_vlan()
648 static void efx_ef10_cleanup_vlans(struct efx_nic *efx) in efx_ef10_cleanup_vlans()
663 static int efx_ef10_probe(struct efx_nic *efx) in efx_ef10_probe()
784 struct efx_nic *efx_pf = pci_get_drvdata(pci_dev_pf); in efx_ef10_probe()
837 static int efx_ef10_free_vis(struct efx_nic *efx) in efx_ef10_free_vis()
855 static void efx_ef10_free_piobufs(struct efx_nic *efx) in efx_ef10_free_piobufs()
875 static int efx_ef10_alloc_piobufs(struct efx_nic *efx, unsigned int n) in efx_ef10_alloc_piobufs()
914 static int efx_ef10_link_piobufs(struct efx_nic *efx) in efx_ef10_link_piobufs()
1024 static void efx_ef10_forget_old_piobufs(struct efx_nic *efx) in efx_ef10_forget_old_piobufs()
1037 static int efx_ef10_alloc_piobufs(struct efx_nic *efx, unsigned int n) in efx_ef10_alloc_piobufs()
1042 static int efx_ef10_link_piobufs(struct efx_nic *efx) in efx_ef10_link_piobufs()
1047 static void efx_ef10_free_piobufs(struct efx_nic *efx) in efx_ef10_free_piobufs()
1051 static void efx_ef10_forget_old_piobufs(struct efx_nic *efx) in efx_ef10_forget_old_piobufs()
1057 static void efx_ef10_remove(struct efx_nic *efx) in efx_ef10_remove()
1065 struct efx_nic *efx_pf; in efx_ef10_remove()
1116 static int efx_ef10_probe_pf(struct efx_nic *efx) in efx_ef10_probe_pf()
1121 int efx_ef10_vadaptor_query(struct efx_nic *efx, unsigned int port_id, in efx_ef10_vadaptor_query()
1160 int efx_ef10_vadaptor_alloc(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vadaptor_alloc()
1169 int efx_ef10_vadaptor_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vadaptor_free()
1178 int efx_ef10_vport_add_mac(struct efx_nic *efx, in efx_ef10_vport_add_mac()
1190 int efx_ef10_vport_del_mac(struct efx_nic *efx, in efx_ef10_vport_del_mac()
1203 static int efx_ef10_probe_vf(struct efx_nic *efx) in efx_ef10_probe_vf()
1214 struct efx_nic *efx_pf = pci_get_drvdata(pci_dev_pf); in efx_ef10_probe_vf()
1235 struct efx_nic *efx_pf = in efx_ef10_probe_vf()
1255 static int efx_ef10_probe_vf(struct efx_nic *efx __attribute__ ((unused))) in efx_ef10_probe_vf()
1261 static int efx_ef10_alloc_vis(struct efx_nic *efx, in efx_ef10_alloc_vis()
1291 static int efx_ef10_dimension_resources(struct efx_nic *efx) in efx_ef10_dimension_resources()
1444 static int efx_ef10_init_nic(struct efx_nic *efx) in efx_ef10_init_nic()
1493 static void efx_ef10_reset_mc_allocations(struct efx_nic *efx) in efx_ef10_reset_mc_allocations()
1556 static int efx_ef10_reset(struct efx_nic *efx, enum reset_type reset_type) in efx_ef10_reset()
1796 static u64 efx_ef10_raw_stat_mask(struct efx_nic *efx) in efx_ef10_raw_stat_mask()
1823 static void efx_ef10_get_stat_mask(struct efx_nic *efx, unsigned long *mask) in efx_ef10_get_stat_mask()
1863 static size_t efx_ef10_describe_stats(struct efx_nic *efx, u8 *names) in efx_ef10_describe_stats()
1872 static size_t efx_ef10_update_stats_common(struct efx_nic *efx, u64 *full_stats, in efx_ef10_update_stats_common()
1941 static int efx_ef10_try_update_nic_stats_pf(struct efx_nic *efx) in efx_ef10_try_update_nic_stats_pf()
1977 static size_t efx_ef10_update_stats_pf(struct efx_nic *efx, u64 *full_stats, in efx_ef10_update_stats_pf()
1994 static int efx_ef10_try_update_nic_stats_vf(struct efx_nic *efx) in efx_ef10_try_update_nic_stats_vf()
2066 static size_t efx_ef10_update_stats_vf(struct efx_nic *efx, u64 *full_stats, in efx_ef10_update_stats_vf()
2077 struct efx_nic *efx = channel->efx; in efx_ef10_push_irq_moderation()
2121 static void efx_ef10_get_wol_vf(struct efx_nic *efx, in efx_ef10_get_wol_vf()
2124 static int efx_ef10_set_wol_vf(struct efx_nic *efx, u32 type) in efx_ef10_set_wol_vf()
2129 static void efx_ef10_get_wol(struct efx_nic *efx, struct ethtool_wolinfo *wol) in efx_ef10_get_wol()
2136 static int efx_ef10_set_wol(struct efx_nic *efx, u32 type) in efx_ef10_set_wol()
2143 static void efx_ef10_mcdi_request(struct efx_nic *efx, in efx_ef10_mcdi_request()
2166 static bool efx_ef10_mcdi_poll_response(struct efx_nic *efx) in efx_ef10_mcdi_poll_response()
2176 efx_ef10_mcdi_read_response(struct efx_nic *efx, efx_dword_t *outbuf, in efx_ef10_mcdi_read_response()
2185 static void efx_ef10_mcdi_reboot_detected(struct efx_nic *efx) in efx_ef10_mcdi_reboot_detected()
2201 static int efx_ef10_mcdi_poll_reboot(struct efx_nic *efx) in efx_ef10_mcdi_poll_reboot()
2235 struct efx_nic *efx = context->efx; in efx_ef10_msi_interrupt()
2254 struct efx_nic *efx = dev_id; in efx_ef10_legacy_interrupt()
2286 static int efx_ef10_irq_test_generate(struct efx_nic *efx) in efx_ef10_irq_test_generate()
2395 static u32 efx_ef10_tso_versions(struct efx_nic *efx) in efx_ef10_tso_versions()
2416 struct efx_nic *efx = tx_queue->efx; in efx_ef10_tx_init()
2536 struct efx_nic *efx = tx_queue->efx; in efx_ef10_tx_fini()
2654 static int efx_ef10_get_rss_flags(struct efx_nic *efx, u32 context, u32 *flags) in efx_ef10_get_rss_flags()
2700 static void efx_ef10_set_rss_flags(struct efx_nic *efx, in efx_ef10_set_rss_flags()
2721 static int efx_ef10_alloc_rss_context(struct efx_nic *efx, bool exclusive, in efx_ef10_alloc_rss_context()
2774 static int efx_ef10_free_rss_context(struct efx_nic *efx, u32 context) in efx_ef10_free_rss_context()
2784 static int efx_ef10_populate_rss_table(struct efx_nic *efx, u32 context, in efx_ef10_populate_rss_table()
2822 static void efx_ef10_rx_free_indir_table(struct efx_nic *efx) in efx_ef10_rx_free_indir_table()
2833 static int efx_ef10_rx_push_shared_rss_config(struct efx_nic *efx, in efx_ef10_rx_push_shared_rss_config()
2848 static int efx_ef10_rx_push_exclusive_rss_config(struct efx_nic *efx, in efx_ef10_rx_push_exclusive_rss_config()
2894 static int efx_ef10_rx_push_rss_context_config(struct efx_nic *efx, in efx_ef10_rx_push_rss_context_config()
2924 static int efx_ef10_rx_pull_rss_context_config(struct efx_nic *efx, in efx_ef10_rx_pull_rss_context_config()
2976 static int efx_ef10_rx_pull_rss_config(struct efx_nic *efx) in efx_ef10_rx_pull_rss_config()
2986 static void efx_ef10_rx_restore_rss_contexts(struct efx_nic *efx) in efx_ef10_rx_restore_rss_contexts()
3013 static int efx_ef10_pf_rx_push_rss_config(struct efx_nic *efx, bool user, in efx_ef10_pf_rx_push_rss_config()
3062 static int efx_ef10_vf_rx_push_rss_config(struct efx_nic *efx, bool user, in efx_ef10_vf_rx_push_rss_config()
3090 struct efx_nic *efx = rx_queue->efx; in efx_ef10_rx_init()
3135 struct efx_nic *efx = rx_queue->efx; in efx_ef10_rx_fini()
3176 struct efx_nic *efx = rx_queue->efx; in efx_ef10_rx_write()
3224 efx_ef10_rx_defer_refill_complete(struct efx_nic *efx, unsigned long cookie, in efx_ef10_rx_defer_refill_complete()
3243 struct efx_nic *efx = channel->efx; in efx_ef10_ev_fini()
3269 struct efx_nic *efx = channel->efx; in efx_ef10_ev_init()
3400 struct efx_nic *efx = rx_queue->efx; in efx_ef10_handle_rx_wrong_queue()
3414 struct efx_nic *efx = rx_queue->efx; in efx_ef10_handle_rx_bad_lbits()
3450 struct efx_nic *efx = channel->efx; in efx_ef10_handle_rx_event_errors()
3540 struct efx_nic *efx = channel->efx; in efx_ef10_handle_rx_event()
3689 struct efx_nic *efx = channel->efx; in efx_ef10_handle_tx_event()
3766 struct efx_nic *efx = channel->efx; in efx_ef10_handle_driver_event()
3791 struct efx_nic *efx = channel->efx; in efx_ef10_handle_driver_generated_event()
3818 struct efx_nic *efx = channel->efx; in efx_ef10_ev_process()
3887 struct efx_nic *efx = channel->efx; in efx_ef10_ev_read_ack()
3922 struct efx_nic *efx = channel->efx; in efx_ef10_ev_test_generate()
3950 void efx_ef10_handle_drain_event(struct efx_nic *efx) in efx_ef10_handle_drain_event()
3958 static int efx_ef10_fini_dmaq(struct efx_nic *efx) in efx_ef10_fini_dmaq()
3997 static void efx_ef10_prepare_flr(struct efx_nic *efx) in efx_ef10_prepare_flr()
4052 efx_ef10_filter_push_prep_set_match_fields(struct efx_nic *efx, in efx_ef10_filter_push_prep_set_match_fields()
4149 static void efx_ef10_filter_push_prep(struct efx_nic *efx, in efx_ef10_filter_push_prep()
4198 static int efx_ef10_filter_push(struct efx_nic *efx, in efx_ef10_filter_push()
4291 static s32 efx_ef10_filter_insert_locked(struct efx_nic *efx, in efx_ef10_filter_insert_locked()
4504 static s32 efx_ef10_filter_insert(struct efx_nic *efx, in efx_ef10_filter_insert()
4517 static void efx_ef10_filter_update_rx_scatter(struct efx_nic *efx) in efx_ef10_filter_update_rx_scatter()
4529 static int efx_ef10_filter_remove_internal(struct efx_nic *efx, in efx_ef10_filter_remove_internal()
4604 static int efx_ef10_filter_remove_safe(struct efx_nic *efx, in efx_ef10_filter_remove_safe()
4622 static void efx_ef10_filter_remove_unsafe(struct efx_nic *efx, in efx_ef10_filter_remove_unsafe()
4637 static int efx_ef10_filter_get_safe(struct efx_nic *efx, in efx_ef10_filter_get_safe()
4663 static int efx_ef10_filter_clear_rx(struct efx_nic *efx, in efx_ef10_filter_clear_rx()
4690 static u32 efx_ef10_filter_count_rx_used(struct efx_nic *efx, in efx_ef10_filter_count_rx_used()
4711 static u32 efx_ef10_filter_get_rx_id_limit(struct efx_nic *efx) in efx_ef10_filter_get_rx_id_limit()
4718 static s32 efx_ef10_filter_get_rx_ids(struct efx_nic *efx, in efx_ef10_filter_get_rx_ids()
4751 static bool efx_ef10_filter_rfs_expire_one(struct efx_nic *efx, u32 flow_id, in efx_ef10_filter_rfs_expire_one()
4876 static void efx_ef10_filter_cleanup_vlans(struct efx_nic *efx) in efx_ef10_filter_cleanup_vlans()
4912 efx_ef10_filter_table_probe_matches(struct efx_nic *efx, in efx_ef10_filter_table_probe_matches()
4960 static int efx_ef10_filter_table_probe(struct efx_nic *efx) in efx_ef10_filter_table_probe()
5033 static void efx_ef10_filter_table_restore(struct efx_nic *efx) in efx_ef10_filter_table_restore()
5129 static void efx_ef10_filter_table_remove(struct efx_nic *efx) in efx_ef10_filter_table_remove()
5175 static void efx_ef10_filter_mark_one_old(struct efx_nic *efx, uint16_t *id) in efx_ef10_filter_mark_one_old()
5194 static void _efx_ef10_filter_vlan_mark_old(struct efx_nic *efx, in _efx_ef10_filter_vlan_mark_old()
5212 static void efx_ef10_filter_mark_old(struct efx_nic *efx) in efx_ef10_filter_mark_old()
5223 static void efx_ef10_filter_uc_addr_list(struct efx_nic *efx) in efx_ef10_filter_uc_addr_list()
5245 static void efx_ef10_filter_mc_addr_list(struct efx_nic *efx) in efx_ef10_filter_mc_addr_list()
5269 static int efx_ef10_filter_insert_addr_list(struct efx_nic *efx, in efx_ef10_filter_insert_addr_list()
5350 static int efx_ef10_filter_insert_def(struct efx_nic *efx, in efx_ef10_filter_insert_def()
5498 static void efx_ef10_filter_remove_old(struct efx_nic *efx) in efx_ef10_filter_remove_old()
5530 static int efx_ef10_vport_set_mac_address(struct efx_nic *efx) in efx_ef10_vport_set_mac_address()
5599 static void efx_ef10_filter_vlan_sync_rx_mode(struct efx_nic *efx, in efx_ef10_filter_vlan_sync_rx_mode()
5711 static void efx_ef10_filter_sync_rx_mode(struct efx_nic *efx) in efx_ef10_filter_sync_rx_mode()
5751 static struct efx_ef10_filter_vlan *efx_ef10_filter_find_vlan(struct efx_nic *efx, u16 vid) in efx_ef10_filter_find_vlan()
5766 static int efx_ef10_filter_add_vlan(struct efx_nic *efx, u16 vid) in efx_ef10_filter_add_vlan()
5803 static void efx_ef10_filter_del_vlan_internal(struct efx_nic *efx, in efx_ef10_filter_del_vlan_internal()
5828 static void efx_ef10_filter_del_vlan(struct efx_nic *efx, u16 vid) in efx_ef10_filter_del_vlan()
5846 static int efx_ef10_set_mac_address(struct efx_nic *efx) in efx_ef10_set_mac_address()
5880 struct efx_nic *efx_pf; in efx_ef10_set_mac_address()
5889 struct efx_nic *efx_pf = pci_get_drvdata(pci_dev_pf); in efx_ef10_set_mac_address()
5927 static int efx_ef10_mac_reconfigure(struct efx_nic *efx) in efx_ef10_mac_reconfigure()
5934 static int efx_ef10_mac_reconfigure_vf(struct efx_nic *efx) in efx_ef10_mac_reconfigure_vf()
5941 static int efx_ef10_start_bist(struct efx_nic *efx, u32 bist_type) in efx_ef10_start_bist()
5954 static int efx_ef10_poll_bist(struct efx_nic *efx) in efx_ef10_poll_bist()
5987 static int efx_ef10_run_bist(struct efx_nic *efx, u32 bist_type) in efx_ef10_run_bist()
6001 efx_ef10_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) in efx_ef10_test_chip()
6046 static int efx_ef10_mtd_probe_partition(struct efx_nic *efx, in efx_ef10_mtd_probe_partition()
6098 static int efx_ef10_mtd_probe(struct efx_nic *efx) in efx_ef10_mtd_probe()
6145 static void efx_ef10_ptp_write_host_time(struct efx_nic *efx, u32 host_time) in efx_ef10_ptp_write_host_time()
6150 static void efx_ef10_ptp_write_host_time_vf(struct efx_nic *efx, in efx_ef10_ptp_write_host_time_vf()
6209 static int efx_ef10_ptp_set_ts_sync_events(struct efx_nic *efx, bool en, in efx_ef10_ptp_set_ts_sync_events()
6231 static int efx_ef10_ptp_set_ts_config_vf(struct efx_nic *efx, in efx_ef10_ptp_set_ts_config_vf()
6237 static int efx_ef10_ptp_set_ts_config(struct efx_nic *efx, in efx_ef10_ptp_set_ts_config()
6274 static int efx_ef10_get_phys_port_id(struct efx_nic *efx, in efx_ef10_get_phys_port_id()
6288 static int efx_ef10_vlan_rx_add_vid(struct efx_nic *efx, __be16 proto, u16 vid) in efx_ef10_vlan_rx_add_vid()
6296 static int efx_ef10_vlan_rx_kill_vid(struct efx_nic *efx, __be16 proto, u16 vid) in efx_ef10_vlan_rx_kill_vid()
6309 static int efx_ef10_set_udp_tnl_ports(struct efx_nic *efx, bool unloading) in efx_ef10_set_udp_tnl_ports()
6405 static int efx_ef10_udp_tnl_push_ports(struct efx_nic *efx) in efx_ef10_udp_tnl_push_ports()
6422 static struct efx_udp_tunnel *__efx_ef10_udp_tnl_lookup_port(struct efx_nic *efx, in __efx_ef10_udp_tnl_lookup_port()
6437 static int efx_ef10_udp_tnl_add_port(struct efx_nic *efx, in efx_ef10_udp_tnl_add_port()
6503 static bool efx_ef10_udp_tnl_has_port(struct efx_nic *efx, __be16 port) in efx_ef10_udp_tnl_has_port()
6520 static int efx_ef10_udp_tnl_del_port(struct efx_nic *efx, in efx_ef10_udp_tnl_del_port()