Home
last modified time | relevance | path

Searched refs:SPX5_PORTS (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vlan.c15 bitmap_to_arr32(mask, sparx5->vlan_mask[vid], SPX5_PORTS); in sparx5_vlant_set_mask()
132 } else if (port->portno < SPX5_PORTS) { in sparx5_pgid_update_mask()
157 DECLARE_BITMAP(workmask, SPX5_PORTS); in sparx5_update_fwd()
162 bitmap_to_arr32(mask, sparx5->bridge_fwd_mask, SPX5_PORTS); in sparx5_update_fwd()
172 for (port = 0; port < SPX5_PORTS; port++) { in sparx5_update_fwd()
175 bitmap_copy(workmask, sparx5->bridge_fwd_mask, SPX5_PORTS); in sparx5_update_fwd()
177 bitmap_to_arr32(mask, workmask, SPX5_PORTS); in sparx5_update_fwd()
190 sparx5->bridge_lrn_mask, SPX5_PORTS); in sparx5_update_fwd()
191 bitmap_to_arr32(mask, workmask, SPX5_PORTS); in sparx5_update_fwd()
H A Dsparx5_main.h51 #define SPX5_PORTS 65 macro
52 #define SPX5_PORT_CPU (SPX5_PORTS) /* Next port is CPU port */
60 #define PGID_BASE SPX5_PORTS /* Starts after port PGIDs */
223 DECLARE_BITMAP(port_mask, SPX5_PORTS);
243 struct sparx5_port *ports[SPX5_PORTS];
263 DECLARE_BITMAP(bridge_mask, SPX5_PORTS);
264 DECLARE_BITMAP(bridge_fwd_mask, SPX5_PORTS);
265 DECLARE_BITMAP(bridge_lrn_mask, SPX5_PORTS);
266 DECLARE_BITMAP(vlan_mask[VLAN_N_VID], SPX5_PORTS);
H A Dsparx5_netdev.c293 for (portno = 0; portno < SPX5_PORTS; portno++) in sparx5_register_netdevs()
312 for (portno = 0; portno < SPX5_PORTS; portno++) { in sparx5_destroy_netdevs()
330 for (portno = 0; portno < SPX5_PORTS; portno++) in sparx5_unregister_netdevs()
H A Dsparx5_dcb.c22 } *sparx5_port_apptrust[SPX5_PORTS];
240 for (i = 0; i < SPX5_PORTS; i++) { in sparx5_dcb_ieee_dscp_setdel()
389 for (i = 0; i < SPX5_PORTS; i++) { in sparx5_dcb_init()
H A Dsparx5_mactable.c85 if (pgid < SPX5_PORTS) { in sparx5_mact_learn()
91 addr = pgid - SPX5_PORTS; in sparx5_mact_learn()
374 if (port >= SPX5_PORTS) in sparx5_mact_handle_entry()
H A Dsparx5_switchdev.c173 if (bitmap_empty(sparx5->bridge_mask, SPX5_PORTS)) in sparx5_port_bridge_join()
213 if (bitmap_empty(sparx5->bridge_mask, SPX5_PORTS)) in sparx5_port_bridge_leave()
550 for (i = 0; i < SPX5_PORTS; i++) in sparx5_handle_port_mdb_add()
607 if (bitmap_empty(entry->port_mask, SPX5_PORTS) && !entry->cpu_copy) { in sparx5_handle_port_mdb_del()
H A Dsparx5_vcap_impl.c825 if (field && field->width == SPX5_PORTS) in sparx5_vcap_ingress_add_default_fields()
1807 for (portno = 0; portno < SPX5_PORTS; ++portno) { in sparx5_vcap_is0_port_key_selection()
1832 for (portno = 0; portno < SPX5_PORTS; ++portno) { in sparx5_vcap_is2_port_key_selection()
1838 for (portno = 0; portno < SPX5_PORTS; ++portno) in sparx5_vcap_is2_port_key_selection()
1853 for (portno = 0; portno < SPX5_PORTS; ++portno) in sparx5_vcap_es0_port_key_selection()
1872 for (portno = 0; portno < SPX5_PORTS; ++portno) in sparx5_vcap_es2_port_key_selection()
1909 for (portno = 0; portno < SPX5_PORTS; ++portno) in sparx5_vcap_port_key_deselection()
1916 for (portno = 0; portno < SPX5_PORTS; ++portno) in sparx5_vcap_port_key_deselection()
1928 for (portno = 0; portno < SPX5_PORTS; ++portno) in sparx5_vcap_port_key_deselection()
2088 for (idx = 0; idx < SPX5_PORTS; ++idx) in sparx5_vcap_init()
H A Dsparx5_calendar.c134 if (portno >= SPX5_PORTS) { in sparx5_get_port_cal_speed()
185 if (portno < SPX5_PORTS) in sparx5_config_auto_calendar()
H A Dsparx5_ptp.c633 for (i = 0; i < SPX5_PORTS; i++) { in sparx5_ptp_init()
649 for (i = 0; i < SPX5_PORTS; i++) { in sparx5_ptp_deinit()
H A Dsparx5_fdma.c233 port = fi.src_port < SPX5_PORTS ? sparx5->ports[fi.src_port] : NULL; in sparx5_fdma_rx_get_frame()
446 for (idx = 0; idx < SPX5_PORTS; ++idx) { in sparx5_fdma_rx_init()
H A Dsparx5_main.c588 for (idx = 0; idx < SPX5_PORTS; idx++) in sparx5_board_init()
612 for (idx = SPX5_PORTS; idx < SPX5_PORTS_ALL; idx++) in sparx5_start()
H A Dsparx5_packet.c78 port = fi.src_port < SPX5_PORTS ? in sparx5_xtr_grp()
H A Dsparx5_ethtool.c1126 for (idx = 0; idx < SPX5_PORTS; idx++) in sparx5_update_stats()
1249 for (portno = 0; portno < SPX5_PORTS; portno++) in sparx_stats_init()