Lines Matching defs:ResourceSource
352 * ResourceSource - Where the ResourceSource is returned
355 * ResourceSource string
360 * DESCRIPTION: Copy the optional ResourceSource data from a raw AML descriptor
369 ACPI_RESOURCE_SOURCE *ResourceSource,
384 * ResourceSource is present if the length of the descriptor is longer
394 ResourceSource->Index = AmlResourceSource[0];
396 ResourceSource->StringPtr = StringPtr;
401 * pointer to the end of the current ResourceSource structure.
403 ResourceSource->StringPtr = ACPI_ADD_PTR (
404 char, ResourceSource, sizeof (ACPI_RESOURCE_SOURCE));
419 memset (ResourceSource->StringPtr, 0, TotalLength);
421 /* Copy the ResourceSource string to the destination */
423 ResourceSource->StringLength = AcpiRsStrcpy (
424 ResourceSource->StringPtr,
430 /* ResourceSource is not present */
432 ResourceSource->Index = 0;
433 ResourceSource->StringLength = 0;
434 ResourceSource->StringPtr = NULL;
446 * ResourceSource - Internal ResourceSource
451 * DESCRIPTION: Convert an optional ResourceSource from internal format to a
460 ACPI_RESOURCE_SOURCE *ResourceSource)
471 /* Non-zero string length indicates presence of a ResourceSource */
473 if (ResourceSource->StringLength)
481 AmlResourceSource[0] = (UINT8) ResourceSource->Index;
483 /* Copy the ResourceSource string */
486 ResourceSource->StringPtr);
493 ResourceSource->StringLength + 1);