| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | fsl_mdio.c | 16 void tsec_local_mdio_write(struct tsec_mii_mng __iomem *phyregs, int port_addr, in tsec_local_mdio_write() argument 21 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); in tsec_local_mdio_write() 22 out_be32(&phyregs->miimcon, value); in tsec_local_mdio_write() 26 while ((in_be32(&phyregs->miimind) & MIIMIND_BUSY) && timeout--) in tsec_local_mdio_write() 30 int tsec_local_mdio_read(struct tsec_mii_mng __iomem *phyregs, int port_addr, in tsec_local_mdio_read() argument 37 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); in tsec_local_mdio_read() 40 out_be32(&phyregs->miimcom, 0); in tsec_local_mdio_read() 45 out_be32(&phyregs->miimcom, MIIMCOM_READ_CYCLE); in tsec_local_mdio_read() 50 while ((in_be32(&phyregs->miimind) & (MIIMIND_NOTVALID | MIIMIND_BUSY)) in tsec_local_mdio_read() 55 value = in_be32(&phyregs->miimstat); in tsec_local_mdio_read() [all …]
|
| H A D | ag7xxx.c | 140 void __iomem *phyregs; member 158 void __iomem *regs = priv->phyregs; in ag7xxx_switch_read() 181 void __iomem *regs = priv->phyregs; in ag7xxx_switch_write() 937 priv->phyregs = phyiobase; in ag7xxx_eth_probe()
|
| H A D | vsc9953.c | 72 static void vsc9953_mdio_write(struct vsc9953_mii_mng *phyregs, int port_addr, in vsc9953_mdio_write() argument 77 out_le32(&phyregs->miimcmd, (0x1 << 31) | ((port_addr & 0x1f) << 25) | in vsc9953_mdio_write() 82 while ((in_le32(&phyregs->miimstatus) & 0x8) && --timeout) in vsc9953_mdio_write() 89 static int vsc9953_mdio_read(struct vsc9953_mii_mng *phyregs, int port_addr, in vsc9953_mdio_read() argument 95 while ((in_le32(&phyregs->miimstatus) & MIIMIND_OPR_PEND) && --timeout) in vsc9953_mdio_read() 105 out_le32(&phyregs->miimcmd, (0x1 << 31) | ((port_addr & 0x1f) << 25) | in vsc9953_mdio_read() 111 while ((in_le32(&phyregs->miimstatus) & 0x8) && --timeout) in vsc9953_mdio_read() 117 value = in_le32(&phyregs->miimdata); in vsc9953_mdio_read()
|
| /OK3568_Linux_fs/u-boot/drivers/net/fm/ |
| H A D | eth.c | 41 bus.priv = priv->mac->phyregs; in dtsec_configure_serdes() 87 struct tsec_mii_mng *phyregs = priv->mac->phyregs; in dtsec_configure_serdes() 93 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, TBI_TBICON, in dtsec_configure_serdes() 95 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, TBI_ANA, in dtsec_configure_serdes() 97 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, in dtsec_configure_serdes() 631 void *base, *phyregs = NULL; in fm_eth_init_mac() local 650 phyregs = ®->memac[num].fm_memac_mdio; in fm_eth_init_mac() 655 phyregs = ®->mac_1g[num].fm_mdio.miimcfg; in fm_eth_init_mac() 658 phyregs = ®->mac_10g[num].fm_10gec_mdio; in fm_eth_init_mac() 672 init_memac(mac, base, phyregs, MAX_RXBUF_LEN); in fm_eth_init_mac() [all …]
|
| H A D | tgec.c | 95 void *phyregs, int max_rx_len) in init_tgec() argument 98 mac->phyregs = phyregs; in init_tgec()
|
| H A D | memac.c | 135 void *phyregs, int max_rx_len) in init_memac() argument 138 mac->phyregs = phyregs; in init_memac()
|
| H A D | dtsec.c | 157 void *phyregs, int max_rx_len) in init_dtsec() argument 160 mac->phyregs = phyregs; in init_dtsec()
|
| H A D | fm.h | 108 void *phyregs; member
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | fsl_mdio.h | 46 void tsec_local_mdio_write(struct tsec_mii_mng __iomem *phyregs, int port_addr, 48 int tsec_local_mdio_read(struct tsec_mii_mng __iomem *phyregs, int port_addr,
|
| H A D | fsl_tgec.h | 199 void init_tgec(struct fsl_enet_mac *mac, void *base, void *phyregs,
|
| H A D | fsl_dtsec.h | 228 void init_dtsec(struct fsl_enet_mac *mac, void *base, void *phyregs,
|
| H A D | fsl_memac.h | 262 void init_memac(struct fsl_enet_mac *mac, void *base, void *phyregs,
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/tundra/ |
| H A D | tsi108_eth.h | 26 out_be32((data->phyregs + (offset)), val) 29 in_be32((data->phyregs + (offset)))
|
| H A D | tsi108_eth.c | 67 void __iomem *phyregs; /* Base of register bank used for PHY access */ member 1577 pdev->id, einfo->regs, einfo->phyregs, in tsi108_init_one() 1586 data->phyregs = ioremap(einfo->phyregs, 0x400); in tsi108_init_one() 1587 if (NULL == data->phyregs) { in tsi108_init_one() 1648 iounmap(data->phyregs); in tsi108_init_one() 1683 iounmap(priv->phyregs); in tsi108_ether_remove()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ |
| H A D | tsi108.h | 93 u32 phyregs; /* phy registers base address */ member
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | tsi108_dev.c | 126 tsi_eth_data.phyregs = res.start; in tsi108_eth_of_init()
|