Lines Matching refs:ae_handle
50 assert(priv && priv->ae_handle); in hns_nic_get_link()
51 h = priv->ae_handle; in hns_nic_get_link()
133 if (!priv || !priv->ae_handle) in hns_nic_get_settings()
136 h = priv->ae_handle; in hns_nic_get_settings()
202 if (!priv || !priv->ae_handle || !priv->ae_handle->dev || in hns_nic_set_settings()
203 !priv->ae_handle->dev->ops) in hns_nic_set_settings()
206 h = priv->ae_handle; in hns_nic_set_settings()
314 struct hnae_handle *h = priv->ae_handle; in __lb_setup()
323 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) in __lb_setup()
335 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_setup()
355 struct hnae_handle *h = priv->ae_handle; in __lb_up()
384 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_up()
495 struct hnae_handle *h = priv->ae_handle; in __lb_run_test()
563 struct hnae_handle *h = priv->ae_handle; in __lb_down()
603 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()
607 st_param[2][1] = ((!!(priv->ae_handle->phy_node)) && in hns_nic_self_test()
608 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); in hns_nic_self_test()
685 queue = priv->ae_handle->qs[0]; in hns_get_ringparam()
686 ops = priv->ae_handle->dev->ops; in hns_get_ringparam()
708 ops = priv->ae_handle->dev->ops; in hns_get_pauseparam()
711 ops->get_pauseparam(priv->ae_handle, ¶m->autoneg, in hns_get_pauseparam()
729 assert(priv || priv->ae_handle); in hns_set_pauseparam()
731 h = priv->ae_handle; in hns_set_pauseparam()
737 return ops->set_pauseparam(priv->ae_handle, param->autoneg, in hns_set_pauseparam()
754 ops = priv->ae_handle->dev->ops; in hns_get_coalesce()
763 ops->get_coalesce_usecs(priv->ae_handle, in hns_get_coalesce()
768 priv->ae_handle, in hns_get_coalesce()
789 assert(priv || priv->ae_handle); in hns_set_coalesce()
791 ops = priv->ae_handle->dev->ops; in hns_set_coalesce()
803 ops->set_coalesce_usecs(priv->ae_handle, in hns_set_coalesce()
807 priv->ae_handle, in hns_set_coalesce()
822 ch->max_rx = priv->ae_handle->q_num; in hns_get_channels()
823 ch->max_tx = priv->ae_handle->q_num; in hns_get_channels()
825 ch->rx_count = priv->ae_handle->q_num; in hns_get_channels()
826 ch->tx_count = priv->ae_handle->q_num; in hns_get_channels()
840 struct hnae_handle *h = priv->ae_handle; in hns_get_ethtool_stats()
896 struct hnae_handle *h = priv->ae_handle; in hns_get_strings()
905 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) { in hns_get_strings()
986 struct hnae_handle *h = priv->ae_handle; in hns_get_sset_count()
996 if (priv->ae_handle->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_get_sset_count()
1048 struct hnae_handle *h = priv->ae_handle; in hns_set_phys_id()
1131 assert(priv || priv->ae_handle); in hns_get_regs()
1133 ops = priv->ae_handle->dev->ops; in hns_get_regs()
1140 ops->get_regs(priv->ae_handle, data); in hns_get_regs()
1155 assert(priv || priv->ae_handle); in hns_get_regs_len()
1157 ops = priv->ae_handle->dev->ops; in hns_get_regs_len()
1163 reg_num = ops->get_regs_len(priv->ae_handle); in hns_get_regs_len()