Home
last modified time | relevance | path

Searched refs:crc2 (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/lib/
Dcrc32.c395 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/
Dwalkera0701.c70 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/
Dcdc_eem.c267 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/
Dpmc93x6_eeprom.c534 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/
Df_eem.c452 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()
Df_ncm.c1052 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()