Lines Matching refs:ugeth

106 	struct ucc_geth_private *ugeth = netdev_priv(netdev);  in uec_get_ksettings()  local
107 struct phy_device *phydev = ugeth->phydev; in uec_get_ksettings()
121 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_ksettings() local
122 struct phy_device *phydev = ugeth->phydev; in uec_set_ksettings()
134 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_pauseparam() local
136 pause->autoneg = ugeth->phydev->autoneg; in uec_get_pauseparam()
138 if (ugeth->ug_info->receiveFlowControl) in uec_get_pauseparam()
140 if (ugeth->ug_info->transmitFlowControl) in uec_get_pauseparam()
148 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_pauseparam() local
151 ugeth->ug_info->receiveFlowControl = pause->rx_pause; in uec_set_pauseparam()
152 ugeth->ug_info->transmitFlowControl = pause->tx_pause; in uec_set_pauseparam()
154 if (ugeth->phydev->autoneg) { in uec_set_pauseparam()
160 struct ucc_geth_info *ug_info = ugeth->ug_info; in uec_set_pauseparam()
167 &ugeth->uccf->uf_regs->upsmr, in uec_set_pauseparam()
168 &ugeth->ug_regs->uempr, in uec_set_pauseparam()
169 &ugeth->ug_regs->maccfg1); in uec_set_pauseparam()
178 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_msglevel() local
179 return ugeth->msg_enable; in uec_get_msglevel()
185 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_msglevel() local
186 ugeth->msg_enable = data; in uec_set_msglevel()
200 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_regs() local
201 u32 __iomem *ug_regs = (u32 __iomem *)ugeth->ug_regs; in uec_get_regs()
214 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_ringparam() local
215 struct ucc_geth_info *ug_info = ugeth->ug_info; in uec_get_ringparam()
235 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_ringparam() local
236 struct ucc_geth_info *ug_info = ugeth->ug_info; in uec_set_ringparam()
266 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_sset_count() local
267 u32 stats_mode = ugeth->ug_info->statisticsMode; in uec_get_sset_count()
288 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_strings() local
289 u32 stats_mode = ugeth->ug_info->statisticsMode; in uec_get_strings()
309 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_ethtool_stats() local
310 u32 stats_mode = ugeth->ug_info->statisticsMode; in uec_get_ethtool_stats()
315 if (ugeth->ug_regs) in uec_get_ethtool_stats()
316 base = (u32 __iomem *)&ugeth->ug_regs->tx64; in uec_get_ethtool_stats()
324 base = (u32 __iomem *)ugeth->p_tx_fw_statistics_pram; in uec_get_ethtool_stats()
329 base = (u32 __iomem *)ugeth->p_rx_fw_statistics_pram; in uec_get_ethtool_stats()
348 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_wol() local
349 struct phy_device *phydev = ugeth->phydev; in uec_get_wol()
356 wol->wolopts = ugeth->wol_en; in uec_get_wol()
361 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_wol() local
362 struct phy_device *phydev = ugeth->phydev; in uec_set_wol()
371 ugeth->wol_en = wol->wolopts; in uec_set_wol()
372 device_set_wakeup_enable(&netdev->dev, ugeth->wol_en); in uec_set_wol()