Lines Matching refs:num_phys_ports
87 if (mc_ports & BIT(ocelot->num_phys_ports)) in __ocelot_mact_learn()
234 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_single_vlan_aware_bridge()
395 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_bridge_num_find()
694 unsigned long all_ports = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_vlan_init()
717 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_vlan_init()
1017 if (WARN_ON(src_port >= ocelot->num_phys_ports)) in ocelot_xtr_poll_frame()
1378 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bond_mask()
1421 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_dsa_8021q_cpu_assigned_ports()
1469 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bridge_fwd_mask()
1500 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_apply_bridge_fwd_mask()
1559 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_update_pgid_cpu()
1569 pgid_cpu = BIT(ocelot->num_phys_ports); in ocelot_update_pgid_cpu()
1930 unsigned long visited = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_set_aggr_pgids()
1938 ocelot_write_rix(ocelot, GENMASK(ocelot->num_phys_ports - 1, 0), in ocelot_set_aggr_pgids()
1949 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_set_aggr_pgids()
1959 for (lag = 0; lag < ocelot->num_phys_ports; lag++) { in ocelot_set_aggr_pgids()
1970 for_each_set_bit(port, &bond_mask, ocelot->num_phys_ports) { in ocelot_set_aggr_pgids()
1997 for (port = lag; port < ocelot->num_phys_ports; port++) { in ocelot_set_aggr_pgids()
2018 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_setup_logical_port_ids()
2676 int cpu = ocelot->num_phys_ports; in ocelot_cpu_port_init()
2807 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_init()
2852 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_init()
2865 u32 val = ANA_PGID_PGID_PGID(GENMASK(ocelot->num_phys_ports - 1, 0)); in ocelot_init()
2873 ocelot_rmw_rix(ocelot, ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2874 ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2876 ocelot_rmw_rix(ocelot, ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2877 ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()