Lines Matching refs:phy_mode
279 switch (priv->phy_mode[i]) { in sja1105_init_mii_settings()
333 phy_modes(priv->phy_mode[i]), i); in sja1105_init_mii_settings()
767 port_1_is_base_tx = priv->phy_mode[1] == PHY_INTERFACE_MODE_INTERNAL; in sja1110_select_tdmaconfigidx()
768 port_3_is_2500 = priv->phy_mode[3] == PHY_INTERFACE_MODE_2500BASEX; in sja1110_select_tdmaconfigidx()
769 port_4_is_2500 = priv->phy_mode[4] == PHY_INTERFACE_MODE_2500BASEX; in sja1110_select_tdmaconfigidx()
1133 phy_interface_t phy_mode = priv->phy_mode[port]; in sja1105_parse_rgmii_delays() local
1137 if (!phy_interface_mode_is_rgmii(phy_mode)) in sja1105_parse_rgmii_delays()
1150 if (phy_mode == PHY_INTERFACE_MODE_RGMII_RXID || in sja1105_parse_rgmii_delays()
1151 phy_mode == PHY_INTERFACE_MODE_RGMII_ID) in sja1105_parse_rgmii_delays()
1154 if (phy_mode == PHY_INTERFACE_MODE_RGMII_TXID || in sja1105_parse_rgmii_delays()
1155 phy_mode == PHY_INTERFACE_MODE_RGMII_ID) in sja1105_parse_rgmii_delays()
1193 phy_interface_t phy_mode; in sja1105_parse_ports_node() local
1206 err = of_get_phy_mode(child, &phy_mode); in sja1105_parse_ports_node()
1231 priv->phy_mode[index] = phy_mode; in sja1105_parse_ports_node()
1331 if (priv->phy_mode[port] == PHY_INTERFACE_MODE_SGMII) in sja1105_adjust_port_config()
1333 else if (priv->phy_mode[port] == PHY_INTERFACE_MODE_2500BASEX) in sja1105_adjust_port_config()
1352 if (!phy_interface_mode_is_rgmii(priv->phy_mode[port])) in sja1105_adjust_port_config()
1396 phy_interface_t phy_mode; in sja1105_phylink_get_caps() local
1398 phy_mode = priv->phy_mode[port]; in sja1105_phylink_get_caps()
1399 if (phy_mode == PHY_INTERFACE_MODE_SGMII || in sja1105_phylink_get_caps()
1400 phy_mode == PHY_INTERFACE_MODE_2500BASEX) { in sja1105_phylink_get_caps()
1417 __set_bit(phy_mode, config->supported_interfaces); in sja1105_phylink_get_caps()
2387 rc = xpcs_do_config(xpcs, priv->phy_mode[i], NULL, neg_mode); in sja1105_static_config_reload()
2394 if (priv->phy_mode[i] == PHY_INTERFACE_MODE_2500BASEX) in sja1105_static_config_reload()
2403 xpcs_link_up(&xpcs->pcs, neg_mode, priv->phy_mode[i], in sja1105_static_config_reload()