Home
last modified time | relevance | path

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

12

/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h188 struct hnae3_handle;
194 struct hnae3_handle *handle;
389 int (*init_instance)(struct hnae3_handle *handle);
390 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
391 void (*link_status_change)(struct hnae3_handle *handle, bool state);
392 int (*reset_notify)(struct hnae3_handle *handle,
394 void (*process_hw_error)(struct hnae3_handle *handle,
589 int (*start)(struct hnae3_handle *handle);
590 void (*stop)(struct hnae3_handle *handle);
591 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()
61 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setapp()
74 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_delapp()
88 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_getdcbx()
99 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_setdcbx()
122 void hns3_dcbnl_setup(struct hnae3_handle *handle) in hns3_dcbnl_setup()
Dhns3_ethtool.c84 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()
304 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
331 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_prepare()
356 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_restore()
422 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
459 struct hnae3_handle *handle = hns3_get_handle(netdev); in hns3_update_limit_promisc_mode()
475 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
[all …]
Dhns3_debugfs.h27 struct hnae3_handle *handle;
53 int (*init)(struct hnae3_handle *handle, unsigned int cmd);
58 int (*dbg_dump)(struct hnae3_handle *handle, char *buf, int len);
Dhns3_enet.h552 struct hnae3_handle *handle;
574 struct hnae3_handle *ae_handle;
716 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
735 void hns3_request_update_promisc_mode(struct hnae3_handle *handle);
736 int hns3_reset_notify(struct hnae3_handle *handle,
740 void hns3_dcbnl_setup(struct hnae3_handle *handle);
742 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
745 int hns3_dbg_init(struct hnae3_handle *handle);
746 void hns3_dbg_uninit(struct hnae3_handle *handle);
750 u16 hns3_get_max_available_channels(struct hnae3_handle *h);
Dhns3_enet.c46 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);
525 static void hns3_dump_coal_info(struct hnae3_handle *h, char *buf, int len, in hns3_dump_coal_info()
555 static int hns3_dbg_coal_info(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_coal_info()
674 static int hns3_dbg_rx_queue_info(struct hnae3_handle *h, in hns3_dbg_rx_queue_info()
777 static int hns3_dbg_tx_queue_info(struct hnae3_handle *h, in hns3_dbg_tx_queue_info()
830 static int hns3_dbg_queue_map(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_queue_map()
1024 hns3_dbg_dev_caps(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_caps()
1043 hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_specs()
1096 static int hns3_dbg_dev_info(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_dev_info()
[all …]
/Linux-v6.6/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);
119 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()
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c63 struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
73 static void hclgevf_update_stats(struct hnae3_handle *handle) in hclgevf_update_stats()
85 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count()
95 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings()
104 static void hclgevf_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_get_stats()
150 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state()
224 static u16 hclgevf_get_qid_global(struct hnae3_handle *handle, u16 queue_id) in hclgevf_get_qid_global()
316 struct hnae3_handle *nic = &hdev->nic; in hclgevf_knic_setup()
371 struct hnae3_handle *rhandle = &hdev->roce; in hclgevf_update_link_status()
372 struct hnae3_handle *handle = &hdev->nic; in hclgevf_update_link_status()
[all …]
Dhclgevf_regs.h8 struct hnae3_handle;
10 int hclgevf_get_regs_len(struct hnae3_handle *handle);
11 void hclgevf_get_regs(struct hnae3_handle *handle, u32 *version,
Dhclgevf_main.h267 struct hnae3_handle nic;
268 struct hnae3_handle roce;
297 struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle);
Dhclgevf_devlink.c40 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_down()
75 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_up()
Dhclgevf_regs.c107 int hclgevf_get_regs_len(struct hnae3_handle *handle) in hclgevf_get_regs_len()
123 void hclgevf_get_regs(struct hnae3_handle *handle, u32 *version, in hclgevf_get_regs()
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_regs.h9 struct hnae3_handle;
14 int hclge_get_regs_len(struct hnae3_handle *handle);
15 void hclge_get_regs(struct hnae3_handle *handle, u32 *version,
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.c69 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets()
252 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets()
303 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc()
326 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc()
394 static int hclge_ieee_setapp(struct hnae3_handle *h, struct dcb_app *app) in hclge_ieee_setapp()
440 static int hclge_ieee_delapp(struct hnae3_handle *h, struct dcb_app *app) in hclge_ieee_delapp()
482 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx()
493 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx()
594 static int hclge_setup_tc(struct hnae3_handle *h, in hclge_setup_tc()
Dhclge_main.c50 static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle);
574 struct hnae3_handle *handle; in hclge_update_stats_for_all()
595 static void hclge_update_stats(struct hnae3_handle *handle) in hclge_update_stats()
619 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count()
669 static void hclge_get_strings(struct hnae3_handle *handle, u32 stringset, in hclge_get_strings()
712 static void hclge_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_get_stats()
723 static void hclge_get_mac_stat(struct hnae3_handle *handle, in hclge_get_mac_stat()
903 static int hclge_check_port_speed(struct hnae3_handle *handle, u32 speed) in hclge_check_port_speed()
1683 struct hnae3_handle *nic = &vport->nic; in hclge_knic_setup()
1709 struct hnae3_handle *nic = &vport->nic; in hclge_map_tqp_to_vport()
[all …]
Dhclge_main.h1050 struct hnae3_handle nic;
1051 struct hnae3_handle roce;
1090 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
1105 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
1107 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
1113 int hclge_reset_tqp(struct hnae3_handle *handle);
1119 int hclge_dbg_read_cmd(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd,
1121 u16 hclge_covert_handle_qid_global(struct hnae3_handle *handle, u16 queue_id);
Dhclge_devlink.c39 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_down()
74 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.c55 bool hclge_ptp_set_tx_info(struct hnae3_handle *handle, struct sk_buff *skb) in hclge_ptp_set_tx_info()
102 void hclge_ptp_get_rx_hwts(struct hnae3_handle *handle, struct sk_buff *skb, in hclge_ptp_get_rx_hwts()
380 int hclge_ptp_get_ts_info(struct hnae3_handle *handle, in hclge_ptp_get_ts_info()

12