Lines Matching defs:crc
1194 * cnx_crc16 - computes 16 bit crc of supplied buffer.
1202 uint32_t crc = 0xFFFF;
1218 if (crc & 0x8000) {
1219 crc = (((crc << 1) |
1222 crc = ((crc << 1) | (word >> 31)) & 0xFFFF;
1229 if (crc & 0x8000) {
1230 crc = ((crc << 1) ^ poly) & 0xFFFF;
1232 crc = (crc << 1) & 0xFFFF;
1236 crc = crc ^ 0xFFFF;
1237 return (crc & 0xFFFF);
1244 uint16_t crc;
1247 crc = htons(cnx_crc16((uint8_t *)&verifier->fwimage[offset / 4],
1250 logmsg(MSG_INFO, "cnx_local_set_guid_crc_img: new guid_sect crc: %x\n",
1251 ntohs(crc));
1252 (void) memcpy(&fw_p[offset + guid_crc_offset], &crc, 2);
1298 uint16_t crc;
1366 logmsg(MSG_WARN, gettext("hermon: Failed to read guid crc "
1372 crc = cnx_crc16((uint8_t *)guid_structure, CNX_GUID_CRC16_SIZE,
1375 if (crc != crc16_u.dword) {
1377 "differs from GUID section 0x%x\n"), crc, crc16_u.dword);
1380 "GUID section 0x%x\n", crc, crc16_u.dword);