Lines Matching refs:num_phys_ports

83 	if (mc_ports & BIT(ocelot->num_phys_ports))  in __ocelot_mact_learn()
230 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_single_vlan_aware_bridge()
391 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_bridge_num_find()
690 unsigned long all_ports = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_vlan_init()
713 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_vlan_init()
1015 if (WARN_ON(src_port >= ocelot->num_phys_ports)) in ocelot_xtr_poll_frame()
1376 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bond_mask()
1419 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_dsa_8021q_cpu_assigned_ports()
1467 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bridge_fwd_mask()
1498 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_apply_bridge_fwd_mask()
1557 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_update_pgid_cpu()
1567 pgid_cpu = BIT(ocelot->num_phys_ports); in ocelot_update_pgid_cpu()
1928 unsigned long visited = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_set_aggr_pgids()
1936 ocelot_write_rix(ocelot, GENMASK(ocelot->num_phys_ports - 1, 0), in ocelot_set_aggr_pgids()
1947 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_set_aggr_pgids()
1957 for (lag = 0; lag < ocelot->num_phys_ports; lag++) { in ocelot_set_aggr_pgids()
1968 for_each_set_bit(port, &bond_mask, ocelot->num_phys_ports) { in ocelot_set_aggr_pgids()
1995 for (port = lag; port < ocelot->num_phys_ports; port++) { in ocelot_set_aggr_pgids()
2016 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_setup_logical_port_ids()
2674 int cpu = ocelot->num_phys_ports; in ocelot_cpu_port_init()
2761 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_init()
2806 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_init()
2819 u32 val = ANA_PGID_PGID_PGID(GENMASK(ocelot->num_phys_ports - 1, 0)); in ocelot_init()
2827 ocelot_rmw_rix(ocelot, ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2828 ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2830 ocelot_rmw_rix(ocelot, ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2831 ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()