Lines Matching refs:hclge_dev

49 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps);
50 static int hclge_init_vlan_config(struct hclge_dev *hdev);
51 static void hclge_sync_vlan_filter(struct hclge_dev *hdev);
54 static void hclge_rfs_filter_expire(struct hclge_dev *hdev);
55 static int hclge_clear_arfs_rules(struct hclge_dev *hdev);
58 static int hclge_set_default_loopback(struct hclge_dev *hdev);
60 static void hclge_sync_mac_table(struct hclge_dev *hdev);
61 static void hclge_restore_hw_table(struct hclge_dev *hdev);
62 static void hclge_sync_promisc_mode(struct hclge_dev *hdev);
63 static void hclge_sync_fd_table(struct hclge_dev *hdev);
64 static void hclge_update_fec_stats(struct hclge_dev *hdev);
65 static int hclge_mac_link_status_wait(struct hclge_dev *hdev, int link_ret,
67 static int hclge_update_port_info(struct hclge_dev *hdev);
439 static int hclge_mac_update_stats_defective(struct hclge_dev *hdev) in hclge_mac_update_stats_defective()
475 static int hclge_mac_update_stats_complete(struct hclge_dev *hdev) in hclge_mac_update_stats_complete()
522 static int hclge_mac_query_reg_num(struct hclge_dev *hdev, u32 *reg_num) in hclge_mac_query_reg_num()
556 int hclge_mac_update_stats(struct hclge_dev *hdev) in hclge_mac_update_stats()
565 static int hclge_comm_get_count(struct hclge_dev *hdev, in hclge_comm_get_count()
579 static u64 *hclge_comm_get_stats(struct hclge_dev *hdev, in hclge_comm_get_stats()
597 static u8 *hclge_comm_get_strings(struct hclge_dev *hdev, u32 stringset, in hclge_comm_get_strings()
618 static void hclge_update_stats_for_all(struct hclge_dev *hdev) in hclge_update_stats_for_all()
644 struct hclge_dev *hdev = vport->back; in hclge_update_stats()
674 struct hclge_dev *hdev = vport->back; in hclge_get_sset_count()
723 struct hclge_dev *hdev = vport->back; in hclge_get_strings()
765 struct hclge_dev *hdev = vport->back; in hclge_get_stats()
777 struct hclge_dev *hdev = vport->back; in hclge_get_mac_stat()
785 static int hclge_parse_func_status(struct hclge_dev *hdev, in hclge_parse_func_status()
803 static int hclge_query_function_status(struct hclge_dev *hdev) in hclge_query_function_status()
832 static int hclge_query_pf_resource(struct hclge_dev *hdev) in hclge_query_pf_resource()
956 struct hclge_dev *hdev = vport->back; in hclge_check_port_speed()
1128 static void hclge_parse_fiber_link_mode(struct hclge_dev *hdev, in hclge_parse_fiber_link_mode()
1150 static void hclge_parse_backplane_link_mode(struct hclge_dev *hdev, in hclge_parse_backplane_link_mode()
1166 static void hclge_parse_copper_link_mode(struct hclge_dev *hdev, in hclge_parse_copper_link_mode()
1200 static void hclge_parse_link_mode(struct hclge_dev *hdev, u16 speed_ability) in hclge_parse_link_mode()
1339 static int hclge_get_cfg(struct hclge_dev *hdev, struct hclge_cfg *hcfg) in hclge_get_cfg()
1371 static void hclge_set_default_dev_specs(struct hclge_dev *hdev) in hclge_set_default_dev_specs()
1388 static void hclge_parse_dev_specs(struct hclge_dev *hdev, in hclge_parse_dev_specs()
1413 static void hclge_check_dev_specs(struct hclge_dev *hdev) in hclge_check_dev_specs()
1435 static int hclge_query_mac_stats_num(struct hclge_dev *hdev) in hclge_query_mac_stats_num()
1448 static int hclge_query_dev_specs(struct hclge_dev *hdev) in hclge_query_dev_specs()
1483 static int hclge_get_cap(struct hclge_dev *hdev) in hclge_get_cap()
1498 static void hclge_init_kdump_kernel_config(struct hclge_dev *hdev) in hclge_init_kdump_kernel_config()
1515 static void hclge_init_tc_config(struct hclge_dev *hdev) in hclge_init_tc_config()
1543 static int hclge_configure(struct hclge_dev *hdev) in hclge_configure()
1599 static int hclge_config_tso(struct hclge_dev *hdev, u16 tso_mss_min, in hclge_config_tso()
1614 static int hclge_config_gro(struct hclge_dev *hdev) in hclge_config_gro()
1636 static int hclge_alloc_tqps(struct hclge_dev *hdev) in hclge_alloc_tqps()
1686 static int hclge_map_tqps_to_func(struct hclge_dev *hdev, u16 func_id, in hclge_map_tqps_to_func()
1713 struct hclge_dev *hdev = vport->back; in hclge_assign_tqp()
1745 struct hclge_dev *hdev = vport->back; in hclge_knic_setup()
1766 static int hclge_map_tqp_to_vport(struct hclge_dev *hdev, in hclge_map_tqp_to_vport()
1790 static int hclge_map_tqp(struct hclge_dev *hdev) in hclge_map_tqp()
1812 struct hclge_dev *hdev = vport->back; in hclge_vport_setup()
1829 static int hclge_alloc_vport(struct hclge_dev *hdev) in hclge_alloc_vport()
1893 static int hclge_cmd_alloc_tx_buff(struct hclge_dev *hdev, in hclge_cmd_alloc_tx_buff()
1923 static int hclge_tx_buffer_alloc(struct hclge_dev *hdev, in hclge_tx_buffer_alloc()
1934 static u32 hclge_get_tc_num(struct hclge_dev *hdev) in hclge_get_tc_num()
1946 static int hclge_get_pfc_priv_num(struct hclge_dev *hdev, in hclge_get_pfc_priv_num()
1964 static int hclge_get_no_pfc_priv_num(struct hclge_dev *hdev, in hclge_get_no_pfc_priv_num()
2006 static bool hclge_is_rx_buf_ok(struct hclge_dev *hdev, in hclge_is_rx_buf_ok()
2072 static int hclge_tx_buffer_calc(struct hclge_dev *hdev, in hclge_tx_buffer_calc()
2098 static bool hclge_rx_buf_calc_all(struct hclge_dev *hdev, bool max, in hclge_rx_buf_calc_all()
2134 static bool hclge_drop_nopfc_buf_till_fit(struct hclge_dev *hdev, in hclge_drop_nopfc_buf_till_fit()
2164 static bool hclge_drop_pfc_buf_till_fit(struct hclge_dev *hdev, in hclge_drop_pfc_buf_till_fit()
2194 static int hclge_only_alloc_priv_buff(struct hclge_dev *hdev, in hclge_only_alloc_priv_buff()
2247 static int hclge_rx_buffer_calc(struct hclge_dev *hdev, in hclge_rx_buffer_calc()
2280 static int hclge_rx_priv_buf_alloc(struct hclge_dev *hdev, in hclge_rx_priv_buf_alloc()
2313 static int hclge_rx_priv_wl_config(struct hclge_dev *hdev, in hclge_rx_priv_wl_config()
2357 static int hclge_common_thrd_config(struct hclge_dev *hdev, in hclge_common_thrd_config()
2400 static int hclge_common_wl_config(struct hclge_dev *hdev, in hclge_common_wl_config()
2425 int hclge_buffer_alloc(struct hclge_dev *hdev) in hclge_buffer_alloc()
2495 struct hclge_dev *hdev = vport->back; in hclge_init_roce_base_info()
2516 static int hclge_init_msi(struct hclge_dev *hdev) in hclge_init_msi()
2593 static int hclge_cfg_mac_speed_dup_hw(struct hclge_dev *hdev, int speed, in hclge_cfg_mac_speed_dup_hw()
2630 int hclge_cfg_mac_speed_dup(struct hclge_dev *hdev, int speed, u8 duplex, u8 lane_num) in hclge_cfg_mac_speed_dup()
2656 struct hclge_dev *hdev = vport->back; in hclge_cfg_mac_speed_dup_h()
2670 static int hclge_set_autoneg_en(struct hclge_dev *hdev, bool enable) in hclge_set_autoneg_en()
2695 struct hclge_dev *hdev = vport->back; in hclge_set_autoneg()
2713 struct hclge_dev *hdev = vport->back; in hclge_get_autoneg()
2725 struct hclge_dev *hdev = vport->back; in hclge_restart_autoneg()
2739 struct hclge_dev *hdev = vport->back; in hclge_halt_autoneg()
2747 static void hclge_parse_fec_stats_lanes(struct hclge_dev *hdev, in hclge_parse_fec_stats_lanes()
2770 static void hclge_parse_fec_stats(struct hclge_dev *hdev, in hclge_parse_fec_stats()
2792 static int hclge_update_fec_stats_hw(struct hclge_dev *hdev) in hclge_update_fec_stats_hw()
2814 static void hclge_update_fec_stats(struct hclge_dev *hdev) in hclge_update_fec_stats()
2831 static void hclge_get_fec_stats_total(struct hclge_dev *hdev, in hclge_get_fec_stats_total()
2839 static void hclge_get_fec_stats_lanes(struct hclge_dev *hdev, in hclge_get_fec_stats_lanes()
2860 static void hclge_comm_get_fec_stats(struct hclge_dev *hdev, in hclge_comm_get_fec_stats()
2885 struct hclge_dev *hdev = vport->back; in hclge_get_fec_stats()
2898 static int hclge_set_fec_hw(struct hclge_dev *hdev, u32 fec_mode) in hclge_set_fec_hw()
2929 struct hclge_dev *hdev = vport->back; in hclge_set_fec()
2950 struct hclge_dev *hdev = vport->back; in hclge_get_fec()
2959 static int hclge_mac_init(struct hclge_dev *hdev) in hclge_mac_init()
3009 static void hclge_mbx_task_schedule(struct hclge_dev *hdev) in hclge_mbx_task_schedule()
3018 static void hclge_reset_task_schedule(struct hclge_dev *hdev) in hclge_reset_task_schedule()
3028 static void hclge_errhand_task_schedule(struct hclge_dev *hdev) in hclge_errhand_task_schedule()
3035 void hclge_task_schedule(struct hclge_dev *hdev, unsigned long delay_time) in hclge_task_schedule()
3042 static int hclge_get_mac_link_status(struct hclge_dev *hdev, int *link_status) in hclge_get_mac_link_status()
3063 static int hclge_get_mac_phy_link(struct hclge_dev *hdev, int *link_status) in hclge_get_mac_phy_link()
3078 static void hclge_push_link_status(struct hclge_dev *hdev) in hclge_push_link_status()
3100 static void hclge_update_link_status(struct hclge_dev *hdev) in hclge_update_link_status()
3184 static void hclge_update_pause_advertising(struct hclge_dev *hdev) in hclge_update_pause_advertising()
3211 static void hclge_update_advertising(struct hclge_dev *hdev) in hclge_update_advertising()
3221 static void hclge_update_port_capability(struct hclge_dev *hdev, in hclge_update_port_capability()
3246 static int hclge_get_sfp_speed(struct hclge_dev *hdev, u32 *speed) in hclge_get_sfp_speed()
3269 static int hclge_get_sfp_info(struct hclge_dev *hdev, struct hclge_mac *mac) in hclge_get_sfp_info()
3327 struct hclge_dev *hdev = vport->back; in hclge_get_phy_link_ksettings()
3377 struct hclge_dev *hdev = vport->back; in hclge_set_phy_link_ksettings()
3420 static int hclge_update_tp_port_info(struct hclge_dev *hdev) in hclge_update_tp_port_info()
3440 static int hclge_tp_port_init(struct hclge_dev *hdev) in hclge_tp_port_init()
3455 static int hclge_update_port_info(struct hclge_dev *hdev) in hclge_update_port_info()
3505 struct hclge_dev *hdev = vport->back; in hclge_get_status()
3512 struct hclge_vport *hclge_get_vf_vport(struct hclge_dev *hdev, int vf) in hclge_get_vf_vport()
3536 struct hclge_dev *hdev = vport->back; in hclge_get_vf_config()
3560 struct hclge_dev *hdev = vport->back; in hclge_set_vf_link_state()
3587 static u32 hclge_check_event_cause(struct hclge_dev *hdev, u32 *clearval) in hclge_check_event_cause()
3649 static void hclge_clear_event_cause(struct hclge_dev *hdev, u32 event_type, in hclge_clear_event_cause()
3670 static void hclge_clear_all_event_cause(struct hclge_dev *hdev) in hclge_clear_all_event_cause()
3686 struct hclge_dev *hdev = data; in hclge_misc_irq_handle()
3736 static void hclge_free_vector(struct hclge_dev *hdev, int vector_id) in hclge_free_vector()
3749 static void hclge_get_misc_vector(struct hclge_dev *hdev) in hclge_get_misc_vector()
3762 static int hclge_misc_irq_init(struct hclge_dev *hdev) in hclge_misc_irq_init()
3782 static void hclge_misc_irq_uninit(struct hclge_dev *hdev) in hclge_misc_irq_uninit()
3788 int hclge_notify_client(struct hclge_dev *hdev, in hclge_notify_client()
3809 static int hclge_notify_roce_client(struct hclge_dev *hdev, in hclge_notify_roce_client()
3830 static int hclge_reset_wait(struct hclge_dev *hdev) in hclge_reset_wait()
3874 static int hclge_set_vf_rst(struct hclge_dev *hdev, int func_id, bool reset) in hclge_set_vf_rst()
3889 static int hclge_set_all_vf_rst(struct hclge_dev *hdev, bool reset) in hclge_set_all_vf_rst()
3933 static void hclge_mailbox_service_task(struct hclge_dev *hdev) in hclge_mailbox_service_task()
3952 static void hclge_func_reset_sync_vf(struct hclge_dev *hdev) in hclge_func_reset_sync_vf()
3987 void hclge_report_hw_error(struct hclge_dev *hdev, in hclge_report_hw_error()
3999 static void hclge_handle_imp_error(struct hclge_dev *hdev) in hclge_handle_imp_error()
4017 int hclge_func_reset_cmd(struct hclge_dev *hdev, int func_id) in hclge_func_reset_cmd()
4035 static void hclge_do_reset(struct hclge_dev *hdev) in hclge_do_reset()
4079 struct hclge_dev *hdev = ae_dev->priv; in hclge_get_reset_level()
4106 static void hclge_clear_reset_cause(struct hclge_dev *hdev) in hclge_clear_reset_cause()
4134 static void hclge_reset_handshake(struct hclge_dev *hdev, bool enable) in hclge_reset_handshake()
4147 static int hclge_func_reset_notify_vf(struct hclge_dev *hdev) in hclge_func_reset_notify_vf()
4160 static int hclge_reset_prepare_wait(struct hclge_dev *hdev) in hclge_reset_prepare_wait()
4209 static void hclge_show_rst_info(struct hclge_dev *hdev) in hclge_show_rst_info()
4224 static bool hclge_reset_err_handle(struct hclge_dev *hdev) in hclge_reset_err_handle()
4261 static void hclge_update_reset_level(struct hclge_dev *hdev) in hclge_update_reset_level()
4282 static int hclge_set_rst_done(struct hclge_dev *hdev) in hclge_set_rst_done()
4310 static int hclge_reset_prepare_up(struct hclge_dev *hdev) in hclge_reset_prepare_up()
4333 static int hclge_reset_stack(struct hclge_dev *hdev) in hclge_reset_stack()
4348 static int hclge_reset_prepare(struct hclge_dev *hdev) in hclge_reset_prepare()
4367 static int hclge_reset_rebuild(struct hclge_dev *hdev) in hclge_reset_rebuild()
4417 static void hclge_reset(struct hclge_dev *hdev) in hclge_reset()
4438 struct hclge_dev *hdev = ae_dev->priv; in hclge_reset_event()
4483 struct hclge_dev *hdev = ae_dev->priv; in hclge_set_def_reset_request()
4490 struct hclge_dev *hdev = from_timer(hdev, t, reset_timer); in hclge_reset_timer()
4503 static void hclge_reset_subtask(struct hclge_dev *hdev) in hclge_reset_subtask()
4529 static void hclge_handle_err_reset_request(struct hclge_dev *hdev) in hclge_handle_err_reset_request()
4547 static void hclge_handle_err_recovery(struct hclge_dev *hdev) in hclge_handle_err_recovery()
4562 static void hclge_misc_err_recovery(struct hclge_dev *hdev) in hclge_misc_err_recovery()
4581 static void hclge_errhand_service_task(struct hclge_dev *hdev) in hclge_errhand_service_task()
4592 static void hclge_reset_service_task(struct hclge_dev *hdev) in hclge_reset_service_task()
4613 static void hclge_update_vport_alive(struct hclge_dev *hdev) in hclge_update_vport_alive()
4637 static void hclge_periodic_service_task(struct hclge_dev *hdev) in hclge_periodic_service_task()
4684 static void hclge_ptp_service_task(struct hclge_dev *hdev) in hclge_ptp_service_task()
4707 struct hclge_dev *hdev = in hclge_service_task()
4708 container_of(work, struct hclge_dev, service_task.work); in hclge_service_task()
4736 static void hclge_get_vector_info(struct hclge_dev *hdev, u16 idx, in hclge_get_vector_info()
4765 struct hclge_dev *hdev = vport->back; in hclge_get_vector()
4790 static int hclge_get_vector_index(struct hclge_dev *hdev, int vector) in hclge_get_vector_index()
4804 struct hclge_dev *hdev = vport->back; in hclge_put_vector()
4839 struct hclge_dev *hdev = vport->back; in hclge_set_rss()
4862 struct hclge_dev *hdev = vport->back; in hclge_set_rss_tuple()
4898 struct hclge_dev *hdev = vport->back; in hclge_get_tc_size()
4903 static int hclge_init_rss_tc_mode(struct hclge_dev *hdev) in hclge_init_rss_tc_mode()
4947 int hclge_rss_init_hw(struct hclge_dev *hdev) in hclge_rss_init_hw()
4974 struct hclge_dev *hdev = vport->back; in hclge_bind_ring_with_vector()
5052 struct hclge_dev *hdev = vport->back; in hclge_map_ring_to_vector()
5069 struct hclge_dev *hdev = vport->back; in hclge_unmap_ring_frm_vector()
5091 static int hclge_cmd_set_promisc_mode(struct hclge_dev *hdev, u8 vf_id, in hclge_cmd_set_promisc_mode()
5147 struct hclge_dev *hdev = vport->back; in hclge_set_promisc_mode()
5168 static void hclge_sync_fd_state(struct hclge_dev *hdev) in hclge_sync_fd_state()
5174 static void hclge_fd_inc_rule_cnt(struct hclge_dev *hdev, u16 location) in hclge_fd_inc_rule_cnt()
5182 static void hclge_fd_dec_rule_cnt(struct hclge_dev *hdev, u16 location) in hclge_fd_dec_rule_cnt()
5190 static void hclge_fd_free_node(struct hclge_dev *hdev, in hclge_fd_free_node()
5198 static void hclge_update_fd_rule_node(struct hclge_dev *hdev, in hclge_update_fd_rule_node()
5280 static int hclge_fd_set_user_def_cmd(struct hclge_dev *hdev, in hclge_fd_set_user_def_cmd()
5316 static void hclge_sync_fd_user_def_cfg(struct hclge_dev *hdev, bool locked) in hclge_sync_fd_user_def_cfg()
5334 static int hclge_fd_check_user_def_refcnt(struct hclge_dev *hdev, in hclge_fd_check_user_def_refcnt()
5370 static void hclge_fd_inc_user_def_refcnt(struct hclge_dev *hdev, in hclge_fd_inc_user_def_refcnt()
5387 static void hclge_fd_dec_user_def_refcnt(struct hclge_dev *hdev, in hclge_fd_dec_user_def_refcnt()
5407 static void hclge_update_fd_list(struct hclge_dev *hdev, in hclge_update_fd_list()
5447 static int hclge_get_fd_mode(struct hclge_dev *hdev, u8 *fd_mode) in hclge_get_fd_mode()
5468 static int hclge_get_fd_allocation(struct hclge_dev *hdev, in hclge_get_fd_allocation()
5497 static int hclge_set_fd_key_config(struct hclge_dev *hdev, in hclge_set_fd_key_config()
5525 static void hclge_fd_disable_user_def(struct hclge_dev *hdev) in hclge_fd_disable_user_def()
5536 static int hclge_init_fd_config(struct hclge_dev *hdev) in hclge_init_fd_config()
5599 static int hclge_fd_tcam_config(struct hclge_dev *hdev, u8 stage, bool sel_x, in hclge_fd_tcam_config()
5641 static int hclge_fd_ad_config(struct hclge_dev *hdev, u8 stage, int loc, in hclge_fd_ad_config()
5810 static int hclge_config_key(struct hclge_dev *hdev, u8 stage, in hclge_config_key()
5867 static int hclge_config_action(struct hclge_dev *hdev, u8 stage, in hclge_config_action()
6040 static int hclge_fd_check_ext_tuple(struct hclge_dev *hdev, in hclge_fd_check_ext_tuple()
6113 static int hclge_fd_parse_user_def_field(struct hclge_dev *hdev, in hclge_fd_parse_user_def_field()
6169 static int hclge_fd_check_spec(struct hclge_dev *hdev, in hclge_fd_check_spec()
6431 static int hclge_fd_config_rule(struct hclge_dev *hdev, in hclge_fd_config_rule()
6443 static int hclge_add_fd_entry_common(struct hclge_dev *hdev, in hclge_add_fd_entry_common()
6484 struct hclge_dev *hdev = vport->back; in hclge_is_cls_flower_active()
6489 static int hclge_fd_parse_ring_cookie(struct hclge_dev *hdev, u64 ring_cookie, in hclge_fd_parse_ring_cookie()
6532 struct hclge_dev *hdev = vport->back; in hclge_add_fd_entry()
6593 struct hclge_dev *hdev = vport->back; in hclge_del_fd_entry()
6626 static void hclge_clear_fd_rules_in_list(struct hclge_dev *hdev, in hclge_clear_fd_rules_in_list()
6655 static void hclge_del_all_fd_entries(struct hclge_dev *hdev) in hclge_del_all_fd_entries()
6667 struct hclge_dev *hdev = vport->back; in hclge_restore_fd_entries()
6697 struct hclge_dev *hdev = vport->back; in hclge_get_fd_rule_cnt()
6876 static struct hclge_fd_rule *hclge_get_fd_rule(struct hclge_dev *hdev, in hclge_get_fd_rule()
6912 struct hclge_dev *hdev = vport->back; in hclge_get_fd_rule_info()
6973 struct hclge_dev *hdev = vport->back; in hclge_get_all_rules()
7030 hclge_fd_search_flow_keys(struct hclge_dev *hdev, in hclge_fd_search_flow_keys()
7074 struct hclge_dev *hdev = vport->back; in hclge_add_fd_entry_by_arfs()
7128 static void hclge_rfs_filter_expire(struct hclge_dev *hdev) in hclge_rfs_filter_expire()
7154 static int hclge_clear_arfs_rules(struct hclge_dev *hdev) in hclge_clear_arfs_rules()
7310 static int hclge_parse_cls_flower(struct hclge_dev *hdev, in hclge_parse_cls_flower()
7345 static int hclge_check_cls_flower(struct hclge_dev *hdev, in hclge_check_cls_flower()
7375 struct hclge_dev *hdev = vport->back; in hclge_add_cls_flower()
7416 static struct hclge_fd_rule *hclge_find_cls_flower(struct hclge_dev *hdev, in hclge_find_cls_flower()
7434 struct hclge_dev *hdev = vport->back; in hclge_del_cls_flower()
7468 static void hclge_sync_fd_list(struct hclge_dev *hdev, struct hlist_head *hlist) in hclge_sync_fd_list()
7507 static void hclge_sync_fd_table(struct hclge_dev *hdev) in hclge_sync_fd_table()
7526 struct hclge_dev *hdev = vport->back; in hclge_get_hw_reset_stat()
7535 struct hclge_dev *hdev = vport->back; in hclge_get_cmdq_stat()
7543 struct hclge_dev *hdev = vport->back; in hclge_ae_dev_resetting()
7551 struct hclge_dev *hdev = vport->back; in hclge_ae_dev_reset_cnt()
7559 struct hclge_dev *hdev = vport->back; in hclge_enable_fd()
7571 static void hclge_cfg_mac_mode(struct hclge_dev *hdev, bool enable) in hclge_cfg_mac_mode()
7610 static int hclge_config_switch_param(struct hclge_dev *hdev, int vfid, in hclge_config_switch_param()
7646 static void hclge_phy_link_status_wait(struct hclge_dev *hdev, in hclge_phy_link_status_wait()
7670 static int hclge_mac_link_status_wait(struct hclge_dev *hdev, int link_ret, in hclge_mac_link_status_wait()
7689 static int hclge_mac_phy_link_status_wait(struct hclge_dev *hdev, bool en, in hclge_mac_phy_link_status_wait()
7705 static int hclge_set_app_loopback(struct hclge_dev *hdev, bool en) in hclge_set_app_loopback()
7739 static int hclge_cfg_common_loopback_cmd_send(struct hclge_dev *hdev, bool en, in hclge_cfg_common_loopback_cmd_send()
7779 static int hclge_cfg_common_loopback_wait(struct hclge_dev *hdev) in hclge_cfg_common_loopback_wait()
7816 static int hclge_cfg_common_loopback(struct hclge_dev *hdev, bool en, in hclge_cfg_common_loopback()
7828 static int hclge_set_common_loopback(struct hclge_dev *hdev, bool en, in hclge_set_common_loopback()
7847 static int hclge_enable_phy_loopback(struct hclge_dev *hdev, in hclge_enable_phy_loopback()
7865 static int hclge_disable_phy_loopback(struct hclge_dev *hdev, in hclge_disable_phy_loopback()
7877 static int hclge_set_phy_loopback(struct hclge_dev *hdev, bool en) in hclge_set_phy_loopback()
7909 static int hclge_tqp_enable_cmd_send(struct hclge_dev *hdev, u16 tqp_id, in hclge_tqp_enable_cmd_send()
7928 struct hclge_dev *hdev = vport->back; in hclge_tqp_enable()
7944 struct hclge_dev *hdev = vport->back; in hclge_set_loopback()
7992 static int hclge_set_default_loopback(struct hclge_dev *hdev) in hclge_set_default_loopback()
8008 static void hclge_flush_link_update(struct hclge_dev *hdev) in hclge_flush_link_update()
8024 struct hclge_dev *hdev = vport->back; in hclge_set_timer_task()
8040 struct hclge_dev *hdev = vport->back; in hclge_ae_start()
8058 struct hclge_dev *hdev = vport->back; in hclge_ae_stop()
8095 struct hclge_dev *hdev = vport->back; in hclge_vport_start()
8142 struct hclge_dev *hdev = vport->back; in hclge_get_mac_vlan_cmd_status()
8260 struct hclge_dev *hdev = vport->back; in hclge_remove_mac_vlan_tbl()
8289 struct hclge_dev *hdev = vport->back; in hclge_lookup_mac_vlan_tbl()
8331 struct hclge_dev *hdev = vport->back; in hclge_add_mac_vlan_tbl()
8380 static int hclge_set_umv_space(struct hclge_dev *hdev, u16 space_size, in hclge_set_umv_space()
8404 static int hclge_init_umv_space(struct hclge_dev *hdev) in hclge_init_umv_space()
8429 static void hclge_reset_umv_space(struct hclge_dev *hdev) in hclge_reset_umv_space()
8449 struct hclge_dev *hdev = vport->back; in hclge_is_umv_space_full()
8466 struct hclge_dev *hdev = vport->back; in hclge_update_umv_space()
8529 struct hclge_dev *hdev = vport->back; in hclge_update_mac_list()
8590 struct hclge_dev *hdev = vport->back; in hclge_add_uc_addr_common()
8661 struct hclge_dev *hdev = vport->back; in hclge_rm_uc_addr_common()
8702 struct hclge_dev *hdev = vport->back; in hclge_add_mc_addr_common()
8766 struct hclge_dev *hdev = vport->back; in hclge_rm_mc_addr_common()
9002 struct hclge_dev *hdev = vport->back; in hclge_need_sync_mac_table()
9013 static void hclge_sync_mac_table(struct hclge_dev *hdev) in hclge_sync_mac_table()
9083 struct hclge_dev *hdev = vport->back; in hclge_rm_vport_all_mac_table()
9119 struct hclge_dev *hdev = vport->back; in hclge_uninit_vport_mac_list()
9158 static void hclge_uninit_mac_table(struct hclge_dev *hdev) in hclge_uninit_mac_table()
9170 static int hclge_get_mac_ethertype_cmd_status(struct hclge_dev *hdev, in hclge_get_mac_ethertype_cmd_status()
9217 struct hclge_dev *hdev = vport->back; in hclge_set_vf_mac()
9251 static int hclge_add_mgr_tbl(struct hclge_dev *hdev, in hclge_add_mgr_tbl()
9276 static int init_mgr_tbl(struct hclge_dev *hdev) in init_mgr_tbl()
9297 struct hclge_dev *hdev = vport->back; in hclge_get_mac_addr()
9352 struct hclge_dev *hdev = vport->back; in hclge_set_mac_addr()
9403 static int hclge_mii_ioctl(struct hclge_dev *hdev, struct ifreq *ifr, int cmd) in hclge_mii_ioctl()
9430 struct hclge_dev *hdev = vport->back; in hclge_do_ioctl()
9445 static int hclge_set_port_vlan_filter_bypass(struct hclge_dev *hdev, u8 vf_id, in hclge_set_port_vlan_filter_bypass()
9467 static int hclge_set_vlan_filter_ctrl(struct hclge_dev *hdev, u8 vlan_type, in hclge_set_vlan_filter_ctrl()
9502 struct hclge_dev *hdev = vport->back; in hclge_set_vport_vlan_filter()
9536 struct hclge_dev *hdev = vport->back; in hclge_need_enable_vport_vlan_filter()
9565 struct hclge_dev *hdev = vport->back; in hclge_enable_vport_vlan_filter()
9599 static int hclge_set_vf_vlan_filter_cmd(struct hclge_dev *hdev, u16 vfid, in hclge_set_vf_vlan_filter_cmd()
9641 static int hclge_check_vf_vlan_cmd_status(struct hclge_dev *hdev, u16 vfid, in hclge_check_vf_vlan_cmd_status()
9684 static int hclge_set_vf_vlan_common(struct hclge_dev *hdev, u16 vfid, in hclge_set_vf_vlan_common()
9712 static int hclge_set_port_vlan_filter(struct hclge_dev *hdev, __be16 proto, in hclge_set_port_vlan_filter()
9741 static bool hclge_need_update_port_vlan(struct hclge_dev *hdev, u16 vport_id, in hclge_need_update_port_vlan()
9767 static int hclge_set_vlan_filter_hw(struct hclge_dev *hdev, __be16 proto, in hclge_set_vlan_filter_hw()
9805 struct hclge_dev *hdev = vport->back; in hclge_set_vlan_tx_offload_cfg()
9850 struct hclge_dev *hdev = vport->back; in hclge_set_vlan_rx_offload_cfg()
9941 static int hclge_set_vlan_protocol_type(struct hclge_dev *hdev) in hclge_set_vlan_protocol_type()
9982 static int hclge_init_vlan_filter(struct hclge_dev *hdev) in hclge_init_vlan_filter()
10013 static int hclge_init_vlan_type(struct hclge_dev *hdev) in hclge_init_vlan_type()
10025 static int hclge_init_vport_vlan_offload(struct hclge_dev *hdev) in hclge_init_vport_vlan_offload()
10045 static int hclge_init_vlan_config(struct hclge_dev *hdev) in hclge_init_vlan_config()
10069 struct hclge_dev *hdev = vport->back; in hclge_add_vport_vlan_table()
10096 struct hclge_dev *hdev = vport->back; in hclge_add_vport_all_vlan_table()
10127 struct hclge_dev *hdev = vport->back; in hclge_rm_vport_vlan_table()
10148 struct hclge_dev *hdev = vport->back; in hclge_rm_vport_all_vlan_table()
10170 void hclge_uninit_vport_vlan_table(struct hclge_dev *hdev) in hclge_uninit_vport_vlan_table()
10189 void hclge_restore_vport_port_base_vlan_config(struct hclge_dev *hdev) in hclge_restore_vport_port_base_vlan_config()
10223 struct hclge_dev *hdev = vport->back; in hclge_restore_vport_vlan_table()
10273 static void hclge_restore_hw_table(struct hclge_dev *hdev) in hclge_restore_hw_table()
10309 struct hclge_dev *hdev = vport->back; in hclge_set_vport_vlan_fltr_change()
10320 struct hclge_dev *hdev = vport->back; in hclge_update_vlan_filter_entries()
10368 struct hclge_dev *hdev = vport->back; in hclge_modify_port_base_vlan_tag()
10462 struct hclge_dev *hdev = vport->back; in hclge_set_vf_vlan_filter()
10517 static void hclge_clear_vf_vlan(struct hclge_dev *hdev) in hclge_clear_vf_vlan()
10543 struct hclge_dev *hdev = vport->back; in hclge_set_vlan_filter()
10598 static void hclge_sync_vlan_fltr_state(struct hclge_dev *hdev) in hclge_sync_vlan_fltr_state()
10623 static void hclge_sync_vlan_filter(struct hclge_dev *hdev) in hclge_sync_vlan_filter()
10665 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps) in hclge_set_mac_mtu()
10688 struct hclge_dev *hdev = vport->back; in hclge_set_vport_mtu()
10742 static int hclge_reset_tqp_cmd_send(struct hclge_dev *hdev, u16 queue_id, in hclge_reset_tqp_cmd_send()
10766 static int hclge_get_reset_status(struct hclge_dev *hdev, u16 queue_id, in hclge_get_reset_status()
10804 struct hclge_dev *hdev = vport->back; in hclge_reset_tqp_cmd()
10858 struct hclge_dev *hdev = vport->back; in hclge_reset_rcb()
10899 struct hclge_dev *hdev = vport->back; in hclge_reset_tqp()
10918 struct hclge_dev *hdev = vport->back; in hclge_get_fw_version()
10923 int hclge_query_scc_version(struct hclge_dev *hdev, u32 *scc_version) in hclge_query_scc_version()
10941 static void hclge_set_flowctrl_adv(struct hclge_dev *hdev, u32 rx_en, u32 tx_en) in hclge_set_flowctrl_adv()
10951 static int hclge_cfg_pauseparam(struct hclge_dev *hdev, u32 rx_en, u32 tx_en) in hclge_cfg_pauseparam()
10966 int hclge_cfg_flowctrl(struct hclge_dev *hdev) in hclge_cfg_flowctrl()
11005 struct hclge_dev *hdev = vport->back; in hclge_get_pauseparam()
11032 static void hclge_record_user_pauseparam(struct hclge_dev *hdev, in hclge_record_user_pauseparam()
11051 struct hclge_dev *hdev = vport->back; in hclge_set_pauseparam()
11087 struct hclge_dev *hdev = vport->back; in hclge_get_ksettings_an_result()
11103 struct hclge_dev *hdev = vport->back; in hclge_get_media_type()
11122 struct hclge_dev *hdev = vport->back; in hclge_get_mdix_mode()
11168 static void hclge_info_show(struct hclge_dev *hdev) in hclge_info_show()
11200 struct hclge_dev *hdev = ae_dev->priv; in hclge_init_nic_client_instance()
11243 struct hclge_dev *hdev = ae_dev->priv; in hclge_init_roce_client_instance()
11294 struct hclge_dev *hdev = ae_dev->priv; in hclge_init_client_instance()
11338 static bool hclge_uninit_need_wait(struct hclge_dev *hdev) in hclge_uninit_need_wait()
11347 struct hclge_dev *hdev = ae_dev->priv; in hclge_uninit_client_instance()
11372 static int hclge_dev_mem_map(struct hclge_dev *hdev) in hclge_dev_mem_map()
11393 static int hclge_pci_init(struct hclge_dev *hdev) in hclge_pci_init()
11449 static void hclge_pci_uninit(struct hclge_dev *hdev) in hclge_pci_uninit()
11462 static void hclge_state_init(struct hclge_dev *hdev) in hclge_state_init()
11473 static void hclge_state_uninit(struct hclge_dev *hdev) in hclge_state_uninit()
11490 struct hclge_dev *hdev = ae_dev->priv; in hclge_reset_prepare_general()
11520 struct hclge_dev *hdev = ae_dev->priv; in hclge_reset_done()
11534 static void hclge_clear_resetting_state(struct hclge_dev *hdev) in hclge_clear_resetting_state()
11551 static int hclge_clear_hw_resource(struct hclge_dev *hdev) in hclge_clear_hw_resource()
11573 static void hclge_init_rxd_adv_layout(struct hclge_dev *hdev) in hclge_init_rxd_adv_layout()
11579 static void hclge_uninit_rxd_adv_layout(struct hclge_dev *hdev) in hclge_uninit_rxd_adv_layout()
11592 static int hclge_get_wol_supported_mode(struct hclge_dev *hdev, in hclge_get_wol_supported_mode()
11615 static int hclge_set_wol_cfg(struct hclge_dev *hdev, in hclge_set_wol_cfg()
11636 static int hclge_update_wol(struct hclge_dev *hdev) in hclge_update_wol()
11646 static int hclge_init_wol(struct hclge_dev *hdev) in hclge_init_wol()
11706 struct hclge_dev *hdev; in hclge_init_ae_dev()
11935 static void hclge_stats_clear(struct hclge_dev *hdev) in hclge_stats_clear()
11941 static int hclge_set_mac_spoofchk(struct hclge_dev *hdev, int vf, bool enable) in hclge_set_mac_spoofchk()
11947 static int hclge_set_vlan_spoofchk(struct hclge_dev *hdev, int vf, bool enable) in hclge_set_vlan_spoofchk()
11954 static int hclge_set_vf_spoofchk_hw(struct hclge_dev *hdev, int vf, bool enable) in hclge_set_vf_spoofchk_hw()
11979 struct hclge_dev *hdev = vport->back; in hclge_set_vf_spoofchk()
12010 static int hclge_reset_vport_spoofchk(struct hclge_dev *hdev) in hclge_reset_vport_spoofchk()
12035 struct hclge_dev *hdev = vport->back; in hclge_set_vf_trust()
12052 static void hclge_reset_vf_rate(struct hclge_dev *hdev) in hclge_reset_vf_rate()
12070 static int hclge_vf_rate_param_check(struct hclge_dev *hdev, in hclge_vf_rate_param_check()
12088 struct hclge_dev *hdev = vport->back; in hclge_set_vf_rate()
12111 static int hclge_resume_vf_rate(struct hclge_dev *hdev) in hclge_resume_vf_rate()
12143 static void hclge_reset_vport_state(struct hclge_dev *hdev) in hclge_reset_vport_state()
12156 struct hclge_dev *hdev = ae_dev->priv; in hclge_reset_ae_dev()
12298 struct hclge_dev *hdev = ae_dev->priv; in hclge_uninit_ae_dev()
12333 struct hclge_dev *hdev = vport->back; in hclge_get_max_channels()
12351 struct hclge_dev *hdev = vport->back; in hclge_get_tqps_and_rss_info()
12361 struct hclge_dev *hdev = vport->back; in hclge_set_rss_tc_mode_cfg()
12391 struct hclge_dev *hdev = vport->back; in hclge_set_channels()
12440 static int hclge_set_led_status(struct hclge_dev *hdev, u8 locate_led_status) in hclge_set_led_status()
12470 struct hclge_dev *hdev = vport->back; in hclge_set_led_id()
12488 struct hclge_dev *hdev = vport->back; in hclge_get_link_mode()
12500 struct hclge_dev *hdev = vport->back; in hclge_gro_en()
12515 struct hclge_dev *hdev = vport->back; in hclge_sync_vport_promisc_mode()
12565 static void hclge_sync_promisc_mode(struct hclge_dev *hdev) in hclge_sync_promisc_mode()
12580 static bool hclge_module_existed(struct hclge_dev *hdev) in hclge_module_existed()
12602 static u16 hclge_get_sfp_eeprom_info(struct hclge_dev *hdev, u32 offset, in hclge_get_sfp_eeprom_info()
12657 struct hclge_dev *hdev = vport->back; in hclge_get_module_eeprom()
12685 struct hclge_dev *hdev = vport->back; in hclge_get_link_diagnosis_info()
12709 struct hclge_dev *hdev = vport->back; in hclge_clear_vport_vf_info()
12747 struct hclge_dev *hdev = ae_dev->priv; in hclge_clean_vport_config()