Lines Matching refs:mach
198 static u32 hash_function(u32 mach, u32 macl) in hash_function() argument
210 addrh = nibble_swapping_16_bit(mach); in hash_function()
253 static int add_del_hash_entry(struct armdfec_device *darmdfec, u32 mach, in add_del_hash_entry() argument
261 newlo = (((mach >> 4) & 0xf) << 15) in add_del_hash_entry()
262 | (((mach >> 0) & 0xf) << 11) in add_del_hash_entry()
263 | (((mach >> 12) & 0xf) << 7) in add_del_hash_entry()
264 | (((mach >> 8) & 0xf) << 3) in add_del_hash_entry()
283 entry = start + hash_function(mach, macl); in add_del_hash_entry()
337 u32 mach; in update_hash_table_mac_address() local
342 mach = (oaddr[0] << 8) | oaddr[1]; in update_hash_table_mac_address()
345 add_del_hash_entry(darmdfec, mach, macl, 1, 0, HASH_DELETE); in update_hash_table_mac_address()
349 mach = (addr[0] << 8) | addr[1]; in update_hash_table_mac_address()
351 add_del_hash_entry(darmdfec, mach, macl, 1, 0, HASH_ADD); in update_hash_table_mac_address()