Lines Matching refs:dev_addr
19 static int pfe_write_addr(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_write_addr() argument
28 devadr = ((dev_addr & EMAC_MII_DATA_RA_MASK) << EMAC_MII_DATA_RA_SHIFT); in pfe_write_addr()
53 static int pfe_phy_read(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_read() argument
63 if (dev_addr == MDIO_DEVAD_NONE) { in pfe_phy_read()
67 pfe_write_addr(bus, phy_addr, dev_addr, reg_addr); in pfe_phy_read()
68 reg = ((dev_addr & EMAC_MII_DATA_RA_MASK) << in pfe_phy_read()
74 if (dev_addr == MDIO_DEVAD_NONE) in pfe_phy_read()
108 static int pfe_phy_write(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_write() argument
117 if (dev_addr == MDIO_DEVAD_NONE) { in pfe_phy_write()
121 pfe_write_addr(bus, phy_addr, dev_addr, reg_addr); in pfe_phy_write()
122 reg = ((dev_addr & EMAC_MII_DATA_RA_MASK) << in pfe_phy_write()
128 if (dev_addr == MDIO_DEVAD_NONE) in pfe_phy_write()