Lines Matching refs:i40e_pf
35 static void i40e_handle_reset_warning(struct i40e_pf *pf, bool lock_acquired);
38 static int i40e_setup_pf_switch(struct i40e_pf *pf, bool reinit, bool lock_acquired);
39 static int i40e_setup_misc_vector(struct i40e_pf *pf);
40 static void i40e_determine_queue_usage(struct i40e_pf *pf);
41 static int i40e_setup_pf_filter_control(struct i40e_pf *pf);
42 static void i40e_prep_for_reset(struct i40e_pf *pf);
43 static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit,
45 static int i40e_reset(struct i40e_pf *pf);
46 static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired);
47 static int i40e_setup_misc_vector_for_recovery_mode(struct i40e_pf *pf);
48 static int i40e_restore_interrupt_scheme(struct i40e_pf *pf);
49 static bool i40e_check_recovery_mode(struct i40e_pf *pf);
50 static int i40e_init_recovery_mode(struct i40e_pf *pf, struct i40e_hw *hw);
51 static void i40e_fdir_sb_setup(struct i40e_pf *pf);
53 static int i40e_get_capabilities(struct i40e_pf *pf,
55 static bool i40e_is_total_port_shutdown_enabled(struct i40e_pf *pf);
137 struct i40e_pf *pf = i40e_hw_to_pf(hw); in i40e_hw_to_dev()
152 struct i40e_pf *pf = i40e_hw_to_pf(hw); in i40e_allocate_dma_mem()
170 struct i40e_pf *pf = i40e_hw_to_pf(hw); in i40e_free_dma_mem()
222 static int i40e_get_lump(struct i40e_pf *pf, struct i40e_lump_tracking *pile, in i40e_get_lump()
311 struct i40e_vsi *i40e_find_vsi_from_id(struct i40e_pf *pf, u16 id) in i40e_find_vsi_from_id()
329 void i40e_service_event_schedule(struct i40e_pf *pf) in i40e_service_event_schedule()
350 struct i40e_pf *pf = vsi->back; in i40e_tx_timeout()
554 void i40e_pf_reset_stats(struct i40e_pf *pf) in i40e_pf_reset_stats()
716 struct i40e_pf *pf = vsi->back; in i40e_update_eth_stats()
778 struct i40e_pf *pf = veb->pf; in i40e_update_veb_stats()
864 struct i40e_pf *pf = vsi->back; in i40e_update_vsi_stats()
1003 static void i40e_update_pf_stats(struct i40e_pf *pf) in i40e_update_pf_stats()
1235 struct i40e_pf *pf = vsi->back; in i40e_update_stats()
1484 struct i40e_pf *pf = vsi->back; in i40e_get_vf_new_vlan()
1584 struct i40e_pf *pf = vsi->back; in i40e_rm_default_mac_filter()
1803 struct i40e_pf *pf = vsi->back; in i40e_set_mac()
1860 struct i40e_pf *pf = vsi->back; in i40e_config_rss_aq()
1897 struct i40e_pf *pf = vsi->back; in i40e_vsi_config_rss()
2030 struct i40e_pf *pf = vsi->back; in i40e_vsi_setup_queue_map()
2483 static int i40e_set_promiscuous(struct i40e_pf *pf, bool promisc) in i40e_set_promiscuous()
2562 struct i40e_pf *pf; in i40e_sync_vsi_filters()
2888 static void i40e_sync_filters_subtask(struct i40e_pf *pf) in i40e_sync_filters_subtask()
2960 struct i40e_pf *pf = vsi->back; in i40e_change_mtu()
2989 struct i40e_pf *pf = np->vsi->back; in i40e_ioctl()
3835 static void i40e_reset_fdir_filter_cnt(struct i40e_pf *pf) in i40e_reset_fdir_filter_cnt()
3857 struct i40e_pf *pf = vsi->back; in i40e_fdir_filter_restore()
3897 struct i40e_pf *pf = vsi->back; in i40e_vsi_configure_msix()
3986 static void i40e_enable_misc_int_causes(struct i40e_pf *pf) in i40e_enable_misc_int_causes()
4028 struct i40e_pf *pf = vsi->back; in i40e_configure_msi_and_legacy()
4067 void i40e_irq_dynamic_disable_icr0(struct i40e_pf *pf) in i40e_irq_dynamic_disable_icr0()
4080 void i40e_irq_dynamic_enable_icr0(struct i40e_pf *pf) in i40e_irq_dynamic_enable_icr0()
4147 struct i40e_pf *pf = vsi->back; in i40e_vsi_request_irq_msix()
4220 struct i40e_pf *pf = vsi->back; in i40e_vsi_disable_irq()
4266 struct i40e_pf *pf = vsi->back; in i40e_vsi_enable_irq()
4284 static void i40e_free_misc_vector(struct i40e_pf *pf) in i40e_free_misc_vector()
4307 struct i40e_pf *pf = (struct i40e_pf *)data; in i40e_intr()
4627 struct i40e_pf *pf = vsi->back; in i40e_vsi_request_irq()
4657 struct i40e_pf *pf = vsi->back; in i40e_netpoll()
4686 static int i40e_pf_txq_wait(struct i40e_pf *pf, int pf_q, bool enable) in i40e_pf_txq_wait()
4714 static void i40e_control_tx_q(struct i40e_pf *pf, int pf_q, bool enable) in i40e_control_tx_q()
4756 int i40e_control_wait_tx_q(int seid, struct i40e_pf *pf, int pf_q, in i40e_control_wait_tx_q()
4781 struct i40e_pf *pf = vsi->back; in i40e_vsi_enable_tx()
4815 static int i40e_pf_rxq_wait(struct i40e_pf *pf, int pf_q, bool enable) in i40e_pf_rxq_wait()
4843 static void i40e_control_rx_q(struct i40e_pf *pf, int pf_q, bool enable) in i40e_control_rx_q()
4880 int i40e_control_wait_rx_q(struct i40e_pf *pf, int pf_q, bool enable) in i40e_control_wait_rx_q()
4900 struct i40e_pf *pf = vsi->back; in i40e_vsi_enable_rx()
4942 struct i40e_pf *pf = vsi->back; in i40e_vsi_stop_rings()
4978 struct i40e_pf *pf = vsi->back; in i40e_vsi_stop_rings_no_wait()
4994 struct i40e_pf *pf = vsi->back; in i40e_vsi_free_irq()
5158 static void i40e_reset_interrupt_capability(struct i40e_pf *pf) in i40e_reset_interrupt_capability()
5181 static void i40e_clear_interrupt_scheme(struct i40e_pf *pf) in i40e_clear_interrupt_scheme()
5244 struct i40e_pf *pf = vsi->back; in i40e_vsi_close()
5291 static void i40e_pf_quiesce_all_vsi(struct i40e_pf *pf) in i40e_pf_quiesce_all_vsi()
5304 static void i40e_pf_unquiesce_all_vsi(struct i40e_pf *pf) in i40e_pf_unquiesce_all_vsi()
5321 struct i40e_pf *pf = vsi->back; in i40e_vsi_wait_queues_disabled()
5369 static int i40e_pf_wait_queues_disabled(struct i40e_pf *pf) in i40e_pf_wait_queues_disabled()
5392 static u8 i40e_get_iscsi_tc_map(struct i40e_pf *pf) in i40e_get_iscsi_tc_map()
5482 static u8 i40e_mqprio_get_enabled_tc(struct i40e_pf *pf) in i40e_mqprio_get_enabled_tc()
5499 static u8 i40e_pf_get_num_tc(struct i40e_pf *pf) in i40e_pf_get_num_tc()
5537 static u8 i40e_pf_get_tc_map(struct i40e_pf *pf) in i40e_pf_get_tc_map()
5569 struct i40e_pf *pf = vsi->back; in i40e_vsi_get_bw_info()
5631 struct i40e_pf *pf = vsi->back; in i40e_vsi_configure_bw_alloc()
5674 struct i40e_pf *pf = vsi->back; in i40e_vsi_config_netdev_tc()
5748 struct i40e_pf *pf; in i40e_update_adq_vsi_queues()
5808 struct i40e_pf *pf = vsi->back; in i40e_vsi_config_tc()
5957 struct i40e_pf *pf = vsi->back; in i40e_get_link_speed()
6005 struct i40e_pf *pf = vsi->back; in i40e_set_bw_limit()
6047 struct i40e_pf *pf = vsi->back; in i40e_remove_queue_channels()
6157 static int i40e_validate_num_queues(struct i40e_pf *pf, int num_queues, in i40e_validate_num_queues()
6209 struct i40e_pf *pf = vsi->back; in i40e_vsi_reconfig_rss()
6265 static void i40e_channel_setup_queue_map(struct i40e_pf *pf, in i40e_channel_setup_queue_map()
6304 static int i40e_add_channel(struct i40e_pf *pf, u16 uplink_seid, in i40e_add_channel()
6404 static int i40e_channel_config_tx_ring(struct i40e_pf *pf, in i40e_channel_config_tx_ring()
6458 static inline int i40e_setup_hw_channel(struct i40e_pf *pf, in i40e_setup_hw_channel()
6509 static bool i40e_setup_channel(struct i40e_pf *pf, struct i40e_vsi *vsi, in i40e_setup_channel()
6549 struct i40e_pf *pf = vsi->back; in i40e_validate_and_set_switch_mode()
6607 struct i40e_pf *pf = vsi->back; in i40e_create_queue_channel()
6768 struct i40e_pf *pf = veb->pf; in i40e_veb_config_tc()
6817 static void i40e_dcb_reconfigure(struct i40e_pf *pf) in i40e_dcb_reconfigure()
6872 static int i40e_resume_port_tx(struct i40e_pf *pf) in i40e_resume_port_tx()
6897 static int i40e_suspend_port_tx(struct i40e_pf *pf) in i40e_suspend_port_tx()
6924 static int i40e_hw_set_dcb_config(struct i40e_pf *pf, in i40e_hw_set_dcb_config()
6975 int i40e_hw_dcb_config(struct i40e_pf *pf, struct i40e_dcbx_config *new_cfg) in i40e_hw_dcb_config()
7150 int i40e_dcb_sw_default_config(struct i40e_pf *pf) in i40e_dcb_sw_default_config()
7210 static int i40e_init_pf_dcb(struct i40e_pf *pf) in i40e_init_pf_dcb()
7304 struct i40e_pf *pf = vsi->back; in i40e_print_link_message()
7438 struct i40e_pf *pf = vsi->back; in i40e_up_complete()
7488 struct i40e_pf *pf = vsi->back; in i40e_vsi_reinit_locked()
7503 static int i40e_force_link_state(struct i40e_pf *pf, bool is_up) in i40e_force_link_state()
7867 struct i40e_pf *pf = vsi->back; in i40e_fwd_ring_up()
7940 struct i40e_pf *pf = vsi->back; in i40e_setup_macvlans()
8043 struct i40e_pf *pf = vsi->back; in i40e_fwd_add()
8151 struct i40e_pf *pf = vsi->back; in i40e_del_all_macvlans()
8188 struct i40e_pf *pf = vsi->back; in i40e_fwd_del()
8229 struct i40e_pf *pf = vsi->back; in i40e_setup_tc()
8426 struct i40e_pf *pf = vsi->back; in i40e_add_del_cloud_filter()
8496 struct i40e_pf *pf = vsi->back; in i40e_add_del_cloud_filter_big_buf()
8606 struct i40e_pf *pf = vsi->back; in i40e_parse_cls_flower()
8849 struct i40e_pf *pf = vsi->back; in i40e_configure_clsflower()
8948 struct i40e_pf *pf = vsi->back; in i40e_delete_clsflower()
9057 struct i40e_pf *pf = vsi->back; in i40e_open()
9119 struct i40e_pf *pf = vsi->back; in i40e_vsi_open()
9187 static void i40e_fdir_filter_exit(struct i40e_pf *pf) in i40e_fdir_filter_exit()
9266 static void i40e_cloud_filter_exit(struct i40e_pf *pf) in i40e_cloud_filter_exit()
9317 void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags, bool lock_acquired) in i40e_do_reset()
9409 bool i40e_dcb_need_reconfig(struct i40e_pf *pf, in i40e_dcb_need_reconfig()
9463 static int i40e_handle_lldp_event(struct i40e_pf *pf, in i40e_handle_lldp_event()
9588 void i40e_do_reset_safe(struct i40e_pf *pf, u32 reset_flags) in i40e_do_reset_safe()
9603 static void i40e_handle_lan_overflow_event(struct i40e_pf *pf, in i40e_handle_lan_overflow_event()
9635 u32 i40e_get_cur_guaranteed_fd_count(struct i40e_pf *pf) in i40e_get_cur_guaranteed_fd_count()
9648 u32 i40e_get_current_fd_count(struct i40e_pf *pf) in i40e_get_current_fd_count()
9662 u32 i40e_get_global_fd_count(struct i40e_pf *pf) in i40e_get_global_fd_count()
9676 static void i40e_reenable_fdir_sb(struct i40e_pf *pf) in i40e_reenable_fdir_sb()
9688 static void i40e_reenable_fdir_atr(struct i40e_pf *pf) in i40e_reenable_fdir_atr()
9711 static void i40e_delete_invalid_filter(struct i40e_pf *pf, in i40e_delete_invalid_filter()
9780 void i40e_fdir_check_and_reenable(struct i40e_pf *pf) in i40e_fdir_check_and_reenable()
9820 static void i40e_fdir_flush_and_replay(struct i40e_pf *pf) in i40e_fdir_flush_and_replay()
9878 u32 i40e_get_current_atr_cnt(struct i40e_pf *pf) in i40e_get_current_atr_cnt()
9887 static void i40e_fdir_reinit_subtask(struct i40e_pf *pf) in i40e_fdir_reinit_subtask()
9944 struct i40e_pf *pf; in i40e_veb_link_event()
9961 static void i40e_link_event(struct i40e_pf *pf) in i40e_link_event()
10045 static void i40e_watchdog_subtask(struct i40e_pf *pf) in i40e_watchdog_subtask()
10087 static void i40e_reset_subtask(struct i40e_pf *pf) in i40e_reset_subtask()
10134 static void i40e_handle_link_event(struct i40e_pf *pf, in i40e_handle_link_event()
10174 static void i40e_clean_adminq_subtask(struct i40e_pf *pf) in i40e_clean_adminq_subtask()
10306 static void i40e_verify_eeprom(struct i40e_pf *pf) in i40e_verify_eeprom()
10333 static void i40e_enable_pf_switch_lb(struct i40e_pf *pf) in i40e_enable_pf_switch_lb()
10369 static void i40e_disable_pf_switch_lb(struct i40e_pf *pf) in i40e_disable_pf_switch_lb()
10409 struct i40e_pf *pf = veb->pf; in i40e_config_bridge_mode()
10431 struct i40e_pf *pf = veb->pf; in i40e_reconstitute_veb()
10507 static int i40e_get_capabilities(struct i40e_pf *pf, in i40e_get_capabilities()
10588 static void i40e_fdir_sb_setup(struct i40e_pf *pf) in i40e_fdir_sb_setup()
10632 static void i40e_fdir_teardown(struct i40e_pf *pf) in i40e_fdir_teardown()
10653 struct i40e_pf *pf = vsi->back; in i40e_rebuild_cloud_filters()
10763 static void i40e_prep_for_reset(struct i40e_pf *pf) in i40e_prep_for_reset()
10806 static void i40e_send_version(struct i40e_pf *pf) in i40e_send_version()
10869 static int i40e_reset(struct i40e_pf *pf) in i40e_reset()
10892 static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired) in i40e_rebuild()
11186 static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit, in i40e_reset_and_rebuild()
11213 static void i40e_handle_reset_warning(struct i40e_pf *pf, bool lock_acquired) in i40e_handle_reset_warning()
11225 static void i40e_handle_mdd_event(struct i40e_pf *pf) in i40e_handle_mdd_event()
11316 struct i40e_pf *pf = container_of(work, in i40e_service_task()
11317 struct i40e_pf, in i40e_service_task()
11374 struct i40e_pf *pf = from_timer(pf, t, service_timer); in i40e_service_timer()
11387 struct i40e_pf *pf = vsi->back; in i40e_set_num_rings_in_vsi()
11499 static int i40e_vsi_mem_alloc(struct i40e_pf *pf, enum i40e_vsi_type type) in i40e_vsi_mem_alloc()
11626 struct i40e_pf *pf; in i40e_vsi_clear()
11697 struct i40e_pf *pf = vsi->back; in i40e_alloc_rings()
11767 static int i40e_reserve_msix_vectors(struct i40e_pf *pf, int vectors) in i40e_reserve_msix_vectors()
11788 static int i40e_init_msix(struct i40e_pf *pf) in i40e_init_msix()
12046 struct i40e_pf *pf = vsi->back; in i40e_vsi_alloc_q_vectors()
12076 static int i40e_init_interrupt_scheme(struct i40e_pf *pf) in i40e_init_interrupt_scheme()
12138 static int i40e_restore_interrupt_scheme(struct i40e_pf *pf) in i40e_restore_interrupt_scheme()
12193 static int i40e_setup_misc_vector_for_recovery_mode(struct i40e_pf *pf) in i40e_setup_misc_vector_for_recovery_mode()
12233 static int i40e_setup_misc_vector(struct i40e_pf *pf) in i40e_setup_misc_vector()
12276 struct i40e_pf *pf = vsi->back; in i40e_get_rss_aq()
12322 struct i40e_pf *pf = vsi->back; in i40e_config_rss_reg()
12376 struct i40e_pf *pf = vsi->back; in i40e_get_rss_reg()
12409 struct i40e_pf *pf = vsi->back; in i40e_config_rss()
12428 struct i40e_pf *pf = vsi->back; in i40e_get_rss()
12443 void i40e_fill_rss_lut(struct i40e_pf *pf, u8 *lut, in i40e_fill_rss_lut()
12456 static int i40e_pf_config_rss(struct i40e_pf *pf) in i40e_pf_config_rss()
12528 int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count) in i40e_reconfig_rss_queues()
12575 int i40e_get_partition_bw_setting(struct i40e_pf *pf) in i40e_get_partition_bw_setting()
12598 int i40e_set_partition_bw_setting(struct i40e_pf *pf) in i40e_set_partition_bw_setting()
12620 int i40e_commit_partition_bw_setting(struct i40e_pf *pf) in i40e_commit_partition_bw_setting()
12704 static bool i40e_is_total_port_shutdown_enabled(struct i40e_pf *pf) in i40e_is_total_port_shutdown_enabled()
12759 static int i40e_sw_init(struct i40e_pf *pf) in i40e_sw_init()
12899 bool i40e_set_ntuple(struct i40e_pf *pf, netdev_features_t features) in i40e_set_ntuple()
12945 struct i40e_pf *pf = vsi->back; in i40e_clear_rss_lut()
12995 struct i40e_pf *pf = vsi->back; in i40e_set_features()
13078 struct i40e_pf *pf = np->vsi->back; in i40e_get_phys_port_id()
13108 struct i40e_pf *pf = np->vsi->back; in i40e_ndo_fdb_add()
13164 struct i40e_pf *pf = vsi->back; in i40e_ndo_bridge_setlink()
13234 struct i40e_pf *pf = vsi->back; in i40e_ndo_bridge_getlink()
13318 struct i40e_pf *pf = vsi->back; in i40e_xdp_setup()
13385 struct i40e_pf *pf = vsi->back; in i40e_enter_busy_conf()
13404 struct i40e_pf *pf = vsi->back; in i40e_exit_busy_conf()
13479 struct i40e_pf *pf = vsi->back; in i40e_queue_pair_toggle_rings()
13530 struct i40e_pf *pf = vsi->back; in i40e_queue_pair_enable_irq()
13550 struct i40e_pf *pf = vsi->back; in i40e_queue_pair_disable_irq()
13705 struct i40e_pf *pf = vsi->back; in i40e_config_netdev()
13894 struct i40e_pf *pf = vsi->back; in i40e_is_vsi_uplink_mode_veb()
13929 struct i40e_pf *pf = vsi->back; in i40e_add_vsi()
14177 struct i40e_pf *pf; in i40e_vsi_release()
14278 struct i40e_pf *pf = vsi->back; in i40e_vsi_setup_vectors()
14335 struct i40e_pf *pf; in i40e_vsi_reinit_setup()
14412 struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type, in i40e_vsi_setup()
14594 struct i40e_pf *pf = veb->pf; in i40e_veb_get_bw_info()
14644 static int i40e_veb_mem_alloc(struct i40e_pf *pf) in i40e_veb_mem_alloc()
14692 struct i40e_pf *pf = branch->pf; in i40e_switch_branch_release()
14733 struct i40e_pf *pf = veb->pf; in i40e_veb_clear()
14751 struct i40e_pf *pf; in i40e_veb_release()
14792 struct i40e_pf *pf = veb->pf; in i40e_add_veb()
14853 struct i40e_veb *i40e_veb_setup(struct i40e_pf *pf, u16 uplink_seid, in i40e_veb_setup()
14913 static void i40e_setup_pf_switch_element(struct i40e_pf *pf, in i40e_setup_pf_switch_element()
14997 int i40e_fetch_switch_configuration(struct i40e_pf *pf, bool printconfig) in i40e_fetch_switch_configuration()
15055 static int i40e_setup_pf_switch(struct i40e_pf *pf, bool reinit, bool lock_acquired) in i40e_setup_pf_switch()
15170 static void i40e_determine_queue_usage(struct i40e_pf *pf) in i40e_determine_queue_usage()
15277 static int i40e_setup_pf_filter_control(struct i40e_pf *pf) in i40e_setup_pf_filter_control()
15300 static void i40e_print_features(struct i40e_pf *pf) in i40e_print_features()
15351 static void i40e_get_platform_mac_addr(struct pci_dev *pdev, struct i40e_pf *pf) in i40e_get_platform_mac_addr()
15393 static bool i40e_check_recovery_mode(struct i40e_pf *pf) in i40e_check_recovery_mode()
15431 static int i40e_pf_loop_reset(struct i40e_pf *pf) in i40e_pf_loop_reset()
15463 static bool i40e_check_fw_empr(struct i40e_pf *pf) in i40e_check_fw_empr()
15482 static int i40e_handle_resets(struct i40e_pf *pf) in i40e_handle_resets()
15503 static int i40e_init_recovery_mode(struct i40e_pf *pf, struct i40e_hw *hw) in i40e_init_recovery_mode()
15599 struct i40e_pf *pf = i40e_hw_to_pf(hw); in i40e_set_subsystem_device_id()
15624 struct i40e_pf *pf; in i40e_probe()
16231 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_remove()
16370 static void i40e_enable_mc_magic_wake(struct i40e_pf *pf) in i40e_enable_mc_magic_wake()
16417 static int i40e_io_suspend(struct i40e_pf *pf) in i40e_io_suspend()
16464 static int i40e_io_resume(struct i40e_pf *pf) in i40e_io_resume()
16510 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_pci_error_detected()
16539 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_pci_error_slot_reset()
16571 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_pci_error_reset_prepare()
16582 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_pci_error_reset_done()
16602 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_pci_error_resume()
16617 struct i40e_pf *pf = pci_get_drvdata(pdev); in i40e_shutdown()
16669 struct i40e_pf *pf = dev_get_drvdata(dev); in i40e_suspend()
16683 struct i40e_pf *pf = dev_get_drvdata(dev); in i40e_resume()