Lines Matching refs:ae_handle
45 h = priv->ae_handle; in hns_nic_get_link()
125 if (!priv || !priv->ae_handle) in hns_nic_get_link_ksettings()
128 h = priv->ae_handle; in hns_nic_get_link_ksettings()
211 if (!priv || !priv->ae_handle || !priv->ae_handle->dev || in hns_nic_set_link_ksettings()
212 !priv->ae_handle->dev->ops) in hns_nic_set_link_ksettings()
215 h = priv->ae_handle; in hns_nic_set_link_ksettings()
289 struct hnae_handle *h = priv->ae_handle; in __lb_setup()
299 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) in __lb_setup()
311 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_setup()
340 struct hnae_handle *h = priv->ae_handle; in __lb_up()
357 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_up()
391 (priv->ae_handle->port_type == HNAE_PORT_SERVICE)) { in __lb_other_process()
481 struct hnae_handle *h = priv->ae_handle; in __lb_run_test()
550 struct hnae_handle *h = priv->ae_handle; in __lb_down()
590 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()
594 st_param[2][1] = ((!!(priv->ae_handle->phy_dev)) && in hns_nic_self_test()
595 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); in hns_nic_self_test()
672 queue = priv->ae_handle->qs[0]; in hns_get_ringparam()
673 ops = priv->ae_handle->dev->ops; in hns_get_ringparam()
695 ops = priv->ae_handle->dev->ops; in hns_get_pauseparam()
698 ops->get_pauseparam(priv->ae_handle, ¶m->autoneg, in hns_get_pauseparam()
716 h = priv->ae_handle; in hns_set_pauseparam()
722 return ops->set_pauseparam(priv->ae_handle, param->autoneg, in hns_set_pauseparam()
739 ops = priv->ae_handle->dev->ops; in hns_get_coalesce()
741 ec->use_adaptive_rx_coalesce = priv->ae_handle->coal_adapt_en; in hns_get_coalesce()
742 ec->use_adaptive_tx_coalesce = priv->ae_handle->coal_adapt_en; in hns_get_coalesce()
748 ops->get_coalesce_usecs(priv->ae_handle, in hns_get_coalesce()
753 priv->ae_handle, in hns_get_coalesce()
757 ops->get_coalesce_range(priv->ae_handle, in hns_get_coalesce()
784 ops = priv->ae_handle->dev->ops; in hns_set_coalesce()
793 if (ec->use_adaptive_rx_coalesce != priv->ae_handle->coal_adapt_en) in hns_set_coalesce()
794 priv->ae_handle->coal_adapt_en = ec->use_adaptive_rx_coalesce; in hns_set_coalesce()
796 rc1 = ops->set_coalesce_usecs(priv->ae_handle, in hns_set_coalesce()
799 rc2 = ops->set_coalesce_frames(priv->ae_handle, in hns_set_coalesce()
819 ch->max_rx = priv->ae_handle->q_num; in hns_get_channels()
820 ch->max_tx = priv->ae_handle->q_num; in hns_get_channels()
822 ch->rx_count = priv->ae_handle->q_num; in hns_get_channels()
823 ch->tx_count = priv->ae_handle->q_num; in hns_get_channels()
837 struct hnae_handle *h = priv->ae_handle; in hns_get_ethtool_stats()
893 struct hnae_handle *h = priv->ae_handle; in hns_get_strings()
902 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) { in hns_get_strings()
983 struct hnae_handle *h = priv->ae_handle; in hns_get_sset_count()
993 if (priv->ae_handle->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_get_sset_count()
1040 struct hnae_handle *h = priv->ae_handle; in hns_set_phys_id()
1117 ops = priv->ae_handle->dev->ops; in hns_get_regs()
1124 ops->get_regs(priv->ae_handle, data); in hns_get_regs()
1139 ops = priv->ae_handle->dev->ops; in hns_get_regs_len()
1145 reg_num = ops->get_regs_len(priv->ae_handle); in hns_get_regs_len()
1186 ops = priv->ae_handle->dev->ops; in hns_get_rss_key_size()
1187 return ops->get_rss_key_size(priv->ae_handle); in hns_get_rss_key_size()
1202 ops = priv->ae_handle->dev->ops; in hns_get_rss_indir_size()
1203 return ops->get_rss_indir_size(priv->ae_handle); in hns_get_rss_indir_size()
1218 ops = priv->ae_handle->dev->ops; in hns_get_rss()
1223 return ops->get_rss(priv->ae_handle, indir, key, hfunc); in hns_get_rss()
1239 ops = priv->ae_handle->dev->ops; in hns_set_rss()
1246 return ops->set_rss(priv->ae_handle, indir, key, hfunc); in hns_set_rss()
1257 cmd->data = priv->ae_handle->q_num; in hns_get_rxnfc()