Lines Matching refs:portno
58 void sparx5_set_port_ifh(void *ifh_hdr, u16 portno) in sparx5_set_port_ifh() argument
65 ifh_encode_bitfield(ifh_hdr, portno, 29, 8); in sparx5_set_port_ifh()
163 if (!test_bit(port->portno, sparx5->bridge_mask)) in sparx5_set_rx_mode()
173 ret = snprintf(buf, len, "p%d", port->portno); in sparx5_port_get_phys_port_name()
250 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno) in sparx5_create_netdev() argument
267 spx5_port->portno = portno; in sparx5_create_netdev()
272 eth_hw_addr_gen(ndev, sparx5->base_mac, portno + 1); in sparx5_create_netdev()
279 int portno; in sparx5_register_netdevs() local
282 for (portno = 0; portno < SPX5_PORTS; portno++) in sparx5_register_netdevs()
283 if (sparx5->ports[portno]) { in sparx5_register_netdevs()
284 err = register_netdev(sparx5->ports[portno]->ndev); in sparx5_register_netdevs()
288 portno); in sparx5_register_netdevs()
291 sparx5_port_inj_timer_setup(sparx5->ports[portno]); in sparx5_register_netdevs()
299 int portno; in sparx5_destroy_netdevs() local
301 for (portno = 0; portno < SPX5_PORTS; portno++) { in sparx5_destroy_netdevs()
302 port = sparx5->ports[portno]; in sparx5_destroy_netdevs()
317 int portno; in sparx5_unregister_netdevs() local
319 for (portno = 0; portno < SPX5_PORTS; portno++) in sparx5_unregister_netdevs()
320 if (sparx5->ports[portno]) in sparx5_unregister_netdevs()
321 unregister_netdev(sparx5->ports[portno]->ndev); in sparx5_unregister_netdevs()