Searched refs:checksum (Results 26 - 50 of 116) sorted by relevance

12345

/u-boot/arch/arm/include/asm/mach-imx/
H A Dimx-nandbcb.h19 u32 checksum; /* reserved on i.MX6 */ member in struct:dbbt_block
27 u32 checksum; /* First fingerprint in first byte */ member in struct:fcb_block
/u-boot/tools/
H A Dsocfpgaimage.c23 * 0x46 2 Length (in units of u32, including the end checksum).
39 * At the end of the code we have a 32-bit CRC checksum over whole binary
78 uint16_t checksum; member in struct:socfpga_header_v0
89 uint16_t checksum; member in struct:socfpga_header_v1
117 * The header checksum is just a very simple checksum over
160 header_v0.checksum = cpu_to_le16(csum);
164 header_v1.checksum = cpu_to_le16(csum);
192 hdr_csum = le16_to_cpu(header_v0.checksum);
197 hdr_csum = le16_to_cpu(header_v1.checksum);
[all...]
H A Dsunxi_egon.c111 uint32_t checksum = 0, value; local
163 /* Calculate the checksum. Yes, it's that simple. */
165 checksum += le32_to_cpu(buf32[i]);
166 header->check_sum = cpu_to_le32(checksum);
H A Dkwbimage.h59 uint8_t checksum; /* 0x1F */ member in struct:main_hdr_v0
86 uint8_t checksum; /* 0x1DF */ member in struct:ext_hdr_v0
102 uint8_t checksum; /* 0x2F */ member in struct:bin_hdr_v0
124 uint8_t checksum; /* 0x1F */ member in struct:main_hdr_v1
/u-boot/lib/efi_loader/
H A Dsmbiosdump.c286 * checksum() - calculate checksum
288 * @buf: buffer to checksum
290 * Return: checksum
292 u8 checksum(void *buf, int len) function
327 if (checksum(smbios3_anchor, smbios3_anchor->length)) {
328 error(u"Invalid anchor checksum\n");
352 if (checksum(smbios_anchor, smbios_anchor->length)) {
353 error(u"Invalid anchor checksum\n");
361 if (checksum(
[all...]
/u-boot/lib/acpi/
H A Dacpi_table.c145 * and checksum.
176 /* Re-calculate checksum */
177 rsdt->header.checksum = 0;
178 rsdt->header.checksum = table_compute_checksum((u8 *)rsdt,
194 /* Re-calculate checksum */
195 xsdt->header.checksum = 0;
196 xsdt->header.checksum = table_compute_checksum((u8 *)xsdt,
260 /* Update structure lengths and checksum */
263 header->checksum = table_compute_checksum(dbg2, header->length);
H A Dmcfg.c58 /* (Re)calculate length and checksum */
60 header->checksum = table_compute_checksum(mcfg, header->length);
/u-boot/examples/api/
H A Dglue.c16 uint32_t checksum; local
22 * Clear the checksum field (in the local copy) so as to calculate the
27 s.checksum = 0;
29 checksum = crc32(0, (unsigned char *)&s, sizeof(struct api_signature));
31 if (checksum != sig->checksum)
/u-boot/fs/erofs/
H A Dsuper.c101 sbi.checksum = le32_to_cpu(dsb->checksum);
/u-boot/lib/ecdsa/
H A Decdsa-verify.c65 const struct checksum_algo *algo = info->checksum;
106 const struct checksum_algo *algo = info->checksum;
H A Decdsa-libcrypto.c46 ctx->hash = malloc(info->checksum->checksum_len);
195 const struct checksum_algo *algo = info->checksum;
215 okay = ECDSA_do_verify(ctx->hash, info->checksum->checksum_len,
228 const struct checksum_algo *algo = info->checksum;
/u-boot/drivers/net/
H A De1000_spi.c472 uint16_t i, length, checksum = 0, checksum_reg; local
506 /* Compute the checksum and read the expected value */
508 checksum += le16_to_cpu(buffer[i]);
509 checksum = ((uint16_t)EEPROM_SUM) - checksum;
513 if (checksum_reg == checksum) {
514 printf("%s: INFO: EEPROM checksum is correct! (0x%04hx)\n",
515 hw->name, checksum);
521 E1000_ERR(hw, "EEPROM checksum is incorrect!\n");
523 checksum_reg, checksum);
[all...]
/u-boot/arch/x86/cpu/ivybridge/
H A Dsdram.c63 u16 c1, c2, checksum, seed_checksum; local
94 /* Compute seed checksum and compare */
99 checksum = add_ip_checksums(sizeof(u32), c1, c2);
104 if (checksum != seed_checksum) {
105 debug("%s: invalid seed checksum\n", __func__);
132 debug("%s: at %p, size %x checksum %04x\n", __func__,
134 mrc_cache->checksum);
141 u16 c1, c2, checksum; local
160 /* Save a simple checksum of the seed values */
165 checksum
[all...]
/u-boot/cmd/mvebu/
H A Dbubt.c124 u8 checksum; /* 0x1F */ member in struct:a38x_main_hdr_v1
734 u32 checksum; local
738 * For now compare checksum, and magic. Later we can
748 checksum = do_checksum32((u32 *)hdr, hdr->prolog_size);
749 checksum -= hdr->prolog_checksum;
750 if (checksum != checksum_ref) {
751 printf("Error: Bad Prolog checksum. 0x%x != 0x%x\n",
752 checksum, checksum_ref);
757 checksum = do_checksum32((u32 *)((u8 *)hdr + hdr->prolog_size), hdr->boot_image_size);
758 if (checksum !
913 u8 checksum; local
[all...]
/u-boot/arch/x86/include/asm/
H A Dpirq_routing.h49 u8 checksum; /* Modulo 256 checksum must give zero */ member in struct:irq_routing_table
133 * It also fixes up the table checksum and align the given address to a 16 byte
/u-boot/arch/x86/include/asm/fsp1/
H A Dfsp_ffs.h14 * The IntegrityCheck.checksum.header field is an 8-bit
15 * checksum of the file header. The State and
16 * IntegrityCheck.checksum.file fields are assumed to be zero
17 * and the checksum is calculated such that the entire header
24 * IntegrityCheck.checksum.file field is an 8-bit checksum of
27 * IntegrityCheck.checksum.file field must be initialized with
28 * a value of 0xAA. The IntegrityCheck.checksum.file field is
33 } checksum; member in union:ffs_integrity
/u-boot/include/
H A Dsunxi_image.h89 __le32 checksum; member in struct:toc0_main_info
H A Dapi_public.h27 uint32_t checksum; /* checksum of this sig struct */ member in struct:api_signature
/u-boot/arch/x86/lib/fsp1/
H A Dfsp_common.c39 debug("%s: mrc cache at %p, size %x checksum %04x\n", __func__,
40 cache->data, cache->data_size, cache->checksum);
/u-boot/drivers/net/phy/
H A Dncsi.c174 u32 checksum = 0; local
178 checksum += (((u32)data[i] << 8) | data[i + 1]);
180 checksum = (~checksum + 1);
181 return checksum;
187 u32 checksum, c_offset; local
210 c_offset = sizeof(struct ncsi_rsp_pkt_hdr) + payload - sizeof(checksum);
213 checksum = ncsi_calculate_checksum((unsigned char *)hdr,
215 if (pchecksum != checksum) {
216 printf("NCSI: 0x%02x response has invalid checksum\
525 u32 checksum; local
576 u32 checksum; local
[all...]
/u-boot/cmd/
H A Dload.c346 int i, c, reclen, checksum, length; local
352 checksum = 0;
362 checksum += c; /* accumulate checksum */
373 /* address + data + checksum */
376 /* accumulate length bytes into checksum */
378 checksum += (length >> (8*i)) & 0xff;
380 /* accumulate address bytes into checksum: */
382 checksum += (address >> (8*i)) & 0xff;
384 /* make proper checksum byt
[all...]
/u-boot/drivers/misc/
H A Dqfw_smbios.c140 entry->checksum = 0;
141 entry->checksum = table_compute_checksum(entry,
/u-boot/arch/x86/cpu/intel_common/
H A Dmicrocode.c35 uint checksum; member in struct:microcode_update
57 update->checksum = fdtdec_get_int(blob, node, "intel,checksum", 0);
/u-boot/arch/x86/include/asm/fsp/
H A Dfsp_fv.h101 * A 16-bit checksum of the firmware volume header.
104 u16 checksum; member in struct:fv_header
/u-boot/boot/
H A Dimage-sig.c15 #include <u-boot/hash-checksum.h>

Completed in 196 milliseconds

12345