Home
last modified time | relevance | path

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

/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h162 struct hnae3_handle;
167 struct hnae3_handle *handle;
347 int (*init_instance)(struct hnae3_handle *handle);
348 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
349 void (*link_status_change)(struct hnae3_handle *handle, bool state);
350 int (*reset_notify)(struct hnae3_handle *handle,
352 void (*process_hw_error)(struct hnae3_handle *handle,
543 int (*start)(struct hnae3_handle *handle);
544 void (*stop)(struct hnae3_handle *handle);
545 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()
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.c83 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()
301 static void hns3_set_selftest_param(struct hnae3_handle *h, int (*st_param)[2]) in hns3_set_selftest_param()
325 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_prepare()
355 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_restore()
429 struct hnae3_handle *handle = hns3_get_handle(netdev); in hns3_update_limit_promisc_mode()
445 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
493 static u8 *hns3_get_strings_tqps(struct hnae3_handle *handle, u8 *data) in hns3_get_strings_tqps()
[all …]
Dhns3_debugfs.h25 struct hnae3_handle *handle;
51 int (*init)(struct hnae3_handle *handle, unsigned int cmd);
56 int (*dbg_dump)(struct hnae3_handle *handle, char *buf, int len);
Dhns3_enet.h541 struct hnae3_handle *handle;
563 struct hnae3_handle *ae_handle;
694 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
713 void hns3_request_update_promisc_mode(struct hnae3_handle *handle);
716 void hns3_dcbnl_setup(struct hnae3_handle *handle);
718 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
721 int hns3_dbg_init(struct hnae3_handle *handle);
722 void hns3_dbg_uninit(struct hnae3_handle *handle);
726 u16 hns3_get_max_available_channels(struct hnae3_handle *h);
Dhns3_enet.c44 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);
516 static int hns3_dbg_rx_queue_info(struct hnae3_handle *h, in hns3_dbg_rx_queue_info()
619 static int hns3_dbg_tx_queue_info(struct hnae3_handle *h, in hns3_dbg_tx_queue_info()
672 static int hns3_dbg_queue_map(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_queue_map()
867 hns3_dbg_dev_caps(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_caps()
886 hns3_dbg_dev_specs(struct hnae3_handle *h, char *buf, int len, int *pos) in hns3_dbg_dev_specs()
929 static int hns3_dbg_dev_info(struct hnae3_handle *h, char *buf, int len) in hns3_dbg_dev_info()
1012 struct hnae3_handle *handle = dbg_data->handle; in hns3_dbg_read()
1076 static int hns3_dbg_bd_file_init(struct hnae3_handle *handle, u32 cmd) in hns3_dbg_bd_file_init()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c95 static struct hclgevf_dev *hclgevf_ae_get_hdev(struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
105 static int hclgevf_tqps_update_stats(struct hnae3_handle *handle) in hclgevf_tqps_update_stats()
149 static u64 *hclgevf_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_tqps_get_stats()
168 static int hclgevf_tqps_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_tqps_get_sset_count()
175 static u8 *hclgevf_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclgevf_tqps_get_strings()
200 static void hclgevf_update_stats(struct hnae3_handle *handle, in hclgevf_update_stats()
213 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count()
223 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings()
232 static void hclgevf_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_get_stats()
278 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state()
[all …]
Dhclgevf_devlink.c45 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_down()
80 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_up()
Dhclgevf_main.h330 struct hnae3_handle nic;
331 struct hnae3_handle roce;
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_ptp.h129 bool hclge_ptp_set_tx_info(struct hnae3_handle *handle, struct sk_buff *skb);
131 void hclge_ptp_get_rx_hwts(struct hnae3_handle *handle, struct sk_buff *skb,
137 int hclge_ptp_get_ts_info(struct hnae3_handle *handle,
Dhclge_mdio.h8 int hclge_mac_connect_phy(struct hnae3_handle *handle);
9 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
Dhclge_dcb.c69 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets()
244 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets()
295 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc()
318 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()
483 static int hclge_setup_tc(struct hnae3_handle *h, in hclge_setup_tc()
Dhclge_main.c62 static bool hclge_get_hw_reset_stat(struct hnae3_handle *handle);
569 static int hclge_tqps_update_stats(struct hnae3_handle *handle) in hclge_tqps_update_stats()
621 static u64 *hclge_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_tqps_get_stats()
641 static int hclge_tqps_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_tqps_get_sset_count()
649 static u8 *hclge_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclge_tqps_get_strings()
707 struct hnae3_handle *handle; in hclge_update_stats_for_all()
726 static void hclge_update_stats(struct hnae3_handle *handle, in hclge_update_stats()
751 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count()
796 static void hclge_get_strings(struct hnae3_handle *handle, u32 stringset, in hclge_get_strings()
832 static void hclge_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_get_stats()
[all …]
Dhclge_main.h1044 struct hnae3_handle nic;
1045 struct hnae3_handle roce;
1078 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
1097 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
1099 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
1106 int hclge_reset_tqp(struct hnae3_handle *handle);
1112 int hclge_dbg_read_cmd(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd,
1114 u16 hclge_covert_handle_qid_global(struct hnae3_handle *handle, u16 queue_id);
Dhclge_devlink.c44 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_down()
79 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_mbx.c256 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_promisc_mode()
361 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
546 struct hnae3_handle *handle = &vport->nic; in hclge_mbx_reset_vf_queue()
598 struct hnae3_handle *handle = &vport->nic; in hclge_get_queue_id_in_pf()
Dhclge_ptp.c67 bool hclge_ptp_set_tx_info(struct hnae3_handle *handle, struct sk_buff *skb) in hclge_ptp_set_tx_info()
114 void hclge_ptp_get_rx_hwts(struct hnae3_handle *handle, struct sk_buff *skb, in hclge_ptp_get_rx_hwts()
392 int hclge_ptp_get_ts_info(struct hnae3_handle *handle, in hclge_ptp_get_ts_info()
Dhclge_debugfs.c2486 int hclge_dbg_read_cmd(struct hnae3_handle *handle, enum hnae3_dbg_cmd cmd, in hclge_dbg_read_cmd()
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c644 struct hnae3_handle *handle = priv->handle; in hns_roce_write512()
1033 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_hw_resetting()
1065 struct hnae3_handle *handle = priv->handle; in hns_roce_v2_cmd_sw_resetting()
1080 struct hnae3_handle *handle) in check_aedev_reset_status()
1118 struct hnae3_handle *handle = priv->handle; in check_device_is_in_reset()
1254 struct hnae3_handle *handle = priv->handle; in update_cmdq_status()
1403 struct hnae3_handle *handle) in func_clr_hw_resetting_state()
1428 struct hnae3_handle *handle) in func_clr_sw_resetting_state()
1457 struct hnae3_handle *handle = priv->handle; in hns_roce_func_clr_rst_proc()
6285 struct hnae3_handle *handle) in hns_roce_hw_v2_get_cfg()
[all …]
Dhns_roce_hw_v2.h1395 struct hnae3_handle *handle;
1536 struct hnae3_handle *handle = priv->handle; in hns_roce_write64()