Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/hns/
A 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()
675 queue = priv->ae_handle->qs[0]; in hns_get_ringparam()
676 ops = priv->ae_handle->dev->ops; in hns_get_ringparam()
698 ops = priv->ae_handle->dev->ops; in hns_get_pauseparam()
719 h = priv->ae_handle; in hns_set_pauseparam()
[all …]
A Dhns_ae_adapt.c74 struct hnae_handle *ae_handle; in hns_ae_get_handle() local
88 ae_handle = ERR_PTR(-ENOMEM); in hns_ae_get_handle()
91 ae_handle = &vf_cb->ae_handle; in hns_ae_get_handle()
94 ae_handle->dev = dev; 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()
107 ae_handle = ERR_PTR(-EINVAL); in hns_ae_get_handle()
113 ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
114 ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
131 return ae_handle; in hns_ae_get_handle()
[all …]
A Dhns_enet.c1092 struct hnae_handle *h = priv->ae_handle; in hns_nic_adjust_link()
1171 struct hnae_handle *h = priv->ae_handle; in hns_nic_ring_open()
1391 ops = priv->ae_handle->dev->ops; in hns_nic_net_down()
1394 ops->stop(priv->ae_handle); in hns_nic_net_down()
1983 ops->get_regs(priv->ae_handle, data); in hns_nic_dump()
2196 priv->ae_handle = h; in hns_nic_try_get_ae()
2224 hnae_put_handle(priv->ae_handle); in hns_nic_try_get_ae()
2225 priv->ae_handle = NULL; in hns_nic_try_get_ae()
2406 if (!IS_ERR_OR_NULL(priv->ae_handle)) in hns_nic_dev_remove()
2407 hnae_put_handle(priv->ae_handle); in hns_nic_dev_remove()
[all …]
A Dhns_enet.h61 struct hnae_handle *ae_handle; member
85 ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)])
A 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/drivers/net/ethernet/hisilicon/hns3/
A Dhns3_enet.c431 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
437 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
442 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
595 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_coalesce_init_hw()
713 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
839 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
841 ops->stop(priv->ae_handle); in hns3_nic_net_down()
850 hns3_reset_tx_queue(priv->ae_handle); in hns3_nic_net_down()
5091 priv->ae_handle = handle; in hns3_client_init()
5205 priv->ae_handle = NULL; in hns3_client_init()
[all …]
A Dhns3_ethtool.c205 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
327 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_prepare()
357 struct hnae3_handle *h = priv->ae_handle; in hns3_selftest_restore()
605 struct hnae3_handle *h = priv->ae_handle; in hns3_get_drvinfo()
649 struct hnae3_handle *h = priv->ae_handle; in hns3_get_ringparam()
1034 struct hnae3_handle *h = priv->ae_handle; in hns3_change_all_ring_bd_num()
1048 struct hnae3_handle *handle = priv->ae_handle; in hns3_backup_ringparam()
1091 struct hnae3_handle *h = priv->ae_handle; in hns3_set_ringparam()
1224 struct hnae3_handle *h = priv->ae_handle; in hns3_get_coalesce()
1372 struct hnae3_handle *h = priv->ae_handle; in hns3_set_coalesce_per_queue()
[all …]
A Dhns3_enet.h564 struct hnae3_handle *ae_handle; member
674 (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle)

Completed in 42 milliseconds