Searched refs:spx5 (Results 1 – 4 of 4) sorted by relevance
/drivers/net/ethernet/microchip/sparx5/ |
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()
|
D | sparx5_switchdev.c | 362 struct sparx5 *spx5; in sparx5_switchdev_event() local 365 spx5 = container_of(nb, struct sparx5, switchdev_nb); in sparx5_switchdev_event() 382 switchdev_work->sparx5 = spx5; in sparx5_switchdev_event() 506 static void sparx5_cpu_copy_ena(struct sparx5 *spx5, u16 pgid, bool enable) in sparx5_cpu_copy_ena() argument 509 ANA_AC_PGID_MISC_CFG_PGID_CPU_COPY_ENA, spx5, in sparx5_cpu_copy_ena() 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() 538 entry = sparx5_mdb_get_entry(spx5, v->addr, vid); in sparx5_handle_port_mdb_add() 540 err = sparx5_alloc_mdb_entry(spx5, v->addr, vid, &entry); in sparx5_handle_port_mdb_add() 546 mutex_lock(&spx5->mdb_lock); in sparx5_handle_port_mdb_add() [all …]
|
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()
|
D | sparx5_main.h | 343 void sparx5_pgid_clear(struct sparx5 *spx5, int pgid); 393 void sparx5_pgid_init(struct sparx5 *spx5); 394 int sparx5_pgid_alloc_glag(struct sparx5 *spx5, u16 *idx); 395 int sparx5_pgid_alloc_mcast(struct sparx5 *spx5, u16 *idx); 396 int sparx5_pgid_free(struct sparx5 *spx5, u16 idx);
|