Home
last modified time | relevance | path

Searched refs:ACPI_CAST_PTR (Results 1 – 25 of 106) sorted by relevance

12345

/freebsd/sys/contrib/dev/acpica/components/namespace/
H A Dnssearch.c228 ScopeName, ParentNode, ACPI_CAST_PTR (char, &TargetName), in AcpiNsSearchOneScope()
251 Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Node->Object); in AcpiNsSearchOneScope()
258 ACPI_CAST_PTR (char, &TargetName), in AcpiNsSearchOneScope()
276 ACPI_CAST_PTR (char, &TargetName), AcpiUtGetTypeName (Type), in AcpiNsSearchOneScope()
331 ACPI_CAST_PTR (char, &TargetName))); in AcpiNsSearchParentTree()
339 ACPI_CAST_PTR (char, &TargetName), AcpiUtGetTypeName (Type))); in AcpiNsSearchParentTree()
347 AcpiUtGetNodeName (ParentNode), ACPI_CAST_PTR (char, &TargetName))); in AcpiNsSearchParentTree()
437 AcpiUtRepairName (ACPI_CAST_PTR (char, &TargetName)); in AcpiNsSearchAndEnter()
462 ACPI_CAST_PTR(char, &TargetName), InterpreterMode, in AcpiNsSearchAndEnter()
527 ACPI_CAST_PTR (char, &TargetName), Node)); in AcpiNsSearchAndEnter()
H A Dnsconvert.c418 DwordBuffer = ACPI_CAST_PTR (UINT32, NewObject->Buffer.Pointer); in AcpiNsConvertToBuffer()
498 UnicodeBuffer = ACPI_CAST_PTR (UINT16, NewObject->Buffer.Pointer); in AcpiNsConvertToUnicode()
586 Buffer = ACPI_CAST_PTR (UINT8, NewObject->Buffer.Pointer); in AcpiNsConvertToResource()
639 ScopeInfo.Scope.Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Scope); in AcpiNsConvertToReference()
/freebsd/sys/contrib/dev/acpica/include/
H A Dactypes.h652 #define ACPI_CAST_PTR(t, p) ((t *) (ACPI_UINTPTR_T) (p)) macro
654 #define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) + (ACPI_SIZE)…
655 #define ACPI_SUB_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (UINT8, (a)) - (ACPI_SIZE)…
656 #define ACPI_PTR_DIFF(a, b) ((ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (U…
660 #define ACPI_TO_POINTER(i) ACPI_CAST_PTR (void, (ACPI_SIZE) (i))
672 #define ACPI_COMPARE_NAMESEG(a,b) (*ACPI_CAST_PTR (UINT32, (a)) == *ACPI_CAST_PTR (UINT32, (b…
673 #define ACPI_COPY_NAMESEG(dest,src) (*ACPI_CAST_PTR (UINT32, (dest)) = *ACPI_CAST_PTR (UINT32, …
675 #define ACPI_COMPARE_NAMESEG(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, …
676 #define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char…
681 #define ACPI_VALIDATE_RSDP_SIG(a) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_SIG_RSDP, 8))
[all …]
/freebsd/sys/contrib/dev/acpica/components/resources/
H A Drsutils.c297 &ACPI_CAST_PTR (UINT16, Destination)[i], in AcpiRsMoveData()
298 &ACPI_CAST_PTR (UINT16, Source)[i]); in AcpiRsMoveData()
304 &ACPI_CAST_PTR (UINT32, Destination)[i], in AcpiRsMoveData()
305 &ACPI_CAST_PTR (UINT32, Source)[i]); in AcpiRsMoveData()
311 &ACPI_CAST_PTR (UINT64, Destination)[i], in AcpiRsMoveData()
312 &ACPI_CAST_PTR (UINT64, Source)[i]); in AcpiRsMoveData()
523 ACPI_CAST_PTR (char, &AmlResourceSource[1])) + 1; in AcpiRsGetResourceSource()
533 ACPI_CAST_PTR (char, &AmlResourceSource[1])); in AcpiRsGetResourceSource()
593 strcpy (ACPI_CAST_PTR (char, &AmlResourceSource[1]), in AcpiRsSetResourceSource()
866 ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Handle), in AcpiRsGetMethodData()
H A Drsdump.c350 PrtElement = ACPI_CAST_PTR (ACPI_PCI_ROUTING_TABLE, RouteTable); in AcpiRsDumpIrqList()
415 AcpiRsOutString (Name, ACPI_CAST_PTR (char, Table->Pointer)); in AcpiRsDumpDescriptor()
420 AcpiRsOutString (Name, ACPI_CAST_PTR (char, Target)); in AcpiRsDumpDescriptor()
518 ACPI_CAST_PTR (UINT32, Target)); in AcpiRsDumpDescriptor()
538 AcpiRsDumpAddressCommon (ACPI_CAST_PTR ( in AcpiRsDumpDescriptor()
546 AcpiRsDumpResourceSource (ACPI_CAST_PTR ( in AcpiRsDumpDescriptor()
554 AcpiRsDumpResourceLabel ("Resource Label", ACPI_CAST_PTR ( in AcpiRsDumpDescriptor()
562 AcpiRsDumpResourceLabel ("Resource Source Label", ACPI_CAST_PTR ( in AcpiRsDumpDescriptor()
H A Drslist.c207 AmlResource = ACPI_CAST_PTR (AML_RESOURCE, Aml); in AcpiRsConvertAmlToResources()
360 ACPI_CAST_PTR (AML_RESOURCE, Aml), ConversionTable); in AcpiRsConvertResourcesToAml()
372 NULL, ACPI_CAST_PTR (AML_RESOURCE, Aml), NULL); in AcpiRsConvertResourcesToAml()
/freebsd/sys/contrib/dev/acpica/components/tables/
H A Dtbprint.c266 else if (ACPI_VALIDATE_RSDP_SIG (ACPI_CAST_PTR (ACPI_TABLE_RSDP, in AcpiTbPrintTableHeader()
271 memcpy (LocalHeader.OemId, ACPI_CAST_PTR (ACPI_TABLE_RSDP, in AcpiTbPrintTableHeader()
277 (ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Revision > 0) ? in AcpiTbPrintTableHeader()
278 ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Length : 20, in AcpiTbPrintTableHeader()
279 ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Revision, in AcpiTbPrintTableHeader()
/freebsd/sys/contrib/dev/acpica/compiler/
H A Ddttable1.c215 Header = ACPI_CAST_PTR (ACPI_TABLE_HEADER, ParentTable->Buffer); in DtCompileAest()
240 ErrorNodeHeader = ACPI_CAST_PTR (ACPI_AEST_HEADER, Subtable->Buffer); in DtCompileAest()
329 AestProcessor = ACPI_CAST_PTR (ACPI_AEST_PROCESSOR, in DtCompileAest()
392 AestNodeHeader = ACPI_CAST_PTR (ACPI_AEST_NODE_INTERFACE_HEADER, in DtCompileAest()
512 Header = ACPI_CAST_PTR(ACPI_TABLE_HEADER, ParentTable->Buffer); in DtCompileApmt()
531 ApmtNode = ACPI_CAST_PTR(ACPI_APMT_NODE, Subtable->Buffer); in DtCompileApmt()
551 PeerApmtNode = ACPI_CAST_PTR(ACPI_APMT_NODE, PeerSubtable->Buffer); in DtCompileApmt()
620 AsfTable = ACPI_CAST_PTR (ACPI_ASF_INFO, Subtable->Buffer); in DtCompileAsf()
674 DataCount = ACPI_CAST_PTR (ACPI_ASF_ALERT, in DtCompileAsf()
682 DataCount = ACPI_CAST_PTR (ACPI_ASF_REMOTE, in DtCompileAsf()
[all …]
H A Ddttable2.c204 LpitHeader = ACPI_CAST_PTR (ACPI_LPIT_HEADER, Subtable->Buffer); in DtCompileLpit()
273 Table = ACPI_CAST_PTR (ACPI_TABLE_HEADER, ParentTable->Buffer); in DtCompileMadt()
290 MadtHeader = ACPI_CAST_PTR (ACPI_SUBTABLE_HEADER, Subtable->Buffer); in DtCompileMadt()
537 MpamMscNode = ACPI_CAST_PTR (ACPI_MPAM_MSC_NODE, Subtable->Buffer); in DtCompileMpam()
563 MpamResourceNode = ACPI_CAST_PTR (ACPI_MPAM_RESOURCE_NODE, Subtable->Buffer); in DtCompileMpam()
617 FuncDepsCount = *ACPI_CAST_PTR (UINT32, Subtable->Buffer); in DtCompileMpam()
694 MpstChannelInfo = ACPI_CAST_PTR (ACPI_MPST_CHANNEL, Subtable->Buffer); in DtCompileMpst()
712 MpstPowerNode = ACPI_CAST_PTR (ACPI_MPST_POWER_NODE, Subtable->Buffer); in DtCompileMpst()
766 MpstDataHeader = ACPI_CAST_PTR (ACPI_MPST_DATA_HDR, Subtable->Buffer); in DtCompileMpst()
873 NfitHeader = ACPI_CAST_PTR (ACPI_NFIT_HEADER, Subtable->Buffer); in DtCompileNfit()
[all …]
H A Dcvparser.c765 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
791 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
816 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
836 ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
843 ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
850 ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
858 ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
864 ACPI_CAST_PTR (char, Aml)); in CvCaptureCommentsOnly()
866 ACPI_CAST_PTR (char, Aml), AcpiGbl_FileTreeRoot); in CvCaptureCommentsOnly()
896 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
H A Ddttable.c191 Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, AslGbl_RootTable->Buffer); in DtCompileRsdp()
209 RsdpExtension = ACPI_CAST_PTR (ACPI_RSDP_EXTENSION, Subtable->Buffer); in DtCompileRsdp()
261 Table = ACPI_CAST_PTR (ACPI_TABLE_FADT, ParentTable->Buffer); in DtCompileFadt()
310 Table = ACPI_CAST_PTR (ACPI_TABLE_FADT, ParentTable->Buffer); in DtCompileFadt()
H A Daslcache.c274 AslGbl_ParseOpCacheNext = ACPI_CAST_PTR (ACPI_PARSE_OBJECT, Cache->Buffer); in UtParseOpCacheCalloc()
318 AslGbl_SubtableCacheNext = ACPI_CAST_PTR (DT_SUBTABLE, Cache->Buffer); in UtSubtableCacheCalloc()
362 AslGbl_FieldCacheNext = ACPI_CAST_PTR (DT_FIELD, Cache->Buffer); in UtFieldCacheCalloc()
/freebsd/sys/contrib/dev/acpica/common/
H A Ddmtbdump2.c216 Iort = ACPI_CAST_PTR (ACPI_TABLE_IORT, Table); in AcpiDmDumpIort()
685 HidSubtable = ACPI_CAST_PTR (ACPI_IVRS_DEVICE_HID, DeviceEntry); in AcpiDmDumpIvrs()
895 Offset, ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table))); in AcpiDmDumpMadt()
1075 … ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table))); in AcpiDmDumpMadt()
1088 Status = AcpiDmDumpTable (Length, Offset, ACPI_CAST_PTR (UINT8, Table) + Offset, in AcpiDmDumpMadt()
1117 …ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (UINT8, Subtable) - ACPI_CAST_PTR (UINT8, Table)), Subtable, Tab… in AcpiDmDumpMadt()
1126 Offset = ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table); in AcpiDmDumpMadt()
1135 … ACPI_FORMAT_UINT64 (ACPI_CAST_PTR (char, Subtable) - ACPI_CAST_PTR (char, Table)), Subtable); in AcpiDmDumpMadt()
1367 SubtableCount = (ACPI_CAST_PTR (ACPI_TABLE_MPST, Table))->PowerNodeCount; in AcpiDmDumpMpst()
1408 Subtable0B = ACPI_CAST_PTR (ACPI_MPST_COMPONENT, Subtable0A); in AcpiDmDumpMpst()
[all …]
H A Ddmtbdump3.c220 Localities = (UINT32) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->LocalityCount; in AcpiDmDumpSlit()
222 Row = (UINT8 *) ACPI_CAST_PTR (ACPI_TABLE_SLIT, Table)->Entry; in AcpiDmDumpSlit()
515 ACPI_TABLE_TCPA_HDR *CommonHeader = ACPI_CAST_PTR ( in AcpiDmDumpTcpa()
581 ACPI_TABLE_TPM23 *CommonHeader = ACPI_CAST_PTR (ACPI_TABLE_TPM23, Table); in AcpiDmDumpTpm2Rev3()
627 ACPI_TABLE_TPM2 *CommonHeader = ACPI_CAST_PTR (ACPI_TABLE_TPM2, Table); in AcpiDmDumpTpm2()
706 Viot = ACPI_CAST_PTR (ACPI_TABLE_VIOT, Table); in AcpiDmDumpViot()
860 Subtable = ACPI_CAST_PTR (ACPI_TABLE_WPBT, Table); in AcpiDmDumpWpbt()
H A Ddmtable.c786 AcpiUtDumpBuffer (ACPI_CAST_PTR (UINT8, Table), in AcpiDmDumpDataTable()
806 else if (ACPI_VALIDATE_RSDP_SIG (ACPI_CAST_PTR (ACPI_TABLE_RSDP, in AcpiDmDumpDataTable()
902 AcpiUtDumpBuffer (ACPI_CAST_PTR (UINT8, Table), in AcpiDmDumpDataTable()
1238 ByteLength = ((ACPI_CAST_PTR (char, Table) + in AcpiDmDumpTable()
1239 (ACPI_CAST_PTR (ACPI_PMTT_HEADER, Table)->Length)) - in AcpiDmDumpTable()
1240 ACPI_CAST_PTR (char, Target)); in AcpiDmDumpTable()
1245 ByteLength = strlen (ACPI_CAST_PTR (char, Target)) + 1; in AcpiDmDumpTable()
1250 ByteLength = ((ACPI_CAST_PTR (ACPI_IVRS_DEVICE_HID, Target) -1)->UidLength); in AcpiDmDumpTable()
1464 AcpiOsPrintf ("\"%s\"\n", ACPI_CAST_PTR (char, Target)); in AcpiDmDumpTable()
1469 AcpiOsPrintf ("\"%.*s\"\n", ByteLength, ACPI_CAST_PTR (char, Target)); in AcpiDmDumpTable()
[all …]
H A Ddmtbdump.c208 Buffer = ACPI_CAST_PTR (UINT8, Table) + BufferOffset; in AcpiDmDumpBuffer()
364 ACPI_TABLE_RSDP *Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table); in AcpiDmDumpRsdp()
439 Array = ACPI_CAST_PTR (ACPI_TABLE_RSDT, Table)->TableOffsetEntry; in AcpiDmDumpRsdt()
479 Array = ACPI_CAST_PTR (ACPI_TABLE_XSDT, Table)->TableOffsetEntry; in AcpiDmDumpXsdt()
H A Ddmtbdump1.c308 ProcessorSubtable = ACPI_CAST_PTR (ACPI_AEST_PROCESSOR, Subtable); in AcpiDmDumpAest()
383 InterfaceHeader = ACPI_CAST_PTR (ACPI_AEST_NODE_INTERFACE_HEADER, Subtable); in AcpiDmDumpAest()
592 DataCount = ACPI_CAST_PTR (ACPI_ASF_ALERT, Subtable)->Alerts; in AcpiDmDumpAsf()
593 DataLength = ACPI_CAST_PTR (ACPI_ASF_ALERT, Subtable)->DataLength; in AcpiDmDumpAsf()
602 DataCount = ACPI_CAST_PTR (ACPI_ASF_REMOTE, Subtable)->Controls; in AcpiDmDumpAsf()
603 DataLength = ACPI_CAST_PTR (ACPI_ASF_REMOTE, Subtable)->DataLength; in AcpiDmDumpAsf()
616 DataLength = ACPI_CAST_PTR (ACPI_ASF_ADDRESS, Subtable)->Devices; in AcpiDmDumpAsf()
809 ACPI_TABLE_CDAT *Table = ACPI_CAST_PTR (ACPI_TABLE_CDAT, InTable); in AcpiDmDumpCdat()
812 ACPI_TABLE_CDAT *CdatTable = ACPI_CAST_PTR (ACPI_TABLE_CDAT, Table); in AcpiDmDumpCdat()
1931 GtCount = (ACPI_CAST_PTR (ACPI_GTDT_TIMER_BLOCK, in AcpiDmDumpGtdt()
[all …]
/freebsd/sys/contrib/dev/acpica/components/debugger/
H A Ddbcmds.c552 Status = AcpiUnloadParentTable (ACPI_CAST_PTR (ACPI_HANDLE, Node)); in AcpiDbUnloadAcpiTable()
767 AcpiRsDumpResourceList (ACPI_CAST_PTR (ACPI_RESOURCE, in AcpiDbDisplayTemplate()
1022 Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle); in AcpiDbDeviceResources()
1032 ACPI_CAST_PTR (ACPI_HANDLE, &PrtNode)); in AcpiDbDeviceResources()
1034 ACPI_CAST_PTR (ACPI_HANDLE, &CrsNode)); in AcpiDbDeviceResources()
1036 ACPI_CAST_PTR (ACPI_HANDLE, &PrsNode)); in AcpiDbDeviceResources()
1038 ACPI_CAST_PTR (ACPI_HANDLE, &AeiNode)); in AcpiDbDeviceResources()
1078 AcpiRsDumpIrqList (ACPI_CAST_PTR (UINT8, AcpiGbl_DbBuffer)); in AcpiDbDeviceResources()
1137 AcpiRsDumpResourceList (ACPI_CAST_PTR (ACPI_RESOURCE, in AcpiDbDeviceResources()
1193 AcpiRsDumpResourceList (ACPI_CAST_PTR ( in AcpiDbDeviceResources()
[all …]
H A Ddbutils.c204 ACPI_CAST_PTR (char, Arguments[i].Name), in AcpiDbMatchArgument()
205 ACPI_CAST_PTR (char, UserArgument)) == Arguments[i].Name) in AcpiDbMatchArgument()
312 ACPI_CAST_PTR (UINT8, ObjDesc->Buffer.Pointer), in AcpiDbDumpExternalObject()
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutglobal.c235 {"_REV", ACPI_TYPE_INTEGER, ACPI_CAST_PTR (char, 2)},
237 {"_GL_", ACPI_TYPE_MUTEX, ACPI_CAST_PTR (char, 1)},
238 {"_OSI", ACPI_TYPE_METHOD, ACPI_CAST_PTR (char, 1)},
H A Dutcksum.c202 Checksum = AcpiUtGenerateChecksum (ACPI_CAST_PTR (UINT8, Table), Length, Table->Checksum); in AcpiUtVerifyChecksum()
247 Checksum = AcpiUtGenerateChecksum (ACPI_CAST_PTR (UINT8, CdatTable), in AcpiUtVerifyCdatChecksum()
H A Dutcopy.c411 ACPI_CAST_PTR (ACPI_OBJECT, Info->FreeSpace); in AcpiUtCopyIelementToEelement()
474 ExternalObject = ACPI_CAST_PTR (ACPI_OBJECT, Buffer); in AcpiUtCopyIpackageToEpackage()
488 ACPI_CAST_PTR (ACPI_OBJECT, Info.FreeSpace); in AcpiUtCopyIpackageToEpackage()
547 ACPI_CAST_PTR (ACPI_OBJECT, RetBuffer->Pointer), in AcpiUtCopyIobjectToEobject()
846 memcpy (ACPI_CAST_PTR (char, DestDesc), in AcpiUtCopySimpleObject()
847 ACPI_CAST_PTR (char, SourceDesc), CopySize); in AcpiUtCopySimpleObject()
/freebsd/sys/contrib/dev/acpica/components/executer/
H A Dexconfig.c362 ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, ParameterNode), WalkState); in AcpiExLoadTableOp()
470 Target = AcpiNsGetAttachedObject (ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Target)); in AcpiExLoadOp()
518 ACPI_CAST_PTR (UINT8, TableHeader)); in AcpiExLoadOp()
561 ACPI_CAST_PTR (UINT8, Table)); in AcpiExLoadOp()
583 TableHeader = ACPI_CAST_PTR ( in AcpiExLoadOp()
/freebsd/sys/contrib/dev/acpica/components/dispatcher/
H A Ddspkginit.c352 ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, Arg->Common.Node); in AcpiDsBuildInternalPackageObj()
422 ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, Arg->Common.Node)); in AcpiDsBuildInternalPackageObj()
459 Op->Common.Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjDesc); in AcpiDsBuildInternalPackageObj()
636 ResolvedNode = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, in AcpiDsResolvePackageElement()
/freebsd/sys/contrib/dev/acpica/components/disassembler/
H A Ddmresrcl.c262 AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i], in AcpiDmMemoryFields()
268 AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i], in AcpiDmMemoryFields()
313 AcpiDmDumpInteger16 (ACPI_CAST_PTR (UINT16, Source)[i], in AcpiDmAddressFields()
319 AcpiDmDumpInteger32 (ACPI_CAST_PTR (UINT32, Source)[i], in AcpiDmAddressFields()
325 AcpiDmDumpInteger64 (ACPI_CAST_PTR (UINT64, Source)[i], in AcpiDmAddressFields()

12345