Lines Matching +full:3 +full:- +full:c22

5  * SPDX-License-Identifier:	GPL-2.0+
74 * UID--as defined by registers 2 and 3--is. The 32-bit result
164 struct mii_dev *bus = phydev->bus; in phy_read()
166 return bus->read(bus, phydev->addr, devad, regnum); in phy_read()
172 struct mii_dev *bus = phydev->bus; in phy_write()
174 return bus->write(bus, phydev->addr, devad, regnum, val); in phy_write()
194 struct phy_driver *drv = phydev->drv; in phy_read_mmd()
197 return -EINVAL; in phy_read_mmd()
199 /* driver-specific access */ in phy_read_mmd()
200 if (drv->read_mmd) in phy_read_mmd()
201 return drv->read_mmd(phydev, devad, regnum); in phy_read_mmd()
203 /* direct C45 / C22 access */ in phy_read_mmd()
204 if ((drv->features & PHY_10G_FEATURES) == PHY_10G_FEATURES || in phy_read_mmd()
208 /* indirect C22 access */ in phy_read_mmd()
218 struct phy_driver *drv = phydev->drv; in phy_write_mmd()
221 return -EINVAL; in phy_write_mmd()
223 /* driver-specific access */ in phy_write_mmd()
224 if (drv->write_mmd) in phy_write_mmd()
225 return drv->write_mmd(phydev, devad, regnum, val); in phy_write_mmd()
227 /* direct C45 / C22 access */ in phy_write_mmd()
228 if ((drv->features & PHY_10G_FEATURES) == PHY_10G_FEATURES || in phy_write_mmd()
232 /* indirect C22 access */ in phy_write_mmd()
251 * phy_init() - Initializes the PHY drivers
255 * @return 0 if OK, -ve on error
260 * phy_reset() - Resets the specified PHY
265 * @return 0 if OK, -ve on error
270 * phy_find_by_mask() - Searches for a PHY on the specified MDIO bus
280 * @interface: type of MAC-PHY interface
289 * phy_connect_dev() - Associates the given pair of PHY and Ethernet devices
296 * phy_connect() - Creates a PHY device for the Ethernet interface
308 * @interface: type of MAC-PHY interface
317 if (ofnode_valid(phydev->node)) in phy_get_ofnode()
318 return phydev->node; in phy_get_ofnode()
320 return dev_ofnode(phydev->dev); in phy_get_ofnode()
325 * phy_connect_dev() - Associates the given pair of PHY and Ethernet devices
332 * phy_connect() - Creates a PHY device for the Ethernet interface
344 * @interface: type of MAC-PHY interface
399 * phy_get_interface_by_name() - Look up a PHY interface name
402 * @return PHY_INTERFACE_MODE_... value, or -1 if not found
407 * phy_interface_is_rgmii - Convenience function for testing if a PHY interface
413 return phydev->interface >= PHY_INTERFACE_MODE_RGMII && in phy_interface_is_rgmii()
414 phydev->interface <= PHY_INTERFACE_MODE_RGMII_TXID; in phy_interface_is_rgmii()
418 * phy_interface_is_sgmii - Convenience function for testing if a PHY interface
424 return phydev->interface >= PHY_INTERFACE_MODE_SGMII && in phy_interface_is_sgmii()
425 phydev->interface <= PHY_INTERFACE_MODE_QSGMII; in phy_interface_is_sgmii()