Lines Matching refs:cpu_port

499 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port)  in b53_imp_vlan_setup()  argument
511 pvlan |= BIT(cpu_port); in b53_imp_vlan_setup()
520 unsigned int cpu_port; in b53_enable_port() local
527 cpu_port = ds->ports[port].cpu_dp->index; in b53_enable_port()
547 b53_imp_vlan_setup(ds, cpu_port); in b53_enable_port()
995 if (port == dev->cpu_port) { in b53_force_link()
1018 if (port == dev->cpu_port) { in b53_force_port_config()
1071 if (is5301x(dev) && port == dev->cpu_port) in b53_adjust_link()
1140 if (port != dev->cpu_port) { in b53_adjust_link()
1141 b53_force_port_config(dev, dev->cpu_port, 2000, in b53_adjust_link()
1143 b53_force_link(dev, dev->cpu_port, 1); in b53_adjust_link()
1632 s8 cpu_port = ds->ports[port].cpu_dp->index; in b53_br_join() local
1642 if ((reg & BIT(cpu_port)) == BIT(cpu_port)) in b53_br_join()
1643 reg &= ~BIT(cpu_port); in b53_br_join()
1678 s8 cpu_port = ds->ports[port].cpu_dp->index; in b53_br_leave() local
1708 if (!(reg & BIT(cpu_port))) in b53_br_leave()
1709 reg |= BIT(cpu_port); in b53_br_leave()
1713 vl->members |= BIT(port) | BIT(cpu_port); in b53_br_leave()
1714 vl->untag |= BIT(port) | BIT(cpu_port); in b53_br_leave()
2004 u8 cpu_port; member
2026 .cpu_port = B53_CPU_PORT_25,
2035 .cpu_port = B53_CPU_PORT_25,
2044 .cpu_port = B53_CPU_PORT,
2056 .cpu_port = B53_CPU_PORT,
2068 .cpu_port = B53_CPU_PORT,
2080 .cpu_port = B53_CPU_PORT,
2093 .cpu_port = B53_CPU_PORT,
2104 .cpu_port = B53_CPU_PORT,
2116 .cpu_port = B53_CPU_PORT,
2128 .cpu_port = B53_CPU_PORT,
2140 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2152 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2164 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2176 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2188 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
2200 .cpu_port = B53_CPU_PORT,
2212 .cpu_port = B53_CPU_PORT,
2224 .cpu_port = B53_CPU_PORT,
2236 .cpu_port = B53_CPU_PORT,
2261 dev->cpu_port = chip->cpu_port; in b53_switch_init()
2298 dev->cpu_port = 5; in b53_switch_init()
2302 dev->num_ports = dev->cpu_port + 1; in b53_switch_init()
2303 dev->enabled_ports |= BIT(dev->cpu_port); in b53_switch_init()