ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "root_prefix(\\) at %p\n", aml_address)); 
ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "root_prefix(\\) at %p\n", aml_address)); 
acpi_ex_get_name_string (	acpi_object_type                data_type,	u8                              *in_aml_address,	char                            **out_name_string,	u32                             *out_name_length){	acpi_status                     status = AE_OK;	u8                              *aml_address = in_aml_address;	char                            *name_string = NULL;	u32                             num_segments;	u32                             prefix_count = 0;	u8                              has_prefix = FALSE;	ACPI_FUNCTION_TRACE_PTR ("ex_get_name_string", aml_address);	if (ACPI_TYPE_LOCAL_REGION_FIELD == data_type  ||		ACPI_TYPE_LOCAL_BANK_FIELD == data_type    ||		ACPI_TYPE_LOCAL_INDEX_FIELD == data_type) {		/* Disallow prefixes for types associated with field_unit names */		name_string = acpi_ex_allocate_name_string (0, 1);		if (!name_string) {			status = AE_NO_MEMORY;		}		else {			status = acpi_ex_name_segment (&aml_address, name_string);		}	}	else {		/*		 * data_type is not a field name.		 * Examine first character of name for root or parent prefix operators		 */		switch (*aml_address) {		case AML_ROOT_PREFIX:			ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "root_prefix(\\) at %p\n", aml_address));			/*			 * Remember that we have a root_prefix --			 * see comment in acpi_ex_allocate_name_string()			 */			aml_address++;			prefix_count = ACPI_UINT32_MAX;			has_prefix = TRUE;			break;		case AML_PARENT_PREFIX:			/* Increment past possibly multiple parent prefixes */			do {				ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "parent_prefix (^) at %p\n", aml_address));				aml_address++;				prefix_count++;			} while (*aml_address == AML_PARENT_PREFIX);			has_prefix = TRUE;			break;		default:			/* Not a prefix character */			break;		}		/* Examine first character of name for name segment prefix operator */		switch (*aml_address) {		case AML_DUAL_NAME_PREFIX:			ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "dual_name_prefix at %p\n", aml_address));			aml_address++;			name_string = acpi_ex_allocate_name_string (prefix_count, 2);			if (!name_string) {				status = AE_NO_MEMORY;				break;			}			/* Indicate that we processed a prefix */			has_prefix = TRUE;			status = acpi_ex_name_segment (&aml_address, name_string);			if (ACPI_SUCCESS (status)) {				status = acpi_ex_name_segment (&aml_address, name_string);			}			break;		case AML_MULTI_NAME_PREFIX_OP:			ACPI_DEBUG_PRINT ((ACPI_DB_LOAD, "multi_name_prefix at %p\n", aml_address));			/* Fetch count of segments remaining in name path */			aml_address++;			num_segments = *aml_address;			name_string = acpi_ex_allocate_name_string (prefix_count, num_segments);			if (!name_string) {				status = AE_NO_MEMORY;				break;			}			/* Indicate that we processed a prefix */			aml_address++;			has_prefix = TRUE;			while (num_segments &&					(status = acpi_ex_name_segment (&aml_address, name_string)) == AE_OK) {				num_segments--;			}			break;		case 0:			/* null_name valid as of 8-12-98 ASL/AML Grammar Update */			if (prefix_count == ACPI_UINT32_MAX) {				ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "name_seg is \"\\\" followed by NULL\n"));			}			/* Consume the NULL byte */			aml_address++;			name_string = acpi_ex_allocate_name_string (prefix_count, 0);			if (!name_string) {				status = AE_NO_MEMORY;				break;			}			break;		default:			/* Name segment string */			name_string = acpi_ex_allocate_name_string (prefix_count, 1);			if (!name_string) {				status = AE_NO_MEMORY;				break;			}			status = acpi_ex_name_segment (&aml_address, name_string);			break;		}	}	if (AE_CTRL_PENDING == status && has_prefix) {		/* Ran out of segments after processing a prefix */		ACPI_REPORT_ERROR (			("ex_do_name: Malformed Name at %p\n", name_string));		status = AE_AML_BAD_NAME;	}	*out_name_string = name_string;	*out_name_length = (u32) (aml_address - in_aml_address);	return_ACPI_STATUS (status);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/exnames.c/clean/drivers/acpi/executer/exnames.c