Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h148 struct hnae3_handle;
153 struct hnae3_handle *handle;
285 int (*init_instance)(struct hnae3_handle *handle);
286 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
287 void (*link_status_change)(struct hnae3_handle *handle, bool state);
288 int (*setup_tc)(struct hnae3_handle *handle, u8 tc);
289 int (*reset_notify)(struct hnae3_handle *handle,
291 void (*process_hw_error)(struct hnae3_handle *handle,
467 int (*start)(struct hnae3_handle *handle);
468 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.c79 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()
311 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
399 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
444 static u8 *hns3_get_strings_tqps(struct hnae3_handle *handle, u8 *data) in hns3_get_strings_tqps()
463 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_strings()
483 static u64 *hns3_get_stats_tqps(struct hnae3_handle *handle, u64 *data) in hns3_get_stats_tqps()
520 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_stats()
[all …]
Dhns3_enet.h446 struct hnae3_handle *handle;
468 struct hnae3_handle *ae_handle;
584 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
600 void hns3_request_update_promisc_mode(struct hnae3_handle *handle);
603 void hns3_dcbnl_setup(struct hnae3_handle *handle);
605 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
608 void hns3_dbg_init(struct hnae3_handle *handle);
609 void hns3_dbg_uninit(struct hnae3_handle *handle);
Dhns3_enet.c44 static void hns3_clear_all_ring(struct hnae3_handle *h, bool force);
262 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_gl_rl_init_hw()
273 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_set_real_num_queue()
316 static u16 hns3_get_max_available_channels(struct hnae3_handle *h) in hns3_get_max_available_channels()
381 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
439 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_open()
472 static void hns3_reset_tx_queue(struct hnae3_handle *h) in hns3_reset_tx_queue()
489 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_down()
519 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_stop()
540 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_uc_sync()
[all …]
Dhns3_debugfs.c15 static int hns3_dbg_queue_info(struct hnae3_handle *h, in hns3_dbg_queue_info()
146 static int hns3_dbg_queue_map(struct hnae3_handle *h) in hns3_dbg_queue_map()
172 static int hns3_dbg_bd_info(struct hnae3_handle *h, const char *cmd_buf) in hns3_dbg_bd_info()
255 static void hns3_dbg_help(struct hnae3_handle *h) in hns3_dbg_help()
308 static void hns3_dbg_dev_caps(struct hnae3_handle *h) in hns3_dbg_dev_caps()
329 static void hns3_dbg_dev_specs(struct hnae3_handle *h) in hns3_dbg_dev_specs()
386 struct hnae3_handle *handle = filp->private_data; in hns3_dbg_cmd_write()
454 void hns3_dbg_init(struct hnae3_handle *handle) in hns3_dbg_init()
464 void hns3_dbg_uninit(struct hnae3_handle *handle) in hns3_dbg_uninit()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c91 static struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
101 static int hclgevf_tqps_update_stats(struct hnae3_handle *handle) in hclgevf_tqps_update_stats()
145 static u64 *hclgevf_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_tqps_get_stats()
164 static int hclgevf_tqps_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_tqps_get_sset_count()
171 static u8 *hclgevf_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclgevf_tqps_get_strings()
196 static void hclgevf_update_stats(struct hnae3_handle *handle, in hclgevf_update_stats()
209 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count()
219 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings()
228 static void hclgevf_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_get_stats()
266 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state()
[all …]
Dhclgevf_main.h318 struct hnae3_handle nic;
319 struct hnae3_handle roce;
/Linux-v5.10/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.c67 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets()
184 struct hnae3_handle *handle; in hclge_client_setup_tc()
225 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets()
281 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc()
317 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc()
371 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx()
382 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx()
402 static int hclge_setup_tc(struct hnae3_handle *h, u8 tc, u8 *prio_tc) in hclge_setup_tc()
Dhclge_main.c64 static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle);
66 static void hclge_clear_arfs_rules(struct hnae3_handle *handle);
542 static int hclge_tqps_update_stats(struct hnae3_handle *handle) in hclge_tqps_update_stats()
594 static u64 *hclge_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_tqps_get_stats()
614 static int hclge_tqps_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_tqps_get_sset_count()
622 static u8 *hclge_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclge_tqps_get_strings()
680 struct hnae3_handle *handle; in hclge_update_stats_for_all()
699 static void hclge_update_stats(struct hnae3_handle *handle, in hclge_update_stats()
724 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count()
768 static void hclge_get_strings(struct hnae3_handle *handle, u32 stringset, in hclge_get_strings()
[all …]
Dhclge_main.h924 struct hnae3_handle nic;
925 struct hnae3_handle roce;
952 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
971 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
973 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
980 int hclge_reset_tqp(struct hnae3_handle *handle, u16 queue_id);
987 int hclge_dbg_run_cmd(struct hnae3_handle *handle, const char *cmd_buf);
988 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.c350 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
360 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
Dhclge_debugfs.c1495 int hclge_dbg_run_cmd(struct hnae3_handle *handle, const char *cmd_buf) in hclge_dbg_run_cmd()
/Linux-v5.10/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c976 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_hw_resetting()
1002 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_sw_resetting()
1019 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_rst_process_cmd()
1365 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_chk_rst()
1385 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_rst_prc()
6203 struct hnae3_handle *handle) in hns_roce_hw_v2_get_cfg()
6236 static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in __hns_roce_hw_v2_init_instance()
6272 static void __hns_roce_hw_v2_uninit_instance(struct hnae3_handle *handle, in __hns_roce_hw_v2_uninit_instance()
6290 static int hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in hns_roce_hw_v2_init_instance()
6331 static void hns_roce_hw_v2_uninit_instance(struct hnae3_handle *handle, in hns_roce_hw_v2_uninit_instance()
[all …]
Dhns_roce_hw_v2.h1786 struct hnae3_handle *handle;
1993 struct hnae3_handle *handle = priv->handle; in hns_roce_write64()