Home
last modified time | relevance | path

Searched refs:mdio_regs (Results 1 – 5 of 5) sorted by relevance

/openbmc/u-boot/drivers/net/
H A Daspeed_mdio.c61 struct aspeed_mdio_regs __iomem *mdio_regs = (struct aspeed_mdio_regs __iomem *)bus->priv; in aspeed_mdio_read() local
70 writel(phycr, &mdio_regs->phycr); in aspeed_mdio_read()
74 phycr = readl(&mdio_regs->phycr); in aspeed_mdio_read()
79 data = readl(&mdio_regs->phydata); in aspeed_mdio_read()
86 phycr = readl(&mdio_regs->phycr); in aspeed_mdio_read()
95 writel(phycr, &mdio_regs->phycr); in aspeed_mdio_read()
98 phycr = readl(&mdio_regs->phycr); in aspeed_mdio_read()
103 data = readl(&mdio_regs->phydata); in aspeed_mdio_read()
118 struct aspeed_mdio_regs __iomem *mdio_regs = (struct aspeed_mdio_regs __iomem *)bus->priv; in aspeed_mdio_write() local
125 phycr = readl(&mdio_regs->phycr); in aspeed_mdio_write()
[all …]
/openbmc/linux/drivers/net/ethernet/xscale/
H A Dixp4xx_eth.c269 static struct eth_regs __iomem *mdio_regs; /* mdio command and status only */ variable
466 if (__raw_readl(&mdio_regs->mdio_command[3]) & 0x80) { in ixp4xx_mdio_cmd()
472 __raw_writel(cmd & 0xFF, &mdio_regs->mdio_command[0]); in ixp4xx_mdio_cmd()
473 __raw_writel(cmd >> 8, &mdio_regs->mdio_command[1]); in ixp4xx_mdio_cmd()
476 &mdio_regs->mdio_command[2]); in ixp4xx_mdio_cmd()
478 &mdio_regs->mdio_command[3]); in ixp4xx_mdio_cmd()
481 (__raw_readl(&mdio_regs->mdio_command[3]) & 0x80)) { in ixp4xx_mdio_cmd()
500 if (__raw_readl(&mdio_regs->mdio_status[3]) & 0x80) { in ixp4xx_mdio_cmd()
508 return (__raw_readl(&mdio_regs->mdio_status[0]) & 0xFF) | in ixp4xx_mdio_cmd()
509 ((__raw_readl(&mdio_regs->mdio_status[1]) & 0xFF) << 8); in ixp4xx_mdio_cmd()
[all …]
/openbmc/u-boot/arch/arm/include/asm/ti-common/
H A Dkeystone_net.h213 struct mdio_regs { struct
/openbmc/u-boot/drivers/net/ti/
H A Ddavinci_emac.c85 static volatile mdio_regs *adap_mdio = (mdio_regs *)EMAC_MDIO_BASE_ADDR;
H A Ddavinci_emac.h291 } mdio_regs; typedef