Lines Matching refs:ObjDesc

243  *              ObjDesc             - The named field
257 ACPI_OPERAND_OBJECT *ObjDesc,
266 ACPI_FUNCTION_TRACE_PTR (ExReadDataFromField, ObjDesc);
271 if (!ObjDesc)
280 if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD)
286 if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID))
288 Status = AcpiDsGetBufferFieldArguments (ObjDesc);
295 else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
296 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS ||
297 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS ||
298 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_IPMI ||
299 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_RT ||
300 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE))
304 Status = AcpiExReadSerialBus (ObjDesc, RetBufferDesc);
322 ObjDesc->Field.BitLength);
325 (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD &&
326 ObjDesc->BufferField.IsCreateField))
351 if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
352 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO))
356 Status = AcpiExReadGpio (ObjDesc, Buffer);
359 else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
360 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM))
367 "PCC FieldRead bits %u\n", ObjDesc->Field.BitLength));
369 memcpy (Buffer, ObjDesc->Field.RegionObj->Field.InternalPccBuffer +
370 ObjDesc->Field.BaseByteOffset, (ACPI_SIZE) ACPI_ROUND_BITS_UP_TO_BYTES (
371 ObjDesc->Field.BitLength));
379 ObjDesc, ObjDesc->Common.Type, Buffer, BufferLength));
382 ObjDesc->CommonField.BitLength,
383 ObjDesc->CommonField.StartFieldBitOffset,
384 ObjDesc->CommonField.BaseByteOffset));
388 AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags);
392 Status = AcpiExExtractFromField (ObjDesc, Buffer, BufferLength);
393 AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags);
415 * ObjDesc - The named field
427 ACPI_OPERAND_OBJECT *ObjDesc,
436 ACPI_FUNCTION_TRACE_PTR (ExWriteDataToField, ObjDesc);
441 if (!SourceDesc || !ObjDesc)
446 if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD)
452 if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID))
454 Status = AcpiDsGetBufferFieldArguments (ObjDesc);
461 else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
462 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO))
466 Status = AcpiExWriteGpio (SourceDesc, ObjDesc, ResultDesc);
469 else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
470 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS ||
471 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS ||
472 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_IPMI ||
473 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_RT ||
474 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE))
478 Status = AcpiExWriteSerialBus (SourceDesc, ObjDesc, ResultDesc);
481 else if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_REGION_FIELD) &&
482 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM))
492 ObjDesc->Field.BitLength);
493 memcpy (ObjDesc->Field.RegionObj->Field.InternalPccBuffer +
494 ObjDesc->Field.BaseByteOffset,
497 if (MASTER_SUBSPACE_COMMAND (ObjDesc->Field.BaseByteOffset))
505 ObjDesc, 0, (UINT64 *) ObjDesc->Field.RegionObj->Field.InternalPccBuffer,
546 ObjDesc, AcpiUtGetTypeName (ObjDesc->Common.Type),
547 ObjDesc->Common.Type,
548 ObjDesc->CommonField.BitLength,
549 ObjDesc->CommonField.StartFieldBitOffset,
550 ObjDesc->CommonField.BaseByteOffset));
554 AcpiExAcquireGlobalLock (ObjDesc->CommonField.FieldFlags);
558 Status = AcpiExInsertIntoField (ObjDesc, Buffer, BufferLength);
559 AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags);