Home
last modified time | relevance | path

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

/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()
/drivers/net/usb/
Dcdc_eem.c268 u32 crc, crc2; in eem_rx_fixup() local
316 crc2 = ~crc32_le(~0, skb2->data, skb2->len in eem_rx_fixup()
321 crc2 = 0xdeadbeef; in eem_rx_fixup()
326 return crc == crc2; in eem_rx_fixup()
328 if (unlikely(crc != crc2)) { in eem_rx_fixup()
/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()
/drivers/usb/gadget/
Df_eem.c484 u32 crc, crc2; in eem_unwrap() local
507 crc2 = ~crc32_le(~0, in eem_unwrap()
512 crc2 = 0xdeadbeef; in eem_unwrap()
514 if (crc != crc2) { in eem_unwrap()
Df_ncm.c1037 uint32_t crc, crc2; in ncm_unwrap_ntb() local
1041 crc2 = ~crc32_le(~0, in ncm_unwrap_ntb()
1044 if (crc != crc2) { in ncm_unwrap_ntb()