Lines Matching defs:ResourceSource
460 * ResourceSource - Where the ResourceSource is returned
463 * ResourceSource string
468 * DESCRIPTION: Copy the optional ResourceSource data from a raw AML descriptor
477 ACPI_RESOURCE_SOURCE *ResourceSource,
492 * ResourceSource is present if the length of the descriptor is longer
502 ResourceSource->Index = AmlResourceSource[0];
504 ResourceSource->StringPtr = StringPtr;
509 * pointer to the end of the current ResourceSource structure.
511 ResourceSource->StringPtr = ACPI_ADD_PTR (
512 char, ResourceSource, sizeof (ACPI_RESOURCE_SOURCE));
527 memset (ResourceSource->StringPtr, 0, TotalLength);
529 /* Copy the ResourceSource string to the destination */
531 ResourceSource->StringLength = AcpiRsStrcpy (
532 ResourceSource->StringPtr,
538 /* ResourceSource is not present */
540 ResourceSource->Index = 0;
541 ResourceSource->StringLength = 0;
542 ResourceSource->StringPtr = NULL;
554 * ResourceSource - Internal ResourceSource
559 * DESCRIPTION: Convert an optional ResourceSource from internal format to a
568 ACPI_RESOURCE_SOURCE *ResourceSource)
579 /* Non-zero string length indicates presence of a ResourceSource */
581 if (ResourceSource->StringLength)
589 AmlResourceSource[0] = (UINT8) ResourceSource->Index;
591 /* Copy the ResourceSource string */
594 ResourceSource->StringPtr);
601 ResourceSource->StringLength + 1);