Lines Matching refs:cpu_port
498 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in b53_imp_vlan_setup() argument
510 pvlan |= BIT(cpu_port); in b53_imp_vlan_setup()
565 unsigned int cpu_port; in b53_enable_port() local
572 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port()
596 b53_imp_vlan_setup(ds, cpu_port); in b53_enable_port()
1225 if (is5301x(dev) && port == dev->cpu_port) in b53_adjust_link()
1295 if (port != dev->cpu_port) { in b53_adjust_link()
1296 b53_force_port_config(dev, dev->cpu_port, 2000, in b53_adjust_link()
1298 b53_force_link(dev, dev->cpu_port, 1); in b53_adjust_link()
1853 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join() local
1869 if ((reg & BIT(cpu_port)) == BIT(cpu_port)) in b53_br_join()
1870 reg &= ~BIT(cpu_port); in b53_br_join()
1905 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave() local
1935 if (!(reg & BIT(cpu_port))) in b53_br_leave()
1936 reg |= BIT(cpu_port); in b53_br_leave()
1940 vl->members |= BIT(port) | BIT(cpu_port); in b53_br_leave()
1941 vl->untag |= BIT(port) | BIT(cpu_port); in b53_br_leave()
2284 u8 cpu_port; member
2309 .cpu_port = B53_CPU_PORT_25,
2320 .cpu_port = B53_CPU_PORT_25,
2331 .cpu_port = B53_CPU_PORT,
2345 .cpu_port = B53_CPU_PORT,
2359 .cpu_port = B53_CPU_PORT,
2373 .cpu_port = B53_CPU_PORT,
2388 .cpu_port = B53_CPU_PORT,
2401 .cpu_port = B53_CPU_PORT,
2415 .cpu_port = B53_CPU_PORT,
2429 .cpu_port = B53_CPU_PORT,
2443 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2457 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2471 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2485 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2499 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2513 .cpu_port = B53_CPU_PORT,
2527 .cpu_port = B53_CPU_PORT,
2542 .cpu_port = 8, /* TODO: ports 4, 5, 8 */
2556 .cpu_port = B53_CPU_PORT,
2570 .cpu_port = B53_CPU_PORT,
2596 dev->cpu_port = chip->cpu_port; in b53_switch_init()
2634 dev->cpu_port = 5; in b53_switch_init()
2637 dev->enabled_ports |= BIT(dev->cpu_port); in b53_switch_init()