Lines Matching defs:ResourceSource
349 * ResourceSource - Where the ResourceSource is returned
352 * ResourceSource string
357 * DESCRIPTION: Copy the optional ResourceSource data from a raw AML descriptor
366 ACPI_RESOURCE_SOURCE *ResourceSource,
381 * ResourceSource is present if the length of the descriptor is longer than
391 ResourceSource->Index = AmlResourceSource[0];
393 ResourceSource->StringPtr = StringPtr;
398 * pointer to the end of the current ResourceSource structure.
400 ResourceSource->StringPtr = ACPI_ADD_PTR (char, ResourceSource,
415 ACPI_MEMSET (ResourceSource->StringPtr, 0, TotalLength);
417 /* Copy the ResourceSource string to the destination */
419 ResourceSource->StringLength = AcpiRsStrcpy (ResourceSource->StringPtr,
425 /* ResourceSource is not present */
427 ResourceSource->Index = 0;
428 ResourceSource->StringLength = 0;
429 ResourceSource->StringPtr = NULL;
441 * ResourceSource - Internal ResourceSource
446 * DESCRIPTION: Convert an optional ResourceSource from internal format to a
455 ACPI_RESOURCE_SOURCE *ResourceSource)
466 /* Non-zero string length indicates presence of a ResourceSource */
468 if (ResourceSource->StringLength)
476 AmlResourceSource[0] = (UINT8) ResourceSource->Index;
478 /* Copy the ResourceSource string */
481 ResourceSource->StringPtr);
487 DescriptorLength += ((ACPI_RSDESC_SIZE) ResourceSource->StringLength + 1);