Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 190) sorted by relevance

12345678

/acpica-latest/source/compiler/
Dasltokens.y174 %token <i> PARSEOP_ACCESSAS
175 %token <i> PARSEOP_ACCESSATTRIB_BLOCK
176 %token <i> PARSEOP_ACCESSATTRIB_BLOCK_CALL
177 %token <i> PARSEOP_ACCESSATTRIB_BYTE
178 %token <i> PARSEOP_ACCESSATTRIB_BYTES
179 %token <i> PARSEOP_ACCESSATTRIB_QUICK
180 %token <i> PARSEOP_ACCESSATTRIB_RAW_BYTES
181 %token <i> PARSEOP_ACCESSATTRIB_RAW_PROCESS
182 %token <i> PARSEOP_ACCESSATTRIB_SND_RCV
183 %token <i> PARSEOP_ACCESSATTRIB_WORD
[all …]
Dasllistsup.c181 UINT32 i; in LsDumpAscii() local
185 for (i = 0; i < Count; i++) in LsDumpAscii()
187 BufChar = Buffer[i]; in LsDumpAscii()
226 UINT32 i; in LsDumpAsciiInComment() local
230 for (i = 0; i < Count; i++) in LsDumpAsciiInComment()
233 BufChar = Buffer[i]; in LsDumpAsciiInComment()
327 UINT32 i; in LsWriteListingHexBytes() local
332 for (i = 0; i < Length; i++) in LsWriteListingHexBytes()
371 AslGbl_AmlBuffer[AslGbl_CurrentHexColumn] = Buffer[i]; in LsWriteListingHexBytes()
649 UINT32 i; in LsFlushListingBuffer() local
[all …]
Daslutils.c227 UINT32 i; in UtIsIdInteger() local
232 for (i = 0; i < 3; i++) in UtIsIdInteger()
234 if (!isalpha ((int) Target[i])) in UtIsIdInteger()
240 if (i < 3) in UtIsIdInteger()
433 UINT32 i; in UtDisplaySupportedTables() local
443 for (TableData = AcpiGbl_SupportedTables, i = 1; in UtDisplaySupportedTables()
444 TableData->Signature; TableData++, i++) in UtDisplaySupportedTables()
446 printf ("%8u) %s %s\n", i, in UtDisplaySupportedTables()
450 printf ("\nTotal %u ACPI tables\n\n", i-1); in UtDisplaySupportedTables()
470 UINT32 i; in UtDisplayConstantOpcodes() local
[all …]
Daslprepkg.c230 UINT32 i; in ApCheckPackage() local
319 for (i = 0; i < Count; i++) in ApCheckPackage()
333 Package->RetInfo.ObjectType1, i); in ApCheckPackage()
354 for (i = 0; i < Count; i++) in ApCheckPackage()
356 if (i < Package->RetInfo3.Count) in ApCheckPackage()
361 Package->RetInfo3.ObjectType[i], i); in ApCheckPackage()
368 Package->RetInfo3.TailObjectType, i); in ApCheckPackage()
440 for (i = 0; i < Count; ++i) in ApCheckPackage()
442 if (i & 1) in ApCheckPackage()
445 Package->RetInfo.ObjectType2, i); in ApCheckPackage()
[all …]
Dasllookup.c232 UINT32 i; in LkIsObjectUsed() local
248 for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++) in LkIsObjectUsed()
252 if ((MethodLocals[i].Flags & ASL_LOCAL_INITIALIZED) && in LkIsObjectUsed()
253 (!(MethodLocals[i].Flags & ASL_LOCAL_REFERENCED))) in LkIsObjectUsed()
255 sprintf (AslGbl_MsgBuffer, "Local%u", i); in LkIsObjectUsed()
257 MethodLocals[i].Op, AslGbl_MsgBuffer); in LkIsObjectUsed()
265 for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++) in LkIsObjectUsed()
267 if (MethodArgs[i].Flags & ASL_ARG_IS_LOCAL) in LkIsObjectUsed()
271 if ((MethodArgs[i].Flags & ASL_ARG_INITIALIZED) && in LkIsObjectUsed()
272 (!(MethodArgs[i].Flags & ASL_ARG_REFERENCED))) in LkIsObjectUsed()
[all …]
Ddtio.c480 UINT32 i; in DtGetNextLine() local
486 for (i = 0; ;) in DtGetNextLine()
492 if (i >= AslGbl_LineBufferSize) in DtGetNextLine()
515 if (i == 0) in DtGetNextLine()
560 AslGbl_CurrentLineBuffer[i] = (char) c; in DtGetNextLine()
572 i++; in DtGetNextLine()
593 if ((i != 0) && LineNotAllBlanks) in DtGetNextLine()
595 if ((i + 1) >= AslGbl_LineBufferSize) in DtGetNextLine()
600 AslGbl_CurrentLineBuffer[i+1] = 0; /* Terminate string */ in DtGetNextLine()
606 i = 0; in DtGetNextLine()
[all …]
/acpica-latest/source/common/
Ddmtbdump.c199 UINT32 i; in AcpiDmDumpBuffer() local
209 i = 0; in AcpiDmDumpBuffer()
211 while (i < Length) in AcpiDmDumpBuffer()
213 if ((Length > 16) && (i != 0)) in AcpiDmDumpBuffer()
215 if ((Length - i) < 16) in AcpiDmDumpBuffer()
216 …\n/* %3.3Xh %4.4u %3u */ ", AbsoluteOffset, AbsoluteOffset, Length - i); in AcpiDmDumpBuffer()
226 if (i + j >= Length) in AcpiDmDumpBuffer()
230 AcpiOsPrintf ("%*s", (48 - (3 * (Length -i))), " "); in AcpiDmDumpBuffer()
233 AcpiOsPrintf ("%.02X ", Buffer[(ACPI_SIZE) i + j]); in AcpiDmDumpBuffer()
240 if (i + j >= Length) in AcpiDmDumpBuffer()
[all …]
/acpica-latest/source/tools/acpisrc/
Dasfile.c356 UINT32 i = 1; in AsDetectLoneLineFeeds() local
366 while (Buffer[i]) in AsDetectLoneLineFeeds()
368 if (Buffer[i] == 0x0A) in AsDetectLoneLineFeeds()
370 if (Buffer[i-1] != 0x0D) in AsDetectLoneLineFeeds()
377 i++; in AsDetectLoneLineFeeds()
418 UINT32 i; in AsConvertFile() local
482 for (i = 0; ConversionTable->LowerCaseTable[i].Identifier; i++) in AsConvertFile()
484 AsLowerCaseString (ConversionTable->LowerCaseTable[i].Identifier, in AsConvertFile()
493 for (i = 0; StringTable[i].Target; i++) in AsConvertFile()
495 AsReplaceString (StringTable[i].Target, StringTable[i].Replacement, in AsConvertFile()
[all …]
Dascase.c181 int i; in AsLowerCaseString() local
240 for (i = 0; i < TargetLength; i++) in AsLowerCaseString()
242 SubString1[i] = (char) tolower ((int) SubString1[i]); in AsLowerCaseString()
691 int i; in AsUppercaseTokens() local
708 for (i = 0; i < (TokenEnd - SubBuffer); i++) in AsUppercaseTokens()
710 if ((islower ((int) SubBuffer[i])) && in AsUppercaseTokens()
711 (isupper ((int) SubBuffer[i+1]))) in AsUppercaseTokens()
722 Length = SubString - &SubBuffer[i] - 2; in AsUppercaseTokens()
731 Length = strlen (&SubBuffer[i+1]); in AsUppercaseTokens()
734 memmove (&SubBuffer[i+2], &SubBuffer[i+1], (Length+1)); in AsUppercaseTokens()
[all …]
/acpica-latest/source/components/namespace/
Dnsutils.c295 UINT32 i; in AcpiNsGetInternalNameLength() local
345 for (i = 0; NextExternalChar[i]; i++) in AcpiNsGetInternalNameLength()
347 if (ACPI_IS_PATH_SEPARATOR (NextExternalChar[i])) in AcpiNsGetInternalNameLength()
382 UINT32 i; in AcpiNsBuildInternalName() local
416 i = 0; in AcpiNsBuildInternalName()
419 for (i = 0; i < Info->NumCarats; i++) in AcpiNsBuildInternalName()
421 InternalName[i] = AML_PARENT_PREFIX; in AcpiNsBuildInternalName()
427 Result = &InternalName[i]; in AcpiNsBuildInternalName()
431 InternalName[i] = AML_DUAL_NAME_PREFIX; in AcpiNsBuildInternalName()
432 Result = &InternalName[(ACPI_SIZE) i+1]; in AcpiNsBuildInternalName()
[all …]
/acpica-latest/source/components/utilities/
Dutstring.c181 UINT32 i; in AcpiUtPrintString() local
191 for (i = 0; (i < MaxLength) && String[i]; i++) in AcpiUtPrintString()
195 switch (String[i]) in AcpiUtPrintString()
236 AcpiOsPrintf ("\\%c", (int) String[i]); in AcpiUtPrintString()
243 if (isprint ((int) String[i])) in AcpiUtPrintString()
247 AcpiOsPrintf ("%c", (int) String[i]); in AcpiUtPrintString()
253 AcpiOsPrintf ("\\x%2.2X", (INT32) String[i]); in AcpiUtPrintString()
261 if (i == MaxLength && String[i]) in AcpiUtPrintString()
294 UINT32 i; in AcpiUtRepairName() local
315 for (i = 0; i < ACPI_NAMESEG_SIZE; i++) in AcpiUtRepairName()
[all …]
Dutbuffer.c185 UINT32 i = 0; in AcpiUtDumpBuffer() local
206 while (i < Count) in AcpiUtDumpBuffer()
212 AcpiOsPrintf ("%8.4X: ", (BaseOffset + i)); in AcpiUtDumpBuffer()
219 if (i + j >= Count) in AcpiUtDumpBuffer()
233 AcpiOsPrintf ("%02X ", Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
238 ACPI_MOVE_16_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
244 ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
250 ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
253 ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j + 4]); in AcpiUtDumpBuffer()
270 if (i + j >= Count) in AcpiUtDumpBuffer()
[all …]
Dutmutex.c186 UINT32 i; in AcpiUtMutexInitialize() local
195 for (i = 0; i < ACPI_NUM_MUTEX; i++) in AcpiUtMutexInitialize()
197 Status = AcpiUtCreateMutex (i); in AcpiUtMutexInitialize()
261 UINT32 i; in AcpiUtMutexTerminate() local
269 for (i = 0; i < ACPI_NUM_MUTEX; i++) in AcpiUtMutexTerminate()
271 AcpiUtDeleteMutex (i); in AcpiUtMutexTerminate()
383 UINT32 i; in AcpiUtAcquireMutex() local
392 for (i = MutexId; i < ACPI_NUM_MUTEX; i++) in AcpiUtAcquireMutex()
394 if (AcpiGbl_MutexInfo[i].ThreadId == ThisThreadId) in AcpiUtAcquireMutex()
396 if (i == MutexId) in AcpiUtAcquireMutex()
[all …]
Dutuuid.c199 UINT32 i; in AcpiUtConvertStringToUuid() local
202 for (i = 0; i < UUID_BUFFER_LENGTH; i++) in AcpiUtConvertStringToUuid()
204 UuidBuffer[i] = (AcpiUtAsciiCharToHex ( in AcpiUtConvertStringToUuid()
205 InString[AcpiGbl_MapToUuidOffset[i]]) << 4); in AcpiUtConvertStringToUuid()
207 UuidBuffer[i] |= AcpiUtAsciiCharToHex ( in AcpiUtConvertStringToUuid()
208 InString[AcpiGbl_MapToUuidOffset[i] + 1]); in AcpiUtConvertStringToUuid()
232 UINT32 i; in AcpiUtConvertUuidToString() local
240 for (i = 0; i < UUID_BUFFER_LENGTH; i++) in AcpiUtConvertUuidToString()
242 OutString[AcpiGbl_MapToUuidOffset[i]] = in AcpiUtConvertUuidToString()
243 AcpiUtHexToAsciiChar (UuidBuffer[i], 4); in AcpiUtConvertUuidToString()
[all …]
Dutascii.c174 UINT32 i; in AcpiUtValidNameseg() local
179 for (i = 0; i < ACPI_NAMESEG_SIZE; i++) in AcpiUtValidNameseg()
181 if (!AcpiUtValidNameChar (Name[i], i)) in AcpiUtValidNameseg()
253 UINT32 i; in AcpiUtCheckAndRepairAscii() local
256 for (i = 0; i < Count; i++) in AcpiUtCheckAndRepairAscii()
258 RepairedName[i] = (char) Name[i]; in AcpiUtCheckAndRepairAscii()
260 if (!Name[i]) in AcpiUtCheckAndRepairAscii()
264 if (!isprint (Name[i])) in AcpiUtCheckAndRepairAscii()
266 RepairedName[i] = ' '; in AcpiUtCheckAndRepairAscii()
Dutinit.c243 UINT32 i; in AcpiUtInitGlobals() local
259 for (i = 0; i < ACPI_ADDRESS_RANGE_MAX; i++) in AcpiUtInitGlobals()
261 AcpiGbl_AddressRangeList[i] = NULL; in AcpiUtInitGlobals()
266 for (i = 0; i < ACPI_NUM_MUTEX; i++) in AcpiUtInitGlobals()
268 AcpiGbl_MutexInfo[i].Mutex = NULL; in AcpiUtInitGlobals()
269 AcpiGbl_MutexInfo[i].ThreadId = ACPI_MUTEX_NOT_ACQUIRED; in AcpiUtInitGlobals()
270 AcpiGbl_MutexInfo[i].UseCount = 0; in AcpiUtInitGlobals()
273 for (i = 0; i < ACPI_NUM_OWNERID_MASKS; i++) in AcpiUtInitGlobals()
275 AcpiGbl_OwnerIdMask[i] = 0; in AcpiUtInitGlobals()
288 for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) in AcpiUtInitGlobals()
[all …]
/acpica-latest/source/components/tables/
Dtbxface.c296 UINT32 i, j; in ACPI_EXPORT_SYMBOL_INIT() local
322 for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) in ACPI_EXPORT_SYMBOL_INIT()
324 TableDesc = &AcpiGbl_RootTableList.Tables[i]; in ACPI_EXPORT_SYMBOL_INIT()
340 for (i = 0; i < AcpiGbl_RootTableList.CurrentTableCount; ++i) in ACPI_EXPORT_SYMBOL_INIT()
342 TableDesc = &AcpiGbl_RootTableList.Tables[i]; in ACPI_EXPORT_SYMBOL_INIT()
388 UINT32 i; in ACPI_EXPORT_SYMBOL_INIT() local
402 for (i = 0, j = 0; i < AcpiGbl_RootTableList.CurrentTableCount; i++) in ACPI_EXPORT_SYMBOL_INIT()
405 &(AcpiGbl_RootTableList.Tables[i].Signature), Signature)) in ACPI_EXPORT_SYMBOL_INIT()
415 if (!AcpiGbl_RootTableList.Tables[i].Pointer) in ACPI_EXPORT_SYMBOL_INIT()
417 if ((AcpiGbl_RootTableList.Tables[i].Flags & in ACPI_EXPORT_SYMBOL_INIT()
[all …]
Dtbfadt.c630 UINT32 i; in AcpiTbConvertFadt() local
675 for (i = 0; i < ACPI_FADT_INFO_ENTRIES; i++) in AcpiTbConvertFadt()
682 &AcpiGbl_FADT, FadtInfoTable[i].Address32); in AcpiTbConvertFadt()
685 &AcpiGbl_FADT, FadtInfoTable[i].Address64); in AcpiTbConvertFadt()
688 &AcpiGbl_FADT, FadtInfoTable[i].Length); in AcpiTbConvertFadt()
690 Name = FadtInfoTable[i].Name; in AcpiTbConvertFadt()
691 Flags = FadtInfoTable[i].Flags; in AcpiTbConvertFadt()
772 if (FadtInfoTable[i].Flags & ACPI_FADT_REQUIRED) in AcpiTbConvertFadt()
786 else if (FadtInfoTable[i].Flags & ACPI_FADT_SEPARATE_LENGTH) in AcpiTbConvertFadt()
828 UINT32 i; in AcpiTbSetupFadtRegisters() local
[all …]
/acpica-latest/source/components/debugger/
Ddbobject.c254 UINT32 i; in AcpiDbDecodeInternalObject() local
298 for (i = 0; (i < 8) && (i < ObjDesc->Buffer.Length); i++) in AcpiDbDecodeInternalObject()
300 AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]); in AcpiDbDecodeInternalObject()
563 UINT32 i; in AcpiDbDecodeLocals() local
593 for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++) in AcpiDbDecodeLocals()
595 ObjDesc = WalkState->LocalVariables[i].Object; in AcpiDbDecodeLocals()
610 for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++) in AcpiDbDecodeLocals()
612 ObjDesc = WalkState->LocalVariables[i].Object; in AcpiDbDecodeLocals()
615 AcpiOsPrintf (" Local%X: ", i); in AcpiDbDecodeLocals()
645 UINT32 i; in AcpiDbDecodeArguments() local
[all …]
/acpica-latest/source/tools/acpiexec/
Daeinitfile.c361 UINT32 i; in AeLookupInitFileEntry() local
374 for (i = 0; i < AcpiGbl_InitFileLineCount; ++i) in AeLookupInitFileEntry()
376 if (AcpiGbl_InitEntries[i].Name && in AeLookupInitFileEntry()
377 !strcmp (AcpiGbl_InitEntries[i].Name, Pathname)) in AeLookupInitFileEntry()
379 *ObjDesc = AcpiGbl_InitEntries[i].ObjDesc; in AeLookupInitFileEntry()
380 AcpiGbl_InitEntries[i].IsUsed = TRUE; in AeLookupInitFileEntry()
408 UINT32 i; in AeDisplayUnusedInitFileItems() local
416 for (i = 0; i < AcpiGbl_InitFileLineCount; ++i) in AeDisplayUnusedInitFileItems()
418 if (AcpiGbl_InitEntries[i].Name && in AeDisplayUnusedInitFileItems()
419 !AcpiGbl_InitEntries[i].IsUsed) in AeDisplayUnusedInitFileItems()
[all …]
/acpica-latest/source/components/resources/
Drsutils.c180 UINT8 i; in AcpiRsDecodeBitmask() local
189 for (i = 0, BitCount = 0; Mask; i++) in AcpiRsDecodeBitmask()
193 List[BitCount] = i; in AcpiRsDecodeBitmask()
222 UINT32 i; in AcpiRsEncodeBitmask() local
231 for (i = 0, Mask = 0; i < Count; i++) in AcpiRsEncodeBitmask()
233 Mask |= (0x1 << List[i]); in AcpiRsEncodeBitmask()
264 UINT32 i; in AcpiRsMoveData() local
272 for (i = 0; i < ItemCount; i++) in AcpiRsMoveData()
297 &ACPI_CAST_PTR (UINT16, Destination)[i], in AcpiRsMoveData()
298 &ACPI_CAST_PTR (UINT16, Source)[i]); in AcpiRsMoveData()
[all …]
/acpica-latest/source/components/hardware/
Dhwgpe.c477 UINT32 i; in AcpiHwDisableGpeBlock() local
483 for (i = 0; i < GpeBlock->RegisterCount; i++) in AcpiHwDisableGpeBlock()
487 Status = AcpiHwGpeEnableWrite (0x00, &GpeBlock->RegisterInfo[i]); in AcpiHwDisableGpeBlock()
517 UINT32 i; in AcpiHwClearGpeBlock() local
523 for (i = 0; i < GpeBlock->RegisterCount; i++) in AcpiHwClearGpeBlock()
527 Status = AcpiHwWrite (0xFF, &GpeBlock->RegisterInfo[i].StatusAddress); in AcpiHwClearGpeBlock()
558 UINT32 i; in AcpiHwEnableRuntimeGpeBlock() local
568 for (i = 0; i < GpeBlock->RegisterCount; i++) in AcpiHwEnableRuntimeGpeBlock()
570 GpeRegisterInfo = &GpeBlock->RegisterInfo[i]; in AcpiHwEnableRuntimeGpeBlock()
611 UINT32 i; in AcpiHwEnableWakeupGpeBlock() local
[all …]
/acpica-latest/source/components/disassembler/
Ddmbuffer.c214 UINT32 i; in AcpiDmDisasmByteList() local
225 for (i = 0; i < ByteCount; i += ACPI_BUFFER_BYTES_PER_LINE) in AcpiDmDisasmByteList()
232 AcpiOsPrintf ("/* %04X */ ", i); in AcpiDmDisasmByteList()
239 CurrentIndex = i + j; in AcpiDmDisasmByteList()
267 CurrentIndex = i + j; in AcpiDmDisasmByteList()
525 UINT32 i; in AcpiDmIsUnicodeBuffer() local
568 for (i = 0; i < (ByteCount - 2); i += 2) in AcpiDmIsUnicodeBuffer()
570 if ((ByteData[i] == 0) || in AcpiDmIsUnicodeBuffer()
571 !(isprint (ByteData[i])) || in AcpiDmIsUnicodeBuffer()
572 (ByteData[(ACPI_SIZE) i + 1] != 0)) in AcpiDmIsUnicodeBuffer()
[all …]
/acpica-latest/source/tools/acpihelp/
Dahdecode.c453 UINT32 i = 0; in AhDisplayPredefinedName() local
467 i++; in AhDisplayPredefinedName()
472 for (i = 0; i < Length; i++) in AhDisplayPredefinedName()
474 if (Info->Name[i] != Name[i]) in AhDisplayPredefinedName()
493 printf ("\nFound %d Predefined ACPI Names\n", i); in AhDisplayPredefinedName()
591 UINT32 i; in AhDisplayDeviceIds() local
621 for (i = 0; i < Length; i++) in AhDisplayDeviceIds()
623 if (Info->Name[i] != Name[i]) in AhDisplayDeviceIds()
709 UINT32 i = 0; in AhDisplayTables() local
716 printf ("%8u) %s : %s\n", i + 1, Info->Signature, Info->Description); in AhDisplayTables()
[all …]
/acpica-latest/source/components/events/
Devxface.c214 UINT32 i; in AcpiInstallNotifyHandler() local
243 for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) in AcpiInstallNotifyHandler()
245 if (HandlerType & (i+1)) in AcpiInstallNotifyHandler()
247 if (AcpiGbl_GlobalNotify[i].Handler) in AcpiInstallNotifyHandler()
253 AcpiGbl_GlobalNotify[i].Handler = Handler; in AcpiInstallNotifyHandler()
254 AcpiGbl_GlobalNotify[i].Context = Context; in AcpiInstallNotifyHandler()
302 for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) in AcpiInstallNotifyHandler()
304 if (HandlerType & (i+1)) in AcpiInstallNotifyHandler()
306 HandlerObj = ObjDesc->CommonNotify.NotifyList[i]; in AcpiInstallNotifyHandler()
315 HandlerObj = HandlerObj->Notify.Next[i]; in AcpiInstallNotifyHandler()
[all …]

12345678