Searched refs:polynomial (Results 1 – 3 of 3) sorted by relevance
29 void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_msb() argument38 t = (t << 1) ^ (t & msbit ? polynomial : 0); in crc8_populate_msb()51 void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_lsb() argument59 t = (t >> 1) ^ (t & 1 ? polynomial : 0); in crc8_populate_lsb()
148 u32 polynomial) argument155 crc = (crc >> 1) ^ ((crc & 1) ? polynomial : 0);244 u32 polynomial) argument246 u32 power = polynomial; /* CRC of x^32 */251 crc = (crc >> 1) ^ (crc & 1 ? polynomial : 0);260 crc = gf2_multiply(crc, power, polynomial);267 power = gf2_multiply(power, power, polynomial);296 u32 polynomial) argument304 (crc << 1) ^ ((crc & 0x80000000) ? polynomial :
37 static void crc32init_le_generic(const uint32_t polynomial, in crc32init_le_generic() argument46 crc = (crc >> 1) ^ ((crc & 1) ? polynomial : 0); in crc32init_le_generic()