/u-boot/tools/ |
H A D | zynqmpimage.h | 51 uint32_t checksum; /* 0x3c */ member in struct:image_header_table 120 uint32_t checksum; /* 0x3c */ member in struct:partition_header 135 uint32_t checksum; /* 0x48 */ member in struct:zynqmp_header
|
H A D | zynqmpbif.c | 76 uint32_t checksum = 0; local 80 checksum += le32_to_cpu(*ptr32); 84 return ~checksum; 382 csum = zynqmp_csum(&parthdr, &parthdr.checksum); 383 parthdr.checksum = cpu_to_le32(csum); 413 /* Recalc checksum of last_part */ 415 &bif_output.last_part->checksum); 416 bif_output.last_part->checksum = cpu_to_le32(csum); 964 &bif_output.header->checksum); 965 bif_output.header->checksum [all...] |
H A D | ifwitool.c | 134 uint8_t checksum; member in struct:subpart_dir_header 758 printf("%-25s 0x%-23x\n", "Checksum", s->h.checksum); 788 printf("%-25s 0x%-23x\n", "XOR checksum", h->xor_redundant_block); 1058 uint8_t checksum = 0; local 1060 uint8_t old_checksum = s->h.checksum; 1062 s->h.checksum = 0; 1065 checksum += data[i]; 1067 s->h.checksum = old_checksum; 1070 return -checksum; 1087 uint8_t checksum [all...] |
H A D | image-sig-host.c | 13 #include <u-boot/hash-checksum.h>
|
H A D | sunxi_toc0.c | 484 uint32_t checksum = 0; local 495 main_info->checksum = cpu_to_le32(BROM_STAMP_VALUE); 556 /* Calculate the checksum. Yes, it's that simple. */ 558 checksum += le32_to_cpu(buf32[i]); 559 main_info->checksum = cpu_to_le32(checksum); 608 uint32_t checksum = BROM_STAMP_VALUE; local 623 /* Verify the checksum without modifying the buffer. */ 625 checksum += le32_to_cpu(buf32[i]); 626 if (checksum ! [all...] |
H A D | mxsimage.h | 139 uint8_t checksum; member in struct:sb_command::__anon1480
|
H A D | kwbimage.c | 330 * Compute a 8-bit checksum of a memory area. This algorithm follows 338 /* check len and return zero checksum if invalid */ 351 * Verify checksum over a complete header that includes the checksum field. 356 /* Offsets of checksum in v0 and v1 headers are the same */ 358 uint8_t checksum; local 360 checksum = image_checksum8(hdr, kwbheader_size_for_csum(hdr)); 361 /* Calculated checksum includes the header checksum field. Compensate 364 checksum 1910 uint32_t checksum; local [all...] |
H A D | mxsimage.c | 801 ccmd->header.checksum = 0x5a; 845 ccmd->header.checksum = 0x5a; 1007 ccmd->header.checksum = 0x5a; 1107 ccmd->header.checksum = 0x5a; 1198 ccmd->header.checksum = 0x5a; 1290 ccmd->header.checksum = 0x5a; 1438 /* Update the command checksum. */ 1439 ccmd->header.checksum = sb_command_checksum(ccmd); 1685 soprintf(ictx, "%s Image header checksum: %s\n", stat[!!ret], 1814 uint8_t csn, csc = ccmd->header.checksum; [all...] |
H A D | mxsboot.c | 58 uint32_t checksum; member in struct:mx28_nand_fcb 103 uint32_t checksum; member in struct:mx28_nand_dbbt 368 /* Update the FCB checksum */ 369 fcb->checksum = mx28_nand_block_csum(((uint8_t *)fcb) + 4, 508);
|
/u-boot/lib/efi_loader/ |
H A D | efi_memory.c | 50 * @checksum: checksum 57 * The checksum calculated in function checksum() is used in FreePool() to avoid 65 u64 checksum; member in struct:efi_pool_allocation 70 * checksum() - calculate checksum for memory allocated from pool 73 * Return: checksum, always non-zero 75 static u64 checksum(struct efi_pool_allocation *alloc) function 665 alloc->checksum [all...] |
/u-boot/arch/x86/lib/ |
H A D | acpi_table.c | 153 /* (Re)calculate length and checksum */ 156 header->checksum = table_compute_checksum((void *)madt, header->length); 202 /* (Re)calculate length and checksum */ 205 header->checksum = table_compute_checksum(tcpa, header->length); 273 /* Calculate checksum. */ 274 header->checksum = table_compute_checksum(tpm2, header->length); 407 /* Fix checksum */ 408 header->checksum = table_compute_checksum((void *)spcr, header->length); 441 * Recalculate the length and update the DSDT checksum since we 442 * patched the GNVS address. Set the checksum t [all...] |
/u-boot/boot/ |
H A D | image-fit-sig.c | 19 #include <u-boot/hash-checksum.h> 92 info->checksum = image_get_checksum_algo(algo_name); 99 if (!info->checksum || !info->crypto || !info->padding) {
|
/u-boot/drivers/net/ |
H A D | sandbox.c | 156 icmpr->checksum = 0; 157 icmpr->checksum = compute_ip_checksum(icmpr, ICMP_HDR_SIZE); 245 icmpr->checksum = 0; 248 icmpr->checksum = compute_ip_checksum(icmpr, ICMP_HDR_SIZE);
|
/u-boot/arch/x86/cpu/tangier/ |
H A D | acpi.c | 50 header->checksum = table_compute_checksum(fadt, header->length);
|
/u-boot/include/ |
H A D | smbios.h | 42 u8 checksum; member in struct:smbios_entry 63 /** @checksum: checksum of the entry point structure */ 64 u8 checksum; member in struct:smbios3_entry
|
/u-boot/drivers/misc/ |
H A D | cros_ec_lpc.c | 104 /* Calculate checksum */ 109 args.checksum = (uint8_t)csum; 169 /* Verify checksum */ 174 if (args.checksum != (uint8_t)csum) { 175 debug("%s: CROS_EC response has invalid checksum\n", __func__);
|
/u-boot/common/ |
H A D | edid.c | 36 u8 checksum = 0; local 40 checksum += edid_block[i]; 42 return (checksum == 0) ? 0 : -EINVAL;
|
/u-boot/include/linux/ |
H A D | edd.h | 160 __u8 checksum; member in struct:edd_device_params
|
/u-boot/arch/x86/cpu/quark/ |
H A D | dram.c | 38 debug("%s: mrc cache at %p, size %x checksum %04x\n", __func__, 39 cache->data, cache->data_size, cache->checksum);
|
/u-boot/arch/x86/cpu/broadwell/ |
H A D | sdram.c | 99 debug("%s: at %p, size %x checksum %04x\n", __func__, 101 mrc_cache->checksum);
|
/u-boot/board/xilinx/common/ |
H A D | board.c | 269 u8 checksum = 0; local 272 checksum = fru_checksum((u8 *)buffer, sizeof(struct fru_common_hdr)); 273 if (checksum) {
|
/u-boot/test/dm/ |
H A D | acpi.c | 239 hdr.checksum = 0x33; 246 ut_asserteq(0x33, hdr.checksum); 675 tbl->checksum = table_compute_checksum(tbl, tbl->length);
|
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/ |
H A D | stm32prog.c | 329 u32 i, checksum; local 332 /* compute checksum on payload */ 334 checksum = 0; 336 checksum += *(payload++); 338 return checksum; 564 u32 checksum; local 569 checksum = stm32prog_header_checksum(addr, &header); 570 if (checksum != header.image_checksum) { 571 stm32prog_err("Layout: invalid checksum : 0x%x expected 0x%x", 572 checksum, heade [all...] |
/u-boot/lib/crypto/ |
H A D | public_key.c | 125 info.checksum = image_get_checksum_algo((const char *)algo); 128 if (!info.checksum || !info.crypto) { 129 pr_err("<%s> not supported on image_get_(checksum|crypto)_algo()\n",
|
/u-boot/api/ |
H A D | api.c | 690 sig->checksum = 0; 691 sig->checksum = crc32(0, (unsigned char *)sig,
|