Lines Matching refs:addr2
346 static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2) in ether_addr_equal() argument
349 u32 fold = ((*(const u32 *)addr1) ^ (*(const u32 *)addr2)) | in ether_addr_equal()
350 ((*(const u16 *)(addr1 + 4)) ^ (*(const u16 *)(addr2 + 4))); in ether_addr_equal()
355 const u16 *b = (const u16 *)addr2; in ether_addr_equal()
375 static inline bool ether_addr_equal_64bits(const u8 *addr1, const u8 *addr2) in ether_addr_equal_64bits() argument
378 u64 fold = (*(const u64 *)addr1) ^ (*(const u64 *)addr2); in ether_addr_equal_64bits()
386 return ether_addr_equal(addr1, addr2); in ether_addr_equal_64bits()
399 static inline bool ether_addr_equal_unaligned(const u8 *addr1, const u8 *addr2) in ether_addr_equal_unaligned() argument
402 return ether_addr_equal(addr1, addr2); in ether_addr_equal_unaligned()
404 return memcmp(addr1, addr2, ETH_ALEN) == 0; in ether_addr_equal_unaligned()
418 static inline bool ether_addr_equal_masked(const u8 *addr1, const u8 *addr2, in ether_addr_equal_masked() argument
424 if ((addr1[i] ^ addr2[i]) & mask[i]) in ether_addr_equal_masked()