Lines Matching refs:crc
71 int crc, i; in crc16() local
73 crc = 0; in crc16()
75 crc = crc ^ (int)*ptr++ << 8; in crc16()
77 if (crc & 0x8000) in crc16()
78 crc = crc << 1 ^ 0x1021; in crc16()
80 crc = crc << 1; in crc16()
82 return crc & 0xffff; in crc16()
106 if (spd->crc[0] == crc_lsb && spd->crc[1] == crc_msb) { in ddr3_spd_check()
112 spd->crc[0], crc_lsb, spd->crc[1], crc_msb); in ddr3_spd_check()
131 if (spd->crc[0] != crc_lsb || spd->crc[1] != crc_msb) { in ddr4_spd_check()
135 spd->crc[0], crc_lsb, spd->crc[1], crc_msb); in ddr4_spd_check()