/kernel/linux/linux-5.10/drivers/net/ |
D | mii.c | 286 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_sset() 290 mii->mdio_write(dev, mii->phy_id, MII_CTRL1000, tmp2); in mii_ethtool_sset() 295 mii->mdio_write(dev, mii->phy_id, MII_BMCR, bmcr); in mii_ethtool_sset() 315 mii->mdio_write(dev, mii->phy_id, MII_BMCR, tmp); in mii_ethtool_sset() 383 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_set_link_ksettings() 387 mii->mdio_write(dev, mii->phy_id, MII_CTRL1000, tmp2); in mii_ethtool_set_link_ksettings() 392 mii->mdio_write(dev, mii->phy_id, MII_BMCR, bmcr); in mii_ethtool_set_link_ksettings() 413 mii->mdio_write(dev, mii->phy_id, MII_BMCR, tmp); in mii_ethtool_set_link_ksettings() 469 mii->mdio_write(mii->dev, mii->phy_id, MII_BMCR, bmcr); in mii_nway_restart() 637 mii_if->mdio_write(mii_if->dev, mii_data->phy_id, in generic_mii_ioctl()
|
D | mdio.c | 81 return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val); in mdio_set_flag() 594 return mdio->mdio_write(mdio->dev, prtad, devad, addr, in mdio_mii_ioctl()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sis/ |
D | sis900.c | 222 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val); 514 sis_priv->mii_info.mdio_write = mdio_write; in sis900_probe() 684 mdio_write(net_dev, sis_priv->cur_phy, 0x0018, 0xD200); in sis900_mii_probe() 701 mdio_write(net_dev, sis_priv->cur_phy, MII_ANADV, 0x05e1); in sis900_mii_probe() 702 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG1, 0x22); in sis900_mii_probe() 703 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG2, 0xff00); in sis900_mii_probe() 704 mdio_write(net_dev, sis_priv->cur_phy, MII_MASK, 0xffc0); in sis900_mii_probe() 742 mdio_write(net_dev, phy->phy_addr, MII_CONTROL, in sis900_default_phy() 770 mdio_write(net_dev, sis_priv->cur_phy, MII_CONTROL, status); in sis900_default_phy() 800 mdio_write(net_dev, phy->phy_addr, MII_ANADV, cap); in sis900_set_capability() [all …]
|
D | sis190.c | 383 static void mdio_write(void __iomem *ioaddr, int phy_id, int reg, int val) in mdio_write() function 402 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write() 998 mdio_write(ioaddr, phy_id, 0x18, 0xf1c7); in sis190_phy_task() 1000 mdio_write(ioaddr, phy_id, 0x1c, 0x8c00); in sis190_phy_task() 1290 mdio_write(ioaddr, phy->phy_id, MII_BMCR, in sis190_default_phy() 1319 mdio_write(ioaddr, mii_if->phy_id, MII_BMCR, status); in sis190_default_phy() 1375 mdio_write(ioaddr, phy_id, 0x1b, p[0]); in sis190_mii_probe_88e1111_fixup() 1377 mdio_write(ioaddr, phy_id, 0x14, p[1]); in sis190_mii_probe_88e1111_fixup() 1437 mii_if->mdio_write = __mdio_write; in sis190_mii_probe() 1733 mdio_write(ioaddr, phy_id, MII_ADVERTISE, (val & ADVERTISE_SLCT) | in sis190_set_speed_auto() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
D | cphy.h | 122 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_write() 151 phy->mdio.mdio_write = mdio_ops->write; in cphy_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 222 static void mdio_write(unsigned int ioaddr, int phy_id, int location, 414 mdio_write(ioaddr, lp->phys, 16, i); in tc574_config() 419 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_config() 567 static void mdio_write(unsigned int ioaddr, int phy_id, int location, int value) in mdio_write() function 649 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_reset() 653 mdio_write(ioaddr, lp->phys, 16, i); in tc574_reset() 1072 mdio_write(ioaddr, data->phy_id & 0x1f, in el3_ioctl()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 725 static void mdio_write(unsigned int addr, int phy_id, int loc, int value) in mdio_write() function 855 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg() 857 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg() 858 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg() 865 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg() 867 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg() 868 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg() 1080 mdio_write(mii_addr, info->phy_id, 0, 0x0400); in ei_watchdog() 1084 mdio_write(mii_addr, info->phy_id, 0, in ei_watchdog() 1116 mdio_write(mii_addr, data->phy_id, data->reg_num & 0x1f, data->val_in); in ei_ioctl()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/emac/ |
D | phy.h | 72 void (*mdio_write) (struct net_device * dev, int addr, int reg, member
|
D | phy.c | 42 phy->mdio_write(phy->dev, phy->address, reg, val); in _phy_write() 52 phy->mdio_write(phy->dev, phy->gpcs_address, reg, val); in gpcs_phy_write()
|
/kernel/linux/linux-5.10/include/linux/ |
D | sungem_phy.h | 58 void (*mdio_write) (struct net_device *dev, int mii_id, int reg, int val); member
|
D | mdio.h | 139 int (*mdio_write)(struct net_device *dev, int prtad, int devad, member
|
D | mii.h | 30 void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val); member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ |
D | e100.c | 908 static void mdio_write(struct net_device *netdev, int addr, int reg, int data) in mdio_write() function 1066 nic->mii.mdio_write = mdio_write; in e100_get_defaults() 1476 mdio_write(netdev, addr, MII_BMCR, BMCR_ISOLATE); in e100_phy_init() 1479 mdio_write(netdev, addr, MII_BMCR, in e100_phy_init() 1489 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, in e100_phy_init() 1499 mdio_write(netdev, nic->mii.phy_id, MII_NSC_CONG, cong); in e100_phy_init() 1510 mdio_write(netdev, nic->mii.phy_id, MII_ADVERTISE, advert); in e100_phy_init() 1515 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, bmcr); in e100_phy_init() 1520 mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG, in e100_phy_init() 2365 mdio_write(nic->netdev, nic->mii.phy_id, MII_BMCR, in e100_loopback_test() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | mdio_10g.h | 30 efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); in ef4_mdio_write()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | mcdi_port.c | 103 efx->mdio.mdio_write = efx_mcdi_mdio_write; in efx_mcdi_port_probe()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/ |
D | smc91c92_cs.c | 286 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value); 326 smc->mii_if.mdio_write = mdio_write; in smc91c92_probe() 1005 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() function 1689 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); in smc_reset() 1692 mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1); in smc_reset() 1695 mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000); in smc_reset() 1696 mdio_write(dev, smc->mii_if.phy_id, 0, 0x1200); in smc_reset()
|
D | epic100.c | 292 static void mdio_write(struct net_device *dev, int phy_id, int loc, int val); 373 ep->mii.mdio_write = mdio_write; in epic_init_one() 629 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() function 701 mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]); in epic_open() 713 mdio_write(dev, ep->phys[0], MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART); in epic_open()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/dlink/ |
D | sundance.c | 423 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 561 np->mii_if.mdio_write = mdio_write; in sundance_probe1() 660 mdio_write (dev, np->phys[0], MII_BMCR, BMCR_RESET); in sundance_probe1() 664 mdio_write (dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising | 0x0400); in sundance_probe1() 665 mdio_write (dev, np->phys[0], MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART); in sundance_probe1() 671 mdio_write (dev, np->phys[0], MII_BMCR, mii_ctl); in sundance_probe1() 789 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
|
/kernel/linux/linux-5.10/drivers/net/ethernet/adaptec/ |
D | starfire.c | 568 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 737 np->mii_if.mdio_write = mdio_write; in starfire_init_one() 789 mdio_write(dev, phy, MII_BMCR, BMCR_RESET); in starfire_init_one() 849 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function 1066 mdio_write(dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising); in check_duplex() 1067 mdio_write(dev, np->phys[0], MII_BMCR, BMCR_RESET); in check_duplex() 1091 mdio_write(dev, np->phys[0], MII_BMCR, reg0); in check_duplex()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/ |
D | niu.c | 326 static int mdio_write(struct niu *np, int port, int dev, int reg, int data) in mdio_write() function 365 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_tx_cfg() 369 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_tx_cfg() 379 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_rx_cfg() 383 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_rx_cfg() 404 mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_10g_fiber() 449 mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_1g_serdes() 459 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_1g_serdes() 469 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_1g_serdes() 541 mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_10g_serdes() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ |
D | fealnx.c | 418 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 542 np->mii.mdio_write = mdio_write; in fealnx_init_one() 636 mdio_write(dev, np->phys[0], 9, data); in fealnx_init_one() 640 mdio_write(dev, np->phys[0], MII_ADVERTISE, ADVERTISE_FULL); in fealnx_init_one() 784 static void mdio_write(struct net_device *dev, int phyad, int regad, int data) in mdio_write() function
|
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/ |
D | winbond-840.c | 317 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 398 np->mii_if.mdio_write = mdio_write; in w840_probe1() 584 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function 1456 mdio_write(dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in); in netdev_ioctl()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/ |
D | pcnet32.c | 322 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, 1870 lp->mii_if.mdio_write = mdio_write; in pcnet32_probe1() 2222 mdio_write(dev, i, MII_BMCR, in pcnet32_open() 2225 mdio_write(dev, i, MII_BMCR, in pcnet32_open() 2755 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, int val) in mdio_write() function 2805 mdio_write(dev, lp->mii_if.phy_id, MII_BMCR, in pcnet32_check_otherphy() 2810 mdio_write(dev, i, MII_BMCR, in pcnet32_check_otherphy()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
D | common.h | 572 return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd, in t3_mdio_write() 591 phy->mdio.mdio_write = mdio_ops->write; in cphy_init()
|
/kernel/linux/linux-5.10/drivers/net/usb/ |
D | ch9200.c | 346 dev->mii.mdio_write = ch9200_mdio_write; in ch9200_bind()
|