Lines Matching +full:port +full:- +full:config

1 // SPDX-License-Identifier: GPL-2.0+
19 if (a->speed != b->speed || in port_conf_has_changed()
20 a->portmode != b->portmode || in port_conf_has_changed()
21 a->autoneg != b->autoneg || in port_conf_has_changed()
22 a->pause_adv != b->pause_adv || in port_conf_has_changed()
23 a->power_down != b->power_down || in port_conf_has_changed()
24 a->media != b->media) in port_conf_has_changed()
30 sparx5_phylink_mac_select_pcs(struct phylink_config *config, in sparx5_phylink_mac_select_pcs() argument
33 struct sparx5_port *port = netdev_priv(to_net_dev(config->dev)); in sparx5_phylink_mac_select_pcs() local
44 return &port->phylink_pcs; in sparx5_phylink_mac_select_pcs()
50 static void sparx5_phylink_mac_config(struct phylink_config *config, in sparx5_phylink_mac_config() argument
57 static void sparx5_phylink_mac_link_up(struct phylink_config *config, in sparx5_phylink_mac_link_up() argument
64 struct sparx5_port *port = netdev_priv(to_net_dev(config->dev)); in sparx5_phylink_mac_link_up() local
68 conf = port->conf; in sparx5_phylink_mac_link_up()
74 /* Configure the port to speed/duplex/pause */ in sparx5_phylink_mac_link_up()
75 err = sparx5_port_config(port->sparx5, port, &conf); in sparx5_phylink_mac_link_up()
77 netdev_err(port->ndev, "port config failed: %d\n", err); in sparx5_phylink_mac_link_up()
80 static void sparx5_phylink_mac_link_down(struct phylink_config *config, in sparx5_phylink_mac_link_down() argument
95 struct sparx5_port *port = sparx5_pcs_to_port(pcs); in sparx5_pcs_get_state() local
98 sparx5_get_port_status(port->sparx5, port, &status); in sparx5_pcs_get_state()
99 state->link = status.link && !status.link_down; in sparx5_pcs_get_state()
100 state->an_complete = status.an_complete; in sparx5_pcs_get_state()
101 state->speed = status.speed; in sparx5_pcs_get_state()
102 state->duplex = status.duplex; in sparx5_pcs_get_state()
103 state->pause = status.pause; in sparx5_pcs_get_state()
111 struct sparx5_port *port = sparx5_pcs_to_port(pcs); in sparx5_pcs_config() local
115 conf = port->conf; 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()
137 netdev_err(port->ndev, "port PCS config failed: %d\n", ret); in sparx5_pcs_config()