Home
last modified time | relevance | path

Searched refs:mdio_read (Results 1 – 25 of 69) sorted by relevance

123

/drivers/net/
Dmdio.c34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe()
40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe()
41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe()
70 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag()
100 reg = mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok()
110 mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok()
114 mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok()
118 reg = mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok()
153 reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN, addr); in mdio45_get_an()
198 reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD, in mdio45_ethtool_gset_npage()
[all …]
Dmii.c40 advert = mii->mdio_read(mii->dev, mii->phy_id, addr); in mii_get_an()
79 bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); in mii_ethtool_gset()
80 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_gset()
82 ctrl1000 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_gset()
83 stat1000 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); in mii_ethtool_gset()
165 bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); in mii_ethtool_get_link_ksettings()
166 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_get_link_ksettings()
168 ctrl1000 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_get_link_ksettings()
169 stat1000 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); in mii_ethtool_get_link_ksettings()
272 advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); in mii_ethtool_sset()
[all …]
/drivers/net/ethernet/sis/
Dsis900.c221 static int mdio_read(struct net_device *net_dev, int phy_id, int location);
513 sis_priv->mii_info.mdio_read = mdio_read; in sis900_probe()
616 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
637 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe()
638 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe()
690 poll_bit ^= (mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS) & poll_bit); in sis900_mii_probe()
733 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
734 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy()
741 status = mdio_read(net_dev, phy->phy_addr, MII_CONTROL); in sis900_default_phy()
767 status = mdio_read(net_dev, sis_priv->cur_phy, MII_CONTROL); in sis900_default_phy()
[all …]
Dsis190.c390 static int mdio_read(void __iomem *ioaddr, int phy_id, int reg) in mdio_read() function
409 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read()
414 mdio_read(ioaddr, phy_id, reg); in mdio_read_latched()
415 return mdio_read(ioaddr, phy_id, reg); in mdio_read_latched()
930 val = mdio_read(ioaddr, phy_id, MII_BMCR); in sis190_phy_task()
965 val = mdio_read(ioaddr, phy_id, 0x1f); in sis190_phy_task()
968 val = mdio_read(ioaddr, phy_id, MII_LPA); in sis190_phy_task()
969 adv = mdio_read(ioaddr, phy_id, MII_ADVERTISE); in sis190_phy_task()
970 autoexp = mdio_read(ioaddr, phy_id, MII_EXPANSION); in sis190_phy_task()
976 gigadv = mdio_read(ioaddr, phy_id, MII_CTRL1000); in sis190_phy_task()
[all …]
/drivers/net/ethernet/natsemi/
Dnatsemi.c600 static int mdio_read(struct net_device *dev, int reg);
758 tmp = mdio_read(dev, MII_BMCR); in natsemi_init_media()
762 np->advertising= mdio_read(dev, MII_ADVERTISE); in natsemi_init_media()
769 (mdio_read(dev, MII_BMCR) & BMCR_ANENABLE)? in natsemi_init_media()
781 pci_name(np->pci_dev), mdio_read(dev, MII_BMSR), in natsemi_init_media()
1116 static int mdio_read(struct net_device *dev, int reg) in mdio_read() function
1152 tmp = mdio_read(dev, MII_BMCR); in init_phy_fixup()
1156 np->advertising != mdio_read(dev, MII_ADVERTISE)) in init_phy_fixup()
1182 np->mii = (mdio_read(dev, MII_PHYSID1) << 16) in init_phy_fixup()
1183 + mdio_read(dev, MII_PHYSID2); in init_phy_fixup()
[all …]
/drivers/net/ethernet/3com/
D3c574_cs.c221 static int mdio_read(unsigned int ioaddr, int phy_id, int location);
398 mii_status = mdio_read(ioaddr, phy & 0x1f, 1); in tc574_config()
413 i = mdio_read(ioaddr, lp->phys, 16) | 0x40; in tc574_config()
415 lp->advertising = mdio_read(ioaddr, lp->phys, 4); in tc574_config()
542 static int mdio_read(unsigned int ioaddr, int phy_id, int location) in mdio_read() function
652 i = mdio_read(ioaddr, lp->phys, 16) | 0x20; in tc574_reset()
892 media = mdio_read(ioaddr, lp->phys, 1); in media_check()
893 partner = mdio_read(ioaddr, lp->phys, 5); in media_check()
1058 data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, in el3_ioctl()
/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c316 static int mdio_read(struct net_device *dev, int phy_id, int location);
397 np->mii_if.mdio_read = mdio_read; in w840_probe1()
436 int mii_status = mdio_read(dev, phy, MII_BMSR); in w840_probe1()
439 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in w840_probe1()
440 np->mii = (mdio_read(dev, phy, MII_PHYSID1) << 16)+ in w840_probe1()
441 mdio_read(dev, phy, MII_PHYSID2); in w840_probe1()
554 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function
664 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link()
669 mii_reg = mdio_read(dev, np->phys[0], MII_BMSR); in update_link()
697 mii_reg = mdio_read(dev, np->phys[0], MII_BMCR); in update_link()
[all …]
/drivers/net/ethernet/adaptec/
Dstarfire.c567 static int mdio_read(struct net_device *dev, int phy_id, int location);
736 np->mii_if.mdio_read = mdio_read; in starfire_init_one()
793 if ((mdio_read(dev, phy, MII_BMCR) & BMCR_RESET) == 0) in starfire_init_one()
799 mii_status = mdio_read(dev, phy, MII_BMSR); in starfire_init_one()
802 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in starfire_init_one()
832 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function
984 np->mii_if.advertising = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_open()
1069 while (--silly_count && mdio_read(dev, np->phys[0], MII_BMCR) & BMCR_RESET) in check_duplex()
1076 reg0 = mdio_read(dev, np->phys[0], MII_BMCR); in check_duplex()
1623 mdio_read(dev, np->phys[0], MII_BMCR); in netdev_media_change()
[all …]
/drivers/net/ethernet/chelsio/cxgb/
Dcphy.h113 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_read()
150 phy->mdio.mdio_read = mdio_ops->read; in cphy_init()
/drivers/net/ethernet/
Dfealnx.c417 static int mdio_read(struct net_device *dev, int phy_id, int location);
541 np->mii.mdio_read = mdio_read; in fealnx_init_one()
570 int mii_status = mdio_read(dev, phy, 1); in fealnx_init_one()
581 data = mdio_read(dev, np->phys[0], 2); in fealnx_init_one()
634 data = mdio_read(dev, np->phys[0], 9); in fealnx_init_one()
745 static int mdio_read(struct net_device *dev, int phyad, int regad) in mdio_read() function
934 if (mdio_read(dev, np->phys[0], MII_BMSR) & BMSR_LSTATUS) { in getlinkstatus()
961 data = mdio_read(dev, np->phys[0], MIIRegister18); in getlinktype()
973 data = mdio_read(dev, np->phys[0], DiagnosticReg); in getlinktype()
987 data = mdio_read(dev, np->phys[0], SpecificReg); in getlinktype()
[all …]
/drivers/net/ethernet/smsc/
Depic100.c291 static int mdio_read(struct net_device *dev, int phy_id, int location);
372 ep->mii.mdio_read = mdio_read; in epic_init_one()
441 int mii_status = mdio_read(dev, phy, MII_BMSR); in epic_init_one()
447 phy, mdio_read(dev, phy, 0), mii_status); in epic_init_one()
453 ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); in epic_init_one()
457 ep->mii.advertising, mdio_read(dev, phy, 5)); in epic_init_one()
605 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function
705 mdio_read(dev, ep->phys[0], MII_BMSR)); in epic_open()
708 int mii_lpa = mdio_read(dev, ep->phys[0], MII_LPA); in epic_open()
832 int mii_lpa = ep->mii_phy_cnt ? mdio_read(dev, ep->phys[0], MII_LPA) : 0; in check_media()
Dsmc91c92_cs.c285 static int mdio_read(struct net_device *dev, int phy_id, int loc);
325 smc->mii_if.mdio_read = mdio_read; in smc91c92_probe()
908 j = mdio_read(dev, i, 1); in smc91c92_config()
985 static int mdio_read(struct net_device *dev, int phy_id, int loc) in mdio_read() function
1769 link = mdio_read(dev, smc->mii_if.phy_id, 1); in media_check()
1778 u_short p = mdio_read(dev, smc->mii_if.phy_id, 5); in media_check()
/drivers/net/ethernet/8390/
Daxnet_cs.c91 static int mdio_read(unsigned int addr, int phy_id, int loc);
326 j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1); in axnet_config()
327 j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2); in axnet_config()
337 j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1); in axnet_config()
338 j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2); in axnet_config()
426 static int mdio_read(unsigned int addr, int phy_id, int loc) in mdio_read() function
575 link = mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog()
584 u_short p = mdio_read(mii_addr, info->phy_id, 5); in ei_watchdog()
615 data->val_out = mdio_read(mii_addr, data->phy_id, data->reg_num & 0x1f); in axnet_ioctl()
Dpcnet_cs.c706 static int mdio_read(unsigned int addr, int phy_id, int loc) in mdio_read() function
882 tmp = mdio_read(mii_addr, i, 1); in mii_phy_probe()
885 tmp = mdio_read(mii_addr, i, MII_PHYID_REG1); in mii_phy_probe()
887 phyid |= mdio_read(mii_addr, i, MII_PHYID_REG2); in mii_phy_probe()
1038 mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog()
1039 link = mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog()
1052 u_short p = mdio_read(mii_addr, info->phy_id, 5); in ei_watchdog()
1076 link = mdio_read(mii_addr, info->eth_phy, 1) & 0x0004; in ei_watchdog()
1113 data->val_out = mdio_read(mii_addr, data->phy_id, data->reg_num & 0x1f); in ei_ioctl()
/drivers/net/ethernet/freescale/fs_enet/
Dmii-bitbang.c71 static inline int mdio_read(struct mdiobb_ctrl *ctrl) in mdio_read() function
108 .get_mdio_data = mdio_read,
/drivers/net/ethernet/intel/
De100.c902 static int mdio_read(struct net_device *netdev, int addr, int reg) in mdio_read() function
964 u16 advert = mdio_read(nic->netdev, nic->mii.phy_id, in mdio_ctrl_phy_82552_v()
1065 nic->mii.mdio_read = mdio_read; in e100_get_defaults()
1443 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init()
1444 stat = mdio_read(netdev, nic->mii.phy_id, MII_BMSR); in e100_phy_init()
1445 stat = mdio_read(netdev, nic->mii.phy_id, MII_BMSR); in e100_phy_init()
1467 id_lo = mdio_read(netdev, nic->mii.phy_id, MII_PHYSID1); in e100_phy_init()
1468 id_hi = mdio_read(netdev, nic->mii.phy_id, MII_PHYSID2); in e100_phy_init()
1478 bmcr = mdio_read(netdev, addr, MII_BMCR); in e100_phy_init()
1496 cong = mdio_read(netdev, nic->mii.phy_id, MII_NSC_CONG); in e100_phy_init()
[all …]
/drivers/net/ethernet/dlink/
Dsundance.c422 static int mdio_read(struct net_device *dev, int phy_id, int location);
560 np->mii_if.mdio_read = mdio_read; in sundance_probe1()
600 int mii_status = mdio_read(dev, phyx, MII_BMSR); in sundance_probe1()
603 np->mii_if.advertising = mdio_read(dev, phyx, MII_ADVERTISE); in sundance_probe1()
759 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function
827 bmsr = mdio_read(dev, phy_id, MII_BMSR); in mdio_wait_link()
917 int mii_lpa = mdio_read(dev, np->phys[0], MII_LPA); in check_duplex()
1456 mii_advertise = mdio_read(dev, np->phys[0], in netdev_error()
1458 mii_lpa = mdio_read(dev, np->phys[0], MII_LPA); in netdev_error()
1478 mii_ctl = mdio_read(dev, np->phys[0], MII_BMCR); in netdev_error()
/drivers/net/ethernet/sgi/
Dmeth.c120 static unsigned long mdio_read(struct meth_private *priv, unsigned long phyreg) in mdio_read() function
142 p2=mdio_read(priv,2); in mdio_probe()
143 p3=mdio_read(priv,3); in mdio_probe()
177 unsigned long mii_advertising = mdio_read(priv, 4); in meth_check_link()
178 unsigned long mii_partner = mdio_read(priv, 5); in meth_check_link()
/drivers/net/ethernet/ibm/emac/
Dphy.h71 int (*mdio_read) (struct net_device * dev, int addr, int reg); member
/drivers/net/ethernet/packetengines/
Dyellowfin.c342 static int mdio_read(void __iomem *ioaddr, int phy_id, int location);
495 int mii_status = mdio_read(ioaddr, phy, 1); in yellowfin_init_one()
498 np->advertising = mdio_read(ioaddr, phy, 4); in yellowfin_init_one()
543 static int mdio_read(void __iomem *ioaddr, int phy_id, int location) in mdio_read() function
664 int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); in yellowfin_timer()
665 int lpa = mdio_read(ioaddr, yp->phys[0], MII_LPA); in yellowfin_timer()
1362 data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, data->reg_num & 0x1f); in netdev_ioctl()
Dhamachi.c546 static int mdio_read(struct net_device *dev, int phy_id, int location);
645 hmp->mii_if.mdio_read = mdio_read; in hamachi_init_one()
756 int mii_status = mdio_read(dev, phy, MII_BMSR); in hamachi_init_one()
760 hmp->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in hamachi_init_one()
816 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function
/drivers/net/ethernet/sun/
Dniu.c313 static int mdio_read(struct niu *np, int port, int dev, int reg) in mdio_read() function
643 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, ESR_RXTX_CTRL_L(chan)); in esr_read_rxtx_ctrl()
646 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_rxtx_ctrl()
659 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_glue0()
663 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_glue0()
677 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_reset()
681 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_reset()
1261 err = mdio_read(np, np->phy_addr, in bcm8704_reset()
1273 err = mdio_read(np, np->phy_addr, in bcm8704_reset()
1293 int err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR, reg); in bcm8704_user_dev3_readback()
[all …]
/drivers/net/ethernet/via/
Dvia-rhine.c498 static int mdio_read(struct net_device *dev, int phy_id, int location);
956 rp->mii_if.mdio_read = mdio_read; in rhine_init_one_common()
997 int mii_status = mdio_read(dev, phy_id, 1); in rhine_init_one_common()
998 mii_cmd = mdio_read(dev, phy_id, MII_BMCR) & ~BMCR_ISOLATE; in rhine_init_one_common()
1001 rp->mii_if.advertising = mdio_read(dev, phy_id, 4); in rhine_init_one_common()
1006 mdio_read(dev, phy_id, 5)); in rhine_init_one_common()
1619 static int mdio_read(struct net_device *dev, int phy_id, int regnum) in mdio_read() function
1701 mdio_read(dev, rp->mii_if.phy_id, MII_BMSR)); in rhine_open()
1757 mdio_read(dev, rp->mii_if.phy_id, MII_BMSR)); in rhine_tx_timeout()
/drivers/net/ethernet/sfc/falcon/
Dmdio_10g.h24 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in ef4_mdio_read()
/drivers/net/ethernet/sfc/
Dmcdi_port.c102 efx->mdio.mdio_read = efx_mcdi_mdio_read; in efx_mcdi_port_probe()

123