/drivers/net/ethernet/dec/tulip/ |
D | media.c | 23 #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 …]
|
D | winbond-840.c | 529 #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/ |
D | 3c574_cs.c | 533 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/ |
D | sundance.c | 735 #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/ |
D | xgmac_mdio.c | 35 __be32 mdio_addr; /* MDIO address */ member 165 xgmac_write32(regnum & 0xffff, ®s->mdio_addr, endian); in xgmac_mdio_write() 219 xgmac_write32(regnum & 0xffff, ®s->mdio_addr, endian); in xgmac_mdio_read()
|
/drivers/net/dsa/ |
D | dsa_loop_bdinfo.c | 25 .mdio_addr = 31,
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 340 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/ |
D | t4vf_hw.c | 503 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()
|
D | adapter.h | 100 s8 mdio_addr; member
|
D | cxgb4vf_main.c | 1455 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/ |
D | starfire.c | 835 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/ |
D | liquidio_common.h | 931 u64 mdio_addr; member
|
D | lio_ethtool.c | 780 mdio_cmd->mdio_addr = loc; in octnet_mdio45_access()
|
/drivers/net/phy/ |
D | mdio_bus.c | 493 mdiodev = mdio_device_create(bus, bi->mdio_addr); in mdiobus_create_device()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 681 if (pi->mdio_addr >= 0) { in get_link_ksettings() 682 base->phy_address = pi->mdio_addr; in get_link_ksettings()
|
D | t4_hw.c | 9608 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()
|
D | cxgb4.h | 658 s8 mdio_addr; member
|
D | cxgb4_main.c | 3065 if (pi->mdio_addr < 0) in cxgb_ioctl() 3067 data->phy_id = pi->mdio_addr; in cxgb_ioctl()
|