Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h74 struct hnae3_handle;
79 struct hnae3_handle *handle;
153 int (*init_instance)(struct hnae3_handle *handle);
154 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
155 void (*link_status_change)(struct hnae3_handle *handle, bool state);
156 int (*setup_tc)(struct hnae3_handle *handle, u8 tc);
157 int (*reset_notify)(struct hnae3_handle *handle,
297 int (*start)(struct hnae3_handle *handle);
298 void (*stop)(struct hnae3_handle *handle);
299 int (*get_status)(struct hnae3_handle *handle);
[all …]
Dhns3_dcbnl.c10 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getets()
21 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setets()
32 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_getpfc()
43 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_ieee_setpfc()
54 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_getdcbx()
65 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_dcbnl_setdcbx()
86 void hns3_dcbnl_setup(struct hnae3_handle *handle) in hns3_dcbnl_setup()
Dhns3_ethtool.c73 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_setup()
100 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_up()
125 struct hnae3_handle *h = hns3_get_handle(ndev); in hns3_lp_down()
186 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
290 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
355 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_sset_count()
400 static u8 *hns3_get_strings_tqps(struct hnae3_handle *handle, u8 *data) in hns3_get_strings_tqps()
419 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_strings()
437 static u64 *hns3_get_stats_tqps(struct hnae3_handle *handle, u64 *data) in hns3_get_stats_tqps()
474 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_get_stats()
[all …]
Dhns3_enet.c22 static void hns3_clear_all_ring(struct hnae3_handle *h);
23 static void hns3_force_clear_all_rx_ring(struct hnae3_handle *h);
198 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_gl_rl_init()
223 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_gl_rl_init_hw()
234 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_set_real_num_queue()
278 static u16 hns3_get_max_available_channels(struct hnae3_handle *h) in hns3_get_max_available_channels()
291 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
331 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_net_open()
395 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_uc_sync()
406 struct hnae3_handle *h = hns3_get_handle(netdev); in hns3_nic_uc_unsync()
[all …]
Dhns3_enet.h482 struct hnae3_handle *handle;
515 struct hnae3_handle *ae_handle;
621 int hns3_nic_reset_all_ring(struct hnae3_handle *h);
635 void hns3_dcbnl_setup(struct hnae3_handle *handle);
637 static inline void hns3_dcbnl_setup(struct hnae3_handle *handle) {} in hns3_dcbnl_setup()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c27 struct hnae3_handle *handle) in hclgevf_ae_get_hdev()
32 static int hclgevf_tqps_update_stats(struct hnae3_handle *handle) in hclgevf_tqps_update_stats()
77 static u64 *hclgevf_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_tqps_get_stats()
97 static int hclgevf_tqps_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_tqps_get_sset_count()
104 static u8 *hclgevf_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclgevf_tqps_get_strings()
129 static void hclgevf_update_stats(struct hnae3_handle *handle, in hclgevf_update_stats()
142 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count()
152 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings()
161 static void hclgevf_get_stats(struct hnae3_handle *handle, u64 *data) in hclgevf_get_stats()
245 struct hnae3_handle *nic = &hdev->nic; in hclgevf_knic_setup()
[all …]
Dhclgevf_main.h172 struct hnae3_handle nic;
173 struct hnae3_handle roce;
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c63 static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_getets()
119 static int hclge_map_update(struct hnae3_handle *h) in hclge_map_update()
150 struct hnae3_handle *handle; in hclge_client_setup_tc()
169 static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) in hclge_ieee_setets()
200 static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_getpfc()
236 static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc) in hclge_ieee_setpfc()
267 static u8 hclge_getdcbx(struct hnae3_handle *h) in hclge_getdcbx()
278 static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) in hclge_setdcbx()
295 static int hclge_setup_tc(struct hnae3_handle *h, u8 tc, u8 *prio_tc) in hclge_setup_tc()
Dhclge_main.c33 static int hclge_set_mtu(struct hnae3_handle *handle, int new_mtu);
537 static int hclge_tqps_update_stats(struct hnae3_handle *handle) in hclge_tqps_update_stats()
590 static u64 *hclge_tqps_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_tqps_get_stats()
610 static int hclge_tqps_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_tqps_get_sset_count()
617 static u8 *hclge_tqps_get_strings(struct hnae3_handle *handle, u8 *data) in hclge_tqps_get_strings()
702 struct hnae3_handle *handle; in hclge_update_stats_for_all()
729 static void hclge_update_stats(struct hnae3_handle *handle, in hclge_update_stats()
769 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset) in hclge_get_sset_count()
804 static void hclge_get_strings(struct hnae3_handle *handle, in hclge_get_strings()
850 static void hclge_get_stats(struct hnae3_handle *handle, u64 *data) in hclge_get_stats()
[all …]
Dhclge_main.h610 struct hnae3_handle nic;
611 struct hnae3_handle roce;
638 struct hclge_vport *hclge_get_vport(struct hnae3_handle *handle);
651 int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto,
653 int hclge_en_hw_strip_rxvtag(struct hnae3_handle *handle, bool enable);
660 void hclge_reset_tqp(struct hnae3_handle *handle, u16 queue_id);
Dhclge_mbx.c329 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
339 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg()
Dhclge_mdio.c178 struct hnae3_handle *h = *((void **)netdev_priv(netdev)); in hclge_mac_adjust_link()
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c5226 struct hnae3_handle *handle) in hns_roce_hw_v2_get_cfg()
5261 static int hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) in hns_roce_hw_v2_init_instance()
5303 static void hns_roce_hw_v2_uninit_instance(struct hnae3_handle *handle, in hns_roce_hw_v2_uninit_instance()
5316 static int hns_roce_hw_v2_reset_notify_down(struct hnae3_handle *handle) in hns_roce_hw_v2_reset_notify_down()
5338 static int hns_roce_hw_v2_reset_notify_init(struct hnae3_handle *handle) in hns_roce_hw_v2_reset_notify_init()
5356 static int hns_roce_hw_v2_reset_notify_uninit(struct hnae3_handle *handle) in hns_roce_hw_v2_reset_notify_uninit()
5363 static int hns_roce_hw_v2_reset_notify(struct hnae3_handle *handle, in hns_roce_hw_v2_reset_notify()