| /u-boot/net/ |
| A D | net6.c | 166 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 167 sum = (sum & 0xffff) + (sum >> 16); in csum_fold() 173 return sum; in csum_fold() 175 return ~sum; in csum_fold() 265 sum += carry; in csum_ipv6_magic() 269 sum += carry; in csum_ipv6_magic() 273 sum += carry; in csum_ipv6_magic() 277 sum += carry; in csum_ipv6_magic() 281 sum += carry; in csum_ipv6_magic() 285 sum += carry; in csum_ipv6_magic() [all …]
|
| /u-boot/lib/ |
| A D | net_utils.c | 172 int sum, oddbyte; in compute_ip_checksum() local 175 sum = 0; in compute_ip_checksum() 177 sum += *ptr++; in compute_ip_checksum() 184 sum += oddbyte; in compute_ip_checksum() 186 sum = (sum >> 16) + (sum & 0xffff); in compute_ip_checksum() 187 sum += (sum >> 16); in compute_ip_checksum() 188 sum = ~sum & 0xffff; in compute_ip_checksum() 190 return sum; in compute_ip_checksum() 193 uint add_ip_checksums(uint offset, uint sum, uint new) in add_ip_checksums() argument 197 sum = ~sum & 0xffff; in add_ip_checksums() [all …]
|
| A D | sscanf.c | 556 size_t sum = 0; in vsscanf() local 560 sum += n; in vsscanf() 563 if (sum == 0) in vsscanf() 566 sum += width; in vsscanf() 570 nread += sum; in vsscanf()
|
| A D | smbios-parser.c | 18 u8 sum = 0; in verify_checksum() local 21 sum += byte[i]; in verify_checksum() 23 return sum; in verify_checksum()
|
| /u-boot/doc/ |
| A D | README.sha1 | 5 This SHA1 sum is used, to check, if the U-Boot Image in Flash is not 11 sha1 address len [addr] calculate the SHA1 sum [save at addr] 12 -p calculate the SHA1 sum from the U-Boot image in flash and print 16 calculates and prints the SHA1 sum, from the Image stored in Flash 19 check, if the SHA1 sum from the Image stored in Flash is correct 27 which has no SHA1 sum, you can do the following: 35 b) Initialize the SHA1 sum in the Image with 0x00 36 The SHA1 sum is stored in Flash at: 47 c) now calculate the SHA1 sum from the memoryrange and write 52 Now you have a U-Boot-Image for the pcs440ep board with the correct SHA1 sum. [all …]
|
| /u-boot/board/google/gru/ |
| A D | gru.c | 30 int sum, i; in board_early_init_f() local 37 sum = 0; in board_early_init_f() 39 sum += i; in board_early_init_f() 40 gru_dummy_function(sum); in board_early_init_f()
|
| /u-boot/lib/efi_selftest/ |
| A D | efi_selftest_snp.c | 85 u32 sum = 0; in efi_ip_checksum() local 89 sum += *pos++; in efi_ip_checksum() 91 sum = (sum >> 16) + (sum & 0xffff); in efi_ip_checksum() 92 sum += sum >> 16; in efi_ip_checksum() 93 sum = ~sum & 0xffff; in efi_ip_checksum() 95 return sum; in efi_ip_checksum()
|
| /u-boot/drivers/sound/ |
| A D | sandbox.c | 25 int sum; /* Use to sum the provided audio data */ member 33 int sum; /* Use to sum the provided audio data */ member 55 return priv->sum; in sandbox_get_i2s_sum() 83 return priv->sum; in sandbox_get_sound_sum() 122 priv->sum += ((uint8_t *)data)[i]; in sandbox_i2s_tx_data() 178 priv->sum += ((uint8_t *)data)[i]; in sandbox_sound_play()
|
| /u-boot/tools/ |
| A D | mksunxiboot.c | 29 uint32_t sum; in gen_check_sum() local 39 for (i = 0, sum = 0; i < loop; i++) in gen_check_sum() 40 sum += le32_to_cpu(buf[i]); in gen_check_sum() 43 head_p->check_sum = cpu_to_le32(sum); in gen_check_sum()
|
| /u-boot/cmd/ |
| A D | load.c | 824 int sum; in k_recv() local 885 sum = 0; in k_recv() 889 sum += new_char & 0xff; in k_recv() 895 sum += new_char & 0xff; in k_recv() 922 sum += new_char & 0xff; in k_recv() 932 sum += new_char & 0xff; in k_recv() 937 sum += new_char & 0xff; in k_recv() 944 if (new_char != tochar((sum + ((sum >> 6) & 0x03)) & 0x3f)) in k_recv() 946 sum += new_char & 0xff; in k_recv() 954 sum += new_char & 0xff; in k_recv() [all …]
|
| A D | md5sum.c | 21 static void store_result(const u8 *sum, const char *dest) in store_result() argument 30 *ptr++ = sum[i]; in store_result() 36 sprintf(str_ptr, "%02x", sum[i]); in store_result()
|
| A D | armflash.c | 40 u32 sum = 0; in compute_crc() local 52 if (val > ~sum) in compute_crc() 53 sum++; in compute_crc() 54 sum += val; in compute_crc() 56 return ~sum; in compute_crc()
|
| /u-boot/fs/yaffs2/ |
| A D | yaffs_summary.c | 52 unsigned sum; /* Just add up all the bytes in the tags */ member 106 unsigned sum = 0; in yaffs_summary_sum() local 111 sum += *sum_buffer; in yaffs_summary_sum() 116 return sum; in yaffs_summary_sum() 145 hdr.sum = yaffs_summary_sum(dev); in yaffs_summary_write() 237 hdr.sum != yaffs_summary_sum(dev)) in yaffs_summary_read()
|
| A D | yaffs_checkptrw.h | 27 int yaffs2_get_checkpt_sum(struct yaffs_dev *dev, u32 * sum);
|
| /u-boot/drivers/video/exynos/ |
| A D | exynos_dp.c | 63 unsigned char sum = 0; in exynos_dp_calc_edid_check_sum() local 66 sum = sum + edid_data[i]; in exynos_dp_calc_edid_check_sum() 68 return sum; in exynos_dp_calc_edid_check_sum() 75 unsigned char sum; in exynos_dp_read_edid() local 102 sum = exynos_dp_calc_edid_check_sum(edid); in exynos_dp_read_edid() 103 if (sum != 0) { in exynos_dp_read_edid() 118 sum = exynos_dp_calc_edid_check_sum(&edid[EDID_BLOCK_LENGTH]); in exynos_dp_read_edid() 119 if (sum != 0) { in exynos_dp_read_edid() 148 sum = exynos_dp_calc_edid_check_sum(edid); in exynos_dp_read_edid() 149 if (sum != 0) { in exynos_dp_read_edid()
|
| /u-boot/board/Synology/ds414/ |
| A D | cmd_syno.c | 59 int i, sum = 0; in do_syno_populate() local 63 sum += bufp[i]; in do_syno_populate() 67 if (!sum) /* MAC address empty */ in do_syno_populate()
|
| /u-boot/arch/arm/dts/ |
| A D | bcm283x-rpi-usb-otg.dtsi | 7 * According to dwc2 the sum of all device EP
|
| /u-boot/test/dm/ |
| A D | bus.c | 159 parent_data->sum += 5; in test_bus_parent_data() 160 ut_asserteq(5, parent_data->sum); in test_bus_parent_data() 168 parent_data->sum += 5; in test_bus_parent_data() 169 ut_asserteq(5, parent_data->sum); in test_bus_parent_data() 183 parent_data->sum = value; in test_bus_parent_data() 195 ut_asserteq(value, parent_data->sum); in test_bus_parent_data()
|
| /u-boot/disk/ |
| A D | part_amiga.c | 78 s32 sum = 0; in sum_block() local 81 sum += *block++; in sum_block() 83 return (sum != 0); in sum_block()
|
| /u-boot/board/synopsys/axs10x/ |
| A D | headerize-axs.py | 29 return sum(ba) & 0xFF 98 jmpchk_sum = sum(jump_address.to_bytes(4, byteorder='big'))
|
| /u-boot/boot/ |
| A D | image-android.c | 23 ulong sum = 0; in checksum() local 26 sum += buffer[i]; in checksum() 27 return sum; in checksum() 39 ulong sum; in add_trailer() local 51 sum = checksum((unsigned char *)bootconfig_start_addr, bootconfig_size); in add_trailer() 52 memcpy((void *)(end + BOOTCONFIG_SIZE_SIZE), &sum, in add_trailer()
|
| /u-boot/include/dm/ |
| A D | test.h | 110 int sum; member
|
| /u-boot/drivers/i2c/ |
| A D | rcar_i2c.c | 249 u32 scgd, cdf, round, ick, sum, scl; in rcar_i2c_set_speed() local 283 sum = priv->fall_ns + priv->rise_ns + priv->intdelay; in rcar_i2c_set_speed() 284 round = (ick + 500000) / 1000000 * sum; in rcar_i2c_set_speed()
|
| /u-boot/include/ |
| A D | net6.h | 304 unsigned int csum_partial(const unsigned char *buff, int len, unsigned int sum); 408 csum_partial(const unsigned char *buff, int len, unsigned int sum) in csum_partial() argument
|
| /u-boot/common/ |
| A D | hash.c | 449 static void store_result(struct hash_algo *algo, const uint8_t *sum, in store_result() argument 473 sprintf(str_ptr, "%02x", sum[i]); in store_result() 484 memcpy(buf, sum, algo->digest_size); in store_result()
|