/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | crc32.c | 434 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 D | crc32.h | 34 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 D | crc32test.c | 720 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 D | walkera0701.c | 67 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 D | cdc_eem.c | 256 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 D | xyzModem.c | 47 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 D | test_sf.py | 182 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 D | f_eem.c | 493 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 D | f_ncm.c | 1278 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 D | crc32c-pcl-intel-asm_64.S | 94 #define crc2 %r10 macro 234 mov crc2, crc_init
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_irq.c | 300 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
|