internal_object = acpi_ut_create_internal_object ((u8) external_object->type); 
internal_object = acpi_ut_create_internal_object ( (u8) external_object->type); 
acpi_ut_copy_esimple_to_isimple (	union acpi_object               *external_object,	union acpi_operand_object       **ret_internal_object){	union acpi_operand_object       *internal_object;	ACPI_FUNCTION_TRACE ("ut_copy_esimple_to_isimple");	/*	 * Simple types supported are: String, Buffer, Integer	 */	switch (external_object->type) {	case ACPI_TYPE_STRING:	case ACPI_TYPE_BUFFER:	case ACPI_TYPE_INTEGER:		internal_object = acpi_ut_create_internal_object ((u8) external_object->type);		if (!internal_object) {			return_ACPI_STATUS (AE_NO_MEMORY);		}		break;	default:		/* All other types are not supported */		return_ACPI_STATUS (AE_SUPPORT);	}	/* Must COPY string and buffer contents */	switch (external_object->type) {	case ACPI_TYPE_STRING:		internal_object->string.pointer =			ACPI_MEM_CALLOCATE ((acpi_size) external_object->string.length + 1);		if (!internal_object->string.pointer) {			goto error_exit;		}		ACPI_MEMCPY (internal_object->string.pointer,				  external_object->string.pointer,				  external_object->string.length);		internal_object->string.length = external_object->string.length;		break;	case ACPI_TYPE_BUFFER:		internal_object->buffer.pointer =			ACPI_MEM_CALLOCATE (external_object->buffer.length);		if (!internal_object->buffer.pointer) {			goto error_exit;		}		ACPI_MEMCPY (internal_object->buffer.pointer,				  external_object->buffer.pointer,				  external_object->buffer.length);		internal_object->buffer.length = external_object->buffer.length;		break;	case ACPI_TYPE_INTEGER:		internal_object->integer.value  = external_object->integer.value;		break;	default:		/* Other types can't get here */		break;	}	*ret_internal_object = internal_object;	return_ACPI_STATUS (AE_OK);error_exit:	acpi_ut_remove_reference (internal_object);	return_ACPI_STATUS (AE_NO_MEMORY);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/utcopy.c/clean/drivers/acpi/utilities/utcopy.c