Lines Matching refs:vid
40 u16 vid; member
61 u16 vid) in sparx5_mact_select() argument
68 mach |= vid << 16; in sparx5_mact_select()
81 const unsigned char mac[ETH_ALEN], u16 vid) in sparx5_mact_learn() argument
96 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_learn()
136 u16 *vid, u32 *pcfg2) in sparx5_mact_get() argument
151 *vid = mach >> 16; in sparx5_mact_get()
160 unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) in sparx5_mact_getnext() argument
167 sparx5_mact_select(sparx5, mac, *vid); in sparx5_mact_getnext()
179 ret = sparx5_mact_get(sparx5, mac, vid, &cfg2); in sparx5_mact_getnext()
191 u16 vid) in sparx5_mact_lookup() argument
197 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_lookup()
218 const unsigned char mac[ETH_ALEN], u16 vid) in sparx5_mact_forget() argument
224 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_forget()
240 u16 vid, u16 port_index) in alloc_mact_entry() argument
250 mact_entry->vid = vid; in alloc_mact_entry()
257 u16 vid, u16 port_index) in find_mact_entry() argument
264 if (mact_entry->vid == vid && in find_mact_entry()
277 const char *mac, u16 vid, in sparx5_fdb_call_notifiers() argument
283 info.vid = vid; in sparx5_fdb_call_notifiers()
290 const unsigned char *addr, u16 vid) in sparx5_add_mact_entry() argument
295 ret = sparx5_mact_lookup(sparx5, addr, vid); in sparx5_add_mact_entry()
305 mact_entry = find_mact_entry(sparx5, addr, vid, port->portno); in sparx5_add_mact_entry()
312 mact_entry = alloc_mact_entry(sparx5, addr, vid, port->portno); in sparx5_add_mact_entry()
321 ret = sparx5_mact_learn(sparx5, port->portno, addr, vid); in sparx5_add_mact_entry()
326 sparx5_fdb_call_notifiers(SWITCHDEV_FDB_ADD_TO_BRIDGE, addr, vid, in sparx5_add_mact_entry()
335 u16 vid) in sparx5_del_mact_entry() argument
345 if ((vid == 0 || mact_entry->vid == vid) && in sparx5_del_mact_entry()
350 sparx5_mact_forget(sparx5, addr, mact_entry->vid); in sparx5_del_mact_entry()
360 u16 vid, u32 cfg2) in sparx5_mact_handle_entry() argument
379 if (mact_entry->vid == vid && in sparx5_mact_handle_entry()
401 mact_entry = alloc_mact_entry(sparx5, mac, vid, port); in sparx5_mact_handle_entry()
413 mac, vid, sparx5->ports[port]->ndev, in sparx5_mact_handle_entry()
425 u16 vid; in sparx5_mact_pull_work() local
435 vid = 0; in sparx5_mact_pull_work()
439 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_pull_work()
448 ret = sparx5_mact_get(sparx5, mac, &vid, &cfg2); in sparx5_mact_pull_work()
451 sparx5_mact_handle_entry(sparx5, mac, vid, cfg2); in sparx5_mact_pull_work()
462 mact_entry->mac, mact_entry->vid, in sparx5_mact_pull_work()