Lines Matching refs:cpu_port

483 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port)  in b53_imp_vlan_setup()  argument
495 pvlan |= BIT(cpu_port); in b53_imp_vlan_setup()
504 unsigned int cpu_port = ds->ports[port].cpu_dp->index; in b53_enable_port() local
520 b53_imp_vlan_setup(ds, cpu_port); in b53_enable_port()
952 if (port == dev->cpu_port) { in b53_adjust_link()
986 if (is5301x(dev) && port == dev->cpu_port) in b53_adjust_link()
1054 if (port != dev->cpu_port) { in b53_adjust_link()
1055 u8 po_reg = B53_GMII_PORT_OVERRIDE_CTRL(dev->cpu_port); in b53_adjust_link()
1393 s8 cpu_port = ds->ports[port].cpu_dp->index; in b53_br_join() local
1403 if ((reg & BIT(cpu_port)) == BIT(cpu_port)) in b53_br_join()
1404 reg &= ~BIT(cpu_port); in b53_br_join()
1439 s8 cpu_port = ds->ports[port].cpu_dp->index; in b53_br_leave() local
1472 if (!(reg & BIT(cpu_port))) in b53_br_leave()
1473 reg |= BIT(cpu_port); in b53_br_leave()
1477 vl->members |= BIT(port) | BIT(cpu_port); in b53_br_leave()
1478 vl->untag |= BIT(port) | BIT(cpu_port); in b53_br_leave()
1737 u8 cpu_port; member
1759 .cpu_port = B53_CPU_PORT_25,
1768 .cpu_port = B53_CPU_PORT_25,
1777 .cpu_port = B53_CPU_PORT,
1789 .cpu_port = B53_CPU_PORT,
1801 .cpu_port = B53_CPU_PORT,
1813 .cpu_port = B53_CPU_PORT,
1826 .cpu_port = B53_CPU_PORT,
1837 .cpu_port = B53_CPU_PORT,
1849 .cpu_port = B53_CPU_PORT,
1861 .cpu_port = B53_CPU_PORT,
1873 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
1885 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
1897 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
1909 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
1921 .cpu_port = B53_CPU_PORT_25, /* TODO: auto detect */
1933 .cpu_port = B53_CPU_PORT,
1945 .cpu_port = B53_CPU_PORT,
1957 .cpu_port = B53_CPU_PORT,
1969 .cpu_port = B53_CPU_PORT,
1994 dev->cpu_port = chip->cpu_port; in b53_switch_init()
2031 dev->cpu_port = 5; in b53_switch_init()
2035 dev->num_ports = dev->cpu_port + 1; in b53_switch_init()
2036 dev->enabled_ports |= BIT(dev->cpu_port); in b53_switch_init()