Lines Matching refs:macl
197 static u32 hash_function(u32 mach, u32 macl) in hash_function() argument
210 addrl = nibble_swapping_32_bit(macl); in hash_function()
253 u32 macl, u32 rd, u32 skip, int del) in add_del_hash_entry() argument
264 | (((macl >> 20) & 0x1) << 31) in add_del_hash_entry()
265 | (((macl >> 16) & 0xf) << 27) in add_del_hash_entry()
266 | (((macl >> 28) & 0xf) << 23) in add_del_hash_entry()
267 | (((macl >> 24) & 0xf) << 19) in add_del_hash_entry()
271 newhi = (((macl >> 4) & 0xf) << 15) in add_del_hash_entry()
272 | (((macl >> 0) & 0xf) << 11) in add_del_hash_entry()
273 | (((macl >> 12) & 0xf) << 7) in add_del_hash_entry()
274 | (((macl >> 8) & 0xf) << 3) in add_del_hash_entry()
275 | (((macl >> 21) & 0x7) << 0); in add_del_hash_entry()
282 entry = start + hash_function(mach, macl); in add_del_hash_entry()
337 u32 macl; in update_hash_table_mac_address() local
342 macl = (oaddr[2] << 24) | (oaddr[3] << 16) | in update_hash_table_mac_address()
344 add_del_hash_entry(darmdfec, mach, macl, 1, 0, HASH_DELETE); in update_hash_table_mac_address()
349 macl = (addr[2] << 24) | (addr[3] << 16) | (addr[4] << 8) | addr[5]; in update_hash_table_mac_address()
350 add_del_hash_entry(darmdfec, mach, macl, 1, 0, HASH_ADD); in update_hash_table_mac_address()