Lines Matching refs:conf
46 if (port->conf.bandwidth == SPEED_5000) in sparx5_phylink_validate()
48 if (port->conf.bandwidth == SPEED_10000) { in sparx5_phylink_validate()
57 if (port->conf.bandwidth == SPEED_25000) { in sparx5_phylink_validate()
117 struct sparx5_port_config conf; in sparx5_phylink_mac_link_up() local
120 conf = port->conf; in sparx5_phylink_mac_link_up()
121 conf.duplex = duplex; in sparx5_phylink_mac_link_up()
122 conf.pause = 0; in sparx5_phylink_mac_link_up()
123 conf.pause |= tx_pause ? MLO_PAUSE_TX : 0; in sparx5_phylink_mac_link_up()
124 conf.pause |= rx_pause ? MLO_PAUSE_RX : 0; in sparx5_phylink_mac_link_up()
125 conf.speed = speed; in sparx5_phylink_mac_link_up()
127 err = sparx5_port_config(port->sparx5, port, &conf); in sparx5_phylink_mac_link_up()
165 struct sparx5_port_config conf; in sparx5_pcs_config() local
168 conf = port->conf; in sparx5_pcs_config()
169 conf.power_down = false; in sparx5_pcs_config()
170 conf.portmode = interface; in sparx5_pcs_config()
171 conf.inband = phylink_autoneg_inband(mode); in sparx5_pcs_config()
172 conf.autoneg = phylink_test(advertising, Autoneg); in sparx5_pcs_config()
173 conf.pause_adv = 0; in sparx5_pcs_config()
175 conf.pause_adv |= ADVERTISE_1000XPAUSE; in sparx5_pcs_config()
177 conf.pause_adv |= ADVERTISE_1000XPSE_ASYM; in sparx5_pcs_config()
180 conf.media = PHY_MEDIA_SR; in sparx5_pcs_config()
182 conf.media = PHY_MEDIA_DAC; in sparx5_pcs_config()
184 if (!port_conf_has_changed(&port->conf, &conf)) in sparx5_pcs_config()
187 ret = sparx5_port_pcs_set(port->sparx5, port, &conf); in sparx5_pcs_config()