Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/ubi/
H A Dcrc32.c434 u32 crc1, crc2; in test_step() local
440 if (crc2) in test_step()
442 crc2); in test_step()
446 crc2 = crc32_be(crc2, buf + i, len + 4 - i); in test_step()
447 if (crc2) in test_step()
458 crc1, crc2, bitrev32(crc2)); in test_step()
462 crc2); in test_step()
464 if (crc2) in test_step()
466 crc2); in test_step()
470 crc2 = crc32_le(crc2, buf + i, len + 4 - i); in test_step()
[all …]
/openbmc/linux/include/linux/
H A Dcrc32.h34 static inline u32 crc32_le_combine(u32 crc1, u32 crc2, size_t len2) in crc32_le_combine() argument
36 return crc32_le_shift(crc1, len2) ^ crc2; in crc32_le_combine()
61 static inline u32 __crc32c_le_combine(u32 crc1, u32 crc2, size_t len2) in __crc32c_le_combine() argument
63 return __crc32c_le_shift(crc1, len2) ^ crc2; in __crc32c_le_combine()
/openbmc/linux/lib/
H A Dcrc32test.c720 u32 crc1, crc2; in crc32c_combine_test() local
725 crc2 = __crc32c_le(0, test_buf + test[i].start + in crc32c_combine_test()
728 if (!(crc_full == __crc32c_le_combine(crc1, crc2, len2) && in crc32c_combine_test()
808 u32 crc1, crc2; in crc32_combine_test() local
813 crc2 = crc32_le(0, test_buf + test[i].start + in crc32_combine_test()
816 if (!(crc_full == crc32_le_combine(crc1, crc2, len2) && in crc32_combine_test()
/openbmc/linux/drivers/input/joystick/
H A Dwalkera0701.c67 int crc1, crc2; in walkera0701_parse_frame() local
69 for (crc1 = crc2 = i = 0; i < 10; i++) { in walkera0701_parse_frame()
71 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
75 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
77 for (crc1 = crc2 = 0, i = 11; i < 23; i++) { in walkera0701_parse_frame()
79 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
83 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
/openbmc/linux/drivers/net/usb/
H A Dcdc_eem.c256 u32 crc, crc2; in eem_rx_fixup() local
304 crc2 = ~crc32_le(~0, skb2->data, skb2->len in eem_rx_fixup()
309 crc2 = 0xdeadbeef; in eem_rx_fixup()
314 return crc == crc2; in eem_rx_fixup()
316 if (unlikely(crc != crc2)) { in eem_rx_fixup()
/openbmc/u-boot/common/
H A DxyzModem.c47 unsigned char blk, cblk, crc1, crc2; member
361 res = CYGACC_COMM_IF_GETC_TIMEOUT (*xyz.__chan, (char *) &xyz.crc2); in xyzModem_get_hdr()
362 ZM_DEBUG (zm_save (xyz.crc2)); in xyzModem_get_hdr()
384 if (cksum != ((xyz.crc1 << 8) | xyz.crc2)) in xyzModem_get_hdr()
387 xyz.crc1, xyz.crc2, cksum & 0xFFFF)); in xyzModem_get_hdr()
/openbmc/u-boot/test/py/tests/
H A Dtest_sf.py182 crc2 = sf_read(u_boot_console, env__sf_config, sf_params)
184 assert crc1 == crc2, 'CRC32 of two successive read operation do not match'
/openbmc/linux/drivers/usb/gadget/function/
H A Df_eem.c493 u32 crc, crc2; in eem_unwrap() local
516 crc2 = ~crc32_le(~0, in eem_unwrap()
521 crc2 = 0xdeadbeef; in eem_unwrap()
523 if (crc != crc2) { in eem_unwrap()
H A Df_ncm.c1278 uint32_t crc, crc2; in ncm_unwrap_ntb() local
1283 crc2 = ~crc32_le(~0, in ncm_unwrap_ntb()
1286 if (crc != crc2) { in ncm_unwrap_ntb()
/openbmc/linux/arch/x86/crypto/
H A Dcrc32c-pcl-intel-asm_64.S94 #define crc2 %r10 macro
234 mov crc2, crc_init
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_irq.c300 u32 crc2, u32 crc3, in display_pipe_crc_irq_handler() argument
305 u32 crcs[5] = { crc0, crc1, crc2, crc3, crc4 }; in display_pipe_crc_irq_handler()
335 u32 crc2, u32 crc3, in display_pipe_crc_irq_handler() argument