Lines Matching refs:current
191 int acpi_create_madt_lapics(u32 current) in acpi_create_madt_lapics() argument
201 (struct acpi_madt_lapic *)current, in acpi_create_madt_lapics()
203 current += length; in acpi_create_madt_lapics()
248 static int acpi_create_madt_irq_overrides(u32 current) in acpi_create_madt_irq_overrides() argument
254 irqovr = (void *)current; in acpi_create_madt_irq_overrides()
257 irqovr = (void *)(current + length); in acpi_create_madt_irq_overrides()
263 __weak u32 acpi_fill_madt(u32 current) in acpi_fill_madt() argument
265 current += acpi_create_madt_lapics(current); in acpi_fill_madt()
267 current += acpi_create_madt_ioapic((struct acpi_madt_ioapic *)current, in acpi_fill_madt()
270 current += acpi_create_madt_irq_overrides(current); in acpi_fill_madt()
272 return current; in acpi_fill_madt()
278 u32 current = (u32)madt + sizeof(struct acpi_madt); in acpi_create_madt() local
290 current = acpi_fill_madt(current); in acpi_create_madt()
293 header->length = current - (u32)madt; in acpi_create_madt()
311 __weak u32 acpi_fill_mcfg(u32 current) in acpi_fill_mcfg() argument
313 current += acpi_create_mcfg_mmconfig in acpi_fill_mcfg()
314 ((struct acpi_mcfg_mmconfig *)current, in acpi_fill_mcfg()
317 return current; in acpi_fill_mcfg()
324 u32 current = (u32)mcfg + sizeof(struct acpi_mcfg); in acpi_create_mcfg() local
333 current = acpi_fill_mcfg(current); in acpi_create_mcfg()
336 header->length = current - (u32)mcfg; in acpi_create_mcfg()
366 u32 current; in write_acpi_tables() local
377 current = start; in write_acpi_tables()
380 current = ALIGN(current, 16); in write_acpi_tables()
385 rsdp = (struct acpi_rsdp *)current; in write_acpi_tables()
386 current += sizeof(struct acpi_rsdp); in write_acpi_tables()
387 current = ALIGN(current, 16); in write_acpi_tables()
388 rsdt = (struct acpi_rsdt *)current; in write_acpi_tables()
389 current += sizeof(struct acpi_rsdt); in write_acpi_tables()
390 current = ALIGN(current, 16); in write_acpi_tables()
391 xsdt = (struct acpi_xsdt *)current; in write_acpi_tables()
392 current += sizeof(struct acpi_xsdt); in write_acpi_tables()
397 current = ALIGN(current, 64); in write_acpi_tables()
400 memset((void *)start, 0, current - start); in write_acpi_tables()
407 facs = (struct acpi_facs *)current; in write_acpi_tables()
408 current += sizeof(struct acpi_facs); in write_acpi_tables()
409 current = ALIGN(current, 16); in write_acpi_tables()
414 dsdt = (struct acpi_table_header *)current; in write_acpi_tables()
416 current += sizeof(struct acpi_table_header); in write_acpi_tables()
417 memcpy((char *)current, in write_acpi_tables()
420 current += dsdt->length - sizeof(struct acpi_table_header); in write_acpi_tables()
421 current = ALIGN(current, 16); in write_acpi_tables()
427 debug("Fix up global NVS in DSDT to 0x%08x\n", current); in write_acpi_tables()
428 *gnvs = current; in write_acpi_tables()
438 acpi_create_gnvs((struct acpi_global_nvs *)current); in write_acpi_tables()
439 current += sizeof(struct acpi_global_nvs); in write_acpi_tables()
440 current = ALIGN(current, 16); in write_acpi_tables()
443 fadt = (struct acpi_fadt *)current; in write_acpi_tables()
444 current += sizeof(struct acpi_fadt); in write_acpi_tables()
445 current = ALIGN(current, 16); in write_acpi_tables()
450 madt = (struct acpi_madt *)current; in write_acpi_tables()
452 current += madt->header.length; in write_acpi_tables()
454 current = ALIGN(current, 16); in write_acpi_tables()
457 mcfg = (struct acpi_mcfg *)current; in write_acpi_tables()
459 current += mcfg->header.length; in write_acpi_tables()
461 current = ALIGN(current, 16); in write_acpi_tables()
463 debug("current = %x\n", current); in write_acpi_tables()
470 return current; in write_acpi_tables()
478 return current; in write_acpi_tables()