Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/
H A 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 …]
H A Dhns3_ethtool.c81 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()
303 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
327 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_prepare()
357 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_restore()
430 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
475 static u8 *hns3_get_strings_tqps(struct hnae3_handle *handle, u8 *data) in hns3_get_strings_tqps()
494 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_strings()
[all …]
H A 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()
H A Dhns3_enet.h447 struct hnae3_handle *handle;
469 struct hnae3_handle *ae_handle;
585 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
601 void hns3_request_update_promisc_mode(struct hnae3_handle *handle);
604 void hns3_dcbnl_setup(struct hnae3_handle *handle);
606 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
609 void hns3_dbg_init(struct hnae3_handle *handle);
610 void hns3_dbg_uninit(struct hnae3_handle *handle);
H A Dhns3_enet.c44 static void hns3_clear_all_ring(struct hnae3_handle *h, bool force);
263 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_gl_rl_init_hw()
274 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_set_real_num_queue()
317 static u16 hns3_get_max_available_channels(struct hnae3_handle *h) in hns3_get_max_available_channels()
382 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
440 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_open()
478 static void hns3_reset_tx_queue(struct hnae3_handle *h) in hns3_reset_tx_queue()
495 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_down()
525 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_stop()
546 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_uc_sync()
[all …]
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A 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 …]
H A Dhclgevf_main.h322 struct hnae3_handle nic;
323 struct hnae3_handle roce;
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_dcb.c67 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets()
193 struct hnae3_handle *handle; in hclge_client_setup_tc()
234 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets()
294 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc()
321 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc()
374 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx()
385 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx()
405 static int hclge_setup_tc(struct hnae3_handle *h, u8 tc, u8 *prio_tc) in hclge_setup_tc()
H A Dhclge_mdio.h8 int hclge_mac_connect_phy(struct hnae3_handle *handle);
9 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
H A 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()
769 static void hclge_get_strings(struct hnae3_handle *handle, u32 stringset, in hclge_get_strings()
[all …]
H A Dhclge_main.h926 struct hnae3_handle nic;
927 struct hnae3_handle roce;
954 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
973 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
975 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
982 int hclge_reset_tqp(struct hnae3_handle *handle, u16 queue_id);
989 int hclge_dbg_run_cmd(struct hnae3_handle *handle, const char *cmd_buf);
990 u16 hclge_covert_handle_qid_global(struct hnae3_handle *handle, u16 queue_id);
H A 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()
H A Dhclge_mbx.c375 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
385 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
591 struct hnae3_handle *handle = &vport->nic; in hclge_get_queue_id_in_pf()
H A Dhclge_debugfs.c1495 int hclge_dbg_run_cmd(struct hnae3_handle *handle, const char *cmd_buf) in hclge_dbg_run_cmd()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A Dhns_roce_hw_v2.c972 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_hw_resetting()
1004 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_sw_resetting()
1021 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_rst_process_cmd()
1366 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_chk_rst()
1386 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_rst_prc()
6199 struct hnae3_handle *handle) in hns_roce_hw_v2_get_cfg()
6232 static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in __hns_roce_hw_v2_init_instance()
6268 static void __hns_roce_hw_v2_uninit_instance(struct hnae3_handle *handle, in __hns_roce_hw_v2_uninit_instance()
6286 static int hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in hns_roce_hw_v2_init_instance()
6327 static void hns_roce_hw_v2_uninit_instance(struct hnae3_handle *handle, in hns_roce_hw_v2_uninit_instance()
[all …]
H A Dhns_roce_hw_v2.h1786 struct hnae3_handle *handle;
1993 struct hnae3_handle *handle = priv->handle; in hns_roce_write64()