Home
last modified time | relevance | path

Searched refs:hnae3_handle (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h162 struct hnae3_handle;
167 struct hnae3_handle *handle;
347 int (*init_instance)(struct hnae3_handle *handle);
348 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
349 void (*link_status_change)(struct hnae3_handle *handle, bool state);
350 int (*reset_notify)(struct hnae3_handle *handle,
352 void (*process_hw_error)(struct hnae3_handle *handle,
541 int (*start)(struct hnae3_handle *handle);
542 void (*stop)(struct hnae3_handle *handle);
543 int (*client_start)(struct hnae3_handle *handle);
[all …]
Dhns3_dcbnl.c9 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getets()
22 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setets()
35 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getpfc()
48 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setpfc()
62 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_getdcbx()
73 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_setdcbx()
94 void hns3_dcbnl_setup(struct hnae3_handle *handle) in hns3_dcbnl_setup()
Dhns3_ethtool.c83 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_setup()
117 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_up()
150 struct hnae3_handle *handle; in hns3_lp_setup_skb()
205 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
301 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
325 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_prepare()
355 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_restore()
429 struct hnae3_handle *handle = hns3_get_handle(netdev); in hns3_update_limit_promisc_mode()
445 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
493 static u8 *hns3_get_strings_tqps(struct hnae3_handle *handle, u8 *data) in hns3_get_strings_tqps()
[all …]
Dhns3_debugfs.h24 struct hnae3_handle *handle;
51 int (*init)(struct hnae3_handle *handle, unsigned int cmd);
56 int (*dbg_dump)(struct hnae3_handle *handle, char *buf, int len);
Dhns3_enet.h541 struct hnae3_handle *handle;
563 struct hnae3_handle *ae_handle;
687 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
706 void hns3_request_update_promisc_mode(struct hnae3_handle *handle);
709 void hns3_dcbnl_setup(struct hnae3_handle *handle);
711 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
714 int hns3_dbg_init(struct hnae3_handle *handle);
715 void hns3_dbg_uninit(struct hnae3_handle *handle);
719 u16 hns3_get_max_available_channels(struct hnae3_handle *h);
Dhns3_enet.c44 static void hns3_clear_all_ring(struct hnae3_handle *h, bool force);
595 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_coalesce_init_hw()
610 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_set_real_num_queue()
648 u16 hns3_get_max_available_channels(struct hnae3_handle *h) in hns3_get_max_available_channels()
713 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
771 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_open()
809 static void hns3_reset_tx_queue(struct hnae3_handle *h) in hns3_reset_tx_queue()
826 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_down()
856 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_stop()
877 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_uc_sync()
[all …]
Dhns3_debugfs.c41 static int hns3_dbg_bd_file_init(struct hnae3_handle *handle, u32 cmd);
42 static int hns3_dbg_common_file_init(struct hnae3_handle *handle, u32 cmd);
516 static int hns3_dbg_rx_queue_info(struct hnae3_handle *h, in hns3_dbg_rx_queue_info()
619 static int hns3_dbg_tx_queue_info(struct hnae3_handle *h, in hns3_dbg_tx_queue_info()
672 static int hns3_dbg_queue_map(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_queue_map()
867 hns3_dbg_dev_caps(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_caps()
886 hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_specs()
929 static int hns3_dbg_dev_info(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_dev_info()
1012 struct hnae3_handle *handle = dbg_data->handle; in hns3_dbg_read()
1072 static int hns3_dbg_bd_file_init(struct hnae3_handle *handle, u32 cmd) in hns3_dbg_bd_file_init()
[all …]
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c95 static struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
105 static int hclgevf_tqps_update_stats(struct hnae3_handle *handle) in hclgevf_tqps_update_stats()
149 static u64 *hclgevf_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_tqps_get_stats()
168 static int hclgevf_tqps_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_tqps_get_sset_count()
175 static u8 *hclgevf_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclgevf_tqps_get_strings()
200 static void hclgevf_update_stats(struct hnae3_handle *handle, in hclgevf_update_stats()
213 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count()
223 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings()
232 static void hclgevf_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_get_stats()
278 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state()
[all …]
Dhclgevf_devlink.c45 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_down()
80 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_up()
Dhclgevf_main.h329 struct hnae3_handle nic;
330 struct hnae3_handle roce;
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mdio.h8 int hclge_mac_connect_phy(struct hnae3_handle *handle);
9 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
Dhclge_ptp.h129 bool hclge_ptp_set_tx_info(struct hnae3_handle *handle, struct sk_buff *skb);
131 void hclge_ptp_get_rx_hwts(struct hnae3_handle *handle, struct sk_buff *skb,
137 int hclge_ptp_get_ts_info(struct hnae3_handle *handle,
Dhclge_dcb.c66 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets()
233 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets()
287 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc()
314 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc()
367 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx()
378 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx()
479 static int hclge_setup_tc(struct hnae3_handle *h, in hclge_setup_tc()
Dhclge_main.c64 static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle);
568 static int hclge_tqps_update_stats(struct hnae3_handle *handle) in hclge_tqps_update_stats()
620 static u64 *hclge_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_tqps_get_stats()
640 static int hclge_tqps_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_tqps_get_sset_count()
648 static u8 *hclge_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclge_tqps_get_strings()
706 struct hnae3_handle *handle; in hclge_update_stats_for_all()
725 static void hclge_update_stats(struct hnae3_handle *handle, in hclge_update_stats()
750 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count()
795 static void hclge_get_strings(struct hnae3_handle *handle, u32 stringset, in hclge_get_strings()
831 static void hclge_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_get_stats()
[all …]
Dhclge_main.h1043 struct hnae3_handle nic;
1044 struct hnae3_handle roce;
1076 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
1095 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
1097 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
1104 int hclge_reset_tqp(struct hnae3_handle *handle);
1110 int hclge_dbg_read_cmd(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd,
1112 u16 hclge_covert_handle_qid_global(struct hnae3_handle *handle, u16 queue_id);
Dhclge_devlink.c44 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_down()
79 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_up()
Dhclge_mdio.c177 struct hnae3_handle *h = *((void **)netdev_priv(netdev)); in hclge_mac_adjust_link()
199 int hclge_mac_connect_phy(struct hnae3_handle *handle) in hclge_mac_connect_phy()
239 void hclge_mac_disconnect_phy(struct hnae3_handle *handle) in hclge_mac_disconnect_phy()
Dhclge_mbx.c247 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_promisc_mode()
354 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
541 struct hnae3_handle *handle = &vport->nic; in hclge_mbx_reset_vf_queue()
593 struct hnae3_handle *handle = &vport->nic; in hclge_get_queue_id_in_pf()
Dhclge_ptp.c67 bool hclge_ptp_set_tx_info(struct hnae3_handle *handle, struct sk_buff *skb) in hclge_ptp_set_tx_info()
114 void hclge_ptp_get_rx_hwts(struct hnae3_handle *handle, struct sk_buff *skb, in hclge_ptp_get_rx_hwts()
392 int hclge_ptp_get_ts_info(struct hnae3_handle *handle, in hclge_ptp_get_ts_info()
Dhclge_debugfs.c2487 int hclge_dbg_read_cmd(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd, in hclge_dbg_read_cmd()
/Linux-v5.15/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c668 struct hnae3_handle *handle = priv->handle; in hns_roce_write512()
1054 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_hw_resetting()
1080 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_sw_resetting()
1095 struct hnae3_handle *handle) in check_aedev_reset_status()
1133 struct hnae3_handle *handle = priv->handle; in check_device_is_in_reset()
1379 struct hnae3_handle *handle) in func_clr_hw_resetting_state()
1404 struct hnae3_handle *handle) in func_clr_sw_resetting_state()
1433 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_rst_proc()
6238 struct hnae3_handle *handle) in hns_roce_hw_v2_get_cfg()
6275 static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in __hns_roce_hw_v2_init_instance()
[all …]
Dhns_roce_hw_v2.h1436 struct hnae3_handle *handle;
1569 struct hnae3_handle *handle = priv->handle; in hns_roce_write64()