Searched refs:checksum (Results 51 - 75 of 116) sorted by relevance

12345

/u-boot/tools/
H A Dzynqmpimage.h51 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 Dzynqmpbif.c76 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 Difwitool.c134 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 Dimage-sig-host.c13 #include <u-boot/hash-checksum.h>
H A Dsunxi_toc0.c484 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 Dmxsimage.h139 uint8_t checksum; member in struct:sb_command::__anon1480
H A Dkwbimage.c330 * 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 Dmxsimage.c801 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 Dmxsboot.c58 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 Defi_memory.c50 * @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 Dacpi_table.c153 /* (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 Dimage-fit-sig.c19 #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 Dsandbox.c156 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 Dacpi.c50 header->checksum = table_compute_checksum(fadt, header->length);
/u-boot/include/
H A Dsmbios.h42 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 Dcros_ec_lpc.c104 /* 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 Dedid.c36 u8 checksum = 0; local
40 checksum += edid_block[i];
42 return (checksum == 0) ? 0 : -EINVAL;
/u-boot/include/linux/
H A Dedd.h160 __u8 checksum; member in struct:edd_device_params
/u-boot/arch/x86/cpu/quark/
H A Ddram.c38 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 Dsdram.c99 debug("%s: at %p, size %x checksum %04x\n", __func__,
101 mrc_cache->checksum);
/u-boot/board/xilinx/common/
H A Dboard.c269 u8 checksum = 0; local
272 checksum = fru_checksum((u8 *)buffer, sizeof(struct fru_common_hdr));
273 if (checksum) {
/u-boot/test/dm/
H A Dacpi.c239 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 Dstm32prog.c329 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 Dpublic_key.c125 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 Dapi.c690 sig->checksum = 0;
691 sig->checksum = crc32(0, (unsigned char *)sig,

Completed in 270 milliseconds

12345