Home
last modified time | relevance | path

Searched refs:mdio_addr (Results 1 – 18 of 18) sorted by relevance

/drivers/net/ethernet/dec/tulip/
Dmedia.c23 #define mdio_delay() ioread32(mdio_addr)
54 void __iomem *mdio_addr = ioaddr + CSR9; in tulip_mdio_read() local
82 iowrite32(MDIO_ENB | MDIO_DATA_WRITE1, mdio_addr); in tulip_mdio_read()
84 iowrite32(MDIO_ENB | MDIO_DATA_WRITE1 | MDIO_SHIFT_CLK, mdio_addr); in tulip_mdio_read()
91 iowrite32(MDIO_ENB | dataval, mdio_addr); in tulip_mdio_read()
93 iowrite32(MDIO_ENB | dataval | MDIO_SHIFT_CLK, mdio_addr); in tulip_mdio_read()
98 iowrite32(MDIO_ENB_IN, mdio_addr); in tulip_mdio_read()
100 retval = (retval << 1) | ((ioread32(mdio_addr) & MDIO_DATA_READ) ? 1 : 0); in tulip_mdio_read()
101 iowrite32(MDIO_ENB_IN | MDIO_SHIFT_CLK, mdio_addr); in tulip_mdio_read()
115 void __iomem *mdio_addr = ioaddr + CSR9; in tulip_mdio_write() local
[all …]
Dwinbond-840.c529 #define mdio_delay(mdio_addr) ioread32(mdio_addr) argument
541 static void mdio_sync(void __iomem *mdio_addr) in mdio_sync() argument
547 iowrite32(MDIO_WRITE1, mdio_addr); in mdio_sync()
548 mdio_delay(mdio_addr); in mdio_sync()
549 iowrite32(MDIO_WRITE1 | MDIO_ShiftClk, mdio_addr); in mdio_sync()
550 mdio_delay(mdio_addr); in mdio_sync()
557 void __iomem *mdio_addr = np->base_addr + MIICtrl; in mdio_read() local
562 mdio_sync(mdio_addr); in mdio_read()
568 iowrite32(dataval, mdio_addr); in mdio_read()
569 mdio_delay(mdio_addr); in mdio_read()
[all …]
/drivers/net/ethernet/3com/
D3c574_cs.c533 unsigned int mdio_addr = ioaddr + Wn4_PhysicalMgmt; in mdio_sync() local
537 outw(MDIO_DATA_WRITE1, mdio_addr); in mdio_sync()
538 outw(MDIO_DATA_WRITE1 | MDIO_SHIFT_CLK, mdio_addr); in mdio_sync()
547 unsigned int mdio_addr = ioaddr + Wn4_PhysicalMgmt; in mdio_read() local
555 outw(dataval, mdio_addr); in mdio_read()
556 outw(dataval | MDIO_SHIFT_CLK, mdio_addr); in mdio_read()
560 outw(MDIO_ENB_IN, mdio_addr); in mdio_read()
561 retval = (retval << 1) | ((inw(mdio_addr) & MDIO_DATA_READ) ? 1 : 0); in mdio_read()
562 outw(MDIO_ENB_IN | MDIO_SHIFT_CLK, mdio_addr); in mdio_read()
570 unsigned int mdio_addr = ioaddr + Wn4_PhysicalMgmt; in mdio_write() local
[all …]
/drivers/net/ethernet/dlink/
Dsundance.c735 #define mdio_delay() ioread8(mdio_addr)
746 static void mdio_sync(void __iomem *mdio_addr) in mdio_sync() argument
752 iowrite8(MDIO_WRITE1, mdio_addr); in mdio_sync()
754 iowrite8(MDIO_WRITE1 | MDIO_ShiftClk, mdio_addr); in mdio_sync()
762 void __iomem *mdio_addr = np->base + MIICtrl; in mdio_read() local
767 mdio_sync(mdio_addr); in mdio_read()
773 iowrite8(dataval, mdio_addr); in mdio_read()
775 iowrite8(dataval | MDIO_ShiftClk, mdio_addr); in mdio_read()
780 iowrite8(MDIO_EnbIn, mdio_addr); in mdio_read()
782 retval = (retval << 1) | ((ioread8(mdio_addr) & MDIO_Data) ? 1 : 0); in mdio_read()
[all …]
/drivers/net/ethernet/freescale/
Dxgmac_mdio.c35 __be32 mdio_addr; /* MDIO address */ member
165 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_write()
219 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_read()
/drivers/net/dsa/
Ddsa_loop_bdinfo.c25 .mdio_addr = 31,
/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c340 unsigned int mdio_addr; member
1012 ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, in xgbe_phy_find_phy_device()
1017 phy_data->mdio_addr, phy_data->phydev_mode); in xgbe_phy_find_phy_device()
1022 phydev = get_phy_device(phy_data->mii, phy_data->mdio_addr, in xgbe_phy_find_phy_device()
3171 phy_data->mdio_addr = XP_GET_BITS(pdata->pp0, XP_PROP_0, MDIO_ADDR); in xgbe_phy_init()
3177 dev_dbg(pdata->dev, "mdio addr=%u\n", phy_data->mdio_addr); in xgbe_phy_init()
3377 ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, in xgbe_phy_init()
3382 phy_data->mdio_addr, phy_data->phydev_mode); in xgbe_phy_init()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c503 int mdio_addr; in t4vf_port_init() local
568 mdio_addr = ((lstatus & FW_PORT_CMD_MDIOCAP_F) in t4vf_port_init()
578 mdio_addr = ((lstatus32 & FW_PORT_CMD_MDIOCAP32_F) in t4vf_port_init()
586 pi->mdio_addr = mdio_addr; in t4vf_port_init()
Dadapter.h100 s8 mdio_addr; member
Dcxgb4vf_main.c1455 if (pi->mdio_addr >= 0) { in cxgb4vf_get_link_ksettings()
1456 base->phy_address = pi->mdio_addr; in cxgb4vf_get_link_ksettings()
/drivers/net/ethernet/adaptec/
Dstarfire.c835 void __iomem *mdio_addr = np->base + MIICtrl + (phy_id<<7) + (location<<2); in mdio_read() local
839 result = readl(mdio_addr); in mdio_read()
852 void __iomem *mdio_addr = np->base + MIICtrl + (phy_id<<7) + (location<<2); in mdio_write() local
853 writel(value, mdio_addr); in mdio_write()
/drivers/net/ethernet/cavium/liquidio/
Dliquidio_common.h931 u64 mdio_addr; member
Dlio_ethtool.c780 mdio_cmd->mdio_addr = loc; in octnet_mdio45_access()
/drivers/net/phy/
Dmdio_bus.c493 mdiodev = mdio_device_create(bus, bi->mdio_addr); in mdiobus_create_device()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c681 if (pi->mdio_addr >= 0) { in get_link_ksettings()
682 base->phy_address = pi->mdio_addr; in get_link_ksettings()
Dt4_hw.c9608 int mdio_addr; in t4_init_portinfo() local
9649 mdio_addr = ((lstatus & FW_PORT_CMD_MDIOCAP_F) in t4_init_portinfo()
9658 mdio_addr = ((lstatus32 & FW_PORT_CMD_MDIOCAP32_F) in t4_init_portinfo()
9689 pi->mdio_addr = mdio_addr; in t4_init_portinfo()
Dcxgb4.h658 s8 mdio_addr; member
Dcxgb4_main.c3065 if (pi->mdio_addr < 0) in cxgb_ioctl()
3067 data->phy_id = pi->mdio_addr; in cxgb_ioctl()