Searched refs:mact_entry (Results 1 – 2 of 2) sorted by relevance
/linux-5.19.10/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_mactable.c | 243 struct sparx5_mact_entry *mact_entry; in alloc_mact_entry() local 245 mact_entry = devm_kzalloc(sparx5->dev, in alloc_mact_entry() 246 sizeof(*mact_entry), GFP_ATOMIC); in alloc_mact_entry() 247 if (!mact_entry) in alloc_mact_entry() 250 memcpy(mact_entry->mac, mac, ETH_ALEN); in alloc_mact_entry() 251 mact_entry->vid = vid; in alloc_mact_entry() 252 mact_entry->port = port_index; in alloc_mact_entry() 253 return mact_entry; in alloc_mact_entry() 260 struct sparx5_mact_entry *mact_entry; in find_mact_entry() local 264 list_for_each_entry(mact_entry, &sparx5->mact_entries, list) { in find_mact_entry() [all …]
|
D | sparx5_switchdev.c | 396 u32 mact_entry; in sparx5_handle_port_mdb_add() local 415 res = sparx5_mact_find(spx5, v->addr, vid, &mact_entry); in sparx5_handle_port_mdb_add() 418 pgid_idx = LRN_MAC_ACCESS_CFG_2_MAC_ENTRY_ADDR_GET(mact_entry); in sparx5_handle_port_mdb_add() 469 u32 mact_entry, res, pgid_entry[3]; in sparx5_handle_port_mdb_del() local 485 res = sparx5_mact_find(spx5, v->addr, vid, &mact_entry); in sparx5_handle_port_mdb_del() 488 pgid_idx = LRN_MAC_ACCESS_CFG_2_MAC_ENTRY_ADDR_GET(mact_entry); in sparx5_handle_port_mdb_del()
|