Lines Matching full:conf
53 struct sparx5_port_config conf; in sparx5_phylink_mac_link_up() local
56 conf = port->conf; in sparx5_phylink_mac_link_up()
57 conf.duplex = duplex; in sparx5_phylink_mac_link_up()
58 conf.pause = 0; in sparx5_phylink_mac_link_up()
59 conf.pause |= tx_pause ? MLO_PAUSE_TX : 0; in sparx5_phylink_mac_link_up()
60 conf.pause |= rx_pause ? MLO_PAUSE_RX : 0; in sparx5_phylink_mac_link_up()
61 conf.speed = speed; in sparx5_phylink_mac_link_up()
63 err = sparx5_port_config(port->sparx5, port, &conf); in sparx5_phylink_mac_link_up()
100 struct sparx5_port_config conf; in sparx5_pcs_config() local
103 conf = port->conf; in sparx5_pcs_config()
104 conf.power_down = false; in sparx5_pcs_config()
105 conf.portmode = interface; in sparx5_pcs_config()
106 conf.inband = neg_mode == PHYLINK_PCS_NEG_INBAND_DISABLED || in sparx5_pcs_config()
108 conf.autoneg = neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED; in sparx5_pcs_config()
109 conf.pause_adv = 0; in sparx5_pcs_config()
111 conf.pause_adv |= ADVERTISE_1000XPAUSE; in sparx5_pcs_config()
113 conf.pause_adv |= ADVERTISE_1000XPSE_ASYM; in sparx5_pcs_config()
116 conf.media = PHY_MEDIA_SR; in sparx5_pcs_config()
118 conf.media = PHY_MEDIA_DAC; in sparx5_pcs_config()
120 if (!port_conf_has_changed(&port->conf, &conf)) in sparx5_pcs_config()
123 ret = sparx5_port_pcs_set(port->sparx5, port, &conf); in sparx5_pcs_config()