Home
last modified time | relevance | path

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

/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/hisilicon/hns/
H 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 …]
H 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()
111 ae_handle->qs = (struct hnae_queue **)(&ae_handle->qs + 1); in hns_ae_get_handle()
114 ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
115 ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
132 return ae_handle; in hns_ae_get_handle()
[all …]
H 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 …]
H A Dhns_enet.h61 struct hnae_handle *ae_handle; member
85 ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)])
H A Dhns_dsaf_main.h213 struct hnae_handle ae_handle; /* must be the last number */ member
425 return container_of(handle, struct hnae_vf_cb, ae_handle); in hns_ae_get_vf_cb()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/hisilicon/hns/
H 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 …]
H 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()
111 ae_handle->qs = (struct hnae_queue **)(&ae_handle->qs + 1); in hns_ae_get_handle()
114 ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
115 ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
132 return ae_handle; in hns_ae_get_handle()
[all …]
H 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 …]
H A Dhns_enet.h61 struct hnae_handle *ae_handle; member
85 ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)])
H A Dhns_dsaf_main.h213 struct hnae_handle ae_handle; /* must be the last number */ member
425 return container_of(handle, struct hnae_vf_cb, ae_handle); in hns_ae_get_vf_cb()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/hisilicon/hns/
H 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 …]
H 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()
111 ae_handle->qs = (struct hnae_queue **)(&ae_handle->qs + 1); in hns_ae_get_handle()
114 ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
115 ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
132 return ae_handle; in hns_ae_get_handle()
[all …]
H 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 …]
H A Dhns_enet.h61 struct hnae_handle *ae_handle; member
85 ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)])
H A Dhns_dsaf_main.h213 struct hnae_handle ae_handle; /* must be the last number */ member
425 return container_of(handle, struct hnae_vf_cb, ae_handle); in hns_ae_get_vf_cb()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c141 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
147 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
152 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
308 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_coalesce_init_hw()
430 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
551 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
553 ops->stop(priv->ae_handle); in hns3_nic_net_down()
562 hns3_reset_tx_queue(priv->ae_handle); in hns3_nic_net_down()
4269 priv->ae_handle = handle; in hns3_client_init()
4379 priv->ae_handle = NULL; in hns3_client_init()
[all …]
H A Dhns3_ethtool.c215 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
321 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
584 struct hnae3_handle *h = priv->ae_handle; in hns3_get_drvinfo()
600 fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); in hns3_get_drvinfo()
628 struct hnae3_handle *h = priv->ae_handle; in hns3_get_ringparam()
955 struct hnae3_handle *h = priv->ae_handle; in hns3_change_all_ring_bd_num()
969 struct hnae3_handle *handle = priv->ae_handle; in hns3_backup_ringparam()
1012 struct hnae3_handle *h = priv->ae_handle; in hns3_set_ringparam()
1142 struct hnae3_handle *h = priv->ae_handle; in hns3_get_coalesce_per_queue()
1316 struct hnae3_handle *h = priv->ae_handle; in hns3_set_coalesce_per_queue()
H A Dhns3_enet.h500 struct hnae3_handle *ae_handle; member
601 (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle)
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c141 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
147 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
152 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
308 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_coalesce_init_hw()
430 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
551 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
553 ops->stop(priv->ae_handle); in hns3_nic_net_down()
562 hns3_reset_tx_queue(priv->ae_handle); in hns3_nic_net_down()
4269 priv->ae_handle = handle; in hns3_client_init()
4379 priv->ae_handle = NULL; in hns3_client_init()
[all …]
H A Dhns3_ethtool.c215 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
321 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
584 struct hnae3_handle *h = priv->ae_handle; in hns3_get_drvinfo()
600 fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); in hns3_get_drvinfo()
628 struct hnae3_handle *h = priv->ae_handle; in hns3_get_ringparam()
955 struct hnae3_handle *h = priv->ae_handle; in hns3_change_all_ring_bd_num()
969 struct hnae3_handle *handle = priv->ae_handle; in hns3_backup_ringparam()
1012 struct hnae3_handle *h = priv->ae_handle; in hns3_set_ringparam()
1142 struct hnae3_handle *h = priv->ae_handle; in hns3_get_coalesce_per_queue()
1316 struct hnae3_handle *h = priv->ae_handle; in hns3_set_coalesce_per_queue()
H A Dhns3_enet.h500 struct hnae3_handle *ae_handle; member
601 (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle)
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c141 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
147 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
152 pci_name(priv->ae_handle->pdev), in hns3_nic_init_irq()
308 struct hnae3_handle *h = priv->ae_handle; in hns3_vector_coalesce_init_hw()
430 struct hnae3_handle *h = priv->ae_handle; in hns3_nic_net_up()
551 ops = priv->ae_handle->ae_algo->ops; in hns3_nic_net_down()
553 ops->stop(priv->ae_handle); in hns3_nic_net_down()
562 hns3_reset_tx_queue(priv->ae_handle); in hns3_nic_net_down()
4269 priv->ae_handle = handle; in hns3_client_init()
4379 priv->ae_handle = NULL; in hns3_client_init()
[all …]
H A Dhns3_ethtool.c215 struct hnae3_handle *h = priv->ae_handle; in hns3_lb_check_rx_ring()
321 struct hnae3_handle *h = priv->ae_handle; in hns3_self_test()
584 struct hnae3_handle *h = priv->ae_handle; in hns3_get_drvinfo()
600 fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); in hns3_get_drvinfo()
628 struct hnae3_handle *h = priv->ae_handle; in hns3_get_ringparam()
955 struct hnae3_handle *h = priv->ae_handle; in hns3_change_all_ring_bd_num()
969 struct hnae3_handle *handle = priv->ae_handle; in hns3_backup_ringparam()
1012 struct hnae3_handle *h = priv->ae_handle; in hns3_set_ringparam()
1142 struct hnae3_handle *h = priv->ae_handle; in hns3_get_coalesce_per_queue()
1316 struct hnae3_handle *h = priv->ae_handle; in hns3_set_coalesce_per_queue()
H A Dhns3_enet.h500 struct hnae3_handle *ae_handle; member
601 (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle)