Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 30) sorted by relevance

12

/xen/tools/firmware/rombios/
A Dbiossums.c236 sum = 0; in chksum_bios_calc_value()
238 sum = sum + *( data + i ); in chksum_bios_calc_value()
266 sum = 0; in chksum__32__calc_value()
269 sum = sum + *( data + offset + i ); in chksum__32__calc_value()
272 sum = -sum; in chksum__32__calc_value()
323 sum = sum + *( data + offset + i ); in chksum__mp__calc_value()
326 sum = -sum; in chksum__mp__calc_value()
383 sum = sum + *( data + offset + i ); in chksum_pcmp_calc_value()
386 sum = -sum; in chksum_pcmp_calc_value()
438 sum = sum + *( data + offset + i ); in chksum__pir_calc_value()
[all …]
/xen/xen/common/
A Dperfc.c41 unsigned long long sum = 0; in perfc_printall() local
51 sum = (perfc_t) sum; in perfc_printall()
52 printk("TOTAL[%12Lu]", sum); in perfc_printall()
53 if ( sum ) in perfc_printall()
73 sum += counters[k]; in perfc_printall()
76 sum = (perfc_t) sum; in perfc_printall()
78 if (sum) in perfc_printall()
83 sum = 0; in perfc_printall()
87 sum = (perfc_t) sum; in perfc_printall()
99 sum = 0; in perfc_printall()
[all …]
/xen/tools/firmware/vgabios/
A Dbiossums.c192 byte sum; in chksum_bios_calc_value() local
194 sum = 0; in chksum_bios_calc_value()
196 sum = sum + *( data + i ); in chksum_bios_calc_value()
198 sum = -sum; /* iso ensures -s + s == 0 on unsigned types */ in chksum_bios_calc_value()
199 return( sum ); in chksum_bios_calc_value()
219 byte sum; in chksum_pmid_calc_value() local
223 sum = 0; in chksum_pmid_calc_value()
226 sum = sum + *( data + offset + i ); in chksum_pmid_calc_value()
229 sum = -sum; in chksum_pmid_calc_value()
230 return( sum ); in chksum_pmid_calc_value()
/xen/xen/arch/x86/cpu/microcode/
A Dintel.c152 uint32_t sum; in microcode_sanity_check() local
166 for ( sum = 0, ptr = (const uint32_t *)patch; in microcode_sanity_check()
168 sum += *ptr; in microcode_sanity_check()
170 if ( sum != 0 ) in microcode_sanity_check()
197 for ( sum = 0, ptr = (const uint32_t *)ext; in microcode_sanity_check()
199 sum += *ptr; in microcode_sanity_check()
201 if ( sum != 0 ) in microcode_sanity_check()
211 sum = patch->sig + patch->pf + patch->cksum; in microcode_sanity_check()
213 if ( sum != (ext->sigs[i].sig + ext->sigs[i].pf + ext->sigs[i].cksum) ) in microcode_sanity_check()
/xen/tools/libxc/
A Dxg_private.c182 unsigned long long sum=0; in csum_page() local
185 sum += p[i]; in csum_page()
187 return sum ^ (sum>>32); in csum_page()
A Dxc_dom_x86.c603 uint8_t sum; in build_hvm_info() local
623 for ( i = 0, sum = 0; i < hvm_info->length; i++ ) in build_hvm_info()
624 sum += ((uint8_t *)hvm_info)[i]; in build_hvm_info()
625 hvm_info->checksum = -sum; in build_hvm_info()
/xen/tools/misc/
A Dxenperf.c79 unsigned int sum, reset = 0, full = 0, pretty = 0; in main() local
163 sum = 0; in main()
165 sum += val[j]; in main()
166 printf ("T=%10u ", (unsigned int)sum); in main()
A Dxenpm.c405 static uint64_t *sum, *sum_cx, *sum_px; variable
607 free(sum); in signal_int_handler()
637 sum = calloc(2 * max_cpu_nr, sizeof(*sum)); in start_gather_func()
638 if ( sum == NULL ) in start_gather_func()
643 free(sum); in start_gather_func()
649 free(sum); in start_gather_func()
656 free(sum); in start_gather_func()
661 sum_cx = sum; in start_gather_func()
662 sum_px = sum + max_cpu_nr; in start_gather_func()
685 free(sum); in start_gather_func()
[all …]
/xen/tools/libfsimage/fat/
A Dfsys_fat.c406 unsigned char sum; in fat_dir() local
409 for (sum = 0, i = 0; i< 11; i++) in fat_dir()
410 sum = ((sum >> 1) | (sum << 7)) + dir_buf[i]; in fat_dir()
412 if (sum == alias_checksum) in fat_dir()
/xen/tools/debugger/kdd/
A Dkdd.c242 uint32_t sum = 0; in kdd_log_pkt() local
252 sum += p->payload[i]; in kdd_log_pkt()
261 sum == p->h.sum ? "OK" : "BAD", sum); in kdd_log_pkt()
740 uint32_t sum = 0; in kdd_tx() local
747 s->txp.h.sum = sum; in kdd_tx()
767 s->txp.h.sum = 0; in kdd_send_ack()
778 s->txp.h.sum = 0; in kdd_send_cmd()
798 s->txp.h.sum = 0; in kdd_send_string()
1125 uint32_t sum = 0; in kdd_handle_pkt() local
1130 sum += p->payload[i]; in kdd_handle_pkt()
[all …]
A Dkdd.h70 uint32_t sum; /* Unsigned sum of all payload bytes */ member
/xen/xen/drivers/acpi/tables/
A Dtbutils.c218 u8 sum = 0; in acpi_tb_checksum() local
222 sum = (u8) (sum + *(buffer++)); in acpi_tb_checksum()
225 return sum; in acpi_tb_checksum()
/xen/stubdom/
A Dlwip.patch-cvs1347 - sum = (sum & 0xffff) + (sum >> 16);
1350 + sum = FOLD_U32T(sum);
1351 + sum = FOLD_U32T(sum);
1355 - sum = ((sum & 0xff) << 8) | ((sum & 0xff00) >> 8);
1357 + sum = SWAP_BYTES_IN_WORD(sum);
1381 - sum = (sum >> 16) + (sum & 0xffff);
1382 + sum = FOLD_U32T(sum);
1398 - sum = (sum >> 16) + (sum & 0xffff);
1401 + sum = FOLD_U32T(sum);
1402 + sum = FOLD_U32T(sum);
[all …]
/xen/xen/arch/x86/
A Dnmi.c497 unsigned int sum = this_cpu(nmi_timer_ticks); in nmi_watchdog_tick() local
499 if ( (this_cpu(last_irq_sums) == sum) && watchdog_enabled() ) in nmi_watchdog_tick()
516 this_cpu(last_irq_sums) = sum; in nmi_watchdog_tick()
A Ddmi_scan.c189 u8 sum = 0; in dmi_checksum() local
194 sum += p[a]; in dmi_checksum()
195 return sum == 0; in dmi_checksum()
A Dmpparse.c122 int sum = 0; in mpf_checksum() local
125 sum += *mp++; in mpf_checksum()
127 return sum & 0xFF; in mpf_checksum()
/xen/tools/libxl/
A Dlibxl_arm_acpi.c174 uint8_t *p, sum = 0; in calculate_checksum() local
180 sum = sum + *p++; in calculate_checksum()
183 p[checksum_offset] = -sum; in calculate_checksum()
A Dlibxl_dom.c738 uint8_t *va_map, sum; in hvm_build_set_params() local
754 for (i = 0, sum = 0; i < va_hvm->length; i++) in hvm_build_set_params()
755 sum += ((uint8_t *) va_hvm)[i]; in hvm_build_set_params()
756 va_hvm->checksum -= sum; in hvm_build_set_params()
/xen/tools/firmware/hvmloader/
A Dsmbios.c346 uint8_t sum; in smbios_entry_point_init() local
365 sum = 0; in smbios_entry_point_init()
367 sum += ((int8_t *)start)[i]; in smbios_entry_point_init()
368 ep->checksum = -sum; in smbios_entry_point_init()
370 sum = 0; in smbios_entry_point_init()
372 sum += ((int8_t *)start)[i]; in smbios_entry_point_init()
373 ep->intermediate_checksum = -sum; in smbios_entry_point_init()
A Dutil.c741 uint8_t sum = 0; in validate_hvm_info() local
757 sum += ptr[i]; in validate_hvm_info()
759 if ( sum != 0 ) in validate_hvm_info()
/xen/tools/libacpi/
A Dbuild.c62 uint8_t *p, sum = 0; in set_checksum() local
68 sum = sum + *p++; in set_checksum()
71 p[checksum_offset] = -sum; in set_checksum()
/xen/docs/misc/
A Dxenpaging.txt12 memory. This allows the sum of all running guests to use more memory
/xen/tools/xenmon/
A Dxenbaked.c209 uint64_t sum, ns; in check_gotten_sum()
217 sum = total_ns_gotten(&ns); in check_gotten_sum()
220 i, sum, ns); in check_gotten_sum()
221 percent = (double) sum; in check_gotten_sum()
A Dxenmon.py220 lostinfo = [min(lost_samples), sum(lost_samples), max(lost_samples)]
221 ffpinfo = [min(ffp_samples), sum(ffp_samples), max(ffp_samples)]
/xen/tools/firmware/rombios/32bit/tcgbios/
A Dtcgbios.c248 uint8_t sum = 0; in acpi_validate_entry() local
254 sum += addr[ctr]; in acpi_validate_entry()
256 return sum; in acpi_validate_entry()

Completed in 163 milliseconds

12