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