Lines Matching refs:phy_reg
601 u32 phy_reg; in bcm5421_poll_link() local
606 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_poll_link()
608 mode = (phy_reg & BCM5421_MODE_MASK) >> 5; in bcm5421_poll_link()
615 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_poll_link()
617 if (phy_reg & 0x0020) in bcm5421_poll_link()
625 u32 phy_reg; in bcm5421_read_link() local
630 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_read_link()
632 mode = (phy_reg & BCM5421_MODE_MASK ) >> 5; in bcm5421_read_link()
641 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_read_link()
643 if ( (phy_reg & 0x0080) >> 7) in bcm5421_read_link()
674 u32 phy_reg; in bcm5461_poll_link() local
679 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_poll_link()
681 mode = (phy_reg & BCM5461_MODE_MASK ) >> 1; in bcm5461_poll_link()
688 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_poll_link()
690 if (phy_reg & BCM5461_FIBER_LINK) in bcm5461_poll_link()
700 u32 phy_reg; in bcm5461_read_link() local
705 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_read_link()
707 mode = (phy_reg & BCM5461_MODE_MASK ) >> 1; in bcm5461_read_link()
717 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_read_link()
719 if (phy_reg & BCM5461_FIBER_DUPLEX) in bcm5461_read_link()