Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c44 h = priv->ae_handle; in hns_nic_get_link()
124 if (!priv || !priv->ae_handle) in hns_nic_get_link_ksettings()
127 h = priv->ae_handle; in hns_nic_get_link_ksettings()
210 if (!priv || !priv->ae_handle || !priv->ae_handle->dev || in hns_nic_set_link_ksettings()
211 !priv->ae_handle->dev->ops) in hns_nic_set_link_ksettings()
214 h = priv->ae_handle; in hns_nic_set_link_ksettings()
288 struct hnae_handle *h = priv->ae_handle; in __lb_setup()
298 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) in __lb_setup()
310 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_setup()
339 struct hnae_handle *h = priv->ae_handle; in __lb_up()
[all …]
Dhns_ae_adapt.c74 struct hnae_handle *ae_handle; in hns_ae_get_handle() local
84 vf_cb = kzalloc(struct_size(vf_cb, ae_handle.qs, qnum_per_vf), in hns_ae_get_handle()
88 ae_handle = ERR_PTR(-ENOMEM); in hns_ae_get_handle()
91 ae_handle = &vf_cb->ae_handle; in hns_ae_get_handle()
93 ae_handle->owner_dev = dsaf_dev->dev; in hns_ae_get_handle()
94 ae_handle->dev = dev; in hns_ae_get_handle()
95 ae_handle->q_num = qnum_per_vf; in hns_ae_get_handle()
96 ae_handle->coal_param = HNAE_LOWEST_LATENCY_COAL_PARAM; in hns_ae_get_handle()
99 for (ae_handle->vf_id = 0; in hns_ae_get_handle()
100 ae_handle->vf_id < vfnum_per_port; ae_handle->vf_id++) { in hns_ae_get_handle()
[all …]
Dhns_enet.c369 assert(skb->queue_mapping < priv->ae_handle->q_num); in hns_nic_net_xmit_hw()
370 hnae_queue_xmit(priv->ae_handle->qs[skb->queue_mapping], buf_num); in hns_nic_net_xmit_hw()
1090 struct hnae_handle *h = priv->ae_handle; in hns_nic_adjust_link()
1169 struct hnae_handle *h = priv->ae_handle; in hns_nic_ring_open()
1182 struct hnae_handle *h = priv->ae_handle; in hns_nic_net_set_mac_address()
1203 struct hnae_handle *h = priv->ae_handle; in hns_nic_update_stats()
1223 struct hnae_handle *h = priv->ae_handle; in hns_nic_ring_close()
1276 struct hnae_handle *h = priv->ae_handle; in hns_nic_init_irq()
1323 struct hnae_handle *h = priv->ae_handle; in hns_nic_net_up()
1389 ops = priv->ae_handle->dev->ops; in hns_nic_net_down()
[all …]
Dhns_enet.h61 struct hnae_handle *ae_handle; member
85 ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)])
Dhns_dsaf_main.h213 struct hnae_handle ae_handle; /* must be the last member */ member
425 return container_of(handle, struct hnae_vf_cb, ae_handle); in hns_ae_get_vf_cb()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c207 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
332 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_prepare()
357 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_restore()
423 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
634 struct hnae3_handle *h = priv->ae_handle; in hns3_get_drvinfo()
650 fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); in hns3_get_drvinfo()
680 struct hnae3_handle *h = priv->ae_handle; in hns3_get_ringparam()
1074 struct hnae3_handle *h = priv->ae_handle; in hns3_change_all_ring_bd_num()
1088 struct hnae3_handle *handle = priv->ae_handle; in hns3_backup_ringparam()
1150 struct hnae3_handle *h = priv->ae_handle; in hns3_is_ringparam_changed()
[all …]
Dhns3_enet.c430 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
436 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
441 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
555 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(priv->ae_handle->pdev); in hns3_vector_coalesce_init()
594 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_coalesce_init_hw()
712 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
799 h->ae_algo->ops->set_timer_task(priv->ae_handle, true); in hns3_nic_net_open()
838 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
840 ops->stop(priv->ae_handle); in hns3_nic_net_down()
847 hns3_clear_all_ring(priv->ae_handle, false); in hns3_nic_net_down()
[all …]
Dhns3_enet.h574 struct hnae3_handle *ae_handle; member
696 (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle)