Lines Matching refs:crc
869 unsigned int crc; in bmac_addhash() local
873 crc = bmac_crc((unsigned short *)addr) & 0x3f; /* Big-endian alert! */ in bmac_addhash()
874 crc = reverse6[crc]; /* Hyperfast bit-reversing algorithm */ in bmac_addhash()
875 if (bp->hash_use_count[crc]++) return; /* This bit is already set */ in bmac_addhash()
876 mask = crc % 16; in bmac_addhash()
878 bp->hash_use_count[crc/16] |= mask; in bmac_addhash()
884 unsigned int crc; in bmac_removehash() local
888 crc = bmac_crc((unsigned short *)addr) & 0x3f; /* Big-endian alert! */ in bmac_removehash()
889 crc = reverse6[crc]; /* Hyperfast bit-reversing algorithm */ in bmac_removehash()
890 if (bp->hash_use_count[crc] == 0) return; /* That bit wasn't in use! */ in bmac_removehash()
891 if (--bp->hash_use_count[crc]) return; /* That bit is still in use */ in bmac_removehash()
892 mask = crc % 16; in bmac_removehash()
894 bp->hash_table_mask[crc/16] &= mask; in bmac_removehash()
1020 u32 crc; in bmac_set_multicast() local
1039 crc = ether_crc_le(6, ha->addr); in bmac_set_multicast()
1040 crc >>= 26; in bmac_set_multicast()
1041 hash_table[crc >> 4] |= 1 << (crc & 0xf); in bmac_set_multicast()