Searched refs:crc_accum (Results 1 – 1 of 1) sorted by relevance
56 unsigned long update_crc(unsigned long crc_accum, const char *data_blk_ptr,483 unsigned long crc_accum; in gen_crc_table() local486 crc_accum = ((unsigned long) i << 24); in gen_crc_table()488 if (crc_accum & 0x80000000L) in gen_crc_table()489 crc_accum = (crc_accum << 1) ^ POLYNOMIAL; in gen_crc_table()491 crc_accum = (crc_accum << 1); in gen_crc_table()493 crc_table[i] = crc_accum; in gen_crc_table()501 update_crc(unsigned long crc_accum, const char *data_blk_ptr, int data_blk_size) in update_crc() argument508 i = ((int) (crc_accum >> 24) ^ *data_blk_ptr++) & 0xff; in update_crc()509 crc_accum = (crc_accum << 8) ^ crc_table[i]; in update_crc()[all …]