| /arch/x86/cpu/qemu/ |
| A D | e820.c | 23 struct e820_ctx ctx; in install_e820_map() local 25 e820_init(&ctx, entries, max_entries); in install_e820_map() 27 e820_next(&ctx, E820_RAM, ISA_START_ADDRESS); in install_e820_map() 28 e820_next(&ctx, E820_RESERVED, ISA_END_ADDRESS); in install_e820_map() 37 e820_to_addr(&ctx, E820_RAM, (ulong)gd->bloblist); in install_e820_map() 38 e820_next(&ctx, E820_ACPI, bloblist_get_total_size()); in install_e820_map() 42 e820_next(&ctx, E820_ACPI, TOTAL_MALLOC_LEN); in install_e820_map() 44 e820_to_addr(&ctx, E820_RAM, qemu_get_low_memory_size()); in install_e820_map() 45 e820_add(&ctx, E820_RESERVED, CONFIG_PCIE_ECAM_BASE, in install_e820_map() 50 e820_add(&ctx, E820_RAM, SZ_4G, high_mem_size); in install_e820_map() [all …]
|
| /arch/x86/lib/ |
| A D | e820.c | 69 memset(ctx, '\0', sizeof(*ctx)); in e820_init() 70 ctx->entries = entries; in e820_init() 76 struct e820_entry *entry = &ctx->entries[ctx->count++]; in e820_add() 78 if (ctx->count <= ctx->max_entries) { in e820_add() 83 ctx->addr = addr + size; in e820_add() 88 e820_add(ctx, type, ctx->addr, size); in e820_next() 93 e820_next(ctx, type, addr - ctx->addr); in e820_to_addr() 98 if (ctx->count > ctx->max_entries) { in e820_finish() 100 ctx->max_entries); in e820_finish() 105 e820_dump(ctx->entries, ctx->count); in e820_finish() [all …]
|
| A D | acpi_table.c | 120 void *current = ctx->current; in acpi_fill_madt() 156 tcpa = ctx->current; in acpi_write_tcpa() 179 acpi_add_table(ctx, tcpa); in acpi_write_tcpa() 213 tpm2 = ctx->current; in acpi_write_tpm2() 248 acpi_add_table(ctx, tpm2); in acpi_write_tpm2() 262 if (!ctx->dsdt) in acpi_write_gnvs() 282 acpi_update_checksum(ctx->dsdt); in acpi_write_gnvs() 343 hpet = ctx->current; in acpi_write_hpet() 346 ret = acpi_add_table(ctx, hpet); in acpi_write_hpet() 364 acpi_inc(ctx, drhd->length); in acpi_create_dmar_drhd() [all …]
|
| A D | acpigen.c | 10 void acpigen_write_empty_pct(struct acpi_ctx *ctx) in acpigen_write_empty_pct() argument 49 acpigen_emit_stream(ctx, stream, ARRAY_SIZE(stream)); in acpigen_write_empty_pct() 52 void acpigen_write_empty_ptc(struct acpi_ctx *ctx) in acpigen_write_empty_ptc() argument 85 acpigen_write_name(ctx, "_PTC"); in acpigen_write_empty_ptc() 86 acpigen_write_package(ctx, 2); in acpigen_write_empty_ptc() 89 acpigen_write_register_resource(ctx, &addr); in acpigen_write_empty_ptc() 92 acpigen_write_register_resource(ctx, &addr); in acpigen_write_empty_ptc() 94 acpigen_pop_len(ctx); in acpigen_write_empty_ptc()
|
| A D | tables.c | 183 struct acpi_ctx *ctx = gd_acpi_ctx(); in write_tables() local 185 acpi_write_rsdp(ptr, ctx->rsdt, ctx->xsdt); in write_tables()
|
| /arch/arm/mach-bcm283x/ |
| A D | bcm2711_acpi.c | 53 header = ctx->current; in acpi_write_pptt() 54 ctx->tab_start = ctx->current; in acpi_write_pptt() 60 acpi_inc(ctx, sizeof(*header)); in acpi_write_pptt() 62 l3_offset = acpi_pptt_add_cache(ctx, ACPI_PPTT_ALL_VALID, 0, L3_SIZE, in acpi_write_pptt() 77 acpi_pptt_add_proc(ctx, ACPI_PPTT_CHILDREN_IDENTICAL | in acpi_write_pptt() 83 header->length = ctx->current - ctx->tab_start; in acpi_write_pptt() 86 acpi_inc(ctx, header->length); in acpi_write_pptt() 87 acpi_add_table(ctx, header); in acpi_write_pptt() 99 gtdt = ctx->current; in rpi_write_gtdt() 121 acpi_add_table(ctx, gtdt); in rpi_write_gtdt() [all …]
|
| /arch/x86/cpu/intel_common/ |
| A D | acpi.c | 42 acpi_inc(ctx, size); in acpi_fill_mcfg() 108 void *current = ctx->current; in acpi_fill_madt() 180 struct acpi_ctx *ctx) in intel_southbridge_write_acpi_tables() argument 189 ret = acpi_write_hpet(ctx); in intel_southbridge_write_acpi_tables() 227 acpigen_write_scope(ctx, "\\"); in southbridge_inject_dsdt() 229 acpigen_pop_len(ctx); in southbridge_inject_dsdt() 273 acpigen_write_empty_pct(ctx); in generate_p_state_entries() 276 acpigen_write_ppc_nvs(ctx); in generate_p_state_entries() 281 acpigen_write_name(ctx, "_PSS"); in generate_p_state_entries() 336 acpigen_pop_len(ctx); in generate_p_state_entries() [all …]
|
| A D | generic_wifi.c | 48 static int generic_wifi_fill_ssdt(struct acpi_ctx *ctx, in generic_wifi_fill_ssdt() argument 66 acpigen_write_scope(ctx, path); in generic_wifi_fill_ssdt() 67 acpigen_write_device(ctx, name); in generic_wifi_fill_ssdt() 68 acpigen_write_name_integer(ctx, "_UID", 0); in generic_wifi_fill_ssdt() 69 acpigen_write_name_string(ctx, "_DDN", in generic_wifi_fill_ssdt() 75 acpigen_write_name_dword(ctx, "_ADR", address); in generic_wifi_fill_ssdt() 79 acpigen_write_prw(ctx, config->wake, config->maxsleep); in generic_wifi_fill_ssdt() 81 acpigen_pop_len(ctx); /* Device */ in generic_wifi_fill_ssdt() 82 acpigen_pop_len(ctx); /* Scope */ in generic_wifi_fill_ssdt() 88 struct acpi_ctx *ctx) in intel_wifi_acpi_fill_ssdt() argument [all …]
|
| /arch/x86/include/asm/ |
| A D | acpi_table.h | 43 int acpi_write_hpet(struct acpi_ctx *ctx); 86 void acpi_create_dmar_drhd(struct acpi_ctx *ctx, uint flags, uint segment, 100 void acpi_create_dmar_rmrr(struct acpi_ctx *ctx, uint segment, u64 bar, 111 void acpi_dmar_drhd_fixup(struct acpi_ctx *ctx, void *base); 121 void acpi_dmar_rmrr_fixup(struct acpi_ctx *ctx, void *base); 130 int acpi_create_dmar_ds_pci(struct acpi_ctx *ctx, pci_dev_t bdf); 141 int acpi_create_dmar_ds_pci_br(struct acpi_ctx *ctx, pci_dev_t bdf); 151 int acpi_create_dmar_ds_ioapic(struct acpi_ctx *ctx, uint enumeration_id, 165 int acpi_create_dmar_ds_msi_hpet(struct acpi_ctx *ctx, uint enumeration_id,
|
| A D | intel_acpi.h | 27 int acpi_generate_cpu_header(struct acpi_ctx *ctx, int core_id, 39 int acpi_generate_cpu_package_final(struct acpi_ctx *ctx, 42 void generate_p_state_entries(struct acpi_ctx *ctx, int core, 44 void generate_t_state_entries(struct acpi_ctx *ctx, int core, 47 int southbridge_inject_dsdt(const struct udevice *dev, struct acpi_ctx *ctx); 50 struct acpi_ctx *ctx);
|
| A D | e820.h | 61 void e820_init(struct e820_ctx *ctx, struct e820_entry *entries, 72 void e820_add(struct e820_ctx *ctx, enum e820_type type, u64 addr, u64 size); 81 void e820_to_addr(struct e820_ctx *ctx, enum e820_type type, u64 end_addr); 90 void e820_next(struct e820_ctx *ctx, enum e820_type type, u64 size); 100 int e820_finish(struct e820_ctx *ctx);
|
| A D | acpigen.h | 22 void acpigen_write_empty_pct(struct acpi_ctx *ctx); 33 void acpigen_write_empty_ptc(struct acpi_ctx *ctx);
|
| /arch/x86/cpu/apollolake/ |
| A D | acpi.c | 152 int apl_acpi_fill_dmar(struct acpi_ctx *ctx) in apl_acpi_fill_dmar() argument 169 tmp = ctx->current; in apl_acpi_fill_dmar() 171 acpi_create_dmar_drhd(ctx, 0, 0, gfxvtbar); in apl_acpi_fill_dmar() 172 ret = acpi_create_dmar_ds_pci(ctx, PCI_BDF(0, 2, 0)); in apl_acpi_fill_dmar() 175 acpi_dmar_drhd_fixup(ctx, tmp); in apl_acpi_fill_dmar() 178 tmp = ctx->current; in apl_acpi_fill_dmar() 182 acpi_dmar_rmrr_fixup(ctx, tmp); in apl_acpi_fill_dmar() 192 tmp = ctx->current; in apl_acpi_fill_dmar() 212 acpi_create_dmar_ds_ioapic(ctx, 2, ioapic); in apl_acpi_fill_dmar() 213 acpi_create_dmar_ds_msi_hpet(ctx, 0, hpet); in apl_acpi_fill_dmar() [all …]
|
| A D | cpu.c | 60 static int acpi_cpu_fill_ssdt(const struct udevice *dev, struct acpi_ctx *ctx) in acpi_cpu_fill_ssdt() argument 67 ret = acpi_generate_cpu_header(ctx, core_id, cstate_map, in acpi_cpu_fill_ssdt() 71 generate_p_state_entries(ctx, core_id, cores_per_package); in acpi_cpu_fill_ssdt() 74 generate_t_state_entries(ctx, core_id, cores_per_package, NULL, 0); in acpi_cpu_fill_ssdt() 76 acpigen_pop_len(ctx); in acpi_cpu_fill_ssdt() 79 ret = acpi_generate_cpu_package_final(ctx, cores_per_package); in acpi_cpu_fill_ssdt()
|
| A D | hostbridge.c | 271 struct acpi_ctx *ctx) in apl_acpi_hb_write_tables() argument 293 dmar = (struct acpi_dmar *)ctx->current; in apl_acpi_hb_write_tables() 296 ctx->current += sizeof(struct acpi_dmar); in apl_acpi_hb_write_tables() 297 apl_acpi_fill_dmar(ctx); in apl_acpi_hb_write_tables() 300 header->length = ctx->current - (void *)dmar; in apl_acpi_hb_write_tables() 303 acpi_align(ctx); in apl_acpi_hb_write_tables() 304 acpi_add_table(ctx, dmar); in apl_acpi_hb_write_tables() 309 static int apl_acpi_setup_nhlt(const struct udevice *dev, struct acpi_ctx *ctx) in apl_acpi_setup_nhlt() argument 311 struct nhlt *nhlt = ctx->nhlt; in apl_acpi_setup_nhlt()
|
| /arch/x86/cpu/tangier/ |
| A D | acpi.c | 33 void *acpi_fill_madt(struct acpi_madt *madt, struct acpi_ctx *ctx) in acpi_fill_madt() argument 35 void *current = ctx->current; in acpi_fill_madt() 48 int acpi_fill_mcfg(struct acpi_ctx *ctx) in acpi_fill_mcfg() argument 54 ((struct acpi_mcfg_mmconfig *)ctx->current, in acpi_fill_mcfg() 56 acpi_inc(ctx, size); in acpi_fill_mcfg() 92 int acpi_fill_csrt(struct acpi_ctx *ctx) in acpi_fill_csrt() argument 96 size = acpi_fill_csrt_dma(ctx->current); in acpi_fill_csrt() 97 acpi_inc(ctx, size); in acpi_fill_csrt()
|
| /arch/arm/lib/ |
| A D | acpi_table.c | 107 int acpi_pptt_add_proc(struct acpi_ctx *ctx, const u32 flags, const u32 parent, in acpi_pptt_add_proc() argument 111 struct acpi_pptt_proc *proc = ctx->current; in acpi_pptt_add_proc() 114 offset = ctx->current - ctx->tab_start; in acpi_pptt_add_proc() 126 acpi_inc(ctx, proc->hdr.length); in acpi_pptt_add_proc() 131 int acpi_pptt_add_cache(struct acpi_ctx *ctx, const u32 flags, in acpi_pptt_add_cache() argument 136 struct acpi_pptt_cache *cache = ctx->current; in acpi_pptt_add_cache() 139 offset = ctx->current - ctx->tab_start; in acpi_pptt_add_cache() 149 acpi_inc(ctx, cache->hdr.length); in acpi_pptt_add_cache() 154 void *acpi_fill_madt(struct acpi_madt *madt, struct acpi_ctx *ctx) in acpi_fill_madt() argument 160 acpi_fill_madt_subtbl(ctx); in acpi_fill_madt() [all …]
|
| A D | gic-v3-its.c | 178 static int acpi_gicv3_fill_madt(const struct udevice *dev, struct acpi_ctx *ctx) in acpi_gicv3_fill_madt() argument 188 gicd = ctx->current; in acpi_gicv3_fill_madt() 190 acpi_inc(ctx, gicd->length); in acpi_gicv3_fill_madt() 192 gicr = ctx->current; in acpi_gicv3_fill_madt() 194 acpi_inc(ctx, gicr->length); in acpi_gicv3_fill_madt() 251 static int acpi_gic_its_fill_madt(const struct udevice *dev, struct acpi_ctx *ctx) in acpi_gic_its_fill_madt() argument 262 its = ctx->current; in acpi_gic_its_fill_madt() 264 acpi_inc(ctx, its->length); in acpi_gic_its_fill_madt()
|
| A D | gic-v2.c | 23 static int acpi_gicv2_fill_madt(const struct udevice *dev, struct acpi_ctx *ctx) in acpi_gicv2_fill_madt() argument 34 gicd = ctx->current; in acpi_gicv2_fill_madt() 36 acpi_inc(ctx, gicd->length); in acpi_gicv2_fill_madt()
|
| /arch/sandbox/lib/ |
| A D | acpi_table.c | 8 void *acpi_fill_madt(struct acpi_madt *madt, struct acpi_ctx *ctx) in acpi_fill_madt() argument 10 return ctx->current; in acpi_fill_madt()
|
| /arch/arm/cpu/armv8/ |
| A D | sha256_ce_glue.c | 13 void sha256_process(sha256_context *ctx, const unsigned char *data, in sha256_process() argument 19 sha256_armv8_ce_process(ctx->state, data, blocks); in sha256_process()
|
| A D | sha1_ce_glue.c | 13 void sha1_process(sha1_context *ctx, const unsigned char *data, in sha1_process() argument 19 sha1_armv8_ce_process(ctx->state, data, blocks); in sha1_process()
|
| /arch/arm/include/asm/ |
| A D | acpi_table.h | 89 int acpi_pptt_add_proc(struct acpi_ctx *ctx, const u32 flags, const u32 parent, 108 int acpi_pptt_add_cache(struct acpi_ctx *ctx, const u32 flags,
|
| /arch/x86/lib/fsp/ |
| A D | fsp_graphics.c | 135 struct acpi_ctx *ctx) in fsp_video_acpi_write_tables() argument 141 opregion = (struct igd_opregion *)ctx->current; in fsp_video_acpi_write_tables() 147 acpi_inc_align(ctx, sizeof(struct igd_opregion)); in fsp_video_acpi_write_tables()
|
| /arch/x86/include/asm/arch-apollolake/ |
| A D | acpi.h | 16 int apl_acpi_fill_dmar(struct acpi_ctx *ctx);
|