Lines Matching +full:multi +full:- +full:gas

1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: hwxface - Public ACPICA hardware interfaces
6 * Copyright (C) 2000 - 2023, Intel Corp.
44 !reset_reg->address) { in acpi_reset()
48 if (reset_reg->space_id == ACPI_ADR_SPACE_SYSTEM_IO) { in acpi_reset()
60 status = acpi_os_write_port((acpi_io_address)reset_reg->address, in acpi_reset()
78 * PARAMETERS: value - Where the value is returned in ACPI_EXPORT_SYMBOL()
79 * reg - GAS register structure in ACPI_EXPORT_SYMBOL()
108 * PARAMETERS: value - Value to be written in ACPI_EXPORT_SYMBOL()
109 * reg - GAS register structure in ACPI_EXPORT_SYMBOL()
133 * PARAMETERS: register_id - ID of ACPI Bit Register to access in ACPI_EXPORT_SYMBOL()
134 * return_value - Value that was read from the register, in ACPI_EXPORT_SYMBOL()
148 * registers. The only multi-bit field is SLP_TYP in the PM1 control in ACPI_EXPORT_SYMBOL()
149 * register, but this field does not cross an 8-bit boundary (nor does in ACPI_EXPORT_SYMBOL()
171 status = acpi_hw_register_read(bit_reg_info->parent_register, in ACPI_EXPORT_SYMBOL()
179 value = ((register_value & bit_reg_info->access_bit_mask) in ACPI_EXPORT_SYMBOL()
180 >> bit_reg_info->bit_position); in ACPI_EXPORT_SYMBOL()
184 register_id, bit_reg_info->parent_register, in ACPI_EXPORT_SYMBOL()
197 * PARAMETERS: register_id - ID of ACPI Bit Register to access in ACPI_EXPORT_SYMBOL()
198 * value - Value to write to the register, in bit in ACPI_EXPORT_SYMBOL()
211 * hardware registers (A and B - and B may not exist) is abstracted. in ACPI_EXPORT_SYMBOL()
236 if (bit_reg_info->parent_register != ACPI_REGISTER_PM1_STATUS) { in ACPI_EXPORT_SYMBOL()
243 status = acpi_hw_register_read(bit_reg_info->parent_register, in ACPI_EXPORT_SYMBOL()
254 bit_reg_info->bit_position, in ACPI_EXPORT_SYMBOL()
255 bit_reg_info->access_bit_mask, in ACPI_EXPORT_SYMBOL()
258 status = acpi_hw_register_write(bit_reg_info->parent_register, in ACPI_EXPORT_SYMBOL()
270 bit_reg_info-> in ACPI_EXPORT_SYMBOL()
272 bit_reg_info-> in ACPI_EXPORT_SYMBOL()
286 register_id, bit_reg_info->parent_register, value, in ACPI_EXPORT_SYMBOL()
301 * PARAMETERS: sleep_state - Numeric sleep state in ACPI_EXPORT_SYMBOL()
302 * *sleep_type_a - Where SLP_TYPa is returned in ACPI_EXPORT_SYMBOL()
303 * *sleep_type_b - Where SLP_TYPb is returned in ACPI_EXPORT_SYMBOL()
325 * BYTE 0 - Value for the PM1A SLP_TYP register in ACPI_EXPORT_SYMBOL()
326 * BYTE 1 - Value for the PM1B SLP_TYP register in ACPI_EXPORT_SYMBOL()
327 * BYTE 2-3 - Reserved in ACPI_EXPORT_SYMBOL()
330 * Integer 0 - Value for the PM1A SLP_TYP register in ACPI_EXPORT_SYMBOL()
331 * Integer 1 - Value for the PM1A SLP_TYP register in ACPI_EXPORT_SYMBOL()
360 info->relative_pathname = acpi_gbl_sleep_state_names[sleep_state]; in ACPI_EXPORT_SYMBOL()
376 if (!info->return_object) { in ACPI_EXPORT_SYMBOL()
378 info->relative_pathname)); in ACPI_EXPORT_SYMBOL()
385 if (info->return_object->common.type != ACPI_TYPE_PACKAGE) { in ACPI_EXPORT_SYMBOL()
394 * already been issued by the predefined name module -- there is no in ACPI_EXPORT_SYMBOL()
397 elements = info->return_object->package.elements; in ACPI_EXPORT_SYMBOL()
398 switch (info->return_object->package.count) { in ACPI_EXPORT_SYMBOL()
406 if (elements[0]->common.type != ACPI_TYPE_INTEGER) { in ACPI_EXPORT_SYMBOL()
413 *sleep_type_a = (u8)elements[0]->integer.value; in ACPI_EXPORT_SYMBOL()
414 *sleep_type_b = (u8)(elements[0]->integer.value >> 8); in ACPI_EXPORT_SYMBOL()
420 if ((elements[0]->common.type != ACPI_TYPE_INTEGER) || in ACPI_EXPORT_SYMBOL()
421 (elements[1]->common.type != ACPI_TYPE_INTEGER)) { in ACPI_EXPORT_SYMBOL()
428 *sleep_type_a = (u8)elements[0]->integer.value; in ACPI_EXPORT_SYMBOL()
429 *sleep_type_b = (u8)elements[1]->integer.value; in ACPI_EXPORT_SYMBOL()
434 acpi_ut_remove_reference(info->return_object); in ACPI_EXPORT_SYMBOL()
440 info->relative_pathname)); in ACPI_EXPORT_SYMBOL()