Lines Matching refs:port_index
516 int chip_index, int port_index, in dsa_of_setup_routing_table() argument
552 cd->rtable[link_sw_addr] = port_index; in dsa_of_setup_routing_table()
560 int port_index; in dsa_of_free_platform_data() local
563 port_index = 0; in dsa_of_free_platform_data()
564 while (port_index < DSA_MAX_PORTS) { in dsa_of_free_platform_data()
565 kfree(pd->chip[i].port_names[port_index]); in dsa_of_free_platform_data()
566 port_index++; in dsa_of_free_platform_data()
582 int chip_index, port_index; in dsa_of_probe() local
644 port_index = be32_to_cpup(port_reg); in dsa_of_probe()
650 cd->port_dn[port_index] = port; in dsa_of_probe()
652 cd->port_names[port_index] = kstrdup(port_name, in dsa_of_probe()
654 if (!cd->port_names[port_index]) { in dsa_of_probe()
664 chip_index, port_index, link); in dsa_of_probe()
669 if (port_index == DSA_MAX_PORTS) in dsa_of_probe()