Home
last modified time | relevance | path

Searched refs:mdio_write (Results 1 – 25 of 33) sorted by relevance

12

/linux-2.4.37.9/drivers/net/
Dau1000_eth.c89 static void mdio_write(struct net_device *, int, int, u16);
153 mdio_write(dev, phy_addr, MII_CONTROL, data & ~MII_CNTL_AUTO); in bcm_5201_init()
159 mdio_write(dev, phy_addr, MII_ANADV, data); in bcm_5201_init()
164 mdio_write(dev, phy_addr, MII_CONTROL, data); in bcm_5201_init()
176 mdio_write(dev, phy_addr, MII_CONTROL, mii_control | MII_CNTL_RESET); in bcm_5201_reset()
237 mdio_write(dev, phy_addr, MII_CONTROL, in lsi_80227_init()
243 mdio_write(dev, phy_addr, 17, 0xff80); in lsi_80227_init()
245 mdio_write(dev, phy_addr, 17, 0xffc0); in lsi_80227_init()
263 mdio_write(dev, phy_addr, MII_CONTROL, mii_control | MII_CNTL_RESET); in lsi_80227_reset()
346 mdio_write(dev, phy_addr, MII_CONTROL, data & ~MII_CNTL_AUTO); in am79c874_init()
[all …]
Dmii.c136 mii->mdio_write(dev, mii->phy_id, MII_ADVERTISE, tmp); in mii_ethtool_sset()
143 mii->mdio_write(dev, mii->phy_id, MII_BMCR, bmcr); in mii_ethtool_sset()
160 mii->mdio_write(dev, mii->phy_id, MII_BMCR, tmp); in mii_ethtool_sset()
186 mii->mdio_write(mii->dev, mii->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
326 mii_if->mdio_write(mii_if->dev, mii_data->phy_id, in generic_mii_ioctl()
Dsis900.c192 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val);
603 mdio_write(net_dev, sis_priv->cur_phy, 0x0018, 0xD200); in sis900_mii_probe()
620 mdio_write(net_dev, sis_priv->cur_phy, MII_ANADV, 0x05e1); in sis900_mii_probe()
621 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG1, 0x22); in sis900_mii_probe()
622 mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG2, 0xff00); in sis900_mii_probe()
623 mdio_write(net_dev, sis_priv->cur_phy, MII_MASK, 0xffc0); in sis900_mii_probe()
659 mdio_write(net_dev, phy->phy_addr, MII_CONTROL, in sis900_default_phy()
680 mdio_write(net_dev, sis_priv->cur_phy, MII_CONTROL, status); in sis900_default_phy()
711 mdio_write(net_dev, phy->phy_addr, MII_ANADV, cap); in sis900_set_capability()
847 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int value) in mdio_write() function
[all …]
Dr8169.c370 static void mdio_write(void *ioaddr, int RegAddr, int value) in mdio_write() function
427 mdio_write(ioaddr, reg, val & 0xffff); in rtl8169_write_gmii_reg_bit()
563 mdio_write(ioaddr, 31, 0x0001); //w 31 2 0 1 in rtl8169_hw_phy_config()
564 mdio_write(ioaddr, 21, 0x1000); //w 21 15 0 1000 in rtl8169_hw_phy_config()
565 mdio_write(ioaddr, 24, 0x65c7); //w 24 15 0 65c7 in rtl8169_hw_phy_config()
572 mdio_write(ioaddr, pos, val); in rtl8169_hw_phy_config()
574 mdio_write(ioaddr, pos, p->regs[4 - pos] & 0xffff); in rtl8169_hw_phy_config()
578 mdio_write(ioaddr, 31, 0x0000); //w 31 2 0 0 in rtl8169_hw_phy_config()
590 mdio_write(ioaddr, 0, val); in rtl8169_hw_phy_reset()
897 mdio_write(ioaddr, 0x0b, 0x0000); //w 0x0b 15 0 0 in rtl8169_init_one()
[all …]
Deepro100.c535 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
786 mdio_write(dev, eeprom[6] & 0x1f, 23, mdi_reg23); in speedo_found1()
792 mdio_write(dev, eeprom[6] & 0x1f, MII_BMCR, in speedo_found1()
862 sp->mii_if.mdio_write = mdio_write; in speedo_found1()
965 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
1018 mdio_write(dev, phy_addr, MII_BMCR, mii_ctrl[dev->default_port & 7]); in speedo_open()
1020 mdio_write(dev, phy_addr, MII_BMCR, 0x3300); in speedo_open()
1360 mdio_write(dev, phy_addr, MII_BMCR, 0x0400); in reset_mii()
1361 mdio_write(dev, phy_addr, MII_BMSR, 0x0000); in reset_mii()
1362 mdio_write(dev, phy_addr, MII_ADVERTISE, 0x0000); in reset_mii()
[all …]
Dsundance.c504 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
600 np->mii_if.mdio_write = mdio_write; in sundance_probe1()
694 mdio_write (dev, np->phys[0], MII_BMCR, BMCR_RESET); in sundance_probe1()
698 mdio_write (dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising | 0x0400); in sundance_probe1()
699 mdio_write (dev, np->phys[0], MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART); in sundance_probe1()
705 mdio_write (dev, np->phys[0], MII_BMCR, mii_ctl); in sundance_probe1()
826 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
Dstarfire.c736 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
910 np->mii_if.mdio_write = mdio_write; in starfire_init_one()
982 mdio_write(dev, phy, MII_BMCR, BMCR_RESET); in starfire_init_one()
1042 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
1221 mdio_write(dev, np->phys[0], MII_ADVERTISE, np->mii_if.advertising); in check_duplex()
1222 mdio_write(dev, np->phys[0], MII_BMCR, BMCR_RESET); in check_duplex()
1246 mdio_write(dev, np->phys[0], MII_BMCR, reg0); in check_duplex()
Dvia-rhine.c538 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
780 np->mii_if.mdio_write = mdio_write; in via_rhine_init_one()
871 mdio_write(dev, np->phys[0], MII_BMCR, in via_rhine_init_one()
1088 mdio_write(dev, np->phys[0], 0x17, mdio_read(dev, np->phys[0], 0x17) | in init_registers()
1111 static void mdio_write(struct net_device *dev, int phy_id, int regnum, int value) in mdio_write() function
1647 mdio_write(dev, np->phys[0], MII_BMCR, 0x3300); in via_rhine_error()
Depic100.c356 static void mdio_write(struct net_device *dev, int phy_id, int loc, int val);
432 ep->mii.mdio_write = mdio_write; in epic_init_one()
653 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() function
720 mdio_write(dev, ep->phys[0], MII_BMCR, media2miictl[dev->if_port&15]); in epic_open()
733 mdio_write(dev, ep->phys[0], MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART); in epic_open()
Dfealnx.c452 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
576 np->mii.mdio_write = mdio_write; in fealnx_init_one()
667 mdio_write(dev, np->phys[0], 9, data); in fealnx_init_one()
671 mdio_write(dev, np->phys[0], MII_ADVERTISE, ADVERTISE_FULL); in fealnx_init_one()
826 static void mdio_write(struct net_device *dev, int phyad, int regad, int data) in mdio_write() function
Dwinbond-840.c377 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
457 np->mii_if.mdio_write = mdio_write; in w840_probe1()
653 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
1546 mdio_write(dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in); in netdev_ioctl()
Dpci-skeleton.c501 static void mdio_write (struct net_device *dev, int phy_id, int location,
837 mdio_write (dev, tp->phys[0], MII_ADVERTISE, ADVERTISE_FULL); in netdrv_init_one()
1035 static void mdio_write (struct net_device *dev, int phy_id, int location, in mdio_write() function
1820 mdio_write (dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in); in netdrv_ioctl()
Dhamachi.c558 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
642 hmp->mii_if.mdio_write = mdio_write; in hamachi_init_one()
835 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
D8139too.c615 static void mdio_write (struct net_device *dev, int phy_id, int location,
1003 tp->mii.mdio_write = mdio_write; in rtl8139_init_one()
1075 mdio_write(dev, tp->phys[0], 0, in rtl8139_init_one()
1252 static void mdio_write (struct net_device *dev, int phy_id, int location, in mdio_write() function
Dnatsemi.c681 static void mdio_write(struct net_device *dev, int phy_id, int reg, u16 data);
951 static void mdio_write(struct net_device *dev, int phy_id, int reg, u16 data) in mdio_write() function
2078 mdio_write(dev, 1, MII_BMCR, tmp); in netdev_ethtool_ioctl()
2346 mdio_write(dev, 1, MII_BMCR, tmp); in netdev_set_ecmd()
2435 mdio_write(dev, data->phy_id & 0x1f, data->reg_num & 0x1f, in netdev_ioctl()
Dyellowfin.c397 static void mdio_write(long ioaddr, int phy_id, int location, int value);
605 static void mdio_write(long ioaddr, int phy_id, int location, int value) in mdio_write() function
1454 mdio_write(ioaddr, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in);
Dpcnet32.c386 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, int val);
1248 lp->mii_if.mdio_write = mdio_write;
2192 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, int val) function
/linux-2.4.37.9/drivers/net/ibm_emac/
Dibm_ocp_phy.c38 phy->mdio_write(phy->dev, id, reg, val); in __phy_write()
48 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in phy_write()
Dibm_ocp_phy.h82 void (*mdio_write) (struct net_device *dev, int mii_id, int reg, int val); member
/linux-2.4.37.9/drivers/net/pcmcia/
D3c574_cs.c241 static void mdio_write(ioaddr_t ioaddr, int phy_id, int location, int value);
551 mdio_write(ioaddr, lp->phys, 16, i); in tc574_config()
556 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_config()
747 static void mdio_write(ioaddr_t ioaddr, int phy_id, int location, int value) in mdio_write() function
820 mdio_write(ioaddr, lp->phys, 4, lp->advertising); in tc574_reset()
824 mdio_write(ioaddr, lp->phys, 16, i); in tc574_reset()
1249 mdio_write(ioaddr, data[0] & 0x1f, data[1] & 0x1f, data[2]); in el3_ioctl()
Dxircom_tulip_cb.c335 static void mdio_write(struct net_device *dev, int phy_id, int location, int value);
712 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() function
1038 mdio_write(dev, tp->phys[0], MII_BMCR, BMCR_RESET); in check_duplex()
1043 mdio_write(dev, tp->phys[0], MII_ADVERTISE, tp->advertising[0]); in check_duplex()
1059 mdio_write(dev, tp->phys[0], MII_BMCR, reg0); in check_duplex()
1517 mdio_write(dev, data[0] & 0x1f, data[1] & 0x1f, data[2]); in xircom_ioctl()
Dpcnet_cs.c944 static void mdio_write(ioaddr_t addr, int phy_id, int loc, int value) in mdio_write() function
1084 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); in set_misc_reg()
1085 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); in set_misc_reg()
1300 mdio_write(mii_addr, info->phy_id, 0, 0x0400); in ei_watchdog()
1304 mdio_write(mii_addr, info->phy_id, 0, in ei_watchdog()
1348 mdio_write(mii_addr, data[0], data[1] & 0x1f, data[2]); in ei_ioctl()
Dsmc91c92_cs.c307 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value);
395 smc->mii_if.mdio_write = mdio_write; in smc91c92_attach()
1242 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() function
1949 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); in smc_reset()
1952 mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1); in smc_reset()
1955 mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000); in smc_reset()
1956 mdio_write(dev, smc->mii_if.phy_id, 0, 0x1200); in smc_reset()
/linux-2.4.37.9/include/linux/
Dmii.h131 void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val); member
/linux-2.4.37.9/drivers/usb/
Dpegasus.c339 static void mdio_write(struct net_device *dev, int phy_id, int loc, int val) in mdio_write() function
1154 pegasus->mii.mdio_write = mdio_write; in pegasus_probe()

12