Lines Matching refs:spx5_port
258 struct sparx5_port *spx5_port; in sparx5_create_port() local
269 spx5_port = netdev_priv(ndev); in sparx5_create_port()
270 spx5_port->of_node = config->node; in sparx5_create_port()
271 spx5_port->serdes = config->serdes; in sparx5_create_port()
272 spx5_port->pvid = NULL_VID; in sparx5_create_port()
273 spx5_port->signd_internal = true; in sparx5_create_port()
274 spx5_port->signd_active_high = true; in sparx5_create_port()
275 spx5_port->signd_enable = true; in sparx5_create_port()
276 spx5_port->max_vlan_tags = SPX5_PORT_MAX_TAGS_NONE; in sparx5_create_port()
277 spx5_port->vlan_type = SPX5_VLAN_PORT_TYPE_UNAWARE; in sparx5_create_port()
278 spx5_port->custom_etype = 0x8880; /* Vitesse */ in sparx5_create_port()
279 spx5_port->phylink_pcs.poll = true; in sparx5_create_port()
280 spx5_port->phylink_pcs.ops = &sparx5_phylink_pcs_ops; in sparx5_create_port()
281 spx5_port->is_mrouter = false; in sparx5_create_port()
282 sparx5->ports[config->portno] = spx5_port; in sparx5_create_port()
284 err = sparx5_port_init(sparx5, spx5_port, &config->conf); in sparx5_create_port()
289 spx5_port->conf = config->conf; in sparx5_create_port()
292 sparx5_vlan_port_setup(sparx5, spx5_port->portno); in sparx5_create_port()
295 spx5_port->phylink_config.dev = &spx5_port->ndev->dev; in sparx5_create_port()
296 spx5_port->phylink_config.type = PHYLINK_NETDEV; in sparx5_create_port()
297 spx5_port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in sparx5_create_port()
302 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
304 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
306 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
308 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
310 if (spx5_port->conf.bandwidth == SPEED_5000 || in sparx5_create_port()
311 spx5_port->conf.bandwidth == SPEED_10000 || in sparx5_create_port()
312 spx5_port->conf.bandwidth == SPEED_25000) in sparx5_create_port()
314 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
316 if (spx5_port->conf.bandwidth == SPEED_10000 || in sparx5_create_port()
317 spx5_port->conf.bandwidth == SPEED_25000) in sparx5_create_port()
319 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
321 if (spx5_port->conf.bandwidth == SPEED_25000) in sparx5_create_port()
323 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
325 phylink = phylink_create(&spx5_port->phylink_config, in sparx5_create_port()
332 spx5_port->phylink = phylink; in sparx5_create_port()