/u-boot/board/Synology/ds414/ |
A D | cmd_syno.c | 63 unsigned char csum = 0; in do_syno_populate() local 67 csum += bufp[i]; in do_syno_populate() 72 if (csum != bufp[i]) { /* seventh byte is checksum value */ in do_syno_populate() 89 int csum = 0; in do_syno_populate() local 94 csum += bufp[n]; in do_syno_populate() 109 if (strict_strtoul(csump, 10, &c) || c != csum) { in do_syno_populate() 117 unsigned char csum = 0; in do_syno_populate() local 120 csum += bufp[n]; in do_syno_populate() 122 if (csum != bufp[n]) { in do_syno_populate()
|
/u-boot/drivers/misc/ |
A D | cros_ec_spi.c | 89 int csum, len; in cros_ec_spi_command() local 128 csum = cros_ec_calc_checksum(out, 3) in cros_ec_spi_command() 130 out[3 + dout_len] = (uint8_t)csum; in cros_ec_spi_command() 159 csum = cros_ec_calc_checksum(p, len + 2); in cros_ec_spi_command() 160 if (csum != p[len + 2]) { in cros_ec_spi_command() 162 p[2 + len], csum); in cros_ec_spi_command()
|
A D | cros_ec_lpc.c | 91 int csum; in cros_ec_lpc_command() local 105 csum = cmd + args.flags + args.command_version + args.data_size; in cros_ec_lpc_command() 107 csum += *d; in cros_ec_lpc_command() 109 args.checksum = (uint8_t)csum; in cros_ec_lpc_command() 170 csum = cmd + args.flags + args.command_version + args.data_size; in cros_ec_lpc_command() 172 csum += *d; in cros_ec_lpc_command() 174 if (args.checksum != (uint8_t)csum) { in cros_ec_lpc_command()
|
A D | cros_ec_i2c.c | 124 int len, csum, ret; in cros_ec_i2c_command() local 204 csum = cros_ec_calc_checksum(in_ptr, 2 + len); in cros_ec_i2c_command() 205 if (csum != in_ptr[2 + len]) { in cros_ec_i2c_command() 207 __func__, in_ptr[2 + din_len], csum); in cros_ec_i2c_command()
|
A D | cros_ec.c | 124 int csum, i; in cros_ec_calc_checksum() local 126 for (i = csum = 0; i < size; i++) in cros_ec_calc_checksum() 127 csum += data[i]; in cros_ec_calc_checksum() 128 return csum & 0xff; in cros_ec_calc_checksum() 214 int csum; in handle_proto3_response() local 240 csum = cros_ec_calc_checksum(dev->din, in_bytes); in handle_proto3_response() 241 if (csum) { in handle_proto3_response() 243 csum); in handle_proto3_response()
|
/u-boot/tools/gdb/ |
A D | remote.c | 635 unsigned char csum = 0; local 654 csum += buf[i]; 658 *p++ = tohex ((csum >> 4) & 0xf); 659 *p++ = tohex (csum & 0xf); 753 unsigned char csum; in read_frame() local 757 csum = 0; in read_frame() 784 if (csum == pktcsum) in read_frame() 793 pktcsum, csum); in read_frame() 800 csum += c; in read_frame() 802 csum += c; in read_frame() [all …]
|
/u-boot/net/ |
A D | cdp.c | 50 ushort csum; in cdp_compute_csum() local 97 csum = ~(ushort)result; in cdp_compute_csum() 100 if (csum != htons(csum)) /* little endian */ in cdp_compute_csum() 101 csum = htons(csum); in cdp_compute_csum() 103 return csum; in cdp_compute_csum()
|
/u-boot/tools/ |
A D | kwboot.c | 70 uint8_t csum; member 367 block->csum = 0; in kwboot_xm_makeblock() 369 block->csum += block->data[i]; in kwboot_xm_makeblock() 614 uint8_t *data = _data, csum; in kwboot_img_csum8() local 616 for (csum = 0; size-- > 0; data++) in kwboot_img_csum8() 617 csum += *data; in kwboot_img_csum8() 619 return csum; in kwboot_img_csum8() 627 uint8_t csum; in kwboot_img_patch_hdr() local 651 csum = kwboot_img_csum8(hdr, hdrsz) - hdr->checksum; in kwboot_img_patch_hdr() 652 if (csum != hdr->checksum) { in kwboot_img_patch_hdr() [all …]
|
A D | stm32image.c | 54 uint32_t csum = 0; in stm32image_checksum() local 65 csum += *p; in stm32image_checksum() 70 return csum; in stm32image_checksum()
|
A D | socfpgaimage.c | 156 uint16_t csum; in sfp_build_header() local 159 csum = sfp_hdr_checksum((uint8_t *)&header_v0, 0); in sfp_build_header() 160 header_v0.checksum = cpu_to_le16(csum); in sfp_build_header() 163 csum = sfp_hdr_checksum((uint8_t *)&header_v1, 1); in sfp_build_header() 164 header_v1.checksum = cpu_to_le16(csum); in sfp_build_header()
|
A D | zynqmpbif.c | 332 uint32_t csum; in bif_add_part() local 382 csum = zynqmp_csum(&parthdr, &parthdr.checksum); in bif_add_part() 383 parthdr.checksum = cpu_to_le32(csum); in bif_add_part() 414 csum = zynqmp_csum(bif_output.last_part, in bif_add_part() 416 bif_output.last_part->checksum = cpu_to_le32(csum); in bif_add_part() 837 uint32_t csum; in zynqmpbif_copy_image() local 963 csum = zynqmp_csum(&bif_output.header->width_detection, in zynqmpbif_copy_image() 965 bif_output.header->checksum = cpu_to_le32(csum); in zynqmpbif_copy_image() 968 csum = zynqmp_csum(bif_output.imgheader, in zynqmpbif_copy_image() 970 bif_output.imgheader->checksum = cpu_to_le32(csum); in zynqmpbif_copy_image()
|
A D | mxsimage.c | 496 uint8_t csum = 0; in sb_command_checksum() local 500 csum += inst_ptr[i]; in sb_command_checksum() 502 return csum; in sb_command_checksum() 1814 char *csum, *flag = ""; in sb_verify_command() local 1826 csum = ret ? "checksum BAD" : "checksum OK"; in sb_verify_command() 1830 soprintf(ictx, " NOOP # %s\n", csum); in sb_verify_command() 1835 soprintf(ictx, " TAG %s # %s\n", flag, csum); in sb_verify_command() 1840 ccmd->load.address, ccmd->load.count, csum); in sb_verify_command() 1872 ccmd->fill.pattern, csum); in sb_verify_command() 1892 modetable[i].name, csum); in sb_verify_command() [all …]
|
A D | mxsboot.c | 227 uint32_t csum = 0; in mx28_nand_block_csum() local 231 csum += block[i]; in mx28_nand_block_csum() 233 return csum ^ 0xffffffff; in mx28_nand_block_csum()
|
A D | kwbimage.c | 278 uint8_t csum = 0; in image_checksum8() local 286 csum += *p; in image_checksum8() 290 return csum; in image_checksum8() 322 uint32_t csum = 0; in image_checksum32() local 336 csum += *p; in image_checksum32() 341 return csum; in image_checksum32()
|
/u-boot/arch/x86/lib/ |
A D | sfi.c | 53 hdr->csum = 0; in finish_table() 54 hdr->csum = table_compute_checksum(hdr, hdr->len); in finish_table()
|
/u-boot/arch/x86/include/asm/ |
A D | sfi.h | 43 u8 csum; member
|
/u-boot/cmd/mvebu/ |
A D | bubt.c | 651 u8 csum = 0; in image_checksum8() local 655 csum += *p; in image_checksum8() 660 return csum; in image_checksum8()
|
/u-boot/fs/btrfs/kernel-shared/ |
A D | btrfs_tree.h | 885 __u8 csum; member 1148 u8 csum[BTRFS_CSUM_SIZE]; member 1283 u8 csum[BTRFS_CSUM_SIZE]; member
|
/u-boot/include/ |
A D | MCD_dma.h | 348 int MCD_csumQuery(int channel, u32 * csum);
|
/u-boot/drivers/dma/ |
A D | MCD_dmaApi.c | 950 int MCD_csumQuery(int channel, u32 * csum) in MCD_csumQuery() argument 956 *csum = MCD_relocBuffDesc[channel].csumResult; in MCD_csumQuery()
|
/u-boot/arch/arm/dts/ |
A D | armada-38x.dtsi | 420 tx-csum-limit = <9800>;
|
/u-boot/fs/btrfs/ |
A D | disk-io.c | 162 if (memcmp(result, sb->csum, csum_size)) { in btrfs_check_super()
|
A D | ctree.h | 814 unsigned long ptr = offsetof(struct btrfs_header, csum); in btrfs_header_csum()
|
/u-boot/drivers/net/ |
A D | e1000.h | 491 uint16_t csum; /* Packet checksum */ member
|