Searched refs:phy_adr (Results 1 – 5 of 5) sorted by relevance
/external/u-boot/board/Marvell/gplugd/ |
D | gplugd.c | 109 u16 phy_adr; in reset_phy() local 116 if (miiphy_read(name, 0xff, 0xff, &phy_adr)) { in reset_phy() 122 miiphy_write(name, phy_adr, PHY_LED_MAN_REG, 0x00); in reset_phy() 123 miiphy_write(name, phy_adr, PHY_LED_PAR_SEL_REG, PHY_LED_VAL); in reset_phy() 126 miiphy_reset(name, phy_adr); in reset_phy()
|
/external/u-boot/drivers/net/ |
D | lpc32xx_eth.c | 226 static int mii_reg_read(struct mii_dev *bus, int phy_adr, int devad, in mii_reg_read() argument 237 if (phy_adr > MII_MAX_PHY) { in mii_reg_read() 239 __func__, __LINE__, phy_adr); in mii_reg_read() 249 writel((phy_adr << MADR_PHY_OFFSET) | (reg_ofs << MADR_REG_OFFSET), in mii_reg_read() 274 debug("%s:(adr %d, off %d) => %04x\n", __func__, phy_adr, in mii_reg_read() 286 static int mii_reg_write(struct mii_dev *bus, int phy_adr, int devad, in mii_reg_write() argument 296 if (phy_adr > MII_MAX_PHY) { in mii_reg_write() 298 __func__, __LINE__, phy_adr); in mii_reg_write() 308 writel((phy_adr << MADR_PHY_OFFSET) | (reg_ofs << MADR_REG_OFFSET), in mii_reg_write()
|
D | mvgbe.c | 63 static int smi_reg_read(struct mii_dev *bus, int phy_adr, int devad, in smi_reg_read() argument 74 if (phy_adr == MV_PHY_ADR_REQUEST && in smi_reg_read() 81 if (phy_adr > PHYADR_MASK) { in smi_reg_read() 83 __func__, phy_adr); in smi_reg_read() 97 smi_reg = (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in smi_reg_read() 123 debug("%s:(adr %d, off %d) value= %04x\n", __func__, phy_adr, reg_ofs, in smi_reg_read() 134 static int smi_reg_write(struct mii_dev *bus, int phy_adr, int devad, in smi_reg_write() argument 143 if (phy_adr == MV_PHY_ADR_REQUEST && in smi_reg_write() 150 if (phy_adr > PHYADR_MASK) { in smi_reg_write() 165 smi_reg |= (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in smi_reg_write()
|
D | armada100_fec.c | 426 int phy_adr; in armdfec_init() local 493 phy_adr = ethernet_phy_detect(dev); in armdfec_init() 494 if (phy_adr < 0) { in armdfec_init() 498 debug("ARMD100 FEC: PHY detected at addr %d\n", phy_adr); in armdfec_init() 499 miiphy_write(dev->name, PHY_ADR_REQ, PHY_ADR_REQ, phy_adr); in armdfec_init() 506 u16 phy_adr; in armdfec_init() local 508 miiphy_read(dev->name, 0xFF, 0xFF, &phy_adr); in armdfec_init() 510 if (miiphy_link(dev->name, phy_adr)) in armdfec_init()
|
D | macb.c | 230 int macb_miiphy_read(struct mii_dev *bus, int phy_adr, int devad, int reg) in macb_miiphy_read() argument 241 if (macb->phy_addr != phy_adr) in macb_miiphy_read() 250 int macb_miiphy_write(struct mii_dev *bus, int phy_adr, int devad, int reg, in macb_miiphy_write() argument 261 if (macb->phy_addr != phy_adr) in macb_miiphy_write()
|