Lines Matching refs:num_phys_ports

79 	if (mc_ports & BIT(ocelot->num_phys_ports))  in ocelot_mact_learn()
365 unsigned long all_ports = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_vlan_init()
388 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_vlan_init()
853 if (WARN_ON(src_port >= ocelot->num_phys_ports)) in ocelot_xtr_poll_frame()
1227 for (i = 0; i < ocelot->num_phys_ports; i++) { in ocelot_update_stats()
1314 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bond_mask()
1342 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bridge_fwd_mask()
1361 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_dsa_8021q_cpu_mask()
1391 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_apply_bridge_fwd_mask()
1403 mask = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_apply_bridge_fwd_mask()
1577 port = ocelot->num_phys_ports; in ocelot_port_mdb_add()
1633 port = ocelot->num_phys_ports; in ocelot_port_mdb_del()
1695 unsigned long visited = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_set_aggr_pgids()
1703 ocelot_write_rix(ocelot, GENMASK(ocelot->num_phys_ports - 1, 0), in ocelot_set_aggr_pgids()
1714 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_set_aggr_pgids()
1724 for (lag = 0; lag < ocelot->num_phys_ports; lag++) { in ocelot_set_aggr_pgids()
1735 for_each_set_bit(port, &bond_mask, ocelot->num_phys_ports) { in ocelot_set_aggr_pgids()
1758 for (port = lag; port < ocelot->num_phys_ports; port++) { in ocelot_set_aggr_pgids()
1779 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_setup_logical_port_ids()
2052 int cpu = ocelot->num_phys_ports; in ocelot_cpu_port_init()
2110 ocelot->num_phys_ports * ocelot->num_stats, in ocelot_init()
2139 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_init()
2184 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_init()
2197 u32 val = ANA_PGID_PGID_PGID(GENMASK(ocelot->num_phys_ports - 1, 0)); in ocelot_init()
2205 ocelot_rmw_rix(ocelot, ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2206 ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2208 ocelot_rmw_rix(ocelot, ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()
2209 ANA_PGID_PGID_PGID(BIT(ocelot->num_phys_ports)), in ocelot_init()