/openbmc/u-boot/net/ |
H A D | checksum.c | 15 int sum, oddbyte; in compute_ip_checksum() local 18 sum = 0; in compute_ip_checksum() 20 sum += *ptr++; in compute_ip_checksum() 27 sum += oddbyte; in compute_ip_checksum() 29 sum = (sum >> 16) + (sum & 0xffff); in compute_ip_checksum() 30 sum += (sum >> 16); in compute_ip_checksum() 31 sum = ~sum & 0xffff; in compute_ip_checksum() 33 return sum; in compute_ip_checksum() 36 unsigned add_ip_checksums(unsigned offset, unsigned sum, unsigned new) in add_ip_checksums() argument 40 sum = ~sum & 0xffff; in add_ip_checksums() [all …]
|
/openbmc/u-boot/doc/ |
H 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 …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | arith_helper.c | 144 int32_t sum; \ 145 sum = (int32_t)(int16_t)(a) op (int32_t)(int16_t)(b); \ 146 RESULT(sum, n, 16); \ 147 if (sum >= 0) \ 152 int32_t sum; \ 153 sum = (int32_t)(int8_t)(a) op (int32_t)(int8_t)(b); \ 154 RESULT(sum, n, 8); \ 155 if (sum >= 0) \ 171 uint32_t sum; \ 172 sum = (uint32_t)(uint16_t)(a) + (uint32_t)(uint16_t)(b); \ [all …]
|
/openbmc/openbmc-test-automation/bin/plug_ins/Mem_tracker/ |
H A D | memcheck.sh | 76 local pss_total private_total shared_total sum name 77 …_total=$(grep -e "^Pss:" /proc/${pid}/smaps | awk '{print $2}' | awk '{sum += $1} END {print sum}') 78 …tal=$(grep -e "^Private" /proc/${pid}/smaps | awk '{print $2}' | awk '{sum += $1} END {print sum}') 83 (( sum=shared_total+private_total )) 84 echo -e "${private_total} + ${shared_total} = ${sum} ${name}" 113 …c=${proc_name} '{if ($6==src) {print $1}}' ${temp_file_path_2} | awk '{sum += $1} END {print sum}') 114 …c=${proc_name} '{if ($6==src) {print $3}}' ${temp_file_path_2} | awk '{sum += $1} END {print sum}') 115 total=$(awk '{print $5}' ${temp_file_path_2} | awk '{sum += $1} END {print sum}') 116 (( sum=vmrss_in_kb+vmsize_in_kb )) 117 …echo -e "${vmsize_in_kb} + ${vmrss_in_kb} = ${sum} \t ${proc_name}${count_string}" >> ${temp_file… [all …]
|
/openbmc/qemu/tests/tcg/mips/user/ase/dsp/ |
H A D | test_dsp_r1_bposge32.c | 6 int dsp, sum; in main() local 10 sum = 0x01; in main() 21 : "+r"(sum) in main() 24 assert(sum == result); in main() 27 sum = 0x01; in main() 38 : "+r"(sum) in main() 41 assert(sum == result); in main()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/etcd/etcd/ |
H A D | 0001-xxhash-bump-to-v2.1.2.patch | 24 client/v3/go.sum | 2 ++ 26 etcdctl/go.sum | 3 ++- 28 etcdutl/go.sum | 3 ++- 30 go.sum | 3 ++- 32 server/go.sum | 3 ++- 34 tests/go.sum | 3 ++- 50 diff --git a/client/v3/go.sum b/client/v3/go.sum 52 --- a/client/v3/go.sum 53 +++ b/client/v3/go.sum 76 diff --git a/etcdctl/go.sum b/etcdctl/go.sum [all …]
|
/openbmc/qemu/include/hw/nvram/ |
H A D | chrp_nvram.h | 37 unsigned int i, sum; in chrp_nvram_finish_partition() local 45 sum = *tmpptr; in chrp_nvram_finish_partition() 47 sum += tmpptr[2 + i]; in chrp_nvram_finish_partition() 48 sum = (sum + ((sum & 0xff00) >> 8)) & 0xff; in chrp_nvram_finish_partition() 50 header->checksum = sum & 0xff; in chrp_nvram_finish_partition()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/libpfm/libpfm4/ |
H A D | 0002-perf_examples-Remove-unused-sum-variable.patch | 4 Subject: [PATCH] perf_examples: Remove unused 'sum' variable 7 self_smpl_multi.c:144:19: error: variable 'sum' set but not used [-Werror,-Wunused-but-set-variable] 8 unsigned long x, sum; 24 - unsigned long x, sum; 34 - sum = 1; 41 - sum += x;
|
/openbmc/qemu/net/ |
H A D | checksum.c | 42 uint16_t net_checksum_finish(uint32_t sum) in net_checksum_finish() argument 44 while (sum>>16) in net_checksum_finish() 45 sum = (sum & 0xFFFF)+(sum >> 16); in net_checksum_finish() 46 return ~sum; in net_checksum_finish() 52 uint32_t sum = 0; in net_checksum_tcpudp() local 54 sum += net_checksum_add(length, buf); // payload in net_checksum_tcpudp() 55 sum += net_checksum_add(8, addrs); // src + dst address in net_checksum_tcpudp() 56 sum += proto + length; // protocol & length in net_checksum_tcpudp() 57 return net_checksum_finish(sum); in net_checksum_tcpudp()
|
/openbmc/openbmc/poky/scripts/contrib/bb-perf/ |
H A D | buildstats-plot.sh | 16 # the value of each stat is the sum for that particular stat in all recipes found. 46 SUM="" 66 -S Sum values for a particular stat for found recipes 95 SUM="y" 131 if [ -z "$SUM" ]; then 140 # Construct datatamash sum argument (sum 3 sum 4 ...) 144 sumargs[j]=sum; j=$(( $j + 1 )) 157 echo -e "set title \"Sum stats values per task for all recipes\""
|
/openbmc/u-boot/cmd/ |
H A D | md5sum.c | 17 * Store the resulting sum to an address or variable 19 static void store_result(const u8 *sum, const char *dest) in store_result() argument 28 *ptr++ = sum[i]; in store_result() 34 sprintf(str_ptr, "%02x", sum[i]); in store_result() 117 printf("ERROR: %s does not contain a valid md5 sum\n", in do_md5sum() 170 "address count [[*]sum]\n" 171 " - compute MD5 message digest [save to sum]\n" 172 "md5sum -v address count [*]sum\n" 179 "address count [[*]sum]\n" 180 " - compute MD5 message digest [save to sum]"
|
H A D | sha1sum.c | 41 "address count [[*]sum]\n" 42 " - compute SHA1 message digest [save to sum]\n" 43 "sha1sum -v address count [*]sum\n" 50 "address count [[*]sum]\n" 51 " - compute SHA1 message digest [save to sum]"
|
/openbmc/bmcweb/redfish-core/src/utils/ |
H A D | json_utils.cpp | 69 uint64_t sum = 0; in getEstimatedJsonSize() local 72 sum += getEstimatedJsonSize(element); in getEstimatedJsonSize() 74 return sum; in getEstimatedJsonSize() 80 uint64_t sum = 0; in getEstimatedJsonSize() local 84 sum += k.size() + getEstimatedJsonSize(v) + colonQuoteSpaceSize; in getEstimatedJsonSize() 86 return sum; in getEstimatedJsonSize()
|
/openbmc/u-boot/board/esd/vme8349/ |
H A D | vme8349.c | 178 unsigned int l, sum; in vme8349_read_spd() local 185 sum = 0; in vme8349_read_spd() 187 sum = (sum + buffer[l]) & 0xff; in vme8349_read_spd() 188 if (sum == buffer[63]) in vme8349_read_spd() 192 sum, buffer[63]); in vme8349_read_spd() 197 sum = 0; in vme8349_read_spd() 199 sum = (sum + buffer[l]) & 0xff; in vme8349_read_spd() 200 if (sum != buffer[63]) in vme8349_read_spd() 202 sum, buffer[63]); in vme8349_read_spd() 203 buffer[63] = sum; in vme8349_read_spd()
|
/openbmc/qemu/hw/net/ |
H A D | e1000x_common.h | 39 uint64_t sum = mac[index] | (uint64_t)mac[index + 1] << 32; in e1000x_grow_8reg_if_not_full() local 41 if (sum + size < sum) { in e1000x_grow_8reg_if_not_full() 42 sum = ~0ULL; in e1000x_grow_8reg_if_not_full() 44 sum += size; in e1000x_grow_8reg_if_not_full() 46 mac[index] = sum; in e1000x_grow_8reg_if_not_full() 47 mac[index + 1] = sum >> 32; in e1000x_grow_8reg_if_not_full()
|
/openbmc/qemu/hw/cxl/ |
H A D | cxl-cdat.c | 51 uint8_t sum = 0; in ct3_build_cdat() local 90 sum += buf[i]; in ct3_build_cdat() 102 sum += hdr_buf[i]; in ct3_build_cdat() 105 /* Sum of all bytes including checksum must be 0 */ in ct3_build_cdat() 106 cdat_header->checksum = ~sum + 1; in ct3_build_cdat() 119 uint8_t sum = 0; in ct3_load_cdat() local 166 sum += buf[i++]; in ct3_load_cdat() 177 sum += buf[i++]; in ct3_load_cdat() 183 if (sum != 0) { in ct3_load_cdat()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/krb5/krb5/ |
H A D | CVE-2024-26458_CVE-2024-26461.patch | 41 - krb5_checksum sum; 42 + krb5_checksum sum = { 0 }; 146 - sum.contents = outbuf + 16 + message2->length; 147 - sum.length = cksumsize; 150 key_usage, &plain, &sum); 159 if (sum.length != cksumsize) 161 memcpy(outbuf + 16 + message2->length, sum.contents, cksumsize); 162 - krb5_free_checksum_contents(context, &sum); 163 - sum.contents = 0; 177 + krb5_free_checksum_contents(context, &sum);
|
/openbmc/u-boot/drivers/sound/ |
H A D | sandbox.c | 24 int sum; /* Use to sum the provided audio data */ member 30 int sum; /* Use to sum the provided audio data */ member 52 return priv->sum; in sandbox_get_i2s_sum() 66 return priv->sum; in sandbox_get_sound_sum() 105 priv->sum += ((uint8_t *)data)[i]; in sandbox_i2s_tx_data() 161 priv->sum += ((uint8_t *)data)[i]; in sandbox_sound_play()
|
/openbmc/u-boot/tools/ |
H A D | mksunxiboot.c | 21 /* check sum functon from sun4i boot code */ 28 uint32_t sum; in gen_check_sum() local 37 /* calculate the sum */ in gen_check_sum() 38 for (i = 0, sum = 0; i < loop; i++) in gen_check_sum() 39 sum += le32_to_cpu(buf[i]); in gen_check_sum() 41 /* write back check sum */ in gen_check_sum() 42 head_p->check_sum = cpu_to_le32(sum); in gen_check_sum()
|
H A D | ubsha1.c | 53 /* create a copy, so we can blank out the sha1 sum */ in main() 64 printf ("U-Boot sum:\n"); in main() 69 /* overwrite the sum in the bin file, with the actual */ in main()
|
/openbmc/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_snp.c | 84 u32 sum = 0; in efi_ip_checksum() local 88 sum += *pos++; in efi_ip_checksum() 90 sum = (sum >> 16) + (sum & 0xffff); in efi_ip_checksum() 91 sum += sum >> 16; in efi_ip_checksum() 92 sum = ~sum & 0xffff; in efi_ip_checksum() 94 return sum; in efi_ip_checksum()
|
/openbmc/qemu/monitor/ |
H A D | hmp-cmds.c | 328 uint16_t sum; in hmp_sum() local 332 sum = 0; in hmp_sum() 336 /* BSD sum algorithm ('sum' Unix command) */ in hmp_sum() 337 sum = (sum >> 1) | (sum << 15); in hmp_sum() 338 sum += val; in hmp_sum() 340 monitor_printf(mon, "%05d\n", sum); in hmp_sum()
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | MemoryMetrics.v1_7_3.json | 254 …e is subordinate to the `MemorySummary` object, this property shall be the sum of BlocksRead over … 263 …e is subordinate to the `MemorySummary` object, this property shall be the sum of BlocksWritten ov… 272 …e is subordinate to the `MemorySummary` object, this property shall be the sum of CorrectableECCEr… 282 …is property shall be the sum of indeterminate correctable errors across all memory without duplica… 292 …s property shall be the sum of indeterminate uncorrectable errors across all memory without duplic… 302 …e is subordinate to the `MemorySummary` object, this property shall be the sum of UncorrectableECC… 411 …e is subordinate to the `MemorySummary` object, this property shall be the sum of BlocksRead over … 420 …e is subordinate to the `MemorySummary` object, this property shall be the sum of BlocksWritten ov… 429 …e is subordinate to the `MemorySummary` object, this property shall be the sum of CorrectableECCEr… 439 …is property shall be the sum of indeterminate correctable errors across all memory without duplica… [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/influxdb/influxdb/ |
H A D | 0001-Use-v2.1.2-xxhash-to-fix-build-with-go-1.17.patch | 18 go.sum | 2 ++ 29 --- a/go.sum 30 +++ b/go.sum
|
/openbmc/qemu/util/ |
H A D | timed-average.c | 78 w->sum = 0; in window_reset() 172 w->sum += value; in timed_average_account() 208 return w->count > 0 ? w->sum / w->count : 0; in timed_average_avg() 222 /* Get the sum of all accounted values 225 * @ret: the sum of all accounted values 232 return w->sum; in timed_average_sum()
|