Home
last modified time | relevance | path

Searched refs:phyregs (Results 1 – 12 of 12) sorted by relevance

/u-boot/drivers/net/
A Dfsl_mdio.c27 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); in tsec_local_mdio_write()
28 out_be32(&phyregs->miimcon, value); in tsec_local_mdio_write()
46 out_be32(&phyregs->miimcom, 0); in tsec_local_mdio_read()
51 out_be32(&phyregs->miimcom, MIIMCOM_READ_CYCLE); in tsec_local_mdio_read()
61 value = in_be32(&phyregs->miimstat); in tsec_local_mdio_read()
96 struct tsec_mii_mng __iomem *phyregs; in tsec_phy_read() local
98 phyregs = (struct tsec_mii_mng __iomem *)bus->priv; in tsec_phy_read()
106 phyregs = priv->regs; in tsec_phy_read()
115 struct tsec_mii_mng __iomem *phyregs; in tsec_phy_write() local
117 phyregs = (struct tsec_mii_mng __iomem *)bus->priv; in tsec_phy_write()
[all …]
A Dvsc9953.c75 static void vsc9953_mdio_write(struct vsc9953_mii_mng *phyregs, int port_addr, in vsc9953_mdio_write() argument
80 out_le32(&phyregs->miimcmd, (0x1 << 31) | ((port_addr & 0x1f) << 25) | in vsc9953_mdio_write()
85 while ((in_le32(&phyregs->miimstatus) & 0x8) && --timeout) in vsc9953_mdio_write()
92 static int vsc9953_mdio_read(struct vsc9953_mii_mng *phyregs, int port_addr, in vsc9953_mdio_read() argument
98 while ((in_le32(&phyregs->miimstatus) & MIIMIND_OPR_PEND) && --timeout) in vsc9953_mdio_read()
108 out_le32(&phyregs->miimcmd, (0x1 << 31) | ((port_addr & 0x1f) << 25) | in vsc9953_mdio_read()
114 while ((in_le32(&phyregs->miimstatus) & 0x8) && --timeout) in vsc9953_mdio_read()
120 value = in_le32(&phyregs->miimdata); in vsc9953_mdio_read()
A Dag7xxx.c171 void __iomem *phyregs; member
189 void __iomem *regs = priv->phyregs; in ag7xxx_switch_read()
212 void __iomem *regs = priv->phyregs; in ag7xxx_switch_write()
1218 priv->phyregs = phyiobase; in ag7xxx_eth_probe()
/u-boot/drivers/net/fm/
A Dmemac.c140 void *phyregs, int max_rx_len) in init_memac() argument
142 debug("%s: @ %p, mdio @ %p\n", __func__, base, phyregs); in init_memac()
144 mac->phyregs = phyregs; in init_memac()
A Dtgec.c95 void *phyregs, int max_rx_len) in init_tgec() argument
98 mac->phyregs = phyregs; in init_tgec()
A Ddtsec.c157 void *phyregs, int max_rx_len) in init_dtsec() argument
160 mac->phyregs = phyregs; in init_dtsec()
A Deth.c57 bus.priv = priv->mac->phyregs; in dtsec_configure_serdes()
110 struct tsec_mii_mng *phyregs = priv->mac->phyregs; in dtsec_configure_serdes()
118 tsec_local_mdio_write(phyregs, in_be32(&regs->tbipa), 0, TBI_ANA, in dtsec_configure_serdes()
120 tsec_local_mdio_write(phyregs, in_be32(&regs->tbipa), 0, in dtsec_configure_serdes()
734 void *base, *phyregs = NULL; in fm_eth_init_mac() local
753 phyregs = &reg->memac[num].fm_memac_mdio; in fm_eth_init_mac()
758 phyregs = &reg->mac_1g[num].fm_mdio.miimcfg; in fm_eth_init_mac()
761 phyregs = &reg->mac_10g[num].fm_10gec_mdio; in fm_eth_init_mac()
775 init_memac(mac, base, phyregs, MAX_RXBUF_LEN); in fm_eth_init_mac()
778 init_dtsec(mac, base, phyregs, MAX_RXBUF_LEN); in fm_eth_init_mac()
[all …]
A Dfm.h124 void *phyregs; member
/u-boot/include/
A Dfsl_mdio.h45 void tsec_local_mdio_write(struct tsec_mii_mng __iomem *phyregs, int port_addr,
47 int tsec_local_mdio_read(struct tsec_mii_mng __iomem *phyregs, int port_addr,
A Dfsl_tgec.h198 void init_tgec(struct fsl_enet_mac *mac, void *base, void *phyregs,
A Dfsl_dtsec.h227 void init_dtsec(struct fsl_enet_mac *mac, void *base, void *phyregs,
A Dfsl_memac.h261 void init_memac(struct fsl_enet_mac *mac, void *base, void *phyregs,

Completed in 28 milliseconds