Lines Matching refs:ae_handle
44 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()
356 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_up()
390 (priv->ae_handle->port_type == HNAE_PORT_SERVICE)) { in __lb_other_process()
484 struct hnae_handle *h = priv->ae_handle; in __lb_run_test()
553 struct hnae_handle *h = priv->ae_handle; in __lb_down()
593 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()
597 st_param[2][1] = ((!!(priv->ae_handle->phy_dev)) && in hns_nic_self_test()
598 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); in hns_nic_self_test()
676 queue = priv->ae_handle->qs[0]; in hns_get_ringparam()
677 ops = priv->ae_handle->dev->ops; in hns_get_ringparam()
699 ops = priv->ae_handle->dev->ops; in hns_get_pauseparam()
702 ops->get_pauseparam(priv->ae_handle, ¶m->autoneg, in hns_get_pauseparam()
720 h = priv->ae_handle; in hns_set_pauseparam()
726 return ops->set_pauseparam(priv->ae_handle, param->autoneg, in hns_set_pauseparam()
747 ops = priv->ae_handle->dev->ops; in hns_get_coalesce()
749 ec->use_adaptive_rx_coalesce = priv->ae_handle->coal_adapt_en; in hns_get_coalesce()
750 ec->use_adaptive_tx_coalesce = priv->ae_handle->coal_adapt_en; in hns_get_coalesce()
756 ops->get_coalesce_usecs(priv->ae_handle, in hns_get_coalesce()
761 priv->ae_handle, in hns_get_coalesce()
765 ops->get_coalesce_range(priv->ae_handle, in hns_get_coalesce()
796 ops = priv->ae_handle->dev->ops; in hns_set_coalesce()
805 if (ec->use_adaptive_rx_coalesce != priv->ae_handle->coal_adapt_en) in hns_set_coalesce()
806 priv->ae_handle->coal_adapt_en = ec->use_adaptive_rx_coalesce; in hns_set_coalesce()
808 rc1 = ops->set_coalesce_usecs(priv->ae_handle, in hns_set_coalesce()
811 rc2 = ops->set_coalesce_frames(priv->ae_handle, in hns_set_coalesce()
831 ch->max_rx = priv->ae_handle->q_num; in hns_get_channels()
832 ch->max_tx = priv->ae_handle->q_num; in hns_get_channels()
834 ch->rx_count = priv->ae_handle->q_num; in hns_get_channels()
835 ch->tx_count = priv->ae_handle->q_num; in hns_get_channels()
849 struct hnae_handle *h = priv->ae_handle; in hns_get_ethtool_stats()
905 struct hnae_handle *h = priv->ae_handle; in hns_get_strings()
914 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in hns_get_strings()
966 struct hnae_handle *h = priv->ae_handle; in hns_get_sset_count()
976 if (priv->ae_handle->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_get_sset_count()
1023 struct hnae_handle *h = priv->ae_handle; in hns_set_phys_id()
1100 ops = priv->ae_handle->dev->ops; in hns_get_regs()
1107 ops->get_regs(priv->ae_handle, data); in hns_get_regs()
1122 ops = priv->ae_handle->dev->ops; in hns_get_regs_len()
1128 reg_num = ops->get_regs_len(priv->ae_handle); in hns_get_regs_len()
1169 ops = priv->ae_handle->dev->ops; in hns_get_rss_key_size()
1170 return ops->get_rss_key_size(priv->ae_handle); in hns_get_rss_key_size()
1185 ops = priv->ae_handle->dev->ops; in hns_get_rss_indir_size()
1186 return ops->get_rss_indir_size(priv->ae_handle); in hns_get_rss_indir_size()
1201 ops = priv->ae_handle->dev->ops; in hns_get_rss()
1206 return ops->get_rss(priv->ae_handle, indir, key, hfunc); in hns_get_rss()
1222 ops = priv->ae_handle->dev->ops; in hns_set_rss()
1229 return ops->set_rss(priv->ae_handle, indir, key, hfunc); in hns_set_rss()
1240 cmd->data = priv->ae_handle->q_num; in hns_get_rxnfc()