Lines Matching refs:portmode

96 	if (port->conf.portmode == PHY_INTERFACE_MODE_1000BASEX)  in sparx5_get_dev2g5_status()
98 else if (port->conf.portmode == PHY_INTERFACE_MODE_2500BASEX) in sparx5_get_dev2g5_status()
109 if (port->conf.portmode == PHY_INTERFACE_MODE_SGMII) { in sparx5_get_dev2g5_status()
124 bool high_speed_dev = sparx5_is_baser(port->conf.portmode); in sparx5_get_sfi_status()
147 if (port->conf.portmode == PHY_INTERFACE_MODE_5GBASER) in sparx5_get_sfi_status()
149 else if (port->conf.portmode == PHY_INTERFACE_MODE_10GBASER) in sparx5_get_sfi_status()
169 switch (port->conf.portmode) { in sparx5_get_port_status()
196 conf->speed, phy_modes(conf->portmode)); in sparx5_port_error()
201 phy_modes(conf->portmode)); in sparx5_port_error()
223 switch (conf->portmode) { in sparx5_port_verify_speed()
267 return sparx5_is_baser(port->conf.portmode) ^ in sparx5_dev_change()
268 sparx5_is_baser(conf->portmode); in sparx5_dev_change()
522 if (port->conf.portmode == conf->portmode) in sparx5_port_mux_set()
525 switch (conf->portmode) { in sparx5_port_mux_set()
674 if (conf->portmode == PHY_INTERFACE_MODE_1000BASEX) /* cl-37 aneg */ in sparx5_get_aneg_word()
684 int portmode, err, speed = conf->speed; in sparx5_serdes_set() local
686 if (conf->portmode == PHY_INTERFACE_MODE_QSGMII && in sparx5_serdes_set()
690 if (sparx5_is_baser(conf->portmode)) { in sparx5_serdes_set()
691 if (conf->portmode == PHY_INTERFACE_MODE_25GBASER) in sparx5_serdes_set()
693 else if (conf->portmode == PHY_INTERFACE_MODE_10GBASER) in sparx5_serdes_set()
716 portmode = conf->portmode; in sparx5_serdes_set()
717 if (sparx5_is_baser(conf->portmode)) in sparx5_serdes_set()
718 portmode = PHY_INTERFACE_MODE_10GBASER; in sparx5_serdes_set()
719 err = phy_set_mode_ext(port->serdes, PHY_MODE_ETHERNET, portmode); in sparx5_serdes_set()
734 if (conf->portmode == PHY_INTERFACE_MODE_SGMII || in sparx5_port_pcs_low_set()
735 conf->portmode == PHY_INTERFACE_MODE_QSGMII) in sparx5_port_pcs_low_set()
737 else if (conf->portmode == PHY_INTERFACE_MODE_1000BASEX && in sparx5_port_pcs_low_set()
790 u32 clk_spd = conf->portmode == PHY_INTERFACE_MODE_5GBASER ? 1 : 0; in sparx5_port_pcs_high_set()
805 if (conf->portmode == PHY_INTERFACE_MODE_25GBASER) { in sparx5_port_pcs_high_set()
925 bool high_speed_dev = sparx5_is_baser(conf->portmode); in sparx5_port_pcs_set()
973 bool high_speed_dev = sparx5_is_baser(conf->portmode); in sparx5_port_config()
1073 if (conf->portmode == PHY_INTERFACE_MODE_QSGMII || in sparx5_port_init()
1074 conf->portmode == PHY_INTERFACE_MODE_SGMII) { in sparx5_port_init()
1088 if (conf->portmode == PHY_INTERFACE_MODE_QSGMII) { in sparx5_port_init()
1106 if (conf->portmode == PHY_INTERFACE_MODE_NA) in sparx5_port_init()
1107 conf->portmode = PHY_INTERFACE_MODE_10GBASER; in sparx5_port_init()
1109 if (sparx5_is_baser(conf->portmode)) in sparx5_port_init()