Home
last modified time | relevance | path

Searched refs:Buffer (Results 1 – 25 of 163) sorted by relevance

1234567

/illumos-gate/usr/src/common/acpica/executer/
H A Dexstorob.c180 UINT8 *Buffer; in AcpiExStoreBufferToBuffer() local
195 Buffer = ACPI_CAST_PTR (UINT8, SourceDesc->Buffer.Pointer); in AcpiExStoreBufferToBuffer()
196 Length = SourceDesc->Buffer.Length; in AcpiExStoreBufferToBuffer()
202 if ((TargetDesc->Buffer.Length == 0) || in AcpiExStoreBufferToBuffer()
205 TargetDesc->Buffer.Pointer = ACPI_ALLOCATE (Length); in AcpiExStoreBufferToBuffer()
206 if (!TargetDesc->Buffer.Pointer) in AcpiExStoreBufferToBuffer()
211 TargetDesc->Buffer.Length = Length; in AcpiExStoreBufferToBuffer()
216 if (Length <= TargetDesc->Buffer.Length) in AcpiExStoreBufferToBuffer()
220 memset (TargetDesc->Buffer.Pointer, 0, TargetDesc->Buffer.Length); in AcpiExStoreBufferToBuffer()
221 memcpy (TargetDesc->Buffer.Pointer, Buffer, Length); in AcpiExStoreBufferToBuffer()
[all …]
H A Dexconcat.c204 char *Buffer; in AcpiExDoConcatenate() local
354 Buffer = (char *) ReturnDesc->Buffer.Pointer; in AcpiExDoConcatenate()
358 memcpy (Buffer, &Operand0->Integer.Value, in AcpiExDoConcatenate()
363 memcpy (Buffer + AcpiGbl_IntegerByteWidth, in AcpiExDoConcatenate()
380 Buffer = ReturnDesc->String.Pointer; in AcpiExDoConcatenate()
384 strcpy (Buffer, LocalOperand0->String.Pointer); in AcpiExDoConcatenate()
385 strcat (Buffer, LocalOperand1->String.Pointer); in AcpiExDoConcatenate()
393 ((ACPI_SIZE) Operand0->Buffer.Length + in AcpiExDoConcatenate()
394 LocalOperand1->Buffer.Length)); in AcpiExDoConcatenate()
401 Buffer = (char *) ReturnDesc->Buffer.Pointer; in AcpiExDoConcatenate()
[all …]
H A Dexfield.c255 void *Buffer; in AcpiExReadDataFromField() local
343 ACPI_CAST_PTR (UINT64, BufferDesc->Buffer.Pointer), Function); in AcpiExReadDataFromField()
371 Buffer = BufferDesc->Buffer.Pointer; in AcpiExReadDataFromField()
384 Buffer = &BufferDesc->Integer.Value; in AcpiExReadDataFromField()
407 ObjDesc, 0, (UINT64 *) Buffer, ACPI_READ); in AcpiExReadDataFromField()
423 ObjDesc, ObjDesc->Common.Type, Buffer, (UINT32) Length)); in AcpiExReadDataFromField()
436 Status = AcpiExExtractFromField (ObjDesc, Buffer, (UINT32) Length); in AcpiExReadDataFromField()
476 void *Buffer; in AcpiExWriteDataToField() local
564 if (SourceDesc->Buffer.Length < Length) in AcpiExWriteDataToField()
569 Length, SourceDesc->Buffer.Length)); in AcpiExWriteDataToField()
[all …]
H A Dexconvrt.c216 Pointer = ObjDesc->Buffer.Pointer; in AcpiExConvertToInteger()
217 Count = ObjDesc->Buffer.Length; in AcpiExConvertToInteger()
366 NewBuf = ReturnDesc->Buffer.Pointer; in AcpiExConvertToBuffer()
389 NewBuf = ReturnDesc->Buffer.Pointer; in AcpiExConvertToBuffer()
602 NewBuf = ReturnDesc->Buffer.Pointer; in AcpiExConvertToString()
632 for (i = 0; i < ObjDesc->Buffer.Length; i++) in AcpiExConvertToString()
634 if (ObjDesc->Buffer.Pointer[i] >= 100) in AcpiExConvertToString()
638 else if (ObjDesc->Buffer.Pointer[i] >= 10) in AcpiExConvertToString()
656 StringLength = (ObjDesc->Buffer.Length * 3); in AcpiExConvertToString()
664 StringLength = (ObjDesc->Buffer.Length * 3); in AcpiExConvertToString()
[all …]
H A Dexoparg3.c287 char *Buffer = NULL; in AcpiExOpcode_3A_1T_1R() local
342 Buffer = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE) Length + 1); in AcpiExOpcode_3A_1T_1R()
343 if (!Buffer) in AcpiExOpcode_3A_1T_1R()
358 Buffer = ACPI_ALLOCATE_ZEROED (Length); in AcpiExOpcode_3A_1T_1R()
359 if (!Buffer) in AcpiExOpcode_3A_1T_1R()
373 if (Buffer) in AcpiExOpcode_3A_1T_1R()
377 memcpy (Buffer, in AcpiExOpcode_3A_1T_1R()
383 ReturnDesc->String.Pointer = Buffer; in AcpiExOpcode_3A_1T_1R()
388 ReturnDesc->Buffer.Flags |= AOPOBJ_DATA_VALID; in AcpiExOpcode_3A_1T_1R()
/illumos-gate/usr/src/cmd/acpi/common/
H A Dacgetline.c268 char *Buffer, in AcpiOsGetLine() argument
284 memset (Buffer, 0, BufferLength); in AcpiOsGetLine()
310 Buffer[EndOfLine] = (char) InputChar; in AcpiOsGetLine()
314 Buffer[EndOfLine] = 0; in AcpiOsGetLine()
320 memmove (&Buffer[CursorPosition + 1], &Buffer[CursorPosition], in AcpiOsGetLine()
323 Buffer [CursorPosition] = (char) InputChar; in AcpiOsGetLine()
324 Buffer [EndOfLine + 1] = 0; in AcpiOsGetLine()
328 fprintf (stdout, "%s", &Buffer[CursorPosition]); in AcpiOsGetLine()
359 memmove (&Buffer[CursorPosition - 1], &Buffer[CursorPosition], in AcpiOsGetLine()
365 fprintf (stdout, "%s ", &Buffer[CursorPosition - 1]); in AcpiOsGetLine()
[all …]
H A Ddmtbdump.c197 UINT8 *Buffer; in AcpiDmDumpBuffer() local
206 Buffer = ACPI_CAST_PTR (UINT8, Table) + BufferOffset; in AcpiDmDumpBuffer()
221 AcpiOsPrintf ("%.02X ", *Buffer); in AcpiDmDumpBuffer()
223 Buffer++; in AcpiDmDumpBuffer()
254 UINT8 *Buffer; in AcpiDmDumpUnicode() local
259 Buffer = ((UINT8 *) Table) + BufferOffset; in AcpiDmDumpUnicode()
266 if (!isprint (Buffer[i])) in AcpiDmDumpUnicode()
276 if (Buffer[i]) in AcpiDmDumpUnicode()
287 AcpiOsPrintf ("%c", Buffer[i]); in AcpiDmDumpUnicode()
/illumos-gate/usr/src/cmd/acpi/iasl/
H A Ddtfield.c162 UINT8 *Buffer,
168 UINT8 *Buffer,
174 UINT8 *Buffer,
180 char *Buffer,
201 UINT8 *Buffer, in DtCompileOneField() argument
214 DtCompileInteger (Buffer, Field, ByteLength, Flags); in DtCompileOneField()
219 DtCompileString (Buffer, Field, ByteLength); in DtCompileOneField()
224 Status = DtCompileUuid (Buffer, Field, ByteLength); in DtCompileOneField()
234 DtCompileBuffer (Buffer, Field->Value, Field, ByteLength); in DtCompileOneField()
239 DtCompileUnicode (Buffer, Field, ByteLength); in DtCompileOneField()
[all …]
H A Dprutils.c177 char *Buffer, in PrGetNextToken() argument
184 if (!Buffer) in PrGetNextToken()
188 Buffer = *Next; in PrGetNextToken()
197 while (*Buffer) in PrGetNextToken()
199 if (strchr (MatchString, *Buffer)) in PrGetNextToken()
201 Buffer++; in PrGetNextToken()
211 if (!(*Buffer)) in PrGetNextToken()
217 TokenStart = Buffer; in PrGetNextToken()
221 while (*Buffer) in PrGetNextToken()
223 if (strchr (MatchString, *Buffer)) in PrGetNextToken()
[all …]
H A Ddtcompile.c518 ACPI_TABLE_HEADER, Gbl_RootTable->Buffer); in DtCompileDataTable()
553 UINT8 *Buffer; in DtCompileTable() local
593 Subtable->Buffer = ACPI_CAST_PTR (UINT8, String); in DtCompileTable()
598 Buffer = Subtable->Buffer; in DtCompileTable()
642 FlagBuffer = Buffer; in DtCompileTable()
713 memcpy (Buffer, InlineSubtable->Buffer, FieldLength); in DtCompileTable()
719 DtWriteFieldToListing (Buffer, LocalField, 0); in DtCompileTable()
727 DtCompileOneField (Buffer, LocalField, in DtCompileTable()
730 DtWriteFieldToListing (Buffer, LocalField, FieldLength); in DtCompileTable()
737 Subtable->LengthField = Buffer; in DtCompileTable()
[all …]
H A Daslcache.c181 char *Buffer; in UtLocalCacheCalloc() local
204 return (Cache->Buffer); in UtLocalCacheCalloc()
221 Gbl_StringCacheNext = Cache->Buffer; in UtLocalCacheCalloc()
228 Buffer = Gbl_StringCacheNext; in UtLocalCacheCalloc()
230 return (Buffer); in UtLocalCacheCalloc()
269 Gbl_ParseOpCacheNext = ACPI_CAST_PTR (ACPI_PARSE_OBJECT, Cache->Buffer); in UtParseOpCacheCalloc()
313 Gbl_SubtableCacheNext = ACPI_CAST_PTR (DT_SUBTABLE, Cache->Buffer); in UtSubtableCacheCalloc()
357 Gbl_FieldCacheNext = ACPI_CAST_PTR (DT_FIELD, Cache->Buffer); in UtFieldCacheCalloc()
H A Daslbtypes.c429 char *Buffer, in AnFormatBtype() argument
436 *Buffer = 0; in AnFormatBtype()
439 strcat (Buffer, "NoReturnValue"); in AnFormatBtype()
449 strcat (Buffer, "|"); in AnFormatBtype()
453 strcat (Buffer, AcpiUtGetTypeName (Type)); in AnFormatBtype()
462 strcat (Buffer, "|"); in AnFormatBtype()
466 strcat (Buffer, "Reference"); in AnFormatBtype()
474 strcat (Buffer, "|"); in AnFormatBtype()
478 strcat (Buffer, "Resource"); in AnFormatBtype()
H A Daslallocate.c262 char **Buffer, in UtReallocLineBuffers() argument
267 *Buffer = realloc (*Buffer, NewSize); in UtReallocLineBuffers()
268 if (*Buffer) in UtReallocLineBuffers()
270 memset (*Buffer + OldSize, 0, NewSize - OldSize); in UtReallocLineBuffers()
H A Ddttable1.c215 AsfTable = ACPI_CAST_PTR (ACPI_ASF_INFO, Subtable->Buffer); in DtCompileAsf()
270 ACPI_SUB_PTR (UINT8, Subtable->Buffer, in DtCompileAsf()
278 ACPI_SUB_PTR (UINT8, Subtable->Buffer, in DtCompileAsf()
291 ACPI_SUB_PTR (UINT8, Subtable->Buffer, in DtCompileAsf()
412 Subtable->Buffer))->Length - in DtCompileCsrt()
414 Subtable->Buffer))->SharedInfoLength - in DtCompileCsrt()
518 Dbg2Header = ACPI_CAST_PTR (ACPI_DBG2_HEADER, Subtable->Buffer); in DtCompileDbg2()
538 DeviceInfo = ACPI_CAST_PTR (ACPI_DBG2_DEVICE, Subtable->Buffer); in DtCompileDbg2()
688 DmarHeader = ACPI_CAST_PTR (ACPI_DMAR_HEADER, Subtable->Buffer); in DtCompileDmar()
762 DmarDeviceScope = ACPI_CAST_PTR (ACPI_DMAR_DEVICE_SCOPE, Subtable->Buffer); in DtCompileDmar()
[all …]
/illumos-gate/usr/src/common/acpica/utilities/
H A Dutbuffer.c180 UINT8 *Buffer, in AcpiUtDumpBuffer() argument
191 if (!Buffer) in AcpiUtDumpBuffer()
228 AcpiOsPrintf ("%02X ", Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
233 ACPI_MOVE_16_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
239 ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
245 ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); in AcpiUtDumpBuffer()
248 ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j + 4]); in AcpiUtDumpBuffer()
278 BufChar = Buffer[(ACPI_SIZE) i + j]; in AcpiUtDumpBuffer()
320 UINT8 *Buffer, in AcpiUtDebugDumpBuffer() argument
334 AcpiUtDumpBuffer (Buffer, Count, Display, 0); in AcpiUtDebugDumpBuffer()
[all …]
H A Dutalloc.c330 char Buffer[7]; in AcpiUtDeleteCaches() local
335 strcpy (Buffer, "MEMORY"); in AcpiUtDeleteCaches()
336 (void) AcpiDbDisplayStatistics (Buffer); in AcpiUtDeleteCaches()
399 ACPI_BUFFER *Buffer) in AcpiUtValidateBuffer() argument
404 if (!Buffer) in AcpiUtValidateBuffer()
411 if ((Buffer->Length == ACPI_NO_BUFFER) || in AcpiUtValidateBuffer()
412 (Buffer->Length == ACPI_ALLOCATE_BUFFER) || in AcpiUtValidateBuffer()
413 (Buffer->Length == ACPI_ALLOCATE_LOCAL_BUFFER)) in AcpiUtValidateBuffer()
420 if (!Buffer->Pointer) in AcpiUtValidateBuffer()
445 ACPI_BUFFER *Buffer, in AcpiUtInitializeBuffer() argument
[all …]
H A Dutpredef.c267 char *Buffer, in AcpiUtGetExpectedReturnTypes() argument
277 strcpy (Buffer, "NONE"); in AcpiUtGetExpectedReturnTypes()
282 Buffer[0] = 0; in AcpiUtGetExpectedReturnTypes()
291 strcat (Buffer, &UtRtypeNames[i][j]); in AcpiUtGetExpectedReturnTypes()
312 char *Buffer,
407 char *Buffer, in AcpiUtDisplayPredefinedMethod() argument
417 ArgCount = AcpiUtGetArgumentTypes (Buffer, in AcpiUtDisplayPredefinedMethod()
435 printf (" (%s)", Buffer); in AcpiUtDisplayPredefinedMethod()
447 AcpiUtGetExpectedReturnTypes (Buffer, ThisName->Info.ExpectedBtypes); in AcpiUtDisplayPredefinedMethod()
448 printf (" Return value types: %s\n", Buffer); in AcpiUtDisplayPredefinedMethod()
[all …]
H A Dutcopy.c179 UINT8 *Buffer,
283 ExternalObject->Buffer.Pointer = DataSpace; in AcpiUtCopyIsimpleToEsimple()
284 ExternalObject->Buffer.Length = InternalObject->Buffer.Length; in AcpiUtCopyIsimpleToEsimple()
289 (void *) InternalObject->Buffer.Pointer, in AcpiUtCopyIsimpleToEsimple()
290 InternalObject->Buffer.Length); in AcpiUtCopyIsimpleToEsimple()
460 UINT8 *Buffer, in AcpiUtCopyIpackageToEpackage() argument
474 ExternalObject = ACPI_CAST_PTR (ACPI_OBJECT, Buffer); in AcpiUtCopyIpackageToEpackage()
480 Info.FreeSpace = Buffer + in AcpiUtCopyIpackageToEpackage()
648 InternalObject->Buffer.Pointer = in AcpiUtCopyEsimpleToIsimple()
649 ACPI_ALLOCATE_ZEROED (ExternalObject->Buffer.Length); in AcpiUtCopyEsimpleToIsimple()
[all …]
/illumos-gate/usr/src/common/acpica/resources/
H A Drsxface.c190 ACPI_BUFFER *Buffer,
211 ACPI_BUFFER *Buffer, in AcpiRsValidateParameters() argument
247 Status = AcpiUtValidateBuffer (Buffer); in AcpiRsValidateParameters()
612 Info.Buffer = RetBuffer; in ACPI_EXPORT_SYMBOL()
649 ACPI_BUFFER *Buffer; in ACPI_EXPORT_SYMBOL() local
678 Buffer = Info->Buffer; in ACPI_EXPORT_SYMBOL()
679 Status = AcpiUtInitializeBuffer (Buffer, Resource->Length); in ACPI_EXPORT_SYMBOL()
687 memcpy (Buffer->Pointer, Resource, Resource->Length); in ACPI_EXPORT_SYMBOL()
688 Buffer->Length = Resource->Length; in ACPI_EXPORT_SYMBOL()
715 ACPI_BUFFER *Buffer, in AcpiWalkResourceBuffer() argument
[all …]
/illumos-gate/usr/src/common/acpica/namespace/
H A Dnsconvert.c205 if (OriginalObject->Buffer.Length > 8) in AcpiNsConvertToInteger()
212 for (i = 0; i < OriginalObject->Buffer.Length; i++) in AcpiNsConvertToInteger()
215 OriginalObject->Buffer.Pointer[i] << (i * 8)); in AcpiNsConvertToInteger()
295 while ((Length < OriginalObject->Buffer.Length) && in AcpiNsConvertToString()
296 (OriginalObject->Buffer.Pointer[Length])) in AcpiNsConvertToString()
314 OriginalObject->Buffer.Pointer, Length); in AcpiNsConvertToString()
381 memcpy (NewObject->Buffer.Pointer, in AcpiNsConvertToBuffer()
418 DwordBuffer = ACPI_CAST_PTR (UINT32, NewObject->Buffer.Pointer); in AcpiNsConvertToBuffer()
474 if (OriginalObject->Buffer.Length < 2) in AcpiNsConvertToUnicode()
498 UnicodeBuffer = ACPI_CAST_PTR (UINT16, NewObject->Buffer.Pointer); in AcpiNsConvertToUnicode()
[all …]
H A Dnsnames.c249 ACPI_BUFFER *Buffer) in AcpiNsHandleToName() argument
267 Status = AcpiUtInitializeBuffer (Buffer, ACPI_PATH_SEGMENT_LENGTH); in AcpiNsHandleToName()
276 ACPI_MOVE_NAME (Buffer->Pointer, NodeName); in AcpiNsHandleToName()
277 ((char *) Buffer->Pointer) [ACPI_NAME_SIZE] = 0; in AcpiNsHandleToName()
279 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%4.4s\n", (char *) Buffer->Pointer)); in AcpiNsHandleToName()
303 ACPI_BUFFER *Buffer, in AcpiNsHandleToPathname() argument
330 Status = AcpiUtInitializeBuffer (Buffer, RequiredSize); in AcpiNsHandleToPathname()
338 (void) AcpiNsBuildNormalizedPath (Node, Buffer->Pointer, in AcpiNsHandleToPathname()
342 (char *) Buffer->Pointer, (UINT32) RequiredSize)); in AcpiNsHandleToPathname()
/illumos-gate/usr/src/cmd/acpi/acpidump/
H A Dapfiles.c345 ACPI_TABLE_HEADER *Buffer = NULL; in ApGetTableFromFile() local
372 Buffer = ACPI_ALLOCATE_ZEROED (FileSize); in ApGetTableFromFile()
373 if (!Buffer) in ApGetTableFromFile()
382 Actual = fread (Buffer, 1, FileSize, File); in ApGetTableFromFile()
386 ACPI_FREE (Buffer); in ApGetTableFromFile()
387 Buffer = NULL; in ApGetTableFromFile()
395 return (Buffer); in ApGetTableFromFile()
/illumos-gate/usr/src/common/acpica/dispatcher/
H A Ddsobject.c358 ObjDesc->Buffer.Length = BufferLength; in AcpiDsBuildInternalBufferObj()
361 ObjDesc->Buffer.Length = ByteListLength; in AcpiDsBuildInternalBufferObj()
366 if (ObjDesc->Buffer.Length == 0) in AcpiDsBuildInternalBufferObj()
368 ObjDesc->Buffer.Pointer = NULL; in AcpiDsBuildInternalBufferObj()
374 ObjDesc->Buffer.Pointer = in AcpiDsBuildInternalBufferObj()
375 ACPI_ALLOCATE_ZEROED (ObjDesc->Buffer.Length); in AcpiDsBuildInternalBufferObj()
376 if (!ObjDesc->Buffer.Pointer) in AcpiDsBuildInternalBufferObj()
386 memcpy (ObjDesc->Buffer.Pointer, ByteList->Named.Data, in AcpiDsBuildInternalBufferObj()
391 ObjDesc->Buffer.Flags |= AOPOBJ_DATA_VALID; in AcpiDsBuildInternalBufferObj()
515 ObjDesc->Buffer.Node = ACPI_CAST_PTR ( in AcpiDsInitObjectFromOp()
[all …]
H A Ddsdebug.c191 ACPI_BUFFER Buffer; in AcpiDsPrintNodePathname() local
205 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; in AcpiDsPrintNodePathname()
207 Status = AcpiNsHandleToPathname (Node, &Buffer, TRUE); in AcpiDsPrintNodePathname()
216 (char *) Buffer.Pointer, Node)); in AcpiDsPrintNodePathname()
217 ACPI_FREE (Buffer.Pointer); in AcpiDsPrintNodePathname()
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dmanglprm.awk32 out_debug("Buffer = [" protect(Buffer) "]")
33 Buffer = Buffer s
34 n = split(Buffer,parts,"\n")

1234567