Home
last modified time | relevance | path

Searched refs:mii_if (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/net/
Dmii.c582 int generic_mii_ioctl(struct mii_if_info *mii_if, in generic_mii_ioctl() argument
592 mii_data->phy_id &= mii_if->phy_id_mask; in generic_mii_ioctl()
593 mii_data->reg_num &= mii_if->reg_num_mask; in generic_mii_ioctl()
597 mii_data->phy_id = mii_if->phy_id; in generic_mii_ioctl()
602 mii_if->mdio_read(mii_if->dev, mii_data->phy_id, in generic_mii_ioctl()
609 if (mii_data->phy_id == mii_if->phy_id) { in generic_mii_ioctl()
614 mii_if->force_media = 0; in generic_mii_ioctl()
616 mii_if->force_media = 1; in generic_mii_ioctl()
617 if (mii_if->force_media && in generic_mii_ioctl()
620 if (mii_if->full_duplex != new_duplex) { in generic_mii_ioctl()
[all …]
/linux-6.6.21/drivers/net/ethernet/
Djme.c105 jme->mii_if.phy_id, in jme_reset_phy_processor()
111 jme->mii_if.phy_id, in jme_reset_phy_processor()
116 jme->mii_if.phy_id, in jme_reset_phy_processor()
120 jme->mii_if.phy_id, in jme_reset_phy_processor()
390 phylink = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 17); in jme_linkstat_from_phy()
391 bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); in jme_linkstat_from_phy()
401 jme_mdio_write(jme->dev, jme->mii_if.phy_id, 27, 0x0004); in jme_set_phyfifo_5level()
407 jme_mdio_write(jme->dev, jme->mii_if.phy_id, 27, 0x0000); in jme_set_phyfifo_8level()
434 jme->mii_if.phy_id, in jme_check_link()
1606 bmcr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMCR); in jme_restart_an()
[all …]
Dkorina.c371 struct mii_if_info mii_if; member
891 mii_check_media(&lp->mii_if, 1, init_media); in korina_check_media()
893 if (lp->mii_if.full_duplex) in korina_check_media()
929 rc = generic_mii_ioctl(&lp->mii_if, data, cmd, NULL); in korina_ioctl()
931 korina_set_carrier(&lp->mii_if); in korina_ioctl()
953 mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); in netdev_get_link_ksettings()
966 rc = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); in netdev_set_link_ksettings()
968 korina_set_carrier(&lp->mii_if); in netdev_set_link_ksettings()
977 return mii_link_ok(&lp->mii_if); in netdev_get_link()
1359 lp->mii_if.dev = dev; in korina_probe()
[all …]
Djme.h403 struct mii_if_info mii_if; member
/linux-6.6.21/drivers/net/ethernet/dlink/
Dsundance.c406 struct mii_if_info mii_if; member
561 np->mii_if.dev = dev; in sundance_probe1()
562 np->mii_if.mdio_read = mdio_read; in sundance_probe1()
563 np->mii_if.mdio_write = mdio_write; in sundance_probe1()
564 np->mii_if.phy_id_mask = 0x1f; in sundance_probe1()
565 np->mii_if.reg_num_mask = 0x1f; in sundance_probe1()
605 np->mii_if.advertising = mdio_read(dev, phyx, MII_ADVERTISE); in sundance_probe1()
610 dev->name, phyx, mii_status, np->mii_if.advertising); in sundance_probe1()
621 np->mii_if.phy_id = np->phys[0]; in sundance_probe1()
631 np->mii_if.full_duplex = 1; in sundance_probe1()
[all …]
/linux-6.6.21/drivers/net/ethernet/adaptec/
Dstarfire.c560 struct mii_if_info mii_if; /* MII lib hooks/info */ member
737 np->mii_if.dev = dev; in starfire_init_one()
738 np->mii_if.mdio_read = mdio_read; in starfire_init_one()
739 np->mii_if.mdio_write = mdio_write; in starfire_init_one()
740 np->mii_if.phy_id_mask = 0x1f; in starfire_init_one()
741 np->mii_if.reg_num_mask = 0x1f; in starfire_init_one()
804 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in starfire_init_one()
807 dev->name, phy, mii_status, np->mii_if.advertising); in starfire_init_one()
814 np->mii_if.phy_id = np->phys[0]; in starfire_init_one()
816 memset(&np->mii_if, 0, sizeof(np->mii_if)); in starfire_init_one()
[all …]
/linux-6.6.21/drivers/net/ethernet/packetengines/
Dhamachi.c502 struct mii_if_info mii_if; /* MII lib hooks/info */ member
645 hmp->mii_if.dev = dev; in hamachi_init_one()
646 hmp->mii_if.mdio_read = mdio_read; in hamachi_init_one()
647 hmp->mii_if.mdio_write = mdio_write; in hamachi_init_one()
648 hmp->mii_if.phy_id_mask = 0x1f; in hamachi_init_one()
649 hmp->mii_if.reg_num_mask = 0x1f; in hamachi_init_one()
700 hmp->mii_if.full_duplex = 1; in hamachi_init_one()
702 hmp->mii_if.full_duplex = 0; in hamachi_init_one()
705 hmp->mii_if.force_media = 1; in hamachi_init_one()
708 hmp->mii_if.full_duplex = 1; in hamachi_init_one()
[all …]
/linux-6.6.21/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c311 struct mii_if_info mii_if; member
398 np->mii_if.dev = dev; in w840_probe1()
399 np->mii_if.mdio_read = mdio_read; in w840_probe1()
400 np->mii_if.mdio_write = mdio_write; in w840_probe1()
411 np->mii_if.full_duplex = 1; in w840_probe1()
418 np->mii_if.full_duplex = 1; in w840_probe1()
420 if (np->mii_if.full_duplex) in w840_probe1()
421 np->mii_if.force_media = 1; in w840_probe1()
441 np->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); in w840_probe1()
447 np->mii_if.advertising); in w840_probe1()
[all …]
/linux-6.6.21/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c113 struct mii_if_info mii_if; member
324 smc->mii_if.dev = dev; in smc91c92_probe()
325 smc->mii_if.mdio_read = mdio_read; in smc91c92_probe()
326 smc->mii_if.mdio_write = mdio_write; in smc91c92_probe()
327 smc->mii_if.phy_id_mask = 0x1f; in smc91c92_probe()
328 smc->mii_if.reg_num_mask = 0x1f; in smc91c92_probe()
914 smc->mii_if.phy_id = (i < 32) ? i : -1; in smc91c92_config()
939 if (smc->mii_if.phy_id != -1) { in smc91c92_config()
941 smc->mii_if.phy_id, j); in smc91c92_config()
1692 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); in smc_reset()
[all …]
/linux-6.6.21/drivers/net/ethernet/sis/
Dsis190.c284 struct mii_if_info mii_if; member
922 int phy_id = tp->mii_if.phy_id; in sis190_phy_task()
1274 struct mii_if_info *mii_if = &tp->mii_if; in sis190_default_phy() local
1309 if (mii_if->phy_id != phy_default->phy_id) { in sis190_default_phy()
1310 mii_if->phy_id = phy_default->phy_id; in sis190_default_phy()
1313 pci_name(tp->pci_dev), mii_if->phy_id); in sis190_default_phy()
1316 status = mdio_read(ioaddr, mii_if->phy_id, MII_BMCR); in sis190_default_phy()
1319 mdio_write(ioaddr, mii_if->phy_id, MII_BMCR, status); in sis190_default_phy()
1320 status = mdio_read_latched(ioaddr, mii_if->phy_id, MII_BMSR); in sis190_default_phy()
1367 int phy_id = tp->mii_if.phy_id; in sis190_mii_probe_88e1111_fixup()
[all …]
/linux-6.6.21/drivers/net/ethernet/tundra/
Dtsi108_eth.c138 struct mii_if_info mii_if; member
284 duplex = mii_check_media(&data->mii_if, netif_msg_link(data), data->init_media); in tsi108_check_phy()
289 speed = mii_speed(&data->mii_if); in tsi108_check_phy()
308 if (data->mii_if.full_duplex) { in tsi108_check_phy()
1254 data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if); in tsi108_init_phy()
1492 mii_ethtool_get_link_ksettings(&data->mii_if, cmd); in tsi108_get_link_ksettings()
1506 rc = mii_ethtool_set_link_ksettings(&data->mii_if, cmd); in tsi108_set_link_ksettings()
1517 return generic_mii_ioctl(&data->mii_if, if_mii(rq), cmd, NULL); in tsi108_do_ioctl()
1580 data->mii_if.dev = dev; in tsi108_init_one()
1581 data->mii_if.mdio_read = tsi108_mdio_read; in tsi108_init_one()
[all …]
/linux-6.6.21/drivers/net/ethernet/amd/
Dpcnet32.c295 struct mii_if_info mii_if; member
726 mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); in pcnet32_get_link_ksettings()
759 r = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); in pcnet32_set_link_ksettings()
817 r = mii_link_ok(&lp->mii_if); in pcnet32_get_link()
856 r = mii_nway_restart(&lp->mii_if); in pcnet32_nway_reset()
1862 lp->mii_if.full_duplex = fdx; in pcnet32_probe1()
1863 lp->mii_if.phy_id_mask = 0x1f; in pcnet32_probe1()
1864 lp->mii_if.reg_num_mask = 0x1f; in pcnet32_probe1()
1877 lp->mii_if.dev = dev; in pcnet32_probe1()
1878 lp->mii_if.mdio_read = mdio_read; in pcnet32_probe1()
[all …]
Damd8111e.c1389 mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); in amd8111e_get_link_ksettings()
1400 res = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); in amd8111e_set_link_ksettings()
1408 return mii_nway_restart(&lp->mii_if); in amd8111e_nway_reset()
1414 return mii_link_ok(&lp->mii_if); in amd8111e_get_link()
1836 lp->mii_if.dev = dev; in amd8111e_probe_one()
1837 lp->mii_if.mdio_read = amd8111e_mdio_read; in amd8111e_probe_one()
1838 lp->mii_if.mdio_write = amd8111e_mdio_write; in amd8111e_probe_one()
1839 lp->mii_if.phy_id = lp->ext_phy_addr; in amd8111e_probe_one()
Damd8111e.h771 struct mii_if_info mii_if; member
/linux-6.6.21/drivers/net/ethernet/via/
Dvia-rhine.c477 struct mii_if_info mii_if; member
957 rp->mii_if.dev = dev; in rhine_init_one_common()
958 rp->mii_if.mdio_read = mdio_read; in rhine_init_one_common()
959 rp->mii_if.mdio_write = mdio_write; in rhine_init_one_common()
960 rp->mii_if.phy_id_mask = 0x1f; in rhine_init_one_common()
961 rp->mii_if.reg_num_mask = 0x1f; in rhine_init_one_common()
1003 rp->mii_if.advertising = mdio_read(dev, phy_id, 4); in rhine_init_one_common()
1007 mii_status, rp->mii_if.advertising, in rhine_init_one_common()
1018 rp->mii_if.phy_id = phy_id; in rhine_init_one_common()
1352 if (!rp->mii_if.force_media) in rhine_check_media()
[all …]
/linux-6.6.21/drivers/net/ethernet/realtek/
D8139cp.c352 struct mii_if_info mii_if; member
612 mii_check_media(&cp->mii_if, netif_msg_link(cp), false); in cp_interrupt()
1202 mii_check_media(&cp->mii_if, netif_msg_link(cp), true); in cp_open()
1423 mii_ethtool_get_link_ksettings(&cp->mii_if, cmd); in cp_get_link_ksettings()
1437 rc = mii_ethtool_set_link_ksettings(&cp->mii_if, cmd); in cp_set_link_ksettings()
1446 return mii_nway_restart(&cp->mii_if); in cp_nway_reset()
1616 rc = generic_mii_ioctl(&cp->mii_if, if_mii(rq), cmd, NULL); in cp_ioctl()
1916 cp->mii_if.dev = dev; in cp_init_one()
1917 cp->mii_if.mdio_read = mdio_read; in cp_init_one()
1918 cp->mii_if.mdio_write = mdio_write; in cp_init_one()
[all …]
/linux-6.6.21/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet.h159 struct mii_if_info mii_if; member
/linux-6.6.21/drivers/net/ethernet/broadcom/
Db44.c2128 err = generic_mii_ioctl(&bp->mii_if, if_mii(ifr), cmd, NULL); in b44_ioctl()
2388 bp->mii_if.dev = dev; in b44_init_one()
2389 bp->mii_if.mdio_read = b44_mdio_read_mii; in b44_init_one()
2390 bp->mii_if.mdio_write = b44_mdio_write_mii; in b44_init_one()
2391 bp->mii_if.phy_id = bp->phy_addr; in b44_init_one()
2392 bp->mii_if.phy_id_mask = 0x1f; in b44_init_one()
2393 bp->mii_if.reg_num_mask = 0x1f; in b44_init_one()
Db44.h410 struct mii_if_info mii_if; member
/linux-6.6.21/drivers/net/ethernet/micrel/
Dksz884x.c1401 struct mii_if_info mii_if; member
5570 mii_ethtool_get_link_ksettings(&priv->mii_if, cmd); in netdev_get_link_ksettings()
5647 &priv->mii_if, in netdev_set_link_ksettings()
5668 rc = mii_nway_restart(&priv->mii_if); in netdev_nway_reset()
5686 rc = mii_link_ok(&priv->mii_if); in netdev_get_link()
6335 struct net_device *dev = priv->mii_if.dev; in dev_monitor()
6422 priv->mii_if.phy_id_mask = 0x1; in netdev_init()
6423 priv->mii_if.reg_num_mask = 0x7; in netdev_init()
6424 priv->mii_if.dev = dev; in netdev_init()
6425 priv->mii_if.mdio_read = mdio_read; in netdev_init()
[all …]
/linux-6.6.21/include/linux/
Dmii.h46 extern int generic_mii_ioctl(struct mii_if_info *mii_if,