Lines Matching refs:obj_desc

106 			     union acpi_operand_object *obj_desc,  in acpi_ex_read_data_from_field()  argument
114 ACPI_FUNCTION_TRACE_PTR(ex_read_data_from_field, obj_desc); in acpi_ex_read_data_from_field()
118 if (!obj_desc) { in acpi_ex_read_data_from_field()
125 if (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD) { in acpi_ex_read_data_from_field()
130 if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) { in acpi_ex_read_data_from_field()
131 status = acpi_ds_get_buffer_field_arguments(obj_desc); in acpi_ex_read_data_from_field()
136 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) && in acpi_ex_read_data_from_field()
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()
150 status = acpi_ex_read_serial_bus(obj_desc, ret_buffer_desc); 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()
171 (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD && in acpi_ex_read_data_from_field()
172 obj_desc->buffer_field.is_create_field)) { in acpi_ex_read_data_from_field()
193 if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) && in acpi_ex_read_data_from_field()
194 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
199 status = acpi_ex_read_gpio(obj_desc, buffer); in acpi_ex_read_data_from_field()
201 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) && in acpi_ex_read_data_from_field()
202 (obj_desc->field.region_obj->region.space_id == 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()
224 obj_desc, obj_desc->common.type, buffer, in acpi_ex_read_data_from_field()
228 obj_desc->common_field.bit_length, in acpi_ex_read_data_from_field()
229 obj_desc->common_field.start_field_bit_offset, in acpi_ex_read_data_from_field()
230 obj_desc->common_field.base_byte_offset)); in acpi_ex_read_data_from_field()
234 acpi_ex_acquire_global_lock(obj_desc->common_field.field_flags); in acpi_ex_read_data_from_field()
238 status = acpi_ex_extract_from_field(obj_desc, buffer, buffer_length); in acpi_ex_read_data_from_field()
239 acpi_ex_release_global_lock(obj_desc->common_field.field_flags); in acpi_ex_read_data_from_field()
267 union acpi_operand_object *obj_desc, in acpi_ex_write_data_to_field() argument
275 ACPI_FUNCTION_TRACE_PTR(ex_write_data_to_field, obj_desc); in acpi_ex_write_data_to_field()
279 if (!source_desc || !obj_desc) { in acpi_ex_write_data_to_field()
283 if (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD) { in acpi_ex_write_data_to_field()
288 if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) { in acpi_ex_write_data_to_field()
289 status = acpi_ds_get_buffer_field_arguments(obj_desc); in acpi_ex_write_data_to_field()
294 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) && in acpi_ex_write_data_to_field()
295 (obj_desc->field.region_obj->region.space_id == in acpi_ex_write_data_to_field()
300 status = acpi_ex_write_gpio(source_desc, obj_desc, result_desc); in acpi_ex_write_data_to_field()
302 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) && 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()
317 acpi_ex_write_serial_bus(source_desc, obj_desc, in acpi_ex_write_data_to_field()
320 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) && in acpi_ex_write_data_to_field()
321 (obj_desc->field.region_obj->region.space_id == 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()
345 acpi_ex_access_region(obj_desc, 0, in acpi_ex_write_data_to_field()
346 (u64 *)obj_desc->field. in acpi_ex_write_data_to_field()
388 obj_desc, in acpi_ex_write_data_to_field()
389 acpi_ut_get_type_name(obj_desc->common.type), in acpi_ex_write_data_to_field()
390 obj_desc->common.type, in acpi_ex_write_data_to_field()
391 obj_desc->common_field.bit_length, in acpi_ex_write_data_to_field()
392 obj_desc->common_field.start_field_bit_offset, in acpi_ex_write_data_to_field()
393 obj_desc->common_field.base_byte_offset)); in acpi_ex_write_data_to_field()
397 acpi_ex_acquire_global_lock(obj_desc->common_field.field_flags); in acpi_ex_write_data_to_field()
401 status = acpi_ex_insert_into_field(obj_desc, buffer, buffer_length); in acpi_ex_write_data_to_field()
402 acpi_ex_release_global_lock(obj_desc->common_field.field_flags); in acpi_ex_write_data_to_field()