Searched refs:crc2 (Results 1 – 6 of 6) sorted by relevance
/linux-2.6.39/lib/ |
D | crc32.c | 395 u32 crc1, crc2; in test_step() local 400 crc2 = crc32_be(init, buf, len + 4); in test_step() 401 if (crc2) in test_step() 403 crc2); in test_step() 406 crc2 = crc32_be(init, buf, i); in test_step() 407 crc2 = crc32_be(crc2, buf + i, len + 4 - i); in test_step() 408 if (crc2) in test_step() 409 printf("\nCRC split fail: 0x%08x\n", crc2); in test_step() 416 crc2 = bitrev32(crc1); in test_step() 417 if (crc1 != bitrev32(crc2)) in test_step() [all …]
|
/linux-2.6.39/drivers/input/joystick/ |
D | walkera0701.c | 70 int crc1, crc2; in walkera0701_parse_frame() local 72 for (crc1 = crc2 = i = 0; i < 10; i++) { in walkera0701_parse_frame() 74 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame() 78 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame() 80 for (crc1 = crc2 = 0, i = 11; i < 23; i++) { in walkera0701_parse_frame() 82 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame() 86 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
|
/linux-2.6.39/drivers/net/usb/ |
D | cdc_eem.c | 267 u32 crc, crc2; in eem_rx_fixup() local 315 crc2 = ~crc32_le(~0, skb2->data, skb2->len in eem_rx_fixup() 320 crc2 = 0xdeadbeef; in eem_rx_fixup() 325 return crc == crc2; in eem_rx_fixup() 327 if (unlikely(crc != crc2)) { in eem_rx_fixup()
|
/linux-2.6.39/drivers/staging/cxt1e1/ |
D | pmc93x6_eeprom.c | 534 u_int32_t crc1, crc2; /* CRC read from EEPROM */ in pmc_verify_cksum() local 545 crc2 = pmcGetBuffValue (&buf2->Crc32[0], sizeof (buf2->Crc32)); in pmc_verify_cksum() 547 pr_info("EEPROM: chksum 2 reads as %08x\n", crc2); /* RLD DEBUG */ in pmc_verify_cksum() 550 (pmcCalcCrc_T02 ((void *) buf2) == crc2)) in pmc_verify_cksum()
|
/linux-2.6.39/drivers/usb/gadget/ |
D | f_eem.c | 452 u32 crc, crc2; in eem_unwrap() local 475 crc2 = ~crc32_le(~0, in eem_unwrap() 480 crc2 = 0xdeadbeef; in eem_unwrap() 482 if (crc != crc2) { in eem_unwrap()
|
D | f_ncm.c | 1052 uint32_t crc, crc2; in ncm_unwrap_ntb() local 1056 crc2 = ~crc32_le(~0, in ncm_unwrap_ntb() 1059 if (crc != crc2) { in ncm_unwrap_ntb()
|