Lines Matching refs:spx5_port
261 struct sparx5_port *spx5_port; in sparx5_create_port() local
272 spx5_port = netdev_priv(ndev); in sparx5_create_port()
273 spx5_port->of_node = config->node; in sparx5_create_port()
274 spx5_port->serdes = config->serdes; in sparx5_create_port()
275 spx5_port->pvid = NULL_VID; in sparx5_create_port()
276 spx5_port->signd_internal = true; in sparx5_create_port()
277 spx5_port->signd_active_high = true; in sparx5_create_port()
278 spx5_port->signd_enable = true; in sparx5_create_port()
279 spx5_port->max_vlan_tags = SPX5_PORT_MAX_TAGS_NONE; in sparx5_create_port()
280 spx5_port->vlan_type = SPX5_VLAN_PORT_TYPE_UNAWARE; in sparx5_create_port()
281 spx5_port->custom_etype = 0x8880; /* Vitesse */ in sparx5_create_port()
282 spx5_port->phylink_pcs.poll = true; in sparx5_create_port()
283 spx5_port->phylink_pcs.ops = &sparx5_phylink_pcs_ops; in sparx5_create_port()
284 spx5_port->phylink_pcs.neg_mode = true; in sparx5_create_port()
285 spx5_port->is_mrouter = false; in sparx5_create_port()
286 INIT_LIST_HEAD(&spx5_port->tc_templates); in sparx5_create_port()
287 sparx5->ports[config->portno] = spx5_port; in sparx5_create_port()
289 err = sparx5_port_init(sparx5, spx5_port, &config->conf); in sparx5_create_port()
294 spx5_port->conf = config->conf; in sparx5_create_port()
297 sparx5_vlan_port_setup(sparx5, spx5_port->portno); in sparx5_create_port()
300 spx5_port->phylink_config.dev = &spx5_port->ndev->dev; in sparx5_create_port()
301 spx5_port->phylink_config.type = PHYLINK_NETDEV; in sparx5_create_port()
302 spx5_port->phylink_config.mac_capabilities = MAC_ASYM_PAUSE | in sparx5_create_port()
307 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
309 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
311 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
313 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
315 if (spx5_port->conf.bandwidth == SPEED_5000 || in sparx5_create_port()
316 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_10000 || in sparx5_create_port()
322 spx5_port->conf.bandwidth == SPEED_25000) in sparx5_create_port()
324 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
326 if (spx5_port->conf.bandwidth == SPEED_25000) in sparx5_create_port()
328 spx5_port->phylink_config.supported_interfaces); in sparx5_create_port()
330 phylink = phylink_create(&spx5_port->phylink_config, in sparx5_create_port()
337 spx5_port->phylink = phylink; in sparx5_create_port()