Lines Matching refs:ObjDesc

59     ACPI_OPERAND_OBJECT     *ObjDesc,
66 ACPI_OPERAND_OBJECT *ObjDesc,
71 ACPI_OPERAND_OBJECT *ObjDesc,
93 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExSetupRegion() argument
104 RgnDesc = ObjDesc->CommonField.RegionObj; in AcpiExSetupRegion()
159 if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) in AcpiExSetupRegion()
174 (ObjDesc->CommonField.BaseByteOffset + FieldDatumByteOffset + in AcpiExSetupRegion()
175 ObjDesc->CommonField.AccessByteWidth)) in AcpiExSetupRegion()
185 ObjDesc->CommonField.AccessByteWidth) >= in AcpiExSetupRegion()
186 ((ACPI_SIZE) ObjDesc->CommonField.BaseByteOffset + in AcpiExSetupRegion()
187 ObjDesc->CommonField.AccessByteWidth + in AcpiExSetupRegion()
194 if (RgnDesc->Region.Length < ObjDesc->CommonField.AccessByteWidth) in AcpiExSetupRegion()
204 AcpiUtGetNodeName (ObjDesc->CommonField.Node), in AcpiExSetupRegion()
205 ObjDesc->CommonField.AccessByteWidth, in AcpiExSetupRegion()
217 AcpiUtGetNodeName (ObjDesc->CommonField.Node), in AcpiExSetupRegion()
218 ObjDesc->CommonField.BaseByteOffset, in AcpiExSetupRegion()
219 FieldDatumByteOffset, ObjDesc->CommonField.AccessByteWidth, in AcpiExSetupRegion()
250 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExAccessRegion() argument
267 Status = AcpiExSetupRegion (ObjDesc, FieldDatumByteOffset); in AcpiExAccessRegion()
280 RgnDesc = ObjDesc->CommonField.RegionObj; in AcpiExAccessRegion()
282 ObjDesc->CommonField.BaseByteOffset + in AcpiExAccessRegion()
298 ObjDesc->CommonField.AccessByteWidth, in AcpiExAccessRegion()
299 ObjDesc->CommonField.BaseByteOffset, in AcpiExAccessRegion()
305 Status = AcpiEvAddressSpaceDispatch (RgnDesc, ObjDesc, in AcpiExAccessRegion()
307 ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth), Value); in AcpiExAccessRegion()
350 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExRegisterOverflow() argument
354 if (ObjDesc->CommonField.BitLength >= ACPI_INTEGER_BIT_SIZE) in AcpiExRegisterOverflow()
363 if (Value >= ((UINT64) 1 << ObjDesc->CommonField.BitLength)) in AcpiExRegisterOverflow()
372 ObjDesc->CommonField.BitLength)); in AcpiExRegisterOverflow()
403 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExFieldDatumIo() argument
440 switch (ObjDesc->Common.Type) in AcpiExFieldDatumIo()
447 if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) in AcpiExFieldDatumIo()
449 Status = AcpiDsGetBufferFieldArguments (ObjDesc); in AcpiExFieldDatumIo()
463 (ObjDesc->BufferField.BufferObj)->Buffer.Pointer + in AcpiExFieldDatumIo()
464 ObjDesc->BufferField.BaseByteOffset + in AcpiExFieldDatumIo()
466 ObjDesc->CommonField.AccessByteWidth); in AcpiExFieldDatumIo()
474 memcpy ((ObjDesc->BufferField.BufferObj)->Buffer.Pointer + in AcpiExFieldDatumIo()
475 ObjDesc->BufferField.BaseByteOffset + in AcpiExFieldDatumIo()
477 Value, ObjDesc->CommonField.AccessByteWidth); in AcpiExFieldDatumIo()
488 if (AcpiExRegisterOverflow (ObjDesc->BankField.BankObj, in AcpiExFieldDatumIo()
489 (UINT64) ObjDesc->BankField.Value)) in AcpiExFieldDatumIo()
498 Status = AcpiExInsertIntoField (ObjDesc->BankField.BankObj, in AcpiExFieldDatumIo()
499 &ObjDesc->BankField.Value, in AcpiExFieldDatumIo()
500 sizeof (ObjDesc->BankField.Value)); in AcpiExFieldDatumIo()
519 ObjDesc, FieldDatumByteOffset, Value, ReadWrite); in AcpiExFieldDatumIo()
527 if (AcpiExRegisterOverflow (ObjDesc->IndexField.IndexObj, in AcpiExFieldDatumIo()
528 (UINT64) ObjDesc->IndexField.Value)) in AcpiExFieldDatumIo()
535 FieldDatumByteOffset += ObjDesc->IndexField.Value; in AcpiExFieldDatumIo()
541 Status = AcpiExInsertIntoField (ObjDesc->IndexField.IndexObj, in AcpiExFieldDatumIo()
556 ObjDesc->IndexField.DataObj, Value, sizeof (UINT64)); in AcpiExFieldDatumIo()
567 ObjDesc->IndexField.DataObj, Value, sizeof (UINT64)); in AcpiExFieldDatumIo()
574 ObjDesc->Common.Type)); in AcpiExFieldDatumIo()
586 ObjDesc->CommonField.AccessByteWidth)); in AcpiExFieldDatumIo()
593 ObjDesc->CommonField.AccessByteWidth)); in AcpiExFieldDatumIo()
618 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExWriteWithUpdateRule() argument
641 switch (ObjDesc->CommonField.FieldFlags & AML_FIELD_UPDATE_RULE_MASK) in AcpiExWriteWithUpdateRule()
649 ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth))) != 0) in AcpiExWriteWithUpdateRule()
656 ObjDesc, FieldDatumByteOffset, &CurrentValue, ACPI_READ); in AcpiExWriteWithUpdateRule()
684 (ObjDesc->CommonField.FieldFlags & in AcpiExWriteWithUpdateRule()
695 ObjDesc->CommonField.AccessByteWidth, in AcpiExWriteWithUpdateRule()
702 ObjDesc, FieldDatumByteOffset, &MergedValue, ACPI_WRITE); in AcpiExWriteWithUpdateRule()
724 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExExtractFromField() argument
746 ACPI_ROUND_BITS_UP_TO_BYTES (ObjDesc->CommonField.BitLength)) in AcpiExExtractFromField()
750 ObjDesc->CommonField.BitLength, BufferLength)); in AcpiExExtractFromField()
756 AccessBitWidth = ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth); in AcpiExExtractFromField()
760 if ((ObjDesc->CommonField.StartFieldBitOffset == 0) && in AcpiExExtractFromField()
761 (ObjDesc->CommonField.BitLength == AccessBitWidth)) in AcpiExExtractFromField()
765 Status = AcpiExFieldDatumIo (ObjDesc, 0, Buffer, ACPI_READ); in AcpiExExtractFromField()
771 Status = AcpiExFieldDatumIo (ObjDesc, 0, &RawDatum, ACPI_READ); in AcpiExExtractFromField()
782 if (ObjDesc->CommonField.AccessByteWidth > sizeof (UINT64)) in AcpiExExtractFromField()
784 ObjDesc->CommonField.AccessByteWidth = sizeof (UINT64); in AcpiExExtractFromField()
791 ObjDesc->CommonField.BitLength, AccessBitWidth); in AcpiExExtractFromField()
794 ObjDesc->CommonField.BitLength + in AcpiExExtractFromField()
795 ObjDesc->CommonField.StartFieldBitOffset, AccessBitWidth); in AcpiExExtractFromField()
799 Status = AcpiExFieldDatumIo (ObjDesc, FieldOffset, &RawDatum, ACPI_READ); in AcpiExExtractFromField()
804 MergedDatum = RawDatum >> ObjDesc->CommonField.StartFieldBitOffset; in AcpiExExtractFromField()
812 FieldOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExExtractFromField()
814 ObjDesc, FieldOffset, &RawDatum, ACPI_READ); in AcpiExExtractFromField()
828 if (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset < in AcpiExExtractFromField()
832 (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset); in AcpiExExtractFromField()
843 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExExtractFromField()
846 BufferOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExExtractFromField()
847 MergedDatum = RawDatum >> ObjDesc->CommonField.StartFieldBitOffset; in AcpiExExtractFromField()
852 BufferTailBits = ObjDesc->CommonField.BitLength % AccessBitWidth; in AcpiExExtractFromField()
861 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExExtractFromField()
884 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExInsertIntoField() argument
911 ObjDesc->CommonField.BitLength); in AcpiExInsertIntoField()
942 if (ObjDesc->CommonField.AccessByteWidth > sizeof (UINT64)) in AcpiExInsertIntoField()
944 ObjDesc->CommonField.AccessByteWidth = sizeof (UINT64); in AcpiExInsertIntoField()
947 AccessBitWidth = ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth); in AcpiExInsertIntoField()
964 ACPI_MASK_BITS_BELOW (ObjDesc->CommonField.StartFieldBitOffset); in AcpiExInsertIntoField()
968 DatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength, in AcpiExInsertIntoField()
971 FieldDatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength + in AcpiExInsertIntoField()
972 ObjDesc->CommonField.StartFieldBitOffset, in AcpiExInsertIntoField()
978 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExInsertIntoField()
981 MergedDatum = RawDatum << ObjDesc->CommonField.StartFieldBitOffset; in AcpiExInsertIntoField()
991 ObjDesc, Mask, MergedDatum, FieldOffset); in AcpiExInsertIntoField()
997 FieldOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExInsertIntoField()
1008 if ((AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset) < in AcpiExInsertIntoField()
1012 (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset); in AcpiExInsertIntoField()
1028 BufferOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExInsertIntoField()
1030 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExInsertIntoField()
1033 MergedDatum |= RawDatum << ObjDesc->CommonField.StartFieldBitOffset; in AcpiExInsertIntoField()
1038 BufferTailBits = (ObjDesc->CommonField.BitLength + in AcpiExInsertIntoField()
1039 ObjDesc->CommonField.StartFieldBitOffset) % AccessBitWidth; in AcpiExInsertIntoField()
1049 ObjDesc, Mask, MergedDatum, FieldOffset); in AcpiExInsertIntoField()