Lines Matching refs:phyaddr
36 static u16 bcma_mdio_phy_read(struct bgmac *bgmac, u8 phyaddr, u8 reg) in bcma_mdio_phy_read() argument
67 tmp |= phyaddr; in bcma_mdio_phy_read()
71 tmp |= phyaddr << BGMAC_PA_ADDR_SHIFT; in bcma_mdio_phy_read()
78 phyaddr, reg); in bcma_mdio_phy_read()
86 static int bcma_mdio_phy_write(struct bgmac *bgmac, u8 phyaddr, u8 reg, in bcma_mdio_phy_write() argument
106 tmp |= phyaddr; in bcma_mdio_phy_write()
115 tmp |= phyaddr << BGMAC_PA_ADDR_SHIFT; in bcma_mdio_phy_write()
123 phyaddr, reg); in bcma_mdio_phy_write()
182 u8 phyaddr = bgmac->phyaddr; in bcma_mdio_phy_reset() local
184 if (phyaddr == BGMAC_PHY_NOREGS) in bcma_mdio_phy_reset()
187 bcma_mdio_phy_write(bgmac, phyaddr, MII_BMCR, BMCR_RESET); in bcma_mdio_phy_reset()
189 if (bcma_mdio_phy_read(bgmac, phyaddr, MII_BMCR) & BMCR_RESET) in bcma_mdio_phy_reset()
232 mii_bus->phy_mask = ~(1 << bgmac->phyaddr); in bcma_mdio_mii_register()