Lines Matching refs:ObjDesc
167 ACPI_OPERAND_OBJECT *ObjDesc,
174 ACPI_OPERAND_OBJECT *ObjDesc,
179 ACPI_OPERAND_OBJECT *ObjDesc,
201 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExSetupRegion() argument
212 RgnDesc = ObjDesc->CommonField.RegionObj; in AcpiExSetupRegion()
267 if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) in AcpiExSetupRegion()
282 (ObjDesc->CommonField.BaseByteOffset + FieldDatumByteOffset + in AcpiExSetupRegion()
283 ObjDesc->CommonField.AccessByteWidth)) in AcpiExSetupRegion()
293 ObjDesc->CommonField.AccessByteWidth) >= in AcpiExSetupRegion()
294 ((ACPI_SIZE) ObjDesc->CommonField.BaseByteOffset + in AcpiExSetupRegion()
295 ObjDesc->CommonField.AccessByteWidth + in AcpiExSetupRegion()
302 if (RgnDesc->Region.Length < ObjDesc->CommonField.AccessByteWidth) in AcpiExSetupRegion()
312 AcpiUtGetNodeName (ObjDesc->CommonField.Node), in AcpiExSetupRegion()
313 ObjDesc->CommonField.AccessByteWidth, in AcpiExSetupRegion()
325 AcpiUtGetNodeName (ObjDesc->CommonField.Node), in AcpiExSetupRegion()
326 ObjDesc->CommonField.BaseByteOffset, in AcpiExSetupRegion()
327 FieldDatumByteOffset, ObjDesc->CommonField.AccessByteWidth, in AcpiExSetupRegion()
358 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExAccessRegion() argument
375 Status = AcpiExSetupRegion (ObjDesc, FieldDatumByteOffset); in AcpiExAccessRegion()
388 RgnDesc = ObjDesc->CommonField.RegionObj; in AcpiExAccessRegion()
390 ObjDesc->CommonField.BaseByteOffset + in AcpiExAccessRegion()
406 ObjDesc->CommonField.AccessByteWidth, in AcpiExAccessRegion()
407 ObjDesc->CommonField.BaseByteOffset, in AcpiExAccessRegion()
413 Status = AcpiEvAddressSpaceDispatch (RgnDesc, ObjDesc, in AcpiExAccessRegion()
415 ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth), Value); in AcpiExAccessRegion()
458 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExRegisterOverflow() argument
462 if (ObjDesc->CommonField.BitLength >= ACPI_INTEGER_BIT_SIZE) in AcpiExRegisterOverflow()
471 if (Value >= ((UINT64) 1 << ObjDesc->CommonField.BitLength)) in AcpiExRegisterOverflow()
480 ObjDesc->CommonField.BitLength)); in AcpiExRegisterOverflow()
511 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExFieldDatumIo() argument
548 switch (ObjDesc->Common.Type) in AcpiExFieldDatumIo()
555 if (!(ObjDesc->Common.Flags & AOPOBJ_DATA_VALID)) in AcpiExFieldDatumIo()
557 Status = AcpiDsGetBufferFieldArguments (ObjDesc); in AcpiExFieldDatumIo()
571 (ObjDesc->BufferField.BufferObj)->Buffer.Pointer + in AcpiExFieldDatumIo()
572 ObjDesc->BufferField.BaseByteOffset + in AcpiExFieldDatumIo()
574 ObjDesc->CommonField.AccessByteWidth); in AcpiExFieldDatumIo()
582 memcpy ((ObjDesc->BufferField.BufferObj)->Buffer.Pointer + in AcpiExFieldDatumIo()
583 ObjDesc->BufferField.BaseByteOffset + in AcpiExFieldDatumIo()
585 Value, ObjDesc->CommonField.AccessByteWidth); in AcpiExFieldDatumIo()
596 if (AcpiExRegisterOverflow (ObjDesc->BankField.BankObj, in AcpiExFieldDatumIo()
597 (UINT64) ObjDesc->BankField.Value)) in AcpiExFieldDatumIo()
606 Status = AcpiExInsertIntoField (ObjDesc->BankField.BankObj, in AcpiExFieldDatumIo()
607 &ObjDesc->BankField.Value, in AcpiExFieldDatumIo()
608 sizeof (ObjDesc->BankField.Value)); in AcpiExFieldDatumIo()
627 ObjDesc, FieldDatumByteOffset, Value, ReadWrite); in AcpiExFieldDatumIo()
635 if (AcpiExRegisterOverflow (ObjDesc->IndexField.IndexObj, in AcpiExFieldDatumIo()
636 (UINT64) ObjDesc->IndexField.Value)) in AcpiExFieldDatumIo()
643 FieldDatumByteOffset += ObjDesc->IndexField.Value; in AcpiExFieldDatumIo()
649 Status = AcpiExInsertIntoField (ObjDesc->IndexField.IndexObj, in AcpiExFieldDatumIo()
664 ObjDesc->IndexField.DataObj, Value, sizeof (UINT64)); in AcpiExFieldDatumIo()
675 ObjDesc->IndexField.DataObj, Value, sizeof (UINT64)); in AcpiExFieldDatumIo()
682 ObjDesc->Common.Type)); in AcpiExFieldDatumIo()
694 ObjDesc->CommonField.AccessByteWidth)); in AcpiExFieldDatumIo()
701 ObjDesc->CommonField.AccessByteWidth)); in AcpiExFieldDatumIo()
726 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExWriteWithUpdateRule() argument
749 switch (ObjDesc->CommonField.FieldFlags & AML_FIELD_UPDATE_RULE_MASK) in AcpiExWriteWithUpdateRule()
757 ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth))) != 0) in AcpiExWriteWithUpdateRule()
764 ObjDesc, FieldDatumByteOffset, &CurrentValue, ACPI_READ); in AcpiExWriteWithUpdateRule()
792 (ObjDesc->CommonField.FieldFlags & in AcpiExWriteWithUpdateRule()
803 ObjDesc->CommonField.AccessByteWidth, in AcpiExWriteWithUpdateRule()
810 ObjDesc, FieldDatumByteOffset, &MergedValue, ACPI_WRITE); in AcpiExWriteWithUpdateRule()
832 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExExtractFromField() argument
854 ACPI_ROUND_BITS_UP_TO_BYTES (ObjDesc->CommonField.BitLength)) in AcpiExExtractFromField()
858 ObjDesc->CommonField.BitLength, BufferLength)); in AcpiExExtractFromField()
864 AccessBitWidth = ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth); in AcpiExExtractFromField()
868 if ((ObjDesc->CommonField.StartFieldBitOffset == 0) && in AcpiExExtractFromField()
869 (ObjDesc->CommonField.BitLength == AccessBitWidth)) in AcpiExExtractFromField()
873 Status = AcpiExFieldDatumIo (ObjDesc, 0, Buffer, ACPI_READ); in AcpiExExtractFromField()
879 Status = AcpiExFieldDatumIo (ObjDesc, 0, &RawDatum, ACPI_READ); in AcpiExExtractFromField()
890 if (ObjDesc->CommonField.AccessByteWidth > sizeof (UINT64)) in AcpiExExtractFromField()
892 ObjDesc->CommonField.AccessByteWidth = sizeof (UINT64); in AcpiExExtractFromField()
899 ObjDesc->CommonField.BitLength, AccessBitWidth); in AcpiExExtractFromField()
902 ObjDesc->CommonField.BitLength + in AcpiExExtractFromField()
903 ObjDesc->CommonField.StartFieldBitOffset, AccessBitWidth); in AcpiExExtractFromField()
907 Status = AcpiExFieldDatumIo (ObjDesc, FieldOffset, &RawDatum, ACPI_READ); in AcpiExExtractFromField()
912 MergedDatum = RawDatum >> ObjDesc->CommonField.StartFieldBitOffset; in AcpiExExtractFromField()
920 FieldOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExExtractFromField()
922 ObjDesc, FieldOffset, &RawDatum, ACPI_READ); in AcpiExExtractFromField()
936 if (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset < in AcpiExExtractFromField()
940 (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset); in AcpiExExtractFromField()
951 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExExtractFromField()
954 BufferOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExExtractFromField()
955 MergedDatum = RawDatum >> ObjDesc->CommonField.StartFieldBitOffset; in AcpiExExtractFromField()
960 BufferTailBits = ObjDesc->CommonField.BitLength % AccessBitWidth; in AcpiExExtractFromField()
969 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExExtractFromField()
992 ACPI_OPERAND_OBJECT *ObjDesc, in AcpiExInsertIntoField() argument
1019 ObjDesc->CommonField.BitLength); in AcpiExInsertIntoField()
1050 if (ObjDesc->CommonField.AccessByteWidth > sizeof (UINT64)) in AcpiExInsertIntoField()
1052 ObjDesc->CommonField.AccessByteWidth = sizeof (UINT64); in AcpiExInsertIntoField()
1055 AccessBitWidth = ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth); in AcpiExInsertIntoField()
1061 ACPI_MASK_BITS_BELOW (ObjDesc->CommonField.StartFieldBitOffset); in AcpiExInsertIntoField()
1065 DatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength, in AcpiExInsertIntoField()
1068 FieldDatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength + in AcpiExInsertIntoField()
1069 ObjDesc->CommonField.StartFieldBitOffset, in AcpiExInsertIntoField()
1075 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExInsertIntoField()
1078 MergedDatum = RawDatum << ObjDesc->CommonField.StartFieldBitOffset; in AcpiExInsertIntoField()
1088 ObjDesc, Mask, MergedDatum, FieldOffset); in AcpiExInsertIntoField()
1094 FieldOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExInsertIntoField()
1105 if ((AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset) < in AcpiExInsertIntoField()
1109 (AccessBitWidth - ObjDesc->CommonField.StartFieldBitOffset); in AcpiExInsertIntoField()
1125 BufferOffset += ObjDesc->CommonField.AccessByteWidth; in AcpiExInsertIntoField()
1127 ACPI_MIN(ObjDesc->CommonField.AccessByteWidth, in AcpiExInsertIntoField()
1130 MergedDatum |= RawDatum << ObjDesc->CommonField.StartFieldBitOffset; in AcpiExInsertIntoField()
1135 BufferTailBits = (ObjDesc->CommonField.BitLength + in AcpiExInsertIntoField()
1136 ObjDesc->CommonField.StartFieldBitOffset) % AccessBitWidth; in AcpiExInsertIntoField()
1146 ObjDesc, Mask, MergedDatum, FieldOffset); in AcpiExInsertIntoField()