Lines Matching full:field

47  * The following macros determine a given offset is a COMD field.
49 * 2-byte COMD field at offset 4 and master subspaces (type 3) contains a 4-byte
50 * COMD field starting at offset 12.
60 * field access attributes
78 "Invalid Field/AccessAs protocol ID: 0x%4.4X", in acpi_ex_get_protocol_buffer_length()
93 * obj_desc - The named field
98 * DESCRIPTION: Read from a named field. Returns either an Integer or a
99 * Buffer, depending on the size of the field and whether if a
100 * field is created by the create_field() operator.
137 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
139 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
141 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
151 * Allocate a buffer for the contents of the field. in acpi_ex_read_data_from_field()
153 * If the field is larger than the current integer width, create in acpi_ex_read_data_from_field()
156 * field size is equal or smaller than an Integer. in acpi_ex_read_data_from_field()
161 * Note: Field.length is in bits. in acpi_ex_read_data_from_field()
164 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length); in acpi_ex_read_data_from_field()
170 /* Field is too large for an Integer, create a Buffer instead */ in acpi_ex_read_data_from_field()
178 /* Field will fit within an Integer (normal case) */ in acpi_ex_read_data_from_field()
190 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
198 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
201 * Reading from a PCC field unit does not require the handler because in acpi_ex_read_data_from_field()
206 obj_desc->field.bit_length)); in acpi_ex_read_data_from_field()
209 obj_desc->field.region_obj->field.internal_pcc_buffer + in acpi_ex_read_data_from_field()
210 obj_desc->field.base_byte_offset, in acpi_ex_read_data_from_field()
211 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field. in acpi_ex_read_data_from_field()
232 /* Read from the field */ in acpi_ex_read_data_from_field()
252 * obj_desc - The named field
257 * DESCRIPTION: Write to a named field
291 (obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
299 (obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
301 || obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
303 || obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
313 (obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
316 * According to the spec a write to the COMD field will invoke the in acpi_ex_write_data_to_field()
319 * of the field. This is considered safer because some firmware tools in acpi_ex_write_data_to_field()
323 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field. in acpi_ex_write_data_to_field()
325 memcpy(obj_desc->field.region_obj->field.internal_pcc_buffer + in acpi_ex_write_data_to_field()
326 obj_desc->field.base_byte_offset, in acpi_ex_write_data_to_field()
329 if ((obj_desc->field.region_obj->region.address == in acpi_ex_write_data_to_field()
331 && MASTER_SUBSPACE_COMMAND(obj_desc->field. in acpi_ex_write_data_to_field()
333 || GENERIC_SUBSPACE_COMMAND(obj_desc->field. in acpi_ex_write_data_to_field()
339 "PCC COMD field has been written. Invoking PCC handler now.\n")); in acpi_ex_write_data_to_field()
343 (u64 *)obj_desc->field. in acpi_ex_write_data_to_field()
344 region_obj->field. in acpi_ex_write_data_to_field()
396 /* Write to the field */ in acpi_ex_write_data_to_field()