Lines Matching refs:cpu_port
495 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in b53_imp_vlan_setup() argument
507 pvlan |= BIT(cpu_port); in b53_imp_vlan_setup()
516 unsigned int cpu_port; in b53_enable_port() local
523 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port()
545 b53_imp_vlan_setup(ds, cpu_port); in b53_enable_port()
1078 if (port == dev->cpu_port) { in b53_force_link()
1102 if (port == dev->cpu_port) { in b53_force_port_config()
1156 if (is5301x(dev) && port == dev->cpu_port) in b53_adjust_link()
1226 if (port != dev->cpu_port) { in b53_adjust_link()
1227 b53_force_port_config(dev, dev->cpu_port, 2000, in b53_adjust_link()
1229 b53_force_link(dev, dev->cpu_port, 1); in b53_adjust_link()
1798 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join() local
1814 if ((reg & BIT(cpu_port)) == BIT(cpu_port)) in b53_br_join()
1815 reg &= ~BIT(cpu_port); in b53_br_join()
1850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave() local
1880 if (!(reg & BIT(cpu_port))) in b53_br_leave()
1881 reg |= BIT(cpu_port); in b53_br_leave()
1885 vl->members |= BIT(port) | BIT(cpu_port); in b53_br_leave()
1886 vl->untag |= BIT(port) | BIT(cpu_port); in b53_br_leave()
2230 u8 cpu_port; member
2254 .cpu_port = B53_CPU_PORT_25,
2264 .cpu_port = B53_CPU_PORT_25,
2274 .cpu_port = B53_CPU_PORT,
2287 .cpu_port = B53_CPU_PORT,
2300 .cpu_port = B53_CPU_PORT,
2313 .cpu_port = B53_CPU_PORT,
2327 .cpu_port = B53_CPU_PORT,
2339 .cpu_port = B53_CPU_PORT,
2352 .cpu_port = B53_CPU_PORT,
2365 .cpu_port = B53_CPU_PORT,
2378 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2391 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2404 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2417 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2430 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2443 .cpu_port = B53_CPU_PORT,
2456 .cpu_port = B53_CPU_PORT,
2469 .cpu_port = B53_CPU_PORT,
2482 .cpu_port = B53_CPU_PORT,
2507 dev->cpu_port = chip->cpu_port; in b53_switch_init()
2545 dev->cpu_port = 5; in b53_switch_init()
2549 dev->num_ports = dev->cpu_port + 1; in b53_switch_init()
2550 dev->enabled_ports |= BIT(dev->cpu_port); in b53_switch_init()