Lines Matching refs:spx5
317 struct sparx5 *spx5; in sparx5_switchdev_event() local
320 spx5 = container_of(nb, struct sparx5, switchdev_nb); in sparx5_switchdev_event()
337 switchdev_work->sparx5 = spx5; in sparx5_switchdev_event()
394 struct sparx5 *spx5 = port->sparx5; in sparx5_handle_port_mdb_add() local
403 sparx5_mact_learn(spx5, PGID_CPU, v->addr, v->vid); in sparx5_handle_port_mdb_add()
410 if (!br_vlan_enabled(spx5->hw_bridge_dev)) in sparx5_handle_port_mdb_add()
415 res = sparx5_mact_find(spx5, v->addr, vid, &mact_entry); in sparx5_handle_port_mdb_add()
424 err = sparx5_pgid_alloc_mcast(spx5, &pgid_idx); in sparx5_handle_port_mdb_add()
430 err = sparx5_mact_learn(spx5, pgid_idx, v->addr, vid); in sparx5_handle_port_mdb_add()
442 struct sparx5 *spx5, in sparx5_mdb_del_entry() argument
449 err = sparx5_mact_forget(spx5, mac, vid); in sparx5_mdb_del_entry()
454 err = sparx5_pgid_free(spx5, pgid_idx); in sparx5_mdb_del_entry()
467 struct sparx5 *spx5 = port->sparx5; in sparx5_handle_port_mdb_del() local
476 sparx5_mact_forget(spx5, v->addr, v->vid); in sparx5_handle_port_mdb_del()
480 if (!br_vlan_enabled(spx5->hw_bridge_dev)) in sparx5_handle_port_mdb_del()
485 res = sparx5_mact_find(spx5, v->addr, vid, &mact_entry); in sparx5_handle_port_mdb_del()
494 sparx5_pgid_read_mask(spx5, pgid_idx, pgid_entry); in sparx5_handle_port_mdb_del()
497 err = sparx5_mdb_del_entry(dev, spx5, v->addr, vid, pgid_idx); in sparx5_handle_port_mdb_del()