Lines Matching refs:phy_reg
599 u32 phy_reg; in bcm5421_poll_link() local
604 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_poll_link()
606 mode = (phy_reg & BCM5421_MODE_MASK) >> 5; in bcm5421_poll_link()
613 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_poll_link()
615 if (phy_reg & 0x0020) in bcm5421_poll_link()
623 u32 phy_reg; in bcm5421_read_link() local
628 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_read_link()
630 mode = (phy_reg & BCM5421_MODE_MASK ) >> 5; in bcm5421_read_link()
639 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5421_read_link()
641 if ( (phy_reg & 0x0080) >> 7) in bcm5421_read_link()
672 u32 phy_reg; in bcm5461_poll_link() local
677 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_poll_link()
679 mode = (phy_reg & BCM5461_MODE_MASK ) >> 1; in bcm5461_poll_link()
686 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_poll_link()
688 if (phy_reg & BCM5461_FIBER_LINK) in bcm5461_poll_link()
698 u32 phy_reg; in bcm5461_read_link() local
703 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_read_link()
705 mode = (phy_reg & BCM5461_MODE_MASK ) >> 1; in bcm5461_read_link()
715 phy_reg = sungem_phy_read(phy, MII_NCONFIG); in bcm5461_read_link()
717 if (phy_reg & BCM5461_FIBER_DUPLEX) in bcm5461_read_link()