Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h84 struct hnae3_handle;
89 struct hnae3_handle *handle;
215 int (*init_instance)(struct hnae3_handle *handle);
216 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
217 void (*link_status_change)(struct hnae3_handle *handle, bool state);
218 int (*setup_tc)(struct hnae3_handle *handle, u8 tc);
219 int (*reset_notify)(struct hnae3_handle *handle,
221 void (*process_hw_error)(struct hnae3_handle *handle,
379 int (*start)(struct hnae3_handle *handle);
380 void (*stop)(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.c75 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_setup()
112 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_up()
145 struct hnae3_handle *handle; in hns3_lp_setup_skb()
195 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
301 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
394 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
440 static u8 *hns3_get_strings_tqps(struct hnae3_handle *handle, u8 *data) in hns3_get_strings_tqps()
459 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_strings()
479 static u64 *hns3_get_stats_tqps(struct hnae3_handle *handle, u64 *data) in hns3_get_stats_tqps()
516 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_stats()
[all …]
Dhns3_enet.c37 static void hns3_clear_all_ring(struct hnae3_handle *h, bool force);
248 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_gl_rl_init_hw()
259 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_set_real_num_queue()
302 static u16 hns3_get_max_available_channels(struct hnae3_handle *h) in hns3_get_max_available_channels()
367 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
444 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_open()
477 static void hns3_reset_tx_queue(struct hnae3_handle *h) in hns3_reset_tx_queue()
494 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_down()
529 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_stop()
550 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_uc_sync()
[all …]
Dhns3_enet.h478 struct hnae3_handle *handle;
511 struct hnae3_handle *ae_handle;
654 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
673 void hns3_dcbnl_setup(struct hnae3_handle *handle);
675 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
678 void hns3_dbg_init(struct hnae3_handle *handle);
679 void hns3_dbg_uninit(struct hnae3_handle *handle);
Dhns3_debugfs.c15 static int hns3_dbg_queue_info(struct hnae3_handle *h, in hns3_dbg_queue_info()
130 static int hns3_dbg_queue_map(struct hnae3_handle *h) in hns3_dbg_queue_map()
160 static int hns3_dbg_bd_info(struct hnae3_handle *h, const char *cmd_buf) in hns3_dbg_bd_info()
238 static void hns3_dbg_help(struct hnae3_handle *h) in hns3_dbg_help()
316 struct hnae3_handle *handle = filp->private_data; in hns3_dbg_cmd_write()
380 void hns3_dbg_init(struct hnae3_handle *handle) in hns3_dbg_init()
390 void hns3_dbg_uninit(struct hnae3_handle *handle) in hns3_dbg_uninit()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c88 static struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
98 static int hclgevf_tqps_update_stats(struct hnae3_handle *handle) in hclgevf_tqps_update_stats()
142 static u64 *hclgevf_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_tqps_get_stats()
161 static int hclgevf_tqps_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_tqps_get_sset_count()
168 static u8 *hclgevf_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclgevf_tqps_get_strings()
193 static void hclgevf_update_stats(struct hnae3_handle *handle, in hclgevf_update_stats()
206 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count()
216 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings()
225 static void hclgevf_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_get_stats()
251 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state()
[all …]
Dhclgevf_main.h296 struct hnae3_handle nic;
297 struct hnae3_handle roce;
/Linux-v5.4/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_dcb.c65 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets()
182 struct hnae3_handle *handle; in hclge_client_setup_tc()
223 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets()
279 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc()
315 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc()
369 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx()
380 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx()
400 static int hclge_setup_tc(struct hnae3_handle *h, u8 tc, u8 *prio_tc) in hclge_setup_tc()
Dhclge_main.c62 static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle);
66 static void hclge_clear_arfs_rules(struct hnae3_handle *handle);
536 static int hclge_tqps_update_stats(struct hnae3_handle *handle) in hclge_tqps_update_stats()
588 static u64 *hclge_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_tqps_get_stats()
608 static int hclge_tqps_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_tqps_get_sset_count()
616 static u8 *hclge_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclge_tqps_get_strings()
674 struct hnae3_handle *handle; in hclge_update_stats_for_all()
693 static void hclge_update_stats(struct hnae3_handle *handle, in hclge_update_stats()
718 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count()
762 static void hclge_get_strings(struct hnae3_handle *handle, u32 stringset, in hclge_get_strings()
[all …]
Dhclge_main.h914 struct hnae3_handle nic;
915 struct hnae3_handle roce;
938 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
957 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
959 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
966 int hclge_reset_tqp(struct hnae3_handle *handle, u16 queue_id);
973 int hclge_dbg_run_cmd(struct hnae3_handle *handle, const char *cmd_buf);
974 u16 hclge_covert_handle_qid_global(struct hnae3_handle *handle, u16 queue_id);
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.c318 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
328 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
Dhclge_debugfs.c1113 int hclge_dbg_run_cmd(struct hnae3_handle *handle, const char *cmd_buf) in hclge_dbg_run_cmd()
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c742 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_hw_resetting()
768 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_sw_resetting()
785 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_rst_process_cmd()
1131 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_chk_rst()
1151 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_rst_prc()
6384 struct hnae3_handle *handle) in hns_roce_hw_v2_get_cfg()
6417 static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in __hns_roce_hw_v2_init_instance()
6460 static void __hns_roce_hw_v2_uninit_instance(struct hnae3_handle *handle, in __hns_roce_hw_v2_uninit_instance()
6474 static int hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in hns_roce_hw_v2_init_instance()
6515 static void hns_roce_hw_v2_uninit_instance(struct hnae3_handle *handle, in hns_roce_hw_v2_uninit_instance()
[all …]
Dhns_roce_hw_v2.h1629 struct hnae3_handle *handle;
1831 struct hnae3_handle *handle = priv->handle; in hns_roce_write64()