/xen/xen/common/lz4/ |
A D | decompress.c | 58 size_t length; in lz4_uncompress() local 71 length += len; in lz4_uncompress() 75 cpy = op + length; in lz4_uncompress() 84 memcpy(op, ip, length); in lz4_uncompress() 85 ip += length; in lz4_uncompress() 107 length += *ip++; in lz4_uncompress() 187 size_t length; in lz4_uncompress_unknownoutputsize() local 196 length += s; in lz4_uncompress_unknownoutputsize() 200 cpy = op + length; in lz4_uncompress_unknownoutputsize() 214 op += length; in lz4_uncompress_unknownoutputsize() [all …]
|
/xen/xen/drivers/acpi/tables/ |
A D | tbfadt.c | 66 u16 length; member 163 u32 length; in acpi_tb_parse_fadt() local 173 length = acpi_gbl_root_table_list.tables[table_index].length; in acpi_tb_parse_fadt() 177 address, length); in acpi_tb_parse_fadt() 194 acpi_os_unmap_memory(table, length); in acpi_tb_parse_fadt() 346 [i].length), in acpi_tb_convert_fadt() 414 u8 length; in acpi_tb_validate_fadt() local 435 length = in acpi_tb_validate_fadt() 437 fadt_info_table[i].length); in acpi_tb_validate_fadt() 450 length)); in acpi_tb_validate_fadt() [all …]
|
A D | tbutils.c | 70 u32 length; in acpi_tb_check_xsdt() local 80 length = table->length; in acpi_tb_check_xsdt() 91 (u32) ((table->length - in acpi_tb_check_xsdt() 135 header->length)); in acpi_tb_print_table_header() 145 header)->length : 20, in acpi_tb_print_table_header() 219 u8 *end = buffer + length; in acpi_tb_checksum() 276 acpi_gbl_root_table_list.tables[table_index].length = table->length; in acpi_tb_install_table() 372 u32 length; in acpi_tb_parse_root_table() local 435 length = table->length; in acpi_tb_parse_root_table() 440 length)); in acpi_tb_parse_root_table() [all …]
|
/xen/tools/libxc/ |
A D | xc_sr_common_x86.c | 9 .length = sizeof(tsc), in write_x86_tsc_info() 28 if ( rec->length != sizeof(*tsc) ) in handle_x86_tsc_info() 31 rec->length, sizeof(*tsc)); in handle_x86_tsc_info() 77 if ( cpuid.length ) in write_x86_cpu_policy_records() 84 msrs.length = nr_msrs * sizeof(xen_msr_entry_t); in write_x86_cpu_policy_records() 85 if ( msrs.length ) in write_x86_cpu_policy_records() 100 if ( rec->length == 0 || in handle_x86_cpuid_policy() 104 rec->length, sizeof(xen_cpuid_leaf_t)); in handle_x86_cpuid_policy() 120 if ( rec->length == 0 || in handle_x86_msr_policy() 121 rec->length % sizeof(xen_msr_entry_t) != 0 ) in handle_x86_msr_policy() [all …]
|
A D | xc_sr_common.c | 62 typeof(rec->length) combined_length = rec->length + sz; in write_split_record() 67 { rec->data, rec->length }, in write_split_record() 79 if ( rec->length ) in write_split_record() 106 if ( rhdr.length > REC_LENGTH_MAX ) in read_record() 109 rec_type_to_str(rhdr.type), rhdr.length, REC_LENGTH_MAX); in read_record() 113 datasz = ROUNDUP(rhdr.length, REC_ALIGN_ORDER); in read_record() 139 rec->length = rhdr.length; in read_record()
|
A D | xc_sr_restore_x86_hvm.c | 13 int rc = update_blob(&ctx->x86.hvm.restore.context, rec->data, rec->length); in handle_hvm_context() 16 ERROR("Unable to allocate %u bytes for hvm context", rec->length); in handle_hvm_context() 33 if ( rec->length < sizeof(*hdr) ) in handle_hvm_params() 36 rec->length, sizeof(*hdr)); in handle_hvm_params() 40 if ( rec->length != (sizeof(*hdr) + hdr->count * sizeof(*entry)) ) in handle_hvm_params() 45 rec->length); in handle_hvm_params()
|
/xen/xen/drivers/passthrough/amd/ |
A D | iommu_acpi.c | 1049 if ( table->length < (length + ivrs_block->length) ) in parse_ivrs_table() 1054 (length + ivrs_block->length)); in parse_ivrs_table() 1062 length += ivrs_block->length; in parse_ivrs_table() 1131 while ( table->length > (length + sizeof(*ivrs_block)) ) in detect_iommu_acpi() 1134 if ( table->length < (length + ivrs_block->length) ) in detect_iommu_acpi() 1139 length += ivrs_block->length; in detect_iommu_acpi() 1228 if ( table->length < (length + ivrs_block->length) ) in get_last_bdf_acpi() 1238 length += ivrs_block->length; in get_last_bdf_acpi() 1271 if ( table->length < (length + ivrs_block->length) ) in get_supported_ivhd_type() 1276 (length + ivrs_block->length)); in get_supported_ivhd_type() [all …]
|
/xen/tools/firmware/hvmloader/ |
A D | smbios.c | 353 ep->length = 0x1f; in smbios_entry_point_init() 385 uint32_t length; in smbios_type_0_init() local 392 return (start + length); in smbios_type_0_init() 444 uint32_t length; in smbios_type_1_init() local 451 return (start + length); in smbios_type_1_init() 503 uint32_t length; in smbios_type_2_init() local 520 return (start + length); in smbios_type_2_init() 597 uint32_t length; in smbios_type_3_init() local 712 uint32_t length; in smbios_type_11_init() local 869 uint32_t length; in smbios_type_22_init() local [all …]
|
A D | pir.c | 26 int length = sizeof(struct pir_table) in create_pir_tables() local 28 struct pir_table *pir = scratch_alloc(length, 0); in create_pir_tables() 31 memset(pir, 0, length); in create_pir_tables() 35 pir->length = length; in create_pir_tables() 61 for ( i = 0; i < length; i++ ) in create_pir_tables()
|
A D | mp_tables.c | 79 uint8_t length; member 88 uint16_t length; member 152 static void fill_mp_config_table(struct mp_config_table *mpct, int length) in fill_mp_config_table() argument 165 mpct->length = length; in fill_mp_config_table() 193 for ( i = 0; i < length; i++ ) in fill_mp_config_table() 249 mpfps->length = 1; in fill_mpfps() 266 int vcpu_nr, i, length; in create_mp_tables() local 331 length = p - (char *)base; in create_mp_tables() 333 fill_mp_config_table((struct mp_config_table *)base, length); in create_mp_tables()
|
/xen/xen/arch/x86/ |
A D | dmi_scan.c | 32 u8 length; member 43 u8 length; member 55 u8 length; member 117 bp+=dm->length; in dmi_string() 163 data+=dm->length; in dmi_table() 345 smbios3.length = 0; in dmi_iterate() 355 if (!smbios3.length && in dmi_iterate() 362 smbios3.length = 0; in dmi_iterate() 366 if (smbios3.length) in dmi_iterate() 396 bt_iounmap(p, eps.length); in dmi_efi_iterate() [all …]
|
/xen/tools/libxl/ |
A D | libxl_arm_acpi.c | 131 dom->acpi_modules[0].length += ROUNDUP(acpitables[RSDP].size, 3); in libxl__allocate_acpi_tables() 163 assert(dom->acpi_modules[0].length <= GUEST_ACPI_SIZE); in libxl__allocate_acpi_tables() 172 uint32_t length) in calculate_checksum() argument 179 while (length--) in calculate_checksum() 195 rsdp->length = acpitables[RSDP].size; in make_acpi_rsdp() 207 h->length = len; in make_acpi_header() 265 gicc->header.length = ACPI_MADT_GICC_SIZE_v5; in make_acpi_madt_gicc() 281 gicd->header.length = sizeof(*gicd); in make_acpi_madt_gicd() 293 gicr->header.length = sizeof(*gicr); in make_acpi_madt_gicr() 295 gicr->length = gicr_size; in make_acpi_madt_gicr() [all …]
|
A D | libxl_xshelp.c | 23 int i, length; in libxl__xs_kvs_of_flexarray() local 28 length = array->count; in libxl__xs_kvs_of_flexarray() 29 if (!length) in libxl__xs_kvs_of_flexarray() 32 kvs = libxl__calloc(gc, length + 2, sizeof(char *)); in libxl__xs_kvs_of_flexarray() 34 for (i = 0; i < length; i += 2) { in libxl__xs_kvs_of_flexarray() 63 int length = strlen(kvs[i + 1]); in libxl__xs_writev_perms() local 64 xs_write(ctx->xsh, t, path, kvs[i + 1], length); in libxl__xs_writev_perms() 223 size_t length = strlen(string); in libxl__xs_write_checked() local 224 if (!xs_write(CTX->xsh, t, path, string, length)) { in libxl__xs_write_checked()
|
/xen/xen/arch/x86/hvm/ |
A D | save.c | 178 if ( ctxt.cur < desc->length || in hvm_save_one() 179 off > ctxt.cur - desc->length ) in hvm_save_one() 185 *bufsz = desc->length; in hvm_save_one() 191 *bufsz = desc->length; in hvm_save_one() 365 d->length = len; in _hvm_init_entry() 393 (strict_length ? (len != d->length) : (len < d->length)) || in _hvm_check_entry() 415 BUG_ON(d->length > dest_len); in _hvm_read_entry() 417 memcpy(dest, &h->data[h->cur], d->length); in _hvm_read_entry() 419 if ( d->length < dest_len ) in _hvm_read_entry() 420 memset(dest + d->length, 0, dest_len - d->length); in _hvm_read_entry() [all …]
|
/xen/tools/libacpi/ |
A D | build.c | 67 while ( length-- ) in set_checksum() 156 lapic->length = sizeof(*lapic); in construct_madt() 167 madt->header.length); in construct_madt() 193 hpet->header.length = sizeof(*hpet); in construct_hpet() 267 srat->header.length = size; in construct_srat() 300 slit->header.length = size; in construct_slit() 336 total += header->length; in construct_passthrough_tables() 337 pt_addr += header->length; in construct_passthrough_tables() 610 fadt->header.length = fadt_size; in acpi_build_tables() 646 xsdt->header.length); in acpi_build_tables() [all …]
|
A D | static_tables.c | 25 .length = sizeof(struct acpi_20_facs), 106 .length = sizeof(struct acpi_header), 119 .length = sizeof(struct acpi_header), 134 .length = sizeof(struct acpi_20_rsdp) 150 .length = sizeof(struct acpi_20_waet),
|
A D | acpi2_0.h | 33 uint32_t length; member 91 uint32_t length; member 265 uint32_t length; member 335 uint8_t length; member 351 uint8_t length; member 360 uint8_t length; member 385 uint8_t length; member 401 uint8_t length; member
|
/xen/xen/include/acpi/ |
A D | actables.h | 54 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); 78 u32 length, u8 flags, acpi_native_uint * table_index); 95 u8 acpi_tb_checksum(u8 * buffer, acpi_native_uint length); 98 acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length);
|
A D | actbl3.h | 170 u8 length; member 211 u32 length; member 219 u8 length; member 277 u16 length; member 373 u32 length; member 464 u64 length; member 499 u16 length; member
|
/xen/xen/common/ |
A D | gdbstub.c | 354 gdb_cmd_read_mem(unsigned long addr, unsigned long length, in gdb_cmd_read_mem() argument 361 length); in gdb_cmd_read_mem() 363 for ( x = 0; x < length; x++ ) in gdb_cmd_read_mem() 383 gdb_cmd_write_mem(unsigned long addr, unsigned long length, in gdb_cmd_write_mem() argument 391 for ( x = 0; x < length; x++, addr++, buf += 2 ) in gdb_cmd_write_mem() 402 if (x == length) in gdb_cmd_write_mem() 435 unsigned long addr, length, val; in process_command() local 463 length = simple_strtoul(ptr + 1, &ptr, 16); in process_command() 469 gdb_cmd_read_mem(addr, length, ctx); in process_command() 478 length = simple_strtoul(ptr + 1, &ptr, 16); in process_command() [all …]
|
/xen/tools/ocaml/xenstored/ |
A D | utils.ml | 38 let l = List.length path in 48 let hs = Bytes.create (String.length s * 2) in 58 let b = Bytes.create (String.length hs / 2) in 59 for i = 0 to Bytes.length b - 1 91 (* @path may be guest data and needs its length validating. @connection_path 94 let len = String.length path in 106 length of the relative part. 108 This prevents paths becoming invalid across migrate when the length 111 let len = String.length abs_path in
|
/xen/tools/xenstat/xentop/ |
A D | xentop.c | 895 unsigned int length; in adjust_field_widths() local 899 length = strlen(xenstat_domain_name(domain)); in adjust_field_widths() 901 fields[FIELD_NAME-1].default_width = length; in adjust_field_widths() 906 fields[FIELD_NET_TX-1].default_width = length; in adjust_field_widths() 910 fields[FIELD_NET_RX-1].default_width = length; in adjust_field_widths() 913 length = INT_FIELD_WIDTH(vbd_rd + 1); in adjust_field_widths() 915 fields[FIELD_VBD_RD-1].default_width = length; in adjust_field_widths() 918 length = INT_FIELD_WIDTH(vbd_wr + 1); in adjust_field_widths() 920 fields[FIELD_VBD_WR-1].default_width = length; in adjust_field_widths() 923 length = INT_FIELD_WIDTH(vbd_rsect + 1); in adjust_field_widths() [all …]
|
/xen/tools/python/xen/migration/ |
A D | libxl.py | 119 rtype, length = self.unpack_exact(RH_FORMAT) 125 (rec_type_to_str[rtype], length)) 127 contentsz = (length + 7) & ~7 130 padding = content[length:] 139 record_verifiers[rtype](self, content[:length])
|
/xen/tools/firmware/rombios/32bit/tcgbios/ |
A D | tcgbios.c | 249 unsigned int length = hdr->length; in acpi_validate_entry() local 269 uint32_t length; in tcpa_acpi_init() local 281 length = rsdt->header.length; in tcpa_acpi_init() 283 while ((off + 3) < length) { in tcpa_acpi_init() 444 if (length < sizeof(_pcpes)-32) { in tcpa_add_measurement_to_log() 448 pcpes->eventdatasize = length; in tcpa_add_measurement_to_log() 454 hleei.hashdatalen = length; in tcpa_add_measurement_to_log() 527 hleei.hashdatalen = length; in tcpa_add_measurement_to_log_simple() 1248 hleei.hashdatalen = length; in CompactHashLogExtendEvent32() 1370 num = length - offset; in sha1_do() [all …]
|
/xen/tools/ocaml/libs/xs/ |
A D | xsraw.ml | 51 and b = String.sub s (i + 1) (String.length s - i - 1) in 72 if String.length s < 2 73 …then invalid_arg (Printf.sprintf "perm of string: length = %d; contents=\"%s\"" (String.length s) … 76 int_of_string (String.sub s 1 (String.length s - 1)), 81 String.sub s 0 i :: split (String.sub s (i + 1) (String.length s - 1 - i)) 120 if List.length ls != 2 then 126 let has_watchevents con = Queue.length con.watchevents > 0 169 for offset = 0 to String.length path - (String.length bad) do 170 if String.sub path offset (String.length bad) = bad then 174 if path <> "/" && path <> "" && path.[String.length path - 1] = '/' then
|