Lines Matching full:gas
92 static void __init acpi_request_region (struct acpi_generic_address *gas, in acpi_request_region() argument
98 memcpy(&addr, &gas->address, sizeof(addr)); in acpi_request_region()
103 if (gas->space_id == ACPI_ADR_SPACE_SYSTEM_IO) in acpi_request_region()
105 else if (gas->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) in acpi_request_region()
452 void __iomem *acpi_os_map_generic_address(struct acpi_generic_address *gas) in acpi_os_map_generic_address() argument
456 if (gas->space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY) in acpi_os_map_generic_address()
460 memcpy(&addr, &gas->address, sizeof(addr)); in acpi_os_map_generic_address()
461 if (!addr || !gas->bit_width) in acpi_os_map_generic_address()
464 return acpi_os_map_iomem(addr, gas->bit_width / 8); in acpi_os_map_generic_address()
468 void acpi_os_unmap_generic_address(struct acpi_generic_address *gas) in acpi_os_unmap_generic_address() argument
473 if (gas->space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY) in acpi_os_unmap_generic_address()
477 memcpy(&addr, &gas->address, sizeof(addr)); in acpi_os_unmap_generic_address()
478 if (!addr || !gas->bit_width) in acpi_os_unmap_generic_address()
483 map = acpi_map_lookup(addr, gas->bit_width / 8); in acpi_os_unmap_generic_address()