Lines Matching refs:salve

469 	struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev);  in am65_cpsw_get_pauseparam()  local
472 pause->rx_pause = salve->rx_pause ? true : false; in am65_cpsw_get_pauseparam()
473 pause->tx_pause = salve->tx_pause ? true : false; in am65_cpsw_get_pauseparam()
479 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_set_pauseparam() local
481 if (!salve->phy) in am65_cpsw_set_pauseparam()
484 if (!phy_validate_pause(salve->phy, pause)) in am65_cpsw_set_pauseparam()
487 salve->rx_pause = pause->rx_pause ? true : false; in am65_cpsw_set_pauseparam()
488 salve->tx_pause = pause->tx_pause ? true : false; in am65_cpsw_set_pauseparam()
490 phy_set_asym_pause(salve->phy, salve->rx_pause, salve->tx_pause); in am65_cpsw_set_pauseparam()
498 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_get_wol() local
503 if (salve->phy) in am65_cpsw_get_wol()
504 phy_ethtool_get_wol(salve->phy, wol); in am65_cpsw_get_wol()
510 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_set_wol() local
512 if (!salve->phy) in am65_cpsw_set_wol()
515 return phy_ethtool_set_wol(salve->phy, wol); in am65_cpsw_set_wol()
521 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_get_link_ksettings() local
523 if (!salve->phy) in am65_cpsw_get_link_ksettings()
526 phy_ethtool_ksettings_get(salve->phy, ecmd); in am65_cpsw_get_link_ksettings()
534 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_set_link_ksettings() local
536 if (!salve->phy || phy_is_pseudo_fixed_link(salve->phy)) in am65_cpsw_set_link_ksettings()
539 return phy_ethtool_ksettings_set(salve->phy, ecmd); in am65_cpsw_set_link_ksettings()
544 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_get_eee() local
546 if (!salve->phy || phy_is_pseudo_fixed_link(salve->phy)) in am65_cpsw_get_eee()
549 return phy_ethtool_get_eee(salve->phy, edata); in am65_cpsw_get_eee()
554 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_set_eee() local
556 if (!salve->phy || phy_is_pseudo_fixed_link(salve->phy)) in am65_cpsw_set_eee()
559 return phy_ethtool_set_eee(salve->phy, edata); in am65_cpsw_set_eee()
564 struct am65_cpsw_slave_data *salve = am65_ndev_to_slave(ndev); in am65_cpsw_nway_reset() local
566 if (!salve->phy || phy_is_pseudo_fixed_link(salve->phy)) in am65_cpsw_nway_reset()
569 return phy_restart_aneg(salve->phy); in am65_cpsw_nway_reset()