Lines Matching refs:obj_desc

93  *              obj_desc            - The named field
106 union acpi_operand_object *obj_desc,
114 ACPI_FUNCTION_TRACE_PTR(ex_read_data_from_field, obj_desc);
118 if (!obj_desc) {
125 if (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD) {
130 if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) {
131 status = acpi_ds_get_buffer_field_arguments(obj_desc);
136 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
137 (obj_desc->field.region_obj->region.space_id ==
139 || obj_desc->field.region_obj->region.space_id ==
141 || obj_desc->field.region_obj->region.space_id ==
143 || obj_desc->field.region_obj->region.space_id ==
145 || obj_desc->field.region_obj->region.space_id ==
150 status = acpi_ex_read_serial_bus(obj_desc, ret_buffer_desc);
168 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length);
171 (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD &&
172 obj_desc->buffer_field.is_create_field)) {
193 if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
194 (obj_desc->field.region_obj->region.space_id ==
199 status = acpi_ex_read_gpio(obj_desc, buffer);
201 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
202 (obj_desc->field.region_obj->region.space_id ==
210 obj_desc->field.bit_length));
213 obj_desc->field.region_obj->field.internal_pcc_buffer +
214 obj_desc->field.base_byte_offset,
215 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.
224 obj_desc, obj_desc->common.type, buffer,
228 obj_desc->common_field.bit_length,
229 obj_desc->common_field.start_field_bit_offset,
230 obj_desc->common_field.base_byte_offset));
234 acpi_ex_acquire_global_lock(obj_desc->common_field.field_flags);
238 status = acpi_ex_extract_from_field(obj_desc, buffer, buffer_length);
239 acpi_ex_release_global_lock(obj_desc->common_field.field_flags);
256 * obj_desc - The named field
267 union acpi_operand_object *obj_desc,
275 ACPI_FUNCTION_TRACE_PTR(ex_write_data_to_field, obj_desc);
279 if (!source_desc || !obj_desc) {
283 if (obj_desc->common.type == ACPI_TYPE_BUFFER_FIELD) {
288 if (!(obj_desc->common.flags & AOPOBJ_DATA_VALID)) {
289 status = acpi_ds_get_buffer_field_arguments(obj_desc);
294 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
295 (obj_desc->field.region_obj->region.space_id ==
300 status = acpi_ex_write_gpio(source_desc, obj_desc, result_desc);
302 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
303 (obj_desc->field.region_obj->region.space_id ==
305 || obj_desc->field.region_obj->region.space_id ==
307 || obj_desc->field.region_obj->region.space_id ==
309 || obj_desc->field.region_obj->region.space_id ==
311 || obj_desc->field.region_obj->region.space_id ==
317 acpi_ex_write_serial_bus(source_desc, obj_desc,
320 } else if ((obj_desc->common.type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
321 (obj_desc->field.region_obj->region.space_id ==
331 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.
333 memcpy(obj_desc->field.region_obj->field.internal_pcc_buffer +
334 obj_desc->field.base_byte_offset,
337 if (MASTER_SUBSPACE_COMMAND(obj_desc->field.base_byte_offset)) {
345 acpi_ex_access_region(obj_desc, 0,
346 (u64 *)obj_desc->field.
388 obj_desc,
389 acpi_ut_get_type_name(obj_desc->common.type),
390 obj_desc->common.type,
391 obj_desc->common_field.bit_length,
392 obj_desc->common_field.start_field_bit_offset,
393 obj_desc->common_field.base_byte_offset));
397 acpi_ex_acquire_global_lock(obj_desc->common_field.field_flags);
401 status = acpi_ex_insert_into_field(obj_desc, buffer, buffer_length);
402 acpi_ex_release_global_lock(obj_desc->common_field.field_flags);