/linux-6.1.9/drivers/net/ |
D | mdio.c | 34 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 …]
|
D | mii.c | 40 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 …]
|
/linux-6.1.9/drivers/net/ethernet/sis/ |
D | sis900.c | 221 static int mdio_read(struct net_device *net_dev, int phy_id, int location); 520 sis_priv->mii_info.mdio_read = mdio_read; in sis900_probe() 623 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe() 644 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe() 645 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe() 697 poll_bit ^= (mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS) & poll_bit); in sis900_mii_probe() 740 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy() 741 status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); in sis900_default_phy() 748 status = mdio_read(net_dev, phy->phy_addr, MII_CONTROL); in sis900_default_phy() 774 status = mdio_read(net_dev, sis_priv->cur_phy, MII_CONTROL); in sis900_default_phy() [all …]
|
D | sis190.c | 390 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 …]
|
/linux-6.1.9/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 221 static int mdio_read(unsigned int ioaddr, int phy_id, int location); 397 mii_status = mdio_read(ioaddr, phy & 0x1f, 1); in tc574_config() 412 i = mdio_read(ioaddr, lp->phys, 16) | 0x40; in tc574_config() 414 lp->advertising = mdio_read(ioaddr, lp->phys, 4); in tc574_config() 541 static int mdio_read(unsigned int ioaddr, int phy_id, int location) in mdio_read() function 651 i = mdio_read(ioaddr, lp->phys, 16) | 0x20; in tc574_reset() 891 media = mdio_read(ioaddr, lp->phys, 1); in media_check() 892 partner = mdio_read(ioaddr, lp->phys, 5); in media_check() 1057 data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, in el3_ioctl()
|
/linux-6.1.9/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 600 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 …]
|
/linux-6.1.9/drivers/net/ethernet/dec/tulip/ |
D | winbond-840.c | 316 static int mdio_read(struct net_device *dev, int phy_id, int location); 399 np->mii_if.mdio_read = mdio_read; in w840_probe1() 438 int mii_status = mdio_read(dev, phy, MII_BMSR); in w840_probe1() 441 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in w840_probe1() 442 np->mii = (mdio_read(dev, phy, MII_PHYSID1) << 16)+ in w840_probe1() 443 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 …]
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/ |
D | cphy.h | 104 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_read() 141 phy->mdio.mdio_read = mdio_ops->read; in cphy_init()
|
/linux-6.1.9/drivers/net/ethernet/adaptec/ |
D | starfire.c | 567 static int mdio_read(struct net_device *dev, int phy_id, int location); 738 np->mii_if.mdio_read = mdio_read; in starfire_init_one() 795 if ((mdio_read(dev, phy, MII_BMCR) & BMCR_RESET) == 0) in starfire_init_one() 801 mii_status = mdio_read(dev, phy, MII_BMSR); in starfire_init_one() 804 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in starfire_init_one() 834 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function 986 np->mii_if.advertising = mdio_read(dev, np->phys[0], MII_ADVERTISE); in netdev_open() 1071 while (--silly_count && mdio_read(dev, np->phys[0], MII_BMCR) & BMCR_RESET) in check_duplex() 1078 reg0 = mdio_read(dev, np->phys[0], MII_BMCR); in check_duplex() 1625 mdio_read(dev, np->phys[0], MII_BMCR); in netdev_media_change() [all …]
|
/linux-6.1.9/drivers/net/ethernet/smsc/ |
D | epic100.c | 291 static int mdio_read(struct net_device *dev, int phy_id, int location); 373 ep->mii.mdio_read = mdio_read; in epic_init_one() 443 int mii_status = mdio_read(dev, phy, MII_BMSR); in epic_init_one() 449 phy, mdio_read(dev, phy, 0), mii_status); in epic_init_one() 455 ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE); in epic_init_one() 459 ep->mii.advertising, mdio_read(dev, phy, 5)); in epic_init_one() 607 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function 707 mdio_read(dev, ep->phys[0], MII_BMSR)); in epic_open() 710 int mii_lpa = mdio_read(dev, ep->phys[0], MII_LPA); in epic_open() 834 int mii_lpa = ep->mii_phy_cnt ? mdio_read(dev, ep->phys[0], MII_LPA) : 0; in check_media()
|
/linux-6.1.9/drivers/net/ethernet/ |
D | fealnx.c | 417 static int mdio_read(struct net_device *dev, int phy_id, int location); 543 np->mii.mdio_read = mdio_read; in fealnx_init_one() 572 int mii_status = mdio_read(dev, phy, 1); in fealnx_init_one() 583 data = mdio_read(dev, np->phys[0], 2); in fealnx_init_one() 636 data = mdio_read(dev, np->phys[0], 9); in fealnx_init_one() 747 static int mdio_read(struct net_device *dev, int phyad, int regad) in mdio_read() function 936 if (mdio_read(dev, np->phys[0], MII_BMSR) & BMSR_LSTATUS) { in getlinkstatus() 963 data = mdio_read(dev, np->phys[0], MIIRegister18); in getlinktype() 975 data = mdio_read(dev, np->phys[0], DiagnosticReg); in getlinktype() 989 data = mdio_read(dev, np->phys[0], SpecificReg); in getlinktype() [all …]
|
/linux-6.1.9/drivers/net/ethernet/freescale/fs_enet/ |
D | mii-bitbang.c | 71 static inline int mdio_read(struct mdiobb_ctrl *ctrl) in mdio_read() function 108 .get_mdio_data = mdio_read,
|
/linux-6.1.9/drivers/net/ethernet/8390/ |
D | axnet_cs.c | 91 static int mdio_read(unsigned int addr, int phy_id, int loc); 329 j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1); in axnet_config() 330 j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2); in axnet_config() 340 j = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 1); in axnet_config() 341 j2 = mdio_read(dev->base_addr + AXNET_MII_EEP, i, 2); in axnet_config() 429 static int mdio_read(unsigned int addr, int phy_id, int loc) in mdio_read() function 578 link = mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog() 587 u_short p = mdio_read(mii_addr, info->phy_id, 5); in ei_watchdog() 618 data->val_out = mdio_read(mii_addr, data->phy_id, data->reg_num & 0x1f); in axnet_ioctl()
|
D | pcnet_cs.c | 716 static int mdio_read(unsigned int addr, int phy_id, int loc) in mdio_read() function 892 tmp = mdio_read(mii_addr, i, 1); in mii_phy_probe() 895 tmp = mdio_read(mii_addr, i, MII_PHYID_REG1); in mii_phy_probe() 897 phyid |= mdio_read(mii_addr, i, MII_PHYID_REG2); in mii_phy_probe() 1048 mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog() 1049 link = mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog() 1062 u_short p = mdio_read(mii_addr, info->phy_id, 5); in ei_watchdog() 1086 link = mdio_read(mii_addr, info->eth_phy, 1) & 0x0004; in ei_watchdog() 1123 data->val_out = mdio_read(mii_addr, data->phy_id, data->reg_num & 0x1f); in ei_ioctl()
|
/linux-6.1.9/drivers/net/ethernet/ibm/emac/ |
D | phy.h | 71 int (*mdio_read) (struct net_device * dev, int addr, int reg); member
|
/linux-6.1.9/arch/powerpc/platforms/pasemi/ |
D | gpio_mdio.c | 67 static inline int mdio_read(struct mii_bus *bus) in mdio_read() function 141 rdreg |= mdio_read(bus); in gpio_mdio_read()
|
/linux-6.1.9/drivers/net/ethernet/intel/ |
D | e100.c | 902 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() 1442 bmcr = mdio_read(netdev, nic->mii.phy_id, MII_BMCR); in e100_phy_init() 1443 stat = mdio_read(netdev, nic->mii.phy_id, MII_BMSR); in e100_phy_init() 1444 stat = mdio_read(netdev, nic->mii.phy_id, MII_BMSR); in e100_phy_init() 1466 id_lo = mdio_read(netdev, nic->mii.phy_id, MII_PHYSID1); in e100_phy_init() 1467 id_hi = mdio_read(netdev, nic->mii.phy_id, MII_PHYSID2); in e100_phy_init() 1477 bmcr = mdio_read(netdev, addr, MII_BMCR); in e100_phy_init() 1495 cong = mdio_read(netdev, nic->mii.phy_id, MII_NSC_CONG); in e100_phy_init() [all …]
|
/linux-6.1.9/drivers/net/ethernet/dlink/ |
D | sundance.c | 422 static int mdio_read(struct net_device *dev, int phy_id, int location); 562 np->mii_if.mdio_read = mdio_read; in sundance_probe1() 602 int mii_status = mdio_read(dev, phyx, MII_BMSR); in sundance_probe1() 605 np->mii_if.advertising = mdio_read(dev, phyx, MII_ADVERTISE); in sundance_probe1() 761 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() function 829 bmsr = mdio_read(dev, phy_id, MII_BMSR); in mdio_wait_link() 919 int mii_lpa = mdio_read(dev, np->phys[0], MII_LPA); in check_duplex() 1458 mii_advertise = mdio_read(dev, np->phys[0], in netdev_error() 1460 mii_lpa = mdio_read(dev, np->phys[0], MII_LPA); in netdev_error() 1480 mii_ctl = mdio_read(dev, np->phys[0], MII_BMCR); in netdev_error()
|
/linux-6.1.9/drivers/net/ethernet/sgi/ |
D | meth.c | 120 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()
|
/linux-6.1.9/include/linux/ |
D | sungem_phy.h | 59 int (*mdio_read) (struct net_device *dev, int mii_id, int reg); member
|
/linux-6.1.9/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 342 static int mdio_read(void __iomem *ioaddr, int phy_id, int location); 497 int mii_status = mdio_read(ioaddr, phy, 1); in yellowfin_init_one() 500 np->advertising = mdio_read(ioaddr, phy, 4); in yellowfin_init_one() 545 static int mdio_read(void __iomem *ioaddr, int phy_id, int location) in mdio_read() function 666 int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); in yellowfin_timer() 667 int lpa = mdio_read(ioaddr, yp->phys[0], MII_LPA); in yellowfin_timer() 1364 data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, data->reg_num & 0x1f); in netdev_ioctl()
|
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/ |
D | mdio_10g.h | 24 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in ef4_mdio_read()
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
D | mcdi_port.c | 95 efx->mdio.mdio_read = efx_mcdi_mdio_read; in efx_siena_mcdi_port_probe()
|
/linux-6.1.9/drivers/net/ethernet/sfc/ |
D | mcdi_port.c | 102 efx->mdio.mdio_read = efx_mcdi_mdio_read; in efx_mcdi_port_probe()
|
/linux-6.1.9/drivers/net/ethernet/sun/ |
D | niu.c | 332 static int mdio_read(struct niu *np, int port, int dev, int reg) in mdio_read() function 662 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, ESR_RXTX_CTRL_L(chan)); in esr_read_rxtx_ctrl() 665 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_rxtx_ctrl() 678 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_glue0() 682 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_glue0() 696 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_reset() 700 err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, in esr_read_reset() 1280 err = mdio_read(np, np->phy_addr, in bcm8704_reset() 1292 err = mdio_read(np, np->phy_addr, in bcm8704_reset() 1312 int err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR, reg); in bcm8704_user_dev3_readback() [all …]
|