Searched refs:phy_adr (Results 1 – 6 of 6) sorted by relevance
/u-boot/board/Marvell/gplugd/ |
A D | gplugd.c | 113 u16 phy_adr; in reset_phy() local 120 if (miiphy_read(name, 0xff, 0xff, &phy_adr)) { in reset_phy() 126 miiphy_write(name, phy_adr, PHY_LED_MAN_REG, 0x00); in reset_phy() 127 miiphy_write(name, phy_adr, PHY_LED_PAR_SEL_REG, PHY_LED_VAL); in reset_phy() 130 miiphy_reset(name, phy_adr); in reset_phy()
|
/u-boot/drivers/net/ |
A D | mvgbe.c | 62 static int __mvgbe_mdio_read(struct mvgbe_device *dmvgbe, int phy_adr, in __mvgbe_mdio_read() argument 71 if (phy_adr == MV_PHY_ADR_REQUEST && in __mvgbe_mdio_read() 78 if (phy_adr > PHYADR_MASK) { in __mvgbe_mdio_read() 80 __func__, phy_adr); in __mvgbe_mdio_read() 94 smi_reg = (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in __mvgbe_mdio_read() 131 static int smi_reg_read(struct mii_dev *bus, int phy_adr, int devad, in smi_reg_read() argument 141 return __mvgbe_mdio_read(dmvgbe, phy_adr, devad, reg_ofs); in smi_reg_read() 151 if (phy_adr == MV_PHY_ADR_REQUEST && in __mvgbe_mdio_write() 158 if (phy_adr > PHYADR_MASK) { in __mvgbe_mdio_write() 173 smi_reg |= (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in __mvgbe_mdio_write() [all …]
|
A D | lpc32xx_eth.c | 228 static int mii_reg_read(struct mii_dev *bus, int phy_adr, int devad, in mii_reg_read() argument 239 if (phy_adr > MII_MAX_PHY) { in mii_reg_read() 241 __func__, __LINE__, phy_adr); in mii_reg_read() 251 writel((phy_adr << MADR_PHY_OFFSET) | (reg_ofs << MADR_REG_OFFSET), in mii_reg_read() 276 debug("%s:(adr %d, off %d) => %04x\n", __func__, phy_adr, in mii_reg_read() 288 static int mii_reg_write(struct mii_dev *bus, int phy_adr, int devad, in mii_reg_write() argument 298 if (phy_adr > MII_MAX_PHY) { in mii_reg_write() 300 __func__, __LINE__, phy_adr); in mii_reg_write() 310 writel((phy_adr << MADR_PHY_OFFSET) | (reg_ofs << MADR_REG_OFFSET), in mii_reg_write()
|
A D | armada100_fec.c | 428 int phy_adr; in armdfec_init() local 495 phy_adr = ethernet_phy_detect(dev); in armdfec_init() 496 if (phy_adr < 0) { in armdfec_init() 500 debug("ARMD100 FEC: PHY detected at addr %d\n", phy_adr); in armdfec_init() 501 miiphy_write(dev->name, PHY_ADR_REQ, PHY_ADR_REQ, phy_adr); in armdfec_init() 508 u16 phy_adr; in armdfec_init() local 510 miiphy_read(dev->name, 0xFF, 0xFF, &phy_adr); in armdfec_init() 512 if (miiphy_link(dev->name, phy_adr)) in armdfec_init()
|
A D | macb.c | 190 static void macb_mdio_write(struct macb_device *macb, u8 phy_adr, u8 reg, in macb_mdio_write() argument 203 | MACB_BF(PHYA, phy_adr) in macb_mdio_write() 218 static u16 macb_mdio_read(struct macb_device *macb, u8 phy_adr, u8 reg) in macb_mdio_read() argument 230 | MACB_BF(PHYA, phy_adr) in macb_mdio_read() 255 int macb_miiphy_read(struct mii_dev *bus, int phy_adr, int devad, int reg) in macb_miiphy_read() argument 267 value = macb_mdio_read(macb, phy_adr, reg); in macb_miiphy_read() 272 int macb_miiphy_write(struct mii_dev *bus, int phy_adr, int devad, int reg, in macb_miiphy_write() argument 284 macb_mdio_write(macb, phy_adr, reg, value); in macb_miiphy_write()
|
/u-boot/drivers/net/octeontx/ |
A D | smi.c | 57 int phy_adr:5; member 129 smix_cmd.s.phy_adr = addr; in octeontx_c45_addr() 168 smix_cmd.s.phy_adr = addr; in octeontx_phy_read() 220 smix_cmd.s.phy_adr = addr; in octeontx_phy_write()
|
Completed in 12 milliseconds