Lines Matching defs:phy
14 #include "phy.h"
28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val)
30 int addr = phy; /* PHY devices addresses start at 0x0 */
43 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val)
45 int addr = phy; /* PHY devices addresses start at 0x0 */
58 int mv88e6xxx_phy_read_c45(struct mv88e6xxx_chip *chip, int phy, int devad,
61 int addr = phy; /* PHY devices addresses start at 0x0 */
74 int mv88e6xxx_phy_write_c45(struct mv88e6xxx_chip *chip, int phy, int devad,
77 int addr = phy; /* PHY devices addresses start at 0x0 */
90 static int mv88e6xxx_phy_page_get(struct mv88e6xxx_chip *chip, int phy, u8 page)
92 return mv88e6xxx_phy_write(chip, phy, MV88E6XXX_PHY_PAGE, page);
95 static void mv88e6xxx_phy_page_put(struct mv88e6xxx_chip *chip, int phy)
102 err = mv88e6xxx_phy_write(chip, phy, MV88E6XXX_PHY_PAGE,
107 phy, err);
111 int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy,
120 err = mv88e6xxx_phy_page_get(chip, phy, page);
122 err = mv88e6xxx_phy_read(chip, phy, reg, val);
123 mv88e6xxx_phy_page_put(chip, phy);
129 int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy,
138 err = mv88e6xxx_phy_page_get(chip, phy, page);
140 err = mv88e6xxx_phy_write(chip, phy, MV88E6XXX_PHY_PAGE, page);
142 err = mv88e6xxx_phy_write(chip, phy, reg, val);
144 mv88e6xxx_phy_page_put(chip, phy);