Lines Matching refs:hclgevf_dev

20 static int hclgevf_reset_hdev(struct hclgevf_dev *hdev);
21 static void hclgevf_task_schedule(struct hclgevf_dev *hdev,
87 void hclgevf_arq_init(struct hclgevf_dev *hdev) in hclgevf_arq_init()
100 struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
103 return container_of(handle, struct hclgevf_dev, nic); in hclgevf_ae_get_hdev()
105 return container_of(handle, struct hclgevf_dev, roce); in hclgevf_ae_get_hdev()
107 return container_of(handle, struct hclgevf_dev, nic); in hclgevf_ae_get_hdev()
112 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_stats()
156 static int hclgevf_get_basic_info(struct hclgevf_dev *hdev) in hclgevf_get_basic_info()
185 static int hclgevf_get_port_base_vlan_filter_state(struct hclgevf_dev *hdev) in hclgevf_get_port_base_vlan_filter_state()
208 static int hclgevf_get_queue_info(struct hclgevf_dev *hdev) in hclgevf_get_queue_info()
235 static int hclgevf_get_queue_depth(struct hclgevf_dev *hdev) in hclgevf_get_queue_depth()
263 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_qid_global()
279 static int hclgevf_get_pf_media_type(struct hclgevf_dev *hdev) in hclgevf_get_pf_media_type()
301 static int hclgevf_alloc_tqps(struct hclgevf_dev *hdev) in hclgevf_alloc_tqps()
351 static int hclgevf_knic_setup(struct hclgevf_dev *hdev) in hclgevf_knic_setup()
394 static void hclgevf_request_link_info(struct hclgevf_dev *hdev) in hclgevf_request_link_info()
406 void hclgevf_update_link_status(struct hclgevf_dev *hdev, int link_state) in hclgevf_update_link_status()
431 static void hclgevf_update_link_mode(struct hclgevf_dev *hdev) in hclgevf_update_link_mode()
445 static int hclgevf_set_handle_info(struct hclgevf_dev *hdev) in hclgevf_set_handle_info()
464 static void hclgevf_free_vector(struct hclgevf_dev *hdev, int vector_id) in hclgevf_free_vector()
480 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_vector()
511 static int hclgevf_get_vector_index(struct hclgevf_dev *hdev, int vector) in hclgevf_get_vector_index()
523 static int hclgevf_get_rss_hash_key(struct hclgevf_dev *hdev) in hclgevf_get_rss_hash_key()
563 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_rss()
590 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_rss()
613 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_rss_tuple()
631 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_rss_tuple()
652 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_tc_size()
662 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_bind_ring_to_vector()
705 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_map_ring_to_vector()
723 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_unmap_ring_from_vector()
748 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_put_vector()
764 static int hclgevf_cmd_set_promisc_mode(struct hclgevf_dev *hdev, in hclgevf_cmd_set_promisc_mode()
791 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_promisc_mode()
802 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_request_update_promisc_mode()
808 static void hclgevf_sync_promisc_mode(struct hclgevf_dev *hdev) in hclgevf_sync_promisc_mode()
822 static int hclgevf_tqp_enable_cmd_send(struct hclgevf_dev *hdev, u16 tqp_id, in hclgevf_tqp_enable_cmd_send()
841 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_tqp_enable()
854 static int hclgevf_get_host_mac_addr(struct hclgevf_dev *hdev, u8 *p) in hclgevf_get_host_mac_addr()
876 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_mac_addr()
892 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_mac_addr()
957 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_mac_list()
1024 static int hclgevf_add_del_mac_addr(struct hclgevf_dev *hdev, in hclgevf_add_del_mac_addr()
1050 static void hclgevf_config_mac_list(struct hclgevf_dev *hdev, in hclgevf_config_mac_list()
1137 static void hclgevf_sync_mac_list(struct hclgevf_dev *hdev, in hclgevf_sync_mac_list()
1192 static void hclgevf_sync_mac_table(struct hclgevf_dev *hdev) in hclgevf_sync_mac_table()
1198 static void hclgevf_uninit_mac_list(struct hclgevf_dev *hdev) in hclgevf_uninit_mac_list()
1210 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_enable_vlan_filter()
1228 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_vlan_filter()
1269 static void hclgevf_sync_vlan_filter(struct hclgevf_dev *hdev) in hclgevf_sync_vlan_filter()
1299 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_en_hw_strip_rxvtag()
1311 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_reset_tqp()
1345 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_mtu()
1356 static int hclgevf_notify_client(struct hclgevf_dev *hdev, in hclgevf_notify_client()
1378 static int hclgevf_notify_roce_client(struct hclgevf_dev *hdev, in hclgevf_notify_roce_client()
1398 static int hclgevf_reset_wait(struct hclgevf_dev *hdev) in hclgevf_reset_wait()
1440 static void hclgevf_reset_handshake(struct hclgevf_dev *hdev, bool enable) in hclgevf_reset_handshake()
1454 static int hclgevf_reset_stack(struct hclgevf_dev *hdev) in hclgevf_reset_stack()
1483 static int hclgevf_reset_prepare_wait(struct hclgevf_dev *hdev) in hclgevf_reset_prepare_wait()
1511 static void hclgevf_dump_rst_info(struct hclgevf_dev *hdev) in hclgevf_dump_rst_info()
1538 static void hclgevf_reset_err_handle(struct hclgevf_dev *hdev) in hclgevf_reset_err_handle()
1558 static int hclgevf_reset_prepare(struct hclgevf_dev *hdev) in hclgevf_reset_prepare()
1579 static int hclgevf_reset_rebuild(struct hclgevf_dev *hdev) in hclgevf_reset_rebuild()
1617 static void hclgevf_reset(struct hclgevf_dev *hdev) in hclgevf_reset()
1674 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_reset_event()
1694 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_set_def_reset_request()
1710 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_reset_prepare_general()
1739 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_reset_done()
1756 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_fw_version()
1761 static void hclgevf_get_misc_vector(struct hclgevf_dev *hdev) in hclgevf_get_misc_vector()
1776 void hclgevf_reset_task_schedule(struct hclgevf_dev *hdev) in hclgevf_reset_task_schedule()
1785 void hclgevf_mbx_task_schedule(struct hclgevf_dev *hdev) in hclgevf_mbx_task_schedule()
1793 static void hclgevf_task_schedule(struct hclgevf_dev *hdev, in hclgevf_task_schedule()
1801 static void hclgevf_reset_service_task(struct hclgevf_dev *hdev) in hclgevf_reset_service_task()
1870 static void hclgevf_mailbox_service_task(struct hclgevf_dev *hdev) in hclgevf_mailbox_service_task()
1883 static void hclgevf_keep_alive(struct hclgevf_dev *hdev) in hclgevf_keep_alive()
1898 static void hclgevf_periodic_service_task(struct hclgevf_dev *hdev) in hclgevf_periodic_service_task()
1950 struct hclgevf_dev *hdev = container_of(work, struct hclgevf_dev, in hclgevf_service_task()
1965 static void hclgevf_clear_event_cause(struct hclgevf_dev *hdev, u32 regclr) in hclgevf_clear_event_cause()
1970 static enum hclgevf_evt_cause hclgevf_check_evt_cause(struct hclgevf_dev *hdev, in hclgevf_check_evt_cause()
2024 struct hclgevf_dev *hdev = from_timer(hdev, t, reset_timer); in hclgevf_reset_timer()
2035 struct hclgevf_dev *hdev = data; in hclgevf_misc_irq_handle()
2060 static int hclgevf_configure(struct hclgevf_dev *hdev) in hclgevf_configure()
2091 struct hclgevf_dev *hdev; in hclgevf_alloc_hdev()
2104 static int hclgevf_init_roce_base_info(struct hclgevf_dev *hdev) in hclgevf_init_roce_base_info()
2128 static int hclgevf_config_gro(struct hclgevf_dev *hdev) in hclgevf_config_gro()
2151 static int hclgevf_rss_init_hw(struct hclgevf_dev *hdev) in hclgevf_rss_init_hw()
2183 static int hclgevf_init_vlan_config(struct hclgevf_dev *hdev) in hclgevf_init_vlan_config()
2199 static void hclgevf_flush_link_update(struct hclgevf_dev *hdev) in hclgevf_flush_link_update()
2214 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_timer_task()
2228 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_ae_start()
2244 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_ae_stop()
2260 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_alive()
2276 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_client_stop()
2285 static void hclgevf_state_init(struct hclgevf_dev *hdev) in hclgevf_state_init()
2304 static void hclgevf_state_uninit(struct hclgevf_dev *hdev) in hclgevf_state_uninit()
2315 static int hclgevf_init_msi(struct hclgevf_dev *hdev) in hclgevf_init_msi()
2366 static void hclgevf_uninit_msi(struct hclgevf_dev *hdev) in hclgevf_uninit_msi()
2375 static int hclgevf_misc_irq_init(struct hclgevf_dev *hdev) in hclgevf_misc_irq_init()
2399 static void hclgevf_misc_irq_uninit(struct hclgevf_dev *hdev) in hclgevf_misc_irq_uninit()
2408 static void hclgevf_info_show(struct hclgevf_dev *hdev) in hclgevf_info_show()
2428 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_init_nic_client_instance()
2456 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_init_roce_client_instance()
2480 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_init_client_instance()
2528 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_uninit_client_instance()
2554 static int hclgevf_dev_mem_map(struct hclgevf_dev *hdev) in hclgevf_dev_mem_map()
2575 static int hclgevf_pci_init(struct hclgevf_dev *hdev) in hclgevf_pci_init()
2624 static void hclgevf_pci_uninit(struct hclgevf_dev *hdev) in hclgevf_pci_uninit()
2636 static int hclgevf_query_vf_resource(struct hclgevf_dev *hdev) in hclgevf_query_vf_resource()
2687 static void hclgevf_set_default_dev_specs(struct hclgevf_dev *hdev) in hclgevf_set_default_dev_specs()
2701 static void hclgevf_parse_dev_specs(struct hclgevf_dev *hdev, in hclgevf_parse_dev_specs()
2720 static void hclgevf_check_dev_specs(struct hclgevf_dev *hdev) in hclgevf_check_dev_specs()
2736 static int hclgevf_query_dev_specs(struct hclgevf_dev *hdev) in hclgevf_query_dev_specs()
2767 static int hclgevf_pci_reset(struct hclgevf_dev *hdev) in hclgevf_pci_reset()
2803 static int hclgevf_clear_vport_list(struct hclgevf_dev *hdev) in hclgevf_clear_vport_list()
2812 static void hclgevf_init_rxd_adv_layout(struct hclgevf_dev *hdev) in hclgevf_init_rxd_adv_layout()
2818 static void hclgevf_uninit_rxd_adv_layout(struct hclgevf_dev *hdev) in hclgevf_uninit_rxd_adv_layout()
2824 static int hclgevf_reset_hdev(struct hclgevf_dev *hdev) in hclgevf_reset_hdev()
2877 static int hclgevf_init_hdev(struct hclgevf_dev *hdev) in hclgevf_init_hdev()
3008 static void hclgevf_uninit_hdev(struct hclgevf_dev *hdev) in hclgevf_uninit_hdev()
3051 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_uninit_ae_dev()
3057 static u32 hclgevf_get_max_channels(struct hclgevf_dev *hdev) in hclgevf_get_max_channels()
3079 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_channels()
3090 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_tqps_and_rss_info()
3100 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_rss_size()
3124 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_set_channels()
3178 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_status()
3187 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_ksettings_an_result()
3197 void hclgevf_update_speed_duplex(struct hclgevf_dev *hdev, u32 speed, in hclgevf_update_speed_duplex()
3206 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_gro_en()
3221 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_media_type()
3232 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_hw_reset_stat()
3239 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_cmdq_stat()
3246 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_ae_dev_resetting()
3253 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_ae_dev_reset_cnt()
3262 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_link_mode()
3268 void hclgevf_update_port_base_vlan_info(struct hclgevf_dev *hdev, u16 state, in hclgevf_update_port_base_vlan_info()