Lines Matching refs:port_index
594 int chip_index, int port_index, in dsa_of_setup_routing_table() argument
630 cd->rtable[link_sw_addr] = port_index; in dsa_of_setup_routing_table()
637 int chip_index, int port_index, in dsa_of_probe_links() argument
652 port_index, link); in dsa_of_probe_links()
663 int port_index; in dsa_of_free_platform_data() local
666 port_index = 0; in dsa_of_free_platform_data()
667 while (port_index < DSA_MAX_PORTS) { in dsa_of_free_platform_data()
668 kfree(pd->chip[i].port_names[port_index]); in dsa_of_free_platform_data()
669 port_index++; in dsa_of_free_platform_data()
689 int chip_index, port_index; in dsa_of_probe() local
775 port_index = be32_to_cpup(port_reg); in dsa_of_probe()
776 if (port_index >= DSA_MAX_PORTS) in dsa_of_probe()
783 cd->port_dn[port_index] = port; in dsa_of_probe()
785 cd->port_names[port_index] = kstrdup(port_name, in dsa_of_probe()
787 if (!cd->port_names[port_index]) { in dsa_of_probe()
793 port_index, port, port_name); in dsa_of_probe()