/linux-6.12.1/drivers/net/ |
D | mii.c | 284 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_sset() 288 mii->mdio_write(dev, mii->phy_id, MII_CTRL1000, tmp2); in mii_ethtool_sset() 293 mii->mdio_write(dev, mii->phy_id, MII_BMCR, bmcr); in mii_ethtool_sset() 313 mii->mdio_write(dev, mii->phy_id, MII_BMCR, tmp); in mii_ethtool_sset() 381 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_set_link_ksettings() 385 mii->mdio_write(dev, mii->phy_id, MII_CTRL1000, tmp2); in mii_ethtool_set_link_ksettings() 390 mii->mdio_write(dev, mii->phy_id, MII_BMCR, bmcr); in mii_ethtool_set_link_ksettings() 411 mii->mdio_write(dev, mii->phy_id, MII_BMCR, tmp); in mii_ethtool_set_link_ksettings() 467 mii->mdio_write(mii->dev, mii->phy_id, MII_BMCR, bmcr); in mii_nway_restart() 635 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()
|
/linux-6.12.1/drivers/net/ethernet/sis/ |
D | sis900.c | 222 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val); 521 sis_priv->mii_info.mdio_write = mdio_write; in sis900_probe() 691 mdio_write(net_dev, sis_priv->cur_phy, 0x0018, 0xD200); in sis900_mii_probe() 708 mdio_write(net_dev, sis_priv->cur_phy, MII_ANADV, 0x05e1); in sis900_mii_probe() 709 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG1, 0x22); in sis900_mii_probe() 710 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG2, 0xff00); in sis900_mii_probe() 711 mdio_write(net_dev, sis_priv->cur_phy, MII_MASK, 0xffc0); in sis900_mii_probe() 749 mdio_write(net_dev, phy->phy_addr, MII_CONTROL, in sis900_default_phy() 777 mdio_write(net_dev, sis_priv->cur_phy, MII_CONTROL, status); in sis900_default_phy() 807 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() 1737 mdio_write(ioaddr, phy_id, MII_ADVERTISE, (val & ADVERTISE_SLCT) | in sis190_set_speed_auto() [all …]
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb/ |
D | cphy.h | 113 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_write() 142 phy->mdio.mdio_write = mdio_ops->write; in cphy_init()
|
/linux-6.12.1/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 222 static void mdio_write(unsigned int ioaddr, int phy_id, int location, 413 mdio_write(ioaddr, lp->phys, 16, i); in tc574_config() 418 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_config() 566 static void mdio_write(unsigned int ioaddr, int phy_id, int location, int value) in mdio_write() function 648 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_reset() 652 mdio_write(ioaddr, lp->phys, 16, i); in tc574_reset() 1071 mdio_write(ioaddr, data->phy_id & 0x1f, in el3_ioctl()
|
/linux-6.12.1/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 734 static void mdio_write(unsigned int addr, int phy_id, int loc, int value) in mdio_write() function 864 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg() 866 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg() 867 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg() 874 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); in set_misc_reg() 876 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg() 877 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg() 1089 mdio_write(mii_addr, info->phy_id, 0, 0x0400); in ei_watchdog() 1093 mdio_write(mii_addr, info->phy_id, 0, in ei_watchdog() 1125 mdio_write(mii_addr, data->phy_id, data->reg_num & 0x1f, data->val_in); in ei_ioctl()
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/net/ethernet/intel/ |
D | e100.c | 907 static void mdio_write(struct net_device *netdev, int addr, int reg, int data) in mdio_write() function 1065 nic->mii.mdio_write = mdio_write; in e100_get_defaults() 1474 mdio_write(netdev, addr, MII_BMCR, BMCR_ISOLATE); in e100_phy_init() 1477 mdio_write(netdev, addr, MII_BMCR, in e100_phy_init() 1487 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, in e100_phy_init() 1497 mdio_write(netdev, nic->mii.phy_id, MII_NSC_CONG, cong); in e100_phy_init() 1508 mdio_write(netdev, nic->mii.phy_id, MII_ADVERTISE, advert); in e100_phy_init() 1513 mdio_write(netdev, nic->mii.phy_id, MII_BMCR, bmcr); in e100_phy_init() 1518 mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG, in e100_phy_init() 2366 mdio_write(nic->netdev, nic->mii.phy_id, MII_BMCR, in e100_loopback_test() [all …]
|
/linux-6.12.1/include/linux/ |
D | sungem_phy.h | 60 void (*mdio_write) (struct net_device *dev, int mii_id, int reg, int val); member
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/net/ethernet/sfc/ |
D | mcdi_port.c | 103 efx->mdio.mdio_write = efx_mcdi_mdio_write; in efx_mcdi_port_probe()
|
/linux-6.12.1/drivers/net/ethernet/sfc/siena/ |
D | mcdi_port.c | 96 efx->mdio.mdio_write = efx_mcdi_mdio_write; in efx_siena_mcdi_port_probe()
|
/linux-6.12.1/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() 1008 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() function 1692 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); in smc_reset() 1695 mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1); in smc_reset() 1698 mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000); in smc_reset() 1699 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); 374 ep->mii.mdio_write = mdio_write; in epic_init_one() 631 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() function 703 mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]); in epic_open() 715 mdio_write(dev, ep->phys[0], MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART); in epic_open()
|
/linux-6.12.1/drivers/net/ethernet/adaptec/ |
D | starfire.c | 560 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 731 np->mii_if.mdio_write = mdio_write; in starfire_init_one() 783 mdio_write(dev, phy, MII_BMCR, BMCR_RESET); in starfire_init_one() 843 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function 1060 mdio_write(dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising); in check_duplex() 1061 mdio_write(dev, np->phys[0], MII_BMCR, BMCR_RESET); in check_duplex() 1085 mdio_write(dev, np->phys[0], MII_BMCR, reg0); in check_duplex()
|
/linux-6.12.1/drivers/net/ethernet/dlink/ |
D | sundance.c | 423 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 563 np->mii_if.mdio_write = mdio_write; in sundance_probe1() 662 mdio_write (dev, np->phys[0], MII_BMCR, BMCR_RESET); in sundance_probe1() 666 mdio_write (dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising | 0x0400); in sundance_probe1() 667 mdio_write (dev, np->phys[0], MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART); in sundance_probe1() 673 mdio_write (dev, np->phys[0], MII_BMCR, mii_ctl); in sundance_probe1() 791 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
|
/linux-6.12.1/drivers/net/usb/ |
D | r8153_ecm.c | 108 dev->mii.mdio_write = r8153_ecm_mdio_write; in r8153_bind()
|
/linux-6.12.1/drivers/net/ethernet/sun/ |
D | niu.c | 345 static int mdio_write(struct niu *np, int port, int dev, int reg, int data) in mdio_write() function 384 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_tx_cfg() 388 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_tx_cfg() 398 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_rx_cfg() 402 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in esr2_set_rx_cfg() 423 mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_10g_fiber() 468 mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_1g_serdes() 478 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_1g_serdes() 488 err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_1g_serdes() 560 mdio_write(np, np->port, NIU_ESR2_DEV_ADDR, in serdes_init_niu_10g_serdes() [all …]
|
/linux-6.12.1/drivers/net/ethernet/ |
D | fealnx.c | 418 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 544 np->mii.mdio_write = mdio_write; in fealnx_init_one() 638 mdio_write(dev, np->phys[0], 9, data); in fealnx_init_one() 642 mdio_write(dev, np->phys[0], MII_ADVERTISE, ADVERTISE_FULL); in fealnx_init_one() 786 static void mdio_write(struct net_device *dev, int phyad, int regad, int data) in mdio_write() function
|
/linux-6.12.1/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); 400 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()
|
/linux-6.12.1/drivers/net/ethernet/amd/ |
D | pcnet32.c | 322 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, 1879 lp->mii_if.mdio_write = mdio_write; in pcnet32_probe1() 2232 mdio_write(dev, i, MII_BMCR, in pcnet32_open() 2235 mdio_write(dev, i, MII_BMCR, in pcnet32_open() 2765 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, int val) in mdio_write() function 2815 mdio_write(dev, lp->mii_if.phy_id, MII_BMCR, in pcnet32_check_otherphy() 2820 mdio_write(dev, i, MII_BMCR, in pcnet32_check_otherphy()
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 601 static void mdio_write(struct net_device *dev, int reg, u16 data); 1131 static void mdio_write(struct net_device *dev, int reg, u16 data) in mdio_write() function 1160 mdio_write(dev, MII_ADVERTISE, np->advertising); in init_phy_fixup() 1177 mdio_write(dev, MII_BMCR, tmp); in init_phy_fixup() 1195 mdio_write(dev, MII_MCTRL, tmp); in init_phy_fixup() 2653 mdio_write(dev, MII_BMCR, tmp); in nway_reset() 3105 mdio_write(dev, data->reg_num & 0x1f, in netdev_ioctl()
|