Lines Matching refs:phy_mii

1266 		features = gp->phy_mii.def->features;  in gem_begin_auto_negotiation()
1271 if (gp->phy_mii.advertising != 0) in gem_begin_auto_negotiation()
1272 advertise &= gp->phy_mii.advertising; in gem_begin_auto_negotiation()
1275 speed = gp->phy_mii.speed; in gem_begin_auto_negotiation()
1276 duplex = gp->phy_mii.duplex; in gem_begin_auto_negotiation()
1312 gp->phy_mii.autoneg = gp->want_autoneg = autoneg; in gem_begin_auto_negotiation()
1313 gp->phy_mii.speed = speed; in gem_begin_auto_negotiation()
1314 gp->phy_mii.duplex = duplex; in gem_begin_auto_negotiation()
1322 gp->phy_mii.def->ops->setup_aneg(&gp->phy_mii, advertise); in gem_begin_auto_negotiation()
1326 gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, speed, duplex); in gem_begin_auto_negotiation()
1349 if (gp->phy_mii.def->ops->read_link(&gp->phy_mii)) in gem_set_link_modes()
1351 full_duplex = (gp->phy_mii.duplex == DUPLEX_FULL); in gem_set_link_modes()
1352 speed = gp->phy_mii.speed; in gem_set_link_modes()
1353 pause = gp->phy_mii.pause; in gem_set_link_modes()
1455 gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, in gem_mdio_link_not_up()
1465 if (gp->phy_mii.def->magic_aneg) in gem_mdio_link_not_up()
1469 gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, SPEED_100, in gem_mdio_link_not_up()
1479 if (gp->phy_mii.speed == SPEED_100) { in gem_mdio_link_not_up()
1480 gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, SPEED_10, in gem_mdio_link_not_up()
1520 if (found_mii_phy(gp) && gp->phy_mii.def->ops->poll_link(&gp->phy_mii)) { in gem_link_timer()
1528 gp->last_forced_speed = gp->phy_mii.speed; in gem_link_timer()
1533 gp->phy_mii.def->ops->setup_aneg(&gp->phy_mii, gp->phy_mii.advertising); in gem_link_timer()
1718 sungem_phy_probe(&gp->phy_mii, gp->mii_phy_addr); in gem_init_phy()
1721 if (gp->phy_mii.def && gp->phy_mii.def->ops->init) in gem_init_phy()
1722 gp->phy_mii.def->ops->init(&gp->phy_mii); in gem_init_phy()
1737 gp->phy_mii.def ? gp->phy_mii.def->name : "no"); in gem_init_phy()
2125 if (found_mii_phy(gp) && gp->phy_mii.def->ops->suspend) in gem_stop_phy()
2126 gp->phy_mii.def->ops->suspend(&gp->phy_mii); in gem_stop_phy()
2538 if (gp->phy_mii.def) in gem_get_link_ksettings()
2539 supported = gp->phy_mii.def->features; in gem_get_link_ksettings()
2550 cmd->base.speed = gp->phy_mii.speed; in gem_get_link_ksettings()
2551 cmd->base.duplex = gp->phy_mii.duplex; in gem_get_link_ksettings()
2552 advertising = gp->phy_mii.advertising; in gem_get_link_ksettings()
2953 gp->phy_mii.dev = dev; in gem_init_one()
2954 gp->phy_mii.mdio_read = _sungem_phy_read; in gem_init_one()
2955 gp->phy_mii.mdio_write = _sungem_phy_write; in gem_init_one()
2957 gp->phy_mii.platform_data = gp->of_node; in gem_init_one()