Home
last modified time | relevance | path

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

/linux/drivers/net/
A Dmii.c592 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()
622 mii_if->full_duplex = new_duplex; in generic_mii_ioctl()
627 mii_if->advertising = val; in generic_mii_ioctl()
[all …]
/linux/drivers/net/ethernet/
A Djme.c104 jme->mii_if.phy_id, in jme_reset_phy_processor()
110 jme->mii_if.phy_id, in jme_reset_phy_processor()
115 jme->mii_if.phy_id, in jme_reset_phy_processor()
119 jme->mii_if.phy_id, in jme_reset_phy_processor()
433 jme->mii_if.phy_id, in jme_check_link()
2593 if (jme->mii_if.force_media && in jme_set_link_ksettings()
3057 jme->mii_if.dev = netdev; in jme_init_one()
3059 jme->mii_if.phy_id = 0; in jme_init_one()
3064 jme->mii_if.phy_id = i; in jme_init_one()
3069 if (!jme->mii_if.phy_id) { in jme_init_one()
[all …]
A Dkorina.c371 struct mii_if_info mii_if; member
892 if (lp->mii_if.full_duplex) in korina_check_media()
930 korina_set_carrier(&lp->mii_if); in korina_ioctl()
967 korina_set_carrier(&lp->mii_if); in netdev_set_link_ksettings()
976 return mii_link_ok(&lp->mii_if); in netdev_get_link()
1359 lp->mii_if.dev = dev; in korina_probe()
1360 lp->mii_if.mdio_read = korina_mdio_read; in korina_probe()
1361 lp->mii_if.mdio_write = korina_mdio_write; in korina_probe()
1362 lp->mii_if.phy_id = 1; in korina_probe()
1363 lp->mii_if.phy_id_mask = 0x1f; in korina_probe()
[all …]
A Djme.h405 struct mii_if_info mii_if; member
/linux/drivers/net/ethernet/dlink/
A Dsundance.c406 struct mii_if_info mii_if; member
561 np->mii_if.dev = dev; 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()
621 np->mii_if.phy_id = np->phys[0]; in sundance_probe1()
631 np->mii_if.full_duplex = 1; in sundance_probe1()
635 np->mii_if.full_duplex = 0; in sundance_probe1()
639 np->mii_if.full_duplex = 1; in sundance_probe1()
643 np->mii_if.full_duplex = 0; in sundance_probe1()
657 np->mii_if.full_duplex = 1; in sundance_probe1()
[all …]
/linux/drivers/net/ethernet/adaptec/
A Dstarfire.c737 np->mii_if.dev = dev; 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()
816 memset(&np->mii_if, 0, sizeof(np->mii_if)); in starfire_init_one()
1080 if (!np->mii_if.force_media) { in check_duplex()
1086 if (np->mii_if.full_duplex) in check_duplex()
1639 np->mii_if.full_duplex = 1; in netdev_media_change()
1642 np->mii_if.full_duplex = 0; in netdev_media_change()
1645 np->mii_if.full_duplex = 1; in netdev_media_change()
1648 np->mii_if.full_duplex = 0; in netdev_media_change()
[all …]
/linux/drivers/net/ethernet/packetengines/
A Dhamachi.c645 hmp->mii_if.dev = dev; in hamachi_init_one()
646 hmp->mii_if.mdio_read = mdio_read; 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()
771 memset(&hmp->mii_if, 0, sizeof(hmp->mii_if)); in hamachi_init_one()
924 hmp->mii_if.full_duplex = 1; in hamachi_open()
[all …]
/linux/drivers/net/ethernet/dec/tulip/
A 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()
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()
447 np->mii_if.advertising); in w840_probe1()
451 np->mii_if.phy_id = np->phys[0]; in w840_probe1()
594 np->mii_if.advertising = value; in mdio_write()
[all …]
/linux/drivers/net/ethernet/sis/
A 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
1367 int phy_id = tp->mii_if.phy_id; in sis190_mii_probe_88e1111_fixup()
1393 struct mii_if_info *mii_if = &tp->mii_if; in sis190_mii_probe() local
1435 mii_if->dev = dev; in sis190_mii_probe()
1436 mii_if->mdio_read = __mdio_read; in sis190_mii_probe()
1437 mii_if->mdio_write = __mdio_write; in sis190_mii_probe()
1438 mii_if->phy_id_mask = PHY_ID_ANY; in sis190_mii_probe()
1439 mii_if->reg_num_mask = MII_REG_ANY; in sis190_mii_probe()
[all …]
/linux/drivers/net/ethernet/smsc/
A 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()
939 if (smc->mii_if.phy_id != -1) { in smc91c92_config()
941 smc->mii_if.phy_id, j); in smc91c92_config()
1768 if (smc->mii_if.phy_id < 0) in media_check()
1775 smc->mii_if.phy_id = -1; in media_check()
[all …]
/linux/drivers/net/ethernet/amd/
A Dpcnet32.c295 struct mii_if_info mii_if; member
817 r = mii_link_ok(&lp->mii_if); in pcnet32_get_link()
1858 lp->mii_if.full_duplex = fdx; in pcnet32_probe1()
1859 lp->mii_if.phy_id_mask = 0x1f; in pcnet32_probe1()
1873 lp->mii_if.dev = dev; in pcnet32_probe1()
1960 lp->mii_if.phy_id = i; in pcnet32_probe1()
2129 if (lp->mii_if.full_duplex) { in pcnet32_open()
2234 lp->mii_if.phy_id = i; in pcnet32_open()
2798 if (i == lp->mii_if.phy_id) in pcnet32_check_otherphy()
2819 lp->mii_if.phy_id = i; in pcnet32_check_otherphy()
[all …]
A Damd8111e.c1390 mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); in amd8111e_get_link_ksettings()
1401 res = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); in amd8111e_set_link_ksettings()
1409 return mii_nway_restart(&lp->mii_if); in amd8111e_nway_reset()
1415 return mii_link_ok(&lp->mii_if); in amd8111e_get_link()
1840 lp->mii_if.dev = dev; in amd8111e_probe_one()
1841 lp->mii_if.mdio_read = amd8111e_mdio_read; in amd8111e_probe_one()
1842 lp->mii_if.mdio_write = amd8111e_mdio_write; in amd8111e_probe_one()
1843 lp->mii_if.phy_id = lp->ext_phy_addr; in amd8111e_probe_one()
A Damd8111e.h771 struct mii_if_info mii_if; member
/linux/drivers/net/ethernet/via/
A 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()
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()
1018 rp->mii_if.phy_id = phy_id; in rhine_init_one_common()
1352 if (!rp->mii_if.force_media) in rhine_check_media()
1355 if (rp->mii_if.full_duplex) in rhine_check_media()
2308 rhine_set_carrier(&rp->mii_if); in netdev_set_link_ksettings()
2325 return mii_link_ok(&rp->mii_if); in netdev_get_link()
[all …]
/linux/drivers/net/ethernet/tundra/
A Dtsi108_eth.c141 struct mii_if_info mii_if; member
302 speed = mii_speed(&data->mii_if); in tsi108_check_phy()
321 if (data->mii_if.full_duplex) { in tsi108_check_phy()
1266 data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if); in tsi108_init_phy()
1501 mii_ethtool_get_link_ksettings(&data->mii_if, cmd); in tsi108_get_link_ksettings()
1589 data->mii_if.dev = dev; in tsi108_init_one()
1590 data->mii_if.mdio_read = tsi108_mdio_read; in tsi108_init_one()
1591 data->mii_if.mdio_write = tsi108_mdio_write; in tsi108_init_one()
1592 data->mii_if.phy_id = einfo->phy; in tsi108_init_one()
1593 data->mii_if.phy_id_mask = 0x1f; in tsi108_init_one()
[all …]
/linux/drivers/net/ethernet/realtek/
A D8139cp.c352 struct mii_if_info mii_if; member
1202 mii_check_media(&cp->mii_if, netif_msg_link(cp), true); in cp_open()
1421 mii_ethtool_get_link_ksettings(&cp->mii_if, cmd); in cp_get_link_ksettings()
1435 rc = mii_ethtool_set_link_ksettings(&cp->mii_if, cmd); in cp_set_link_ksettings()
1444 return mii_nway_restart(&cp->mii_if); in cp_nway_reset()
1914 cp->mii_if.dev = dev; in cp_init_one()
1915 cp->mii_if.mdio_read = mdio_read; in cp_init_one()
1916 cp->mii_if.mdio_write = mdio_write; in cp_init_one()
1917 cp->mii_if.phy_id = CP_INTERNAL_PHY; in cp_init_one()
1918 cp->mii_if.phy_id_mask = 0x1f; in cp_init_one()
[all …]
/linux/drivers/net/ethernet/broadcom/
A Db44.c2148 err = generic_mii_ioctl(&bp->mii_if, if_mii(ifr), cmd, NULL); in b44_ioctl()
2408 bp->mii_if.dev = dev; in b44_init_one()
2409 bp->mii_if.mdio_read = b44_mdio_read_mii; in b44_init_one()
2410 bp->mii_if.mdio_write = b44_mdio_write_mii; in b44_init_one()
2411 bp->mii_if.phy_id = bp->phy_addr; in b44_init_one()
2412 bp->mii_if.phy_id_mask = 0x1f; in b44_init_one()
2413 bp->mii_if.reg_num_mask = 0x1f; in b44_init_one()
A Db44.h410 struct mii_if_info mii_if; member
/linux/drivers/net/ethernet/freescale/fs_enet/
A Dfs_enet.h144 struct mii_if_info mii_if; member
/linux/drivers/net/ethernet/micrel/
A Dksz884x.c1401 struct mii_if_info mii_if; member
5947 &priv->mii_if, in netdev_set_link_ksettings()
5968 rc = mii_nway_restart(&priv->mii_if); in netdev_nway_reset()
5986 rc = mii_link_ok(&priv->mii_if); in netdev_get_link()
6630 struct net_device *dev = priv->mii_if.dev; in dev_monitor()
6717 priv->mii_if.phy_id_mask = 0x1; in netdev_init()
6718 priv->mii_if.reg_num_mask = 0x7; in netdev_init()
6719 priv->mii_if.dev = dev; in netdev_init()
6720 priv->mii_if.mdio_read = mdio_read; in netdev_init()
6721 priv->mii_if.mdio_write = mdio_write; in netdev_init()
[all …]
/linux/include/linux/
A Dmii.h46 extern int generic_mii_ioctl(struct mii_if_info *mii_if,

Completed in 97 milliseconds