/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.h | 148 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 *handl 718 struct hnae3_handle { global() struct [all...] |
H A D | hns3_dcbnl.c | 9 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 D | hns3_ethtool.c | 81 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 * in hns3_get_strings() [all...] |
H A D | hns3_enet.h | 447 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 D | hns3_enet.c | 44 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 * in hns3_nic_uc_sync() [all...] |
H A D | hns3_debugfs.c | 15 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.h | 188 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 *handl 880 struct hnae3_handle { global() struct [all...] |
H A D | hns3_dcbnl.c | 9 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()
|
H A D | hns3_ethtool.c | 84 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 * in hns3_get_sset_count() [all...] |
H A D | hns3_debugfs.h | 27 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);
|
H A D | hns3_enet.h | 552 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 * [all...] |
H A D | hns3_enet.c | 46 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 * in hns3_nic_uc_sync() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_tqp_stats.h | 33 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,
|
H A D | hclge_comm_tqp_stats.c | 10 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_regs.h | 8 struct hnae3_handle; 10 int hclgevf_get_regs_len(struct hnae3_handle *handle); 11 void hclgevf_get_regs(struct hnae3_handle *handle, u32 *version,
|
H A D | hclgevf_main.c | 63 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 *handl in hclgevf_update_link_status() [all...] |
H A D | hclgevf_main.h | 268 struct hnae3_handle nic; 269 struct hnae3_handle roce; 298 struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_regs.h | 9 struct hnae3_handle; 14 int hclge_get_regs_len(struct hnae3_handle *handle); 15 void hclge_get_regs(struct hnae3_handle *handle, u32 *version,
|
H A D | hclge_mdio.h | 12 int hclge_mac_connect_phy(struct hnae3_handle *handle); 13 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
|
H A D | hclge_ptp.h | 132 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,
|
H A D | hclge_dcb.c | 69 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 91 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 *ni in hclgevf_get_port_base_vlan_filter_state() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mdio.h | 8 int hclge_mac_connect_phy(struct hnae3_handle *handle); 9 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
|
H A D | hclge_dcb.c | 70 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets() 227 struct hnae3_handle *handle; in hclge_client_setup_tc() 268 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets() 328 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc() 355 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc() 408 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx() 419 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx() 439 static int hclge_setup_tc(struct hnae3_handle *h, u8 tc, u8 *prio_tc) in hclge_setup_tc()
|
H A D | hclge_main.c | 64 static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle); 66 static void hclge_clear_arfs_rules(struct hnae3_handle *handle); 544 static int hclge_tqps_update_stats(struct hnae3_handle *handle) in hclge_tqps_update_stats() 596 static u64 *hclge_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_tqps_get_stats() 616 static int hclge_tqps_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_tqps_get_sset_count() 624 static u8 *hclge_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclge_tqps_get_strings() 682 struct hnae3_handle *handle; in hclge_update_stats_for_all() 701 static void hclge_update_stats(struct hnae3_handle *handle, in hclge_update_stats() 726 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count() 771 static void hclge_get_strings(struct hnae3_handle *handl [all...] |