ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%s while evaluating sleep_state [%s]\n", acpi_format_exception (status), acpi_gbl_sleep_state_names[sleep_state])); 
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%s while evaluating sleep_state [%s]\n", acpi_format_exception (status), sleep_state_name)); 
acpi_get_sleep_type_data (	u8                              sleep_state,	u8                              *sleep_type_a,	u8                              *sleep_type_b){	acpi_status                     status = AE_OK;	struct acpi_parameter_info      info;	ACPI_FUNCTION_TRACE ("acpi_get_sleep_type_data");	/*	 * Validate parameters	 */	if ((sleep_state > ACPI_S_STATES_MAX) ||		!sleep_type_a || !sleep_type_b) {		return_ACPI_STATUS (AE_BAD_PARAMETER);	}	/*	 * Evaluate the namespace object containing the values for this state	 */	info.parameters = NULL;	status = acpi_ns_evaluate_by_name ((char *) acpi_gbl_sleep_state_names[sleep_state],			  &info);	if (ACPI_FAILURE (status)) {		ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%s while evaluating sleep_state [%s]\n",			acpi_format_exception (status), acpi_gbl_sleep_state_names[sleep_state]));		return_ACPI_STATUS (status);	}	/* Must have a return object */	if (!info.return_object) {		ACPI_REPORT_ERROR (("Missing Sleep State object\n"));		status = AE_NOT_EXIST;	}	/* It must be of type Package */	else if (ACPI_GET_OBJECT_TYPE (info.return_object) != ACPI_TYPE_PACKAGE) {		ACPI_REPORT_ERROR (("Sleep State object not a Package\n"));		status = AE_AML_OPERAND_TYPE;	}	/* The package must have at least two elements */	else if (info.return_object->package.count < 2) {		ACPI_REPORT_ERROR (("Sleep State package does not have at least two elements\n"));		status = AE_AML_NO_OPERAND;	}	/* The first two elements must both be of type Integer */	else if ((ACPI_GET_OBJECT_TYPE (info.return_object->package.elements[0]) != ACPI_TYPE_INTEGER) ||			 (ACPI_GET_OBJECT_TYPE (info.return_object->package.elements[1]) != ACPI_TYPE_INTEGER)) {		ACPI_REPORT_ERROR (("Sleep State package elements are not both Integers (%s, %s)\n",			acpi_ut_get_object_type_name (info.return_object->package.elements[0]),			acpi_ut_get_object_type_name (info.return_object->package.elements[1])));		status = AE_AML_OPERAND_TYPE;	}	else {		/*		 * Valid _Sx_ package size, type, and value		 */		*sleep_type_a = (u8) (info.return_object->package.elements[0])->integer.value;		*sleep_type_b = (u8) (info.return_object->package.elements[1])->integer.value;	}	if (ACPI_FAILURE (status)) {		ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,			"While evaluating sleep_state [%s], bad Sleep object %p type %s\n",			acpi_gbl_sleep_state_names[sleep_state], info.return_object,			acpi_ut_get_object_type_name (info.return_object)));	}	acpi_ut_remove_reference (info.return_object);	return_ACPI_STATUS (status);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/hwregs.c/clean/drivers/acpi/hardware/hwregs.c