/external/u-boot/drivers/net/ |
D | fsl_mdio.c | 15 void tsec_local_mdio_write(struct tsec_mii_mng __iomem *phyregs, int port_addr, in tsec_local_mdio_write() argument 20 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); in tsec_local_mdio_write() 21 out_be32(&phyregs->miimcon, value); in tsec_local_mdio_write() 25 while ((in_be32(&phyregs->miimind) & MIIMIND_BUSY) && timeout--) in tsec_local_mdio_write() 29 int tsec_local_mdio_read(struct tsec_mii_mng __iomem *phyregs, int port_addr, in tsec_local_mdio_read() argument 36 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); in tsec_local_mdio_read() 39 out_be32(&phyregs->miimcom, 0); in tsec_local_mdio_read() 44 out_be32(&phyregs->miimcom, MIIMCOM_READ_CYCLE); in tsec_local_mdio_read() 49 while ((in_be32(&phyregs->miimind) & (MIIMIND_NOTVALID | MIIMIND_BUSY)) in tsec_local_mdio_read() 54 value = in_be32(&phyregs->miimstat); in tsec_local_mdio_read() [all …]
|
D | ag7xxx.c | 139 void __iomem *phyregs; member 157 void __iomem *regs = priv->phyregs; in ag7xxx_switch_read() 180 void __iomem *regs = priv->phyregs; in ag7xxx_switch_write() 936 priv->phyregs = phyiobase; in ag7xxx_eth_probe()
|
D | vsc9953.c | 71 static void vsc9953_mdio_write(struct vsc9953_mii_mng *phyregs, int port_addr, in vsc9953_mdio_write() argument 76 out_le32(&phyregs->miimcmd, (0x1 << 31) | ((port_addr & 0x1f) << 25) | in vsc9953_mdio_write() 81 while ((in_le32(&phyregs->miimstatus) & 0x8) && --timeout) in vsc9953_mdio_write() 88 static int vsc9953_mdio_read(struct vsc9953_mii_mng *phyregs, int port_addr, in vsc9953_mdio_read() argument 94 while ((in_le32(&phyregs->miimstatus) & MIIMIND_OPR_PEND) && --timeout) in vsc9953_mdio_read() 104 out_le32(&phyregs->miimcmd, (0x1 << 31) | ((port_addr & 0x1f) << 25) | in vsc9953_mdio_read() 110 while ((in_le32(&phyregs->miimstatus) & 0x8) && --timeout) in vsc9953_mdio_read() 116 value = in_le32(&phyregs->miimdata); in vsc9953_mdio_read()
|
/external/u-boot/drivers/net/fm/ |
D | eth.c | 40 bus.priv = priv->mac->phyregs; in dtsec_configure_serdes() 86 struct tsec_mii_mng *phyregs = priv->mac->phyregs; in dtsec_configure_serdes() 92 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, TBI_TBICON, in dtsec_configure_serdes() 94 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, TBI_ANA, in dtsec_configure_serdes() 96 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, in dtsec_configure_serdes() 630 void *base, *phyregs = NULL; in fm_eth_init_mac() local 649 phyregs = ®->memac[num].fm_memac_mdio; in fm_eth_init_mac() 654 phyregs = ®->mac_1g[num].fm_mdio.miimcfg; in fm_eth_init_mac() 657 phyregs = ®->mac_10g[num].fm_10gec_mdio; in fm_eth_init_mac() 671 init_memac(mac, base, phyregs, MAX_RXBUF_LEN); in fm_eth_init_mac() [all …]
|
D | tgec.c | 94 void *phyregs, int max_rx_len) in init_tgec() argument 97 mac->phyregs = phyregs; in init_tgec()
|
D | memac.c | 134 void *phyregs, int max_rx_len) in init_memac() argument 137 mac->phyregs = phyregs; in init_memac()
|
D | dtsec.c | 156 void *phyregs, int max_rx_len) in init_dtsec() argument 159 mac->phyregs = phyregs; in init_dtsec()
|
D | fm.h | 107 void *phyregs; member
|
/external/u-boot/include/ |
D | fsl_mdio.h | 45 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,
|
D | fsl_tgec.h | 198 void init_tgec(struct fsl_enet_mac *mac, void *base, void *phyregs,
|
D | fsl_dtsec.h | 227 void init_dtsec(struct fsl_enet_mac *mac, void *base, void *phyregs,
|
D | fsl_memac.h | 261 void init_memac(struct fsl_enet_mac *mac, void *base, void *phyregs,
|