Lines Matching refs:cpu_dp

394 	struct dsa_port *cpu_dp;  in dsa_tree_find_first_master()  local
396 cpu_dp = dsa_tree_find_first_cpu(dst); in dsa_tree_find_first_master()
397 ethernet = of_parse_phandle(cpu_dp->dn, "ethernet", 0); in dsa_tree_find_first_master()
409 struct dsa_port *cpu_dp, *dp; in dsa_tree_setup_default_cpu() local
411 cpu_dp = dsa_tree_find_first_cpu(dst); in dsa_tree_setup_default_cpu()
412 if (!cpu_dp) { in dsa_tree_setup_default_cpu()
418 if (dp->cpu_dp) in dsa_tree_setup_default_cpu()
422 dp->cpu_dp = cpu_dp; in dsa_tree_setup_default_cpu()
435 struct dsa_port *cpu_dp, *dp; in dsa_tree_setup_cpu_ports() local
437 list_for_each_entry(cpu_dp, &dst->ports, list) { in dsa_tree_setup_cpu_ports()
438 if (!dsa_port_is_cpu(cpu_dp)) in dsa_tree_setup_cpu_ports()
442 dsa_switch_for_each_port(dp, cpu_dp->ds) { in dsa_tree_setup_cpu_ports()
444 if (dp->cpu_dp) in dsa_tree_setup_cpu_ports()
448 dp->cpu_dp = cpu_dp; in dsa_tree_setup_cpu_ports()
461 dp->cpu_dp = NULL; in dsa_tree_teardown_cpu_ports()
1057 struct dsa_port *cpu_dp; in dsa_tree_setup_master() local
1062 dsa_tree_for_each_cpu_port(cpu_dp, dst) { in dsa_tree_setup_master()
1063 struct net_device *master = cpu_dp->master; in dsa_tree_setup_master()
1067 err = dsa_master_setup(master, cpu_dp); in dsa_tree_setup_master()
1084 struct dsa_port *cpu_dp; in dsa_tree_teardown_master() local
1088 dsa_tree_for_each_cpu_port(cpu_dp, dst) { in dsa_tree_teardown_master()
1089 struct net_device *master = cpu_dp->master; in dsa_tree_teardown_master()
1294 struct dsa_port *cpu_dp = master->dsa_ptr; in dsa_tree_master_state_change() local
1297 info.operational = dsa_port_master_is_operational(cpu_dp); in dsa_tree_master_state_change()
1306 struct dsa_port *cpu_dp = master->dsa_ptr; in dsa_tree_master_admin_state_change() local
1315 if ((dsa_port_master_is_operational(cpu_dp)) != in dsa_tree_master_admin_state_change()
1316 (up && cpu_dp->master_oper_up)) in dsa_tree_master_admin_state_change()
1319 cpu_dp->master_admin_up = up; in dsa_tree_master_admin_state_change()
1329 struct dsa_port *cpu_dp = master->dsa_ptr; in dsa_tree_master_oper_state_change() local
1338 if ((dsa_port_master_is_operational(cpu_dp)) != in dsa_tree_master_oper_state_change()
1339 (cpu_dp->master_admin_up && up)) in dsa_tree_master_oper_state_change()
1342 cpu_dp->master_oper_up = up; in dsa_tree_master_oper_state_change()