Lines Matching refs:mach
197 static u32 hash_function(u32 mach, u32 macl) in hash_function() argument
209 addrh = nibble_swapping_16_bit(mach); in hash_function()
252 static int add_del_hash_entry(struct armdfec_device *darmdfec, u32 mach, in add_del_hash_entry() argument
260 newlo = (((mach >> 4) & 0xf) << 15) in add_del_hash_entry()
261 | (((mach >> 0) & 0xf) << 11) in add_del_hash_entry()
262 | (((mach >> 12) & 0xf) << 7) in add_del_hash_entry()
263 | (((mach >> 8) & 0xf) << 3) in add_del_hash_entry()
282 entry = start + hash_function(mach, macl); in add_del_hash_entry()
336 u32 mach; in update_hash_table_mac_address() local
341 mach = (oaddr[0] << 8) | oaddr[1]; in update_hash_table_mac_address()
344 add_del_hash_entry(darmdfec, mach, macl, 1, 0, HASH_DELETE); in update_hash_table_mac_address()
348 mach = (addr[0] << 8) | addr[1]; in update_hash_table_mac_address()
350 add_del_hash_entry(darmdfec, mach, macl, 1, 0, HASH_ADD); in update_hash_table_mac_address()