Home
last modified time | relevance | path

Searched refs:ae_handle (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c49 h = priv->ae_handle; in hns_nic_get_link()
129 if (!priv || !priv->ae_handle) in hns_nic_get_link_ksettings()
132 h = priv->ae_handle; in hns_nic_get_link_ksettings()
215 if (!priv || !priv->ae_handle || !priv->ae_handle->dev || in hns_nic_set_link_ksettings()
216 !priv->ae_handle->dev->ops) in hns_nic_set_link_ksettings()
219 h = priv->ae_handle; in hns_nic_set_link_ksettings()
293 struct hnae_handle *h = priv->ae_handle; in __lb_setup()
303 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) in __lb_setup()
315 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_setup()
343 struct hnae_handle *h = priv->ae_handle; in __lb_up()
[all …]
Dhns_ae_adapt.c80 struct hnae_handle *ae_handle; in hns_ae_get_handle() local
94 ae_handle = ERR_PTR(-ENOMEM); in hns_ae_get_handle()
97 ae_handle = &vf_cb->ae_handle; in hns_ae_get_handle()
99 ae_handle->owner_dev = dsaf_dev->dev; in hns_ae_get_handle()
100 ae_handle->dev = dev; in hns_ae_get_handle()
101 ae_handle->q_num = qnum_per_vf; in hns_ae_get_handle()
102 ae_handle->coal_param = HNAE_LOWEST_LATENCY_COAL_PARAM; in hns_ae_get_handle()
105 for (ae_handle->vf_id = 0; in hns_ae_get_handle()
106 ae_handle->vf_id < vfnum_per_port; ae_handle->vf_id++) { in hns_ae_get_handle()
111 if (ae_handle->vf_id >= vfnum_per_port) { in hns_ae_get_handle()
[all …]
Dhns_enet.c377 assert(skb->queue_mapping < priv->ae_handle->q_num); in hns_nic_net_xmit_hw()
378 hnae_queue_xmit(priv->ae_handle->qs[skb->queue_mapping], buf_num); in hns_nic_net_xmit_hw()
1120 struct hnae_handle *h = priv->ae_handle; in hns_nic_adjust_link()
1195 struct hnae_handle *h = priv->ae_handle; in hns_nic_ring_open()
1208 struct hnae_handle *h = priv->ae_handle; in hns_nic_net_set_mac_address()
1229 struct hnae_handle *h = priv->ae_handle; in hns_nic_update_stats()
1249 struct hnae_handle *h = priv->ae_handle; in hns_nic_ring_close()
1286 struct hnae_handle *h = priv->ae_handle; in hns_nic_init_irq()
1329 struct hnae_handle *h = priv->ae_handle; in hns_nic_net_up()
1391 ops = priv->ae_handle->dev->ops; in hns_nic_net_down()
[all …]
Dhns_enet.h65 struct hnae_handle *ae_handle; member
89 ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)])
Dhns_dsaf_main.h217 struct hnae_handle ae_handle; /* must be the last number */ member
429 return container_of(handle, struct hnae_vf_cb, ae_handle); in hns_ae_get_vf_cb()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c186 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()
495 struct hnae3_handle *h = priv->ae_handle; in hns3_get_drvinfo()
510 priv->ae_handle->ae_algo->ops->get_fw_version(h)); in hns3_get_drvinfo()
527 struct hnae3_handle *h = priv->ae_handle; in hns3_get_ringparam()
714 struct hnae3_handle *h = priv->ae_handle; in hns3_change_all_ring_bd_num()
729 struct hnae3_handle *h = priv->ae_handle; in hns3_set_ringparam()
833 struct hnae3_handle *h = priv->ae_handle; in hns3_get_coalesce_per_queue()
966 struct hnae3_handle *h = priv->ae_handle; in hns3_set_coalesce_per_queue()
Dhns3_enet.c198 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()
291 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
354 priv->ae_handle->last_reset_time = jiffies; in hns3_nic_net_open()
372 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
374 ops->stop(priv->ae_handle); in hns3_nic_net_down()
379 hns3_clear_all_ring(priv->ae_handle); in hns3_nic_net_down()
1217 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_set_features()
1257 int queue_num = priv->ae_handle->kinfo.num_tqps; in hns3_nic_get_stats64()
1258 struct hnae3_handle *handle = priv->ae_handle; in hns3_nic_get_stats64()
[all …]
Dhns3_enet.h515 struct hnae3_handle *ae_handle; member
606 (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle)