ACPI_DEBUG_EXEC (acpi_ut_display_init_pathname (ACPI_TYPE_METHOD, pinfo.node, "_STA")); 
ACPI_DEBUG_EXEC (acpi_ut_display_init_pathname (ACPI_TYPE_METHOD, pinfo.node, METHOD_NAME__STA)); 
acpi_ns_init_one_device (	acpi_handle                     obj_handle,	u32                             nesting_level,	void                            *context,	void                            **return_value){	struct acpi_device_walk_info   *info = (struct acpi_device_walk_info *) context;	struct acpi_parameter_info      pinfo;	u32                             flags;	acpi_status                     status;	ACPI_FUNCTION_TRACE ("ns_init_one_device");	pinfo.parameters = NULL;	pinfo.parameter_type = ACPI_PARAM_ARGS;	pinfo.node = acpi_ns_map_handle_to_node (obj_handle);	if (!pinfo.node) {		return_ACPI_STATUS (AE_BAD_PARAMETER);	}	/*	 * We will run _STA/_INI on Devices, Processors and thermal_zones only	 */	if ((pinfo.node->type != ACPI_TYPE_DEVICE)      &&		(pinfo.node->type != ACPI_TYPE_PROCESSOR)   &&		(pinfo.node->type != ACPI_TYPE_THERMAL)) {		return_ACPI_STATUS (AE_OK);	}	if ((acpi_dbg_level <= ACPI_LV_ALL_EXCEPTIONS) &&		(!(acpi_dbg_level & ACPI_LV_INFO))) {		ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "."));	}	info->device_count++;	/*	 * Run _STA to determine if we can run _INI on the device.	 */	ACPI_DEBUG_EXEC (acpi_ut_display_init_pathname (ACPI_TYPE_METHOD, pinfo.node, "_STA"));	status = acpi_ut_execute_STA (pinfo.node, &flags);	if (ACPI_FAILURE (status)) {		if (pinfo.node->type == ACPI_TYPE_DEVICE) {			/* Ignore error and move on to next device */			return_ACPI_STATUS (AE_OK);		}		/* _STA is not required for Processor or thermal_zone objects */	}	else {		info->num_STA++;		if (!(flags & 0x01)) {			/* Don't look at children of a not present device */			return_ACPI_STATUS(AE_CTRL_DEPTH);		}	}	/*	 * The device is present. Run _INI.	 */	ACPI_DEBUG_EXEC (acpi_ut_display_init_pathname (ACPI_TYPE_METHOD, pinfo.node, "_INI"));	status = acpi_ns_evaluate_relative ("_INI", &pinfo);	if (ACPI_FAILURE (status)) {		/* No _INI (AE_NOT_FOUND) means device requires no initialization */		if (status != AE_NOT_FOUND) {			/* Ignore error and move on to next device */#ifdef ACPI_DEBUG_OUTPUT			char                *scope_name = acpi_ns_get_external_pathname (pinfo.node);			ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "%s._INI failed: %s\n",					scope_name, acpi_format_exception (status)));			ACPI_MEM_FREE (scope_name);#endif		}		status = AE_OK;	}	else {		/* Delete any return object (especially if implicit_return is enabled) */		if (pinfo.return_object) {			acpi_ut_remove_reference (pinfo.return_object);		}		/* Count of successful INIs */		info->num_INI++;	}	if (acpi_gbl_init_handler) {		/* External initialization handler is present, call it */		status = acpi_gbl_init_handler (pinfo.node, ACPI_INIT_DEVICE_INI);	}	return_ACPI_STATUS (status);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/nsinit.c/buggy/drivers/acpi/namespace/nsinit.c