Lines Matching defs:phyregs
22 void tsec_local_mdio_write(struct tsec_mii_mng __iomem *phyregs, int port_addr,
27 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f));
28 out_be32(&phyregs->miimcon, value);
32 while ((in_be32(&phyregs->miimind) & MIIMIND_BUSY) && timeout--)
36 int tsec_local_mdio_read(struct tsec_mii_mng __iomem *phyregs, int port_addr,
43 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f));
46 out_be32(&phyregs->miimcom, 0);
51 out_be32(&phyregs->miimcom, MIIMCOM_READ_CYCLE);
56 while ((in_be32(&phyregs->miimind) & (MIIMIND_NOTVALID | MIIMIND_BUSY))
61 value = in_be32(&phyregs->miimstat);
96 struct tsec_mii_mng __iomem *phyregs;
98 phyregs = (struct tsec_mii_mng __iomem *)bus->priv;
106 phyregs = priv->regs;
109 return tsec_local_mdio_read(phyregs, addr, dev_addr, regnum);
115 struct tsec_mii_mng __iomem *phyregs;
117 phyregs = (struct tsec_mii_mng __iomem *)bus->priv;
125 phyregs = priv->regs;
128 tsec_local_mdio_write(phyregs, addr, dev_addr, regnum, value);