Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h170 struct hnae3_handle;
176 struct hnae3_handle *handle;
361 int (*init_instance)(struct hnae3_handle *handle);
362 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
363 void (*link_status_change)(struct hnae3_handle *handle, bool state);
364 int (*reset_notify)(struct hnae3_handle *handle,
366 void (*process_hw_error)(struct hnae3_handle *handle,
557 int (*start)(struct hnae3_handle *handle);
558 void (*stop)(struct hnae3_handle *handle);
559 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.c85 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_setup()
119 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_up()
152 struct hnae3_handle *handle; in hns3_lp_setup_skb()
207 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
305 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
329 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_prepare()
359 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_restore()
433 struct hnae3_handle *handle = hns3_get_handle(netdev); in hns3_update_limit_promisc_mode()
449 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
497 static u8 *hns3_get_strings_tqps(struct hnae3_handle *handle, u8 *data) in hns3_get_strings_tqps()
[all …]
Dhns3_debugfs.h26 struct hnae3_handle *handle;
52 int (*init)(struct hnae3_handle *handle, unsigned int cmd);
57 int (*dbg_dump)(struct hnae3_handle *handle, char *buf, int len);
Dhns3_enet.h551 struct hnae3_handle *handle;
573 struct hnae3_handle *ae_handle;
709 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
728 void hns3_request_update_promisc_mode(struct hnae3_handle *handle);
729 int hns3_reset_notify(struct hnae3_handle *handle,
733 void hns3_dcbnl_setup(struct hnae3_handle *handle);
735 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
738 int hns3_dbg_init(struct hnae3_handle *handle);
739 void hns3_dbg_uninit(struct hnae3_handle *handle);
743 u16 hns3_get_max_available_channels(struct hnae3_handle *h);
Dhns3_enet.c45 static void hns3_clear_all_ring(struct hnae3_handle *h, bool force);
592 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_coalesce_init_hw()
607 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_set_real_num_queue()
645 u16 hns3_get_max_available_channels(struct hnae3_handle *h) in hns3_get_max_available_channels()
710 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
768 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_open()
806 static void hns3_reset_tx_queue(struct hnae3_handle *h) in hns3_reset_tx_queue()
823 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_down()
853 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_stop()
874 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);
489 static void hns3_dump_coal_info(struct hnae3_handle *h, char *buf, int len, in hns3_dump_coal_info()
519 static int hns3_dbg_coal_info(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_coal_info()
638 static int hns3_dbg_rx_queue_info(struct hnae3_handle *h, in hns3_dbg_rx_queue_info()
741 static int hns3_dbg_tx_queue_info(struct hnae3_handle *h, in hns3_dbg_tx_queue_info()
794 static int hns3_dbg_queue_map(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_queue_map()
989 hns3_dbg_dev_caps(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_caps()
1008 hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_specs()
1057 static int hns3_dbg_dev_info(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_dev_info()
[all …]
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_tqp_stats.h33 u64 *hclge_comm_tqps_get_stats(struct hnae3_handle *handle, u64 *data);
34 int hclge_comm_tqps_get_sset_count(struct hnae3_handle *handle);
35 u8 *hclge_comm_tqps_get_strings(struct hnae3_handle *handle, u8 *data);
36 void hclge_comm_reset_tqp_stats(struct hnae3_handle *handle);
37 int hclge_comm_tqps_update_stats(struct hnae3_handle *handle,
Dhclge_comm_tqp_stats.c10 u64 *hclge_comm_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_comm_tqps_get_stats()
30 int hclge_comm_tqps_get_sset_count(struct hnae3_handle *handle) in hclge_comm_tqps_get_sset_count()
37 u8 *hclge_comm_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclge_comm_tqps_get_strings()
60 int hclge_comm_tqps_update_stats(struct hnae3_handle *handle, in hclge_comm_tqps_update_stats()
103 void hclge_comm_reset_tqp_stats(struct hnae3_handle *handle) in hclge_comm_reset_tqp_stats()
Dhclge_comm_rss.h97 u32 hclge_comm_get_rss_key_size(struct hnae3_handle *handle);
98 void hclge_comm_get_rss_type(struct hnae3_handle *nic,
117 int hclge_comm_set_rss_input_tuple(struct hnae3_handle *nic,
122 int hclge_comm_rss_init_cfg(struct hnae3_handle *nic,
Dhclge_comm_rss.c34 int hclge_comm_rss_init_cfg(struct hnae3_handle *nic, in hclge_comm_rss_init_cfg()
189 u32 hclge_comm_get_rss_key_size(struct hnae3_handle *handle) in hclge_comm_get_rss_key_size()
194 void hclge_comm_get_rss_type(struct hnae3_handle *nic, in hclge_comm_get_rss_type()
325 int hclge_comm_set_rss_input_tuple(struct hnae3_handle *nic, in hclge_comm_set_rss_input_tuple()
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c114 static struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
124 static void hclgevf_update_stats(struct hnae3_handle *handle, in hclgevf_update_stats()
137 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count()
147 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings()
156 static void hclgevf_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_get_stats()
202 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state()
276 static u16 hclgevf_get_qid_global(struct hnae3_handle *handle, u16 queue_id) in hclgevf_get_qid_global()
368 struct hnae3_handle *nic = &hdev->nic; in hclgevf_knic_setup()
423 struct hnae3_handle *rhandle = &hdev->roce; in hclgevf_update_link_status()
424 struct hnae3_handle *handle = &hdev->nic; in hclgevf_update_link_status()
[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.h267 struct hnae3_handle nic;
268 struct hnae3_handle roce;
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mdio.h12 int hclge_mac_connect_phy(struct hnae3_handle *handle);
13 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
Dhclge_ptp.h132 bool hclge_ptp_set_tx_info(struct hnae3_handle *handle, struct sk_buff *skb);
134 void hclge_ptp_get_rx_hwts(struct hnae3_handle *handle, struct sk_buff *skb,
140 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()
310 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc()
363 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx()
374 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx()
475 static int hclge_setup_tc(struct hnae3_handle *h, in hclge_setup_tc()
Dhclge_main.c63 static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle);
669 struct hnae3_handle *handle; in hclge_update_stats_for_all()
688 static void hclge_update_stats(struct hnae3_handle *handle, in hclge_update_stats()
713 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count()
759 static void hclge_get_strings(struct hnae3_handle *handle, u32 stringset, in hclge_get_strings()
797 static void hclge_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_get_stats()
808 static void hclge_get_mac_stat(struct hnae3_handle *handle, in hclge_get_mac_stat()
988 static int hclge_check_port_speed(struct hnae3_handle *handle, u32 speed) in hclge_check_port_speed()
1743 struct hnae3_handle *nic = &vport->nic; in hclge_knic_setup()
1769 struct hnae3_handle *nic = &vport->nic; in hclge_map_tqp_to_vport()
[all …]
Dhclge_main.h1020 struct hnae3_handle nic;
1021 struct hnae3_handle roce;
1059 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
1074 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
1076 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
1082 int hclge_reset_tqp(struct hnae3_handle *handle);
1088 int hclge_dbg_read_cmd(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd,
1090 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_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_mbx.c332 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_promisc_mode()
437 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
622 struct hnae3_handle *handle = &vport->nic; in hclge_mbx_reset_vf_queue()
676 struct hnae3_handle *handle = &vport->nic; in hclge_get_queue_id_in_pf()
/linux-5.19.10/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c640 struct hnae3_handle *handle = priv->handle; in hns_roce_write512()
1028 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_hw_resetting()
1060 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_sw_resetting()
1075 struct hnae3_handle *handle) in check_aedev_reset_status()
1113 struct hnae3_handle *handle = priv->handle; in check_device_is_in_reset()
1239 struct hnae3_handle *handle = priv->handle; in update_cmdq_status()
1365 struct hnae3_handle *handle) in func_clr_hw_resetting_state()
1390 struct hnae3_handle *handle) in func_clr_sw_resetting_state()
1419 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_rst_proc()
6461 struct hnae3_handle *handle) in hns_roce_hw_v2_get_cfg()
[all …]
Dhns_roce_hw_v2.h1334 struct hnae3_handle *handle;
1461 struct hnae3_handle *handle = priv->handle; in hns_roce_write64()

12