Lines Matching refs:mac
35 unsigned char mac[ETH_ALEN]; member
60 const unsigned char mac[ETH_ALEN], in sparx5_mact_select()
69 mach |= mac[0] << 8; in sparx5_mact_select()
70 mach |= mac[1] << 0; in sparx5_mact_select()
71 macl |= mac[2] << 24; in sparx5_mact_select()
72 macl |= mac[3] << 16; in sparx5_mact_select()
73 macl |= mac[4] << 8; in sparx5_mact_select()
74 macl |= mac[5] << 0; in sparx5_mact_select()
81 const unsigned char mac[ETH_ALEN], u16 vid) in sparx5_mact_learn()
96 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_learn()
135 unsigned char mac[ETH_ALEN], in sparx5_mact_get()
145 mac[0] = ((mach >> 8) & 0xff); in sparx5_mact_get()
146 mac[1] = ((mach >> 0) & 0xff); in sparx5_mact_get()
147 mac[2] = ((macl >> 24) & 0xff); in sparx5_mact_get()
148 mac[3] = ((macl >> 16) & 0xff); in sparx5_mact_get()
149 mac[4] = ((macl >> 8) & 0xff); in sparx5_mact_get()
150 mac[5] = ((macl >> 0) & 0xff); in sparx5_mact_get()
160 unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) in sparx5_mact_getnext()
167 sparx5_mact_select(sparx5, mac, *vid); in sparx5_mact_getnext()
179 ret = sparx5_mact_get(sparx5, mac, vid, &cfg2); in sparx5_mact_getnext()
190 const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2) in sparx5_mact_find()
197 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_find()
219 const unsigned char mac[ETH_ALEN], u16 vid) in sparx5_mact_forget()
225 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_forget()
240 const unsigned char *mac, in alloc_mact_entry() argument
250 memcpy(mact_entry->mac, mac, ETH_ALEN); in alloc_mact_entry()
257 const unsigned char *mac, in find_mact_entry() argument
266 ether_addr_equal(mac, mact_entry->mac) && in find_mact_entry()
278 const char *mac, u16 vid, in sparx5_fdb_call_notifiers() argument
283 info.addr = mac; in sparx5_fdb_call_notifiers()
349 ether_addr_equal(addr, mact_entry->mac)) { in sparx5_del_mact_entry()
362 unsigned char mac[ETH_ALEN], in sparx5_mact_handle_entry()
383 ether_addr_equal(mac, mact_entry->mac)) { in sparx5_mact_handle_entry()
404 mact_entry = alloc_mact_entry(sparx5, mac, vid, port); in sparx5_mact_handle_entry()
416 mac, vid, sparx5->ports[port]->ndev, in sparx5_mact_handle_entry()
426 unsigned char mac[ETH_ALEN]; in sparx5_mact_pull_work() local
439 memset(mac, 0, sizeof(mac)); in sparx5_mact_pull_work()
442 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_pull_work()
451 ret = sparx5_mact_get(sparx5, mac, &vid, &cfg2); in sparx5_mact_pull_work()
454 sparx5_mact_handle_entry(sparx5, mac, vid, cfg2); in sparx5_mact_pull_work()
465 mact_entry->mac, mact_entry->vid, in sparx5_mact_pull_work()