Searched refs:spx5 (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_pgid.c | 4 void sparx5_pgid_init(struct sparx5 *spx5) in sparx5_pgid_init() argument 9 spx5->pgid_map[i] = SPX5_PGID_FREE; in sparx5_pgid_init() 15 spx5->pgid_map[i] = SPX5_PGID_RESERVED; in sparx5_pgid_init() 18 int sparx5_pgid_alloc_mcast(struct sparx5 *spx5, u16 *idx) in sparx5_pgid_alloc_mcast() argument 26 if (spx5->pgid_map[i] == SPX5_PGID_FREE) { in sparx5_pgid_alloc_mcast() 27 spx5->pgid_map[i] = SPX5_PGID_MULTICAST; in sparx5_pgid_alloc_mcast() 36 int sparx5_pgid_free(struct sparx5 *spx5, u16 idx) in sparx5_pgid_free() argument 41 if (spx5->pgid_map[idx] == SPX5_PGID_FREE) in sparx5_pgid_free() 44 spx5->pgid_map[idx] = SPX5_PGID_FREE; in sparx5_pgid_free()
|
H A D | sparx5_switchdev.c | 362 struct sparx5 *spx5; in sparx5_switchdev_event() local 382 switchdev_work->sparx5 = spx5; in sparx5_switchdev_event() 518 struct sparx5 *spx5 = port->sparx5; in sparx5_handle_port_mdb_add() local 532 if (!br_vlan_enabled(spx5->hw_bridge_dev)) in sparx5_handle_port_mdb_add() 546 mutex_lock(&spx5->mdb_lock); in sparx5_handle_port_mdb_add() 551 if (spx5->ports[i] && spx5->ports[i]->is_mrouter) in sparx5_handle_port_mdb_add() 552 sparx5_pgid_update_mask(spx5->ports[i], in sparx5_handle_port_mdb_add() 563 mutex_unlock(&spx5->mdb_lock); in sparx5_handle_port_mdb_add() 575 struct sparx5 *spx5 = port->sparx5; in sparx5_handle_port_mdb_del() local 594 mutex_lock(&spx5->mdb_lock); in sparx5_handle_port_mdb_del() [all …]
|
H A D | sparx5_vlan.c | 141 void sparx5_pgid_clear(struct sparx5 *spx5, int pgid) in sparx5_pgid_clear() argument 143 spx5_wr(0, spx5, ANA_AC_PGID_CFG(pgid)); in sparx5_pgid_clear() 144 spx5_wr(0, spx5, ANA_AC_PGID_CFG1(pgid)); in sparx5_pgid_clear() 145 spx5_wr(0, spx5, ANA_AC_PGID_CFG2(pgid)); in sparx5_pgid_clear() 148 void sparx5_pgid_read_mask(struct sparx5 *spx5, int pgid, u32 portmask[3]) in sparx5_pgid_read_mask() argument 150 portmask[0] = spx5_rd(spx5, ANA_AC_PGID_CFG(pgid)); in sparx5_pgid_read_mask() 151 portmask[1] = spx5_rd(spx5, ANA_AC_PGID_CFG1(pgid)); in sparx5_pgid_read_mask() 152 portmask[2] = spx5_rd(spx5, ANA_AC_PGID_CFG2(pgid)); in sparx5_pgid_read_mask()
|
H A D | sparx5_main.h | 349 void sparx5_pgid_clear(struct sparx5 *spx5, int pgid); 417 void sparx5_pgid_init(struct sparx5 *spx5); 418 int sparx5_pgid_alloc_mcast(struct sparx5 *spx5, u16 *idx); 419 int sparx5_pgid_free(struct sparx5 *spx5, u16 idx);
|