Lines Matching full:conf
65 struct sparx5_port_config conf; in sparx5_phylink_mac_link_up() local
68 conf = port->conf; in sparx5_phylink_mac_link_up()
69 conf.duplex = duplex; in sparx5_phylink_mac_link_up()
70 conf.pause = 0; in sparx5_phylink_mac_link_up()
71 conf.pause |= tx_pause ? MLO_PAUSE_TX : 0; in sparx5_phylink_mac_link_up()
72 conf.pause |= rx_pause ? MLO_PAUSE_RX : 0; in sparx5_phylink_mac_link_up()
73 conf.speed = speed; in sparx5_phylink_mac_link_up()
75 err = sparx5_port_config(port->sparx5, port, &conf); in sparx5_phylink_mac_link_up()
112 struct sparx5_port_config conf; in sparx5_pcs_config() local
115 conf = port->conf; in sparx5_pcs_config()
116 conf.power_down = false; in sparx5_pcs_config()
117 conf.portmode = interface; in sparx5_pcs_config()
118 conf.inband = neg_mode == PHYLINK_PCS_NEG_INBAND_DISABLED || in sparx5_pcs_config()
120 conf.autoneg = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in sparx5_pcs_config()
121 conf.pause_adv = 0; in sparx5_pcs_config()
123 conf.pause_adv |= ADVERTISE_1000XPAUSE; in sparx5_pcs_config()
125 conf.pause_adv |= ADVERTISE_1000XPSE_ASYM; in sparx5_pcs_config()
128 conf.media = PHY_MEDIA_SR; in sparx5_pcs_config()
130 conf.media = PHY_MEDIA_DAC; in sparx5_pcs_config()
132 if (!port_conf_has_changed(&port->conf, &conf)) in sparx5_pcs_config()
135 ret = sparx5_port_pcs_set(port->sparx5, port, &conf); in sparx5_pcs_config()