Home | History | Annotate | Download | only in utilities

Lines Matching defs:Buffer

330     char                    Buffer[7];
335 strcpy (Buffer, "MEMORY");
336 (void) AcpiDbDisplayStatistics (Buffer);
389 * PARAMETERS: Buffer - Buffer descriptor to be validated
399 ACPI_BUFFER *Buffer)
404 if (!Buffer)
411 if ((Buffer->Length == ACPI_NO_BUFFER) ||
412 (Buffer->Length == ACPI_ALLOCATE_BUFFER) ||
413 (Buffer->Length == ACPI_ALLOCATE_LOCAL_BUFFER))
418 /* Length is valid, the buffer pointer must be also */
420 if (!Buffer->Pointer)
433 * PARAMETERS: Buffer - Buffer to be validated
438 * DESCRIPTION: Validate that the buffer is of the required length or
439 * allocate a new buffer. Returned buffer is always zeroed.
445 ACPI_BUFFER *Buffer,
453 if (!Buffer || !RequiredLength)
459 * Buffer->Length is used as both an input and output parameter. Get the
460 * input actual length and set the output required buffer length.
462 InputBufferLength = Buffer->Length;
463 Buffer->Length = RequiredLength;
466 * The input buffer length contains the actual buffer length, or the type
467 * of buffer to be allocated by this routine.
473 /* Return the exception (and the required buffer length) */
479 * Allocate a new buffer. We directectly call AcpiOsAllocate here to
483 * buffer created via ACPI_ALLOCATE_BUFFER.
485 Buffer->Pointer = AcpiOsAllocate (RequiredLength);
490 /* Allocate a new buffer with local interface to allow tracking */
492 Buffer->Pointer = ACPI_ALLOCATE (RequiredLength);
497 /* Existing buffer: Validate the size of the buffer */
506 /* Validate allocation from above or input buffer pointer */
508 if (!Buffer->Pointer)
513 /* Have a valid buffer, clear it */
515 memset (Buffer->Pointer, 0, RequiredLength);