49 #define _COMPONENT ACPI_EXECUTER
84 if (!ret_buffer_desc) {
100 (obj_desc->field.region_obj->region.space_id ==
102 || obj_desc->field.region_obj->region.space_id ==
104 || obj_desc->field.region_obj->region.space_id ==
112 if (obj_desc->field.region_obj->region.space_id ==
116 ACPI_READ | (obj_desc->field.attribute << 16);
117 }
else if (obj_desc->field.region_obj->region.space_id ==
121 ACPI_READ | (obj_desc->field.attribute << 16);
168 buffer = buffer_desc->
buffer.pointer;
178 buffer = &buffer_desc->
integer.value;
182 "FieldRead [TO]: Obj %p, Type %X, Buf %p, ByteLen %X\n",
183 obj_desc, obj_desc->common.type, buffer,
186 "FieldRead [FROM]: BitLen %X, BitOff %X, ByteOff %X\n",
187 obj_desc->common_field.bit_length,
188 obj_desc->common_field.start_field_bit_offset,
189 obj_desc->common_field.base_byte_offset));
204 *ret_buffer_desc = buffer_desc;
239 if (!source_desc || !obj_desc) {
255 (obj_desc->
field.region_obj->region.space_id ==
257 || obj_desc->
field.region_obj->region.space_id ==
259 || obj_desc->
field.region_obj->region.space_id ==
274 "SMBus/IPMI/GenericSerialBus write requires Buffer, found type %s",
280 if (obj_desc->
field.region_obj->region.space_id ==
285 }
else if (obj_desc->
field.region_obj->region.space_id ==
296 if (source_desc->
buffer.length < length) {
298 "SMBus/IPMI/GenericSerialBus write requires Buffer of length %u, found length %u",
299 length, source_desc->
buffer.length));
311 buffer = buffer_desc->
buffer.pointer;
323 (
u64 *) buffer,
function);
326 *result_desc = buffer_desc;
332 switch (source_desc->
common.type) {
334 buffer = &source_desc->
integer.value;
335 length =
sizeof(source_desc->
integer.value);
339 buffer = source_desc->
buffer.pointer;
340 length = source_desc->
buffer.length;
344 buffer = source_desc->
string.pointer;
345 length = source_desc->
string.length;
353 "FieldWrite [FROM]: Obj %p (%s:%X), Buf %p, ByteLen %X\n",
356 source_desc->
common.type, buffer, length));
359 "FieldWrite [TO]: Obj %p (%s:%X), BitLen %X, BitOff %X, ByteOff %X\n",