ae_handle 76 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hnae_handle *ae_handle; ae_handle 90 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle = ERR_PTR(-ENOMEM); ae_handle 93 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle = &vf_cb->ae_handle; ae_handle 95 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->owner_dev = dsaf_dev->dev; ae_handle 96 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->dev = dev; ae_handle 97 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->q_num = qnum_per_vf; ae_handle 98 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->coal_param = HNAE_LOWEST_LATENCY_COAL_PARAM; ae_handle 101 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c for (ae_handle->vf_id = 0; ae_handle 102 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->vf_id < vfnum_per_port; ae_handle->vf_id++) { ae_handle 107 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c if (ae_handle->vf_id >= vfnum_per_port) { ae_handle 109 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle = ERR_PTR(-EINVAL); ae_handle 113 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->qs = (struct hnae_queue **)(&ae_handle->qs + 1); ae_handle 115 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->qs[i] = &ring_pair_cb->q; ae_handle 116 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; ae_handle 117 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; ae_handle 127 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->phy_if = vf_cb->mac_cb->phy_if; ae_handle 128 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->phy_dev = vf_cb->mac_cb->phy_dev; ae_handle 129 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->if_support = vf_cb->mac_cb->if_support; ae_handle 130 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->port_type = vf_cb->mac_cb->mac_type; ae_handle 131 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->media_type = vf_cb->mac_cb->media_type; ae_handle 132 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->dport_id = port_id; ae_handle 134 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c return ae_handle; ae_handle 138 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c return ae_handle; ae_handle 213 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h struct hnae_handle ae_handle; /* must be the last number */ ae_handle 425 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h return container_of(handle, struct hnae_vf_cb, ae_handle); ae_handle 370 drivers/net/ethernet/hisilicon/hns/hns_enet.c assert(skb->queue_mapping < priv->ae_handle->q_num); ae_handle 371 drivers/net/ethernet/hisilicon/hns/hns_enet.c hnae_queue_xmit(priv->ae_handle->qs[skb->queue_mapping], buf_num); ae_handle 1092 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1171 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1184 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1205 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1225 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1278 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1325 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1391 drivers/net/ethernet/hisilicon/hns/hns_enet.c ops = priv->ae_handle->dev->ops; ae_handle 1394 drivers/net/ethernet/hisilicon/hns/hns_enet.c ops->stop(priv->ae_handle); ae_handle 1398 drivers/net/ethernet/hisilicon/hns/hns_enet.c for (i = priv->ae_handle->q_num - 1; i >= 0; i--) { ae_handle 1400 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_ring_close(ndev, i + priv->ae_handle->q_num); ae_handle 1410 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *handle = priv->ae_handle; ae_handle 1423 drivers/net/ethernet/hisilicon/hns/hns_enet.c enum hnae_port_type type = priv->ae_handle->port_type; ae_handle 1444 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1519 drivers/net/ethernet/hisilicon/hns/hns_enet.c assert(skb->queue_mapping < ndev->ae_handle->q_num); ae_handle 1563 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1594 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1617 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1723 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1827 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1839 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1857 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1879 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1903 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1973 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1987 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 1992 drivers/net/ethernet/hisilicon/hns/hns_enet.c reg_num = ops->get_regs_len(priv->ae_handle); ae_handle 1996 drivers/net/ethernet/hisilicon/hns/hns_enet.c ops->get_regs(priv->ae_handle, data); ae_handle 2020 drivers/net/ethernet/hisilicon/hns/hns_enet.c enum hnae_port_type type = priv->ae_handle->port_type; ae_handle 2057 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 2103 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 2150 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 2171 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hnae_handle *h = priv->ae_handle; ae_handle 2209 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ae_handle = h; ae_handle 2237 drivers/net/ethernet/hisilicon/hns/hns_enet.c hnae_put_handle(priv->ae_handle); ae_handle 2238 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ae_handle = NULL; ae_handle 2416 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (!IS_ERR_OR_NULL(priv->ae_handle)) ae_handle 2417 drivers/net/ethernet/hisilicon/hns/hns_enet.c hnae_put_handle(priv->ae_handle); ae_handle 2418 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->ae_handle = NULL; ae_handle 61 drivers/net/ethernet/hisilicon/hns/hns_enet.h struct hnae_handle *ae_handle; ae_handle 85 drivers/net/ethernet/hisilicon/hns/hns_enet.h ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)]) ae_handle 45 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c h = priv->ae_handle; ae_handle 125 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (!priv || !priv->ae_handle) ae_handle 128 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c h = priv->ae_handle; ae_handle 211 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (!priv || !priv->ae_handle || !priv->ae_handle->dev || ae_handle 212 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c !priv->ae_handle->dev->ops) ae_handle 215 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c h = priv->ae_handle; ae_handle 289 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 299 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) ae_handle 311 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) ae_handle 340 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 357 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) ae_handle 391 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (priv->ae_handle->port_type == HNAE_PORT_SERVICE)) { ae_handle 481 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 550 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 590 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); ae_handle 594 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c st_param[2][1] = ((!!(priv->ae_handle->phy_dev)) && ae_handle 595 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); ae_handle 672 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c queue = priv->ae_handle->qs[0]; ae_handle 673 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 695 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 698 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops->get_pauseparam(priv->ae_handle, ¶m->autoneg, ae_handle 716 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c h = priv->ae_handle; ae_handle 722 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ops->set_pauseparam(priv->ae_handle, param->autoneg, ae_handle 739 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 741 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ec->use_adaptive_rx_coalesce = priv->ae_handle->coal_adapt_en; ae_handle 742 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ec->use_adaptive_tx_coalesce = priv->ae_handle->coal_adapt_en; ae_handle 748 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops->get_coalesce_usecs(priv->ae_handle, ae_handle 753 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c priv->ae_handle, ae_handle 757 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops->get_coalesce_range(priv->ae_handle, ae_handle 784 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 793 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (ec->use_adaptive_rx_coalesce != priv->ae_handle->coal_adapt_en) ae_handle 794 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c priv->ae_handle->coal_adapt_en = ec->use_adaptive_rx_coalesce; ae_handle 796 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c rc1 = ops->set_coalesce_usecs(priv->ae_handle, ae_handle 799 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c rc2 = ops->set_coalesce_frames(priv->ae_handle, ae_handle 819 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ch->max_rx = priv->ae_handle->q_num; ae_handle 820 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ch->max_tx = priv->ae_handle->q_num; ae_handle 822 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ch->rx_count = priv->ae_handle->q_num; ae_handle 823 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ch->tx_count = priv->ae_handle->q_num; ae_handle 837 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 893 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 902 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) { ae_handle 983 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 993 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if == PHY_INTERFACE_MODE_XGMII) ae_handle 1040 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hnae_handle *h = priv->ae_handle; ae_handle 1117 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 1124 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops->get_regs(priv->ae_handle, data); ae_handle 1139 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 1145 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c reg_num = ops->get_regs_len(priv->ae_handle); ae_handle 1186 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 1187 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ops->get_rss_key_size(priv->ae_handle); ae_handle 1202 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 1203 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ops->get_rss_indir_size(priv->ae_handle); ae_handle 1218 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 1223 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ops->get_rss(priv->ae_handle, indir, key, hfunc); ae_handle 1239 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ops = priv->ae_handle->dev->ops; ae_handle 1246 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ops->set_rss(priv->ae_handle, indir, key, hfunc); ae_handle 1257 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c cmd->data = priv->ae_handle->q_num; ae_handle 250 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 369 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 470 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c h->ae_algo->ops->set_timer_task(priv->ae_handle, true); ae_handle 509 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ops = priv->ae_handle->ae_algo->ops; ae_handle 511 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ops->stop(priv->ae_handle); ae_handle 523 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_clear_all_ring(priv->ae_handle, false); ae_handle 525 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_reset_tx_queue(priv->ae_handle); ae_handle 539 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c h->ae_algo->ops->set_timer_task(priv->ae_handle, false); ae_handle 645 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 659 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 1452 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 1490 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c int queue_num = priv->ae_handle->kinfo.num_tqps; ae_handle 1491 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *handle = priv->ae_handle; ae_handle 1779 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3298 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct pci_dev *pdev = priv->ae_handle->pdev; ae_handle 3316 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3385 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3438 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3469 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3490 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c int queue_num = priv->ae_handle->kinfo.num_tqps; ae_handle 3491 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct pci_dev *pdev = priv->ae_handle->pdev; ae_handle 3500 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c desc_num = priv->ae_handle->kinfo.num_tx_desc; ae_handle 3505 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c desc_num = priv->ae_handle->kinfo.num_rx_desc; ae_handle 3546 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3579 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3695 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_knic_private_info *kinfo = &priv->ae_handle->kinfo; ae_handle 3717 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3744 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3758 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = priv->ae_handle; ae_handle 3836 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_knic_private_info *kinfo = &priv->ae_handle->kinfo; ae_handle 3866 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ae_handle = handle; ae_handle 3955 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c priv->ae_handle = NULL; ae_handle 4376 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_reset_tx_queue(priv->ae_handle); ae_handle 511 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h struct hnae3_handle *ae_handle; ae_handle 639 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle) ae_handle 195 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle; ae_handle 301 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle; ae_handle 542 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle; ae_handle 562 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c fw_version = priv->ae_handle->ae_algo->ops->get_fw_version(h); ae_handle 590 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle; ae_handle 897 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle; ae_handle 912 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *handle = priv->ae_handle; ae_handle 955 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle; ae_handle 1088 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle; ae_handle 1224 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = priv->ae_handle;