Lines Matching defs:resource_source
298 * resource_source - Where the resource_source is returned
301 * resource_source string
306 * DESCRIPTION: Copy the optional resource_source data from a raw AML descriptor
314 struct acpi_resource_source * resource_source,
327 * resource_source is present if the length of the descriptor is longer than
337 resource_source->index = aml_resource_source[0];
339 resource_source->string_ptr = string_ptr;
343 * pointer to the end of the current resource_source structure.
345 resource_source->string_ptr =
346 ACPI_ADD_PTR(char, resource_source,
361 ACPI_MEMSET(resource_source->string_ptr, 0, total_length);
363 /* Copy the resource_source string to the destination */
365 resource_source->string_length =
366 acpi_rs_strcpy(resource_source->string_ptr,
373 /* resource_source is not present */
375 resource_source->index = 0;
376 resource_source->string_length = 0;
377 resource_source->string_ptr = NULL;
388 * resource_source - Internal resource_source
393 * DESCRIPTION: Convert an optional resource_source from internal format to a
401 struct acpi_resource_source * resource_source)
410 /* Non-zero string length indicates presence of a resource_source */
412 if (resource_source->string_length) {
420 aml_resource_source[0] = (u8) resource_source->index;
422 /* Copy the resource_source string */
425 resource_source->string_ptr);
432 ((acpi_rsdesc_size) resource_source->string_length + 1);