Lines Matching refs:phy_read

60 static inline int phy_read(struct mii_phy* phy, int reg)  in phy_read()  function
98 data = phy_read(phy, MII_BCM5201_MULTIPHY); in bcm5201_init()
119 data = phy_read(phy, MII_BCM5221_TEST); in bcm5221_init()
123 data = phy_read(phy, MII_BCM5221_SHDOW_AUX_STAT2); in bcm5221_init()
127 data = phy_read(phy, MII_BCM5221_SHDOW_AUX_MODE4); in bcm5221_init()
131 data = phy_read(phy, MII_BCM5221_TEST); in bcm5221_init()
142 data = phy_read(phy, MII_BCM5221_TEST); in bcm5221_suspend()
146 data = phy_read(phy, MII_BCM5221_SHDOW_AUX_MODE4); in bcm5221_suspend()
157 data = phy_read(phy, MII_BCM5221_TEST); in bcm5241_init()
161 data = phy_read(phy, MII_BCM5221_SHDOW_AUX_STAT2); in bcm5241_init()
165 data = phy_read(phy, MII_BCM5221_SHDOW_AUX_MODE4); in bcm5241_init()
169 data = phy_read(phy, MII_BCM5221_TEST); in bcm5241_init()
180 data = phy_read(phy, MII_BCM5221_TEST); in bcm5241_suspend()
184 data = phy_read(phy, MII_BCM5221_SHDOW_AUX_MODE4); in bcm5241_suspend()
196 data = phy_read(phy, MII_BCM5400_AUXCONTROL); in bcm5400_init()
200 data = phy_read(phy, MII_BCM5400_GB_CONTROL); in bcm5400_init()
213 data = phy_read(phy, MII_BCM5400_AUXCONTROL); in bcm5400_init()
233 rev = phy_read(phy, MII_PHYSID2) & 0x000f; in bcm5401_init()
260 data = phy_read(phy, MII_BCM5400_GB_CONTROL); in bcm5401_init()
301 data = phy_read(phy, MII_BCM5400_GB_CONTROL); in bcm5411_init()
324 adv = phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg()
337 ctl = phy_read(phy, MII_BMCR); in genmii_setup_aneg()
353 ctl = phy_read(phy, MII_BMCR); in genmii_setup_forced()
381 (void)phy_read(phy, MII_BMSR); in genmii_poll_link()
382 status = phy_read(phy, MII_BMSR); in genmii_poll_link()
395 lpa = phy_read(phy, MII_LPA); in genmii_read_link()
426 id = (phy_read(phy, MII_PHYSID1) << 16 | phy_read(phy, MII_PHYSID2)); in bcm5421_init()
433 data = phy_read(phy, 0x18); in bcm5421_init()
436 data = phy_read(phy, 0x18); in bcm5421_init()
439 data = phy_read(phy, 0x15); in bcm5421_init()
479 adv = phy_read(phy, MII_ADVERTISE); in bcm54xx_setup_aneg()
496 adv = phy_read(phy, MII_1000BASETCONTROL); in bcm54xx_setup_aneg()
505 ctl = phy_read(phy, MII_BMCR); in bcm54xx_setup_aneg()
521 ctl = phy_read(phy, MII_BMCR); in bcm54xx_setup_forced()
553 val = phy_read(phy, MII_BCM5400_AUXSTATUS); in bcm54xx_read_link()
562 val = phy_read(phy, MII_LPA); in bcm54xx_read_link()
578 rev = phy_read(phy, MII_PHYSID2) & 0x000f; in marvell88e1111_init()
604 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5421_poll_link()
613 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5421_poll_link()
628 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5421_read_link()
639 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5421_read_link()
677 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5461_poll_link()
686 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5461_poll_link()
703 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5461_read_link()
715 phy_reg = phy_read(phy, MII_NCONFIG); in bcm5461_read_link()
755 adv = phy_read(phy, MII_ADVERTISE); in marvell_setup_aneg()
777 adv = phy_read(phy, MII_M1011_PHY_SPEC_CONTROL); in marvell_setup_aneg()
788 ctl = phy_read(phy, MII_BMCR); in marvell_setup_aneg()
804 ctl = phy_read(phy, MII_BMCR); in marvell_setup_forced()
827 ctl2 = phy_read(phy, MII_M1011_PHY_SPEC_CONTROL); in marvell_setup_forced()
850 status = phy_read(phy, MII_M1011_PHY_SPEC_STATUS); in marvell_read_link()
1177 id = (phy_read(phy, MII_PHYSID1) << 16 | phy_read(phy, MII_PHYSID2)); in mii_phy_probe()