Lines Matching refs:bus
135 /* Used when trying to connect to a specific phy (mii bus id:phy device id) */
159 int (*read)(struct mii_bus *bus, int phy_id, int regnum);
160 int (*write)(struct mii_bus *bus, int phy_id, int regnum, u16 val);
161 int (*reset)(struct mii_bus *bus);
165 * the MDIO bus at a time
178 /* list of all PHYs on bus */
198 int mdiobus_register(struct mii_bus *bus);
199 void mdiobus_unregister(struct mii_bus *bus);
200 void mdiobus_free(struct mii_bus *bus);
207 void devm_mdiobus_free(struct device *dev, struct mii_bus *bus);
208 struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
209 int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum);
210 int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val);
324 * bus: Pointer to the bus this PHY is on
357 struct mii_bus *bus;
440 * for the bus read/write functions to be able to block when the
441 * bus transaction is happening, and be freed up by an interrupt
596 return mdiobus_read(phydev->bus, phydev->addr,
602 * @phydev: The PHY device bus
605 * @addr: PHY address on the MII bus
619 * because the bus read/write functions may wait for an interrupt
624 return mdiobus_read(phydev->bus, phydev->addr, regnum);
634 * because the bus read/write functions may wait for an interrupt
639 return mdiobus_write(phydev->bus, phydev->addr, regnum, val);
681 return mdiobus_write(phydev->bus, phydev->addr, regnum, val);
689 * @addr: PHY address on the MII bus
698 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id,
701 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
708 struct phy_device *phy_find_first(struct mii_bus *bus);