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()
143 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
145 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
155 * Allocate a buffer for the contents of the field. in acpi_ex_read_data_from_field()
157 * If the field is larger than the current integer width, create in acpi_ex_read_data_from_field()
160 * field size is equal or smaller than an Integer. in acpi_ex_read_data_from_field()
165 * Note: Field.length is in bits. in acpi_ex_read_data_from_field()
168 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length); in acpi_ex_read_data_from_field()
174 /* Field is too large for an Integer, create a Buffer instead */ in acpi_ex_read_data_from_field()
182 /* Field will fit within an Integer (normal case) */ in acpi_ex_read_data_from_field()
194 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
202 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
205 * Reading from a PCC field unit does not require the handler because in acpi_ex_read_data_from_field()
210 obj_desc->field.bit_length)); in acpi_ex_read_data_from_field()
213 obj_desc->field.region_obj->field.internal_pcc_buffer + in acpi_ex_read_data_from_field()
214 obj_desc->field.base_byte_offset, in acpi_ex_read_data_from_field()
215 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field. in acpi_ex_read_data_from_field()
236 /* Read from the field */ in acpi_ex_read_data_from_field()
256 * obj_desc - The named field
261 * DESCRIPTION: Write to a named field
295 (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()
305 || obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
307 || obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
309 || obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
311 || obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
321 (obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
324 * According to the spec a write to the COMD field will invoke the in acpi_ex_write_data_to_field()
327 * of the field. This is considered safer because some firmware tools in acpi_ex_write_data_to_field()
331 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field. in acpi_ex_write_data_to_field()
333 memcpy(obj_desc->field.region_obj->field.internal_pcc_buffer + in acpi_ex_write_data_to_field()
334 obj_desc->field.base_byte_offset, in acpi_ex_write_data_to_field()
337 if (MASTER_SUBSPACE_COMMAND(obj_desc->field.base_byte_offset)) { in acpi_ex_write_data_to_field()
342 "PCC COMD field has been written. Invoking PCC handler now.\n")); in acpi_ex_write_data_to_field()
346 (u64 *)obj_desc->field. in acpi_ex_write_data_to_field()
347 region_obj->field. in acpi_ex_write_data_to_field()
399 /* Write to the field */ in acpi_ex_write_data_to_field()