49 #define _COMPONENT ACPI_EXECUTER
84 switch (obj_desc->common.type) {
89 *result_desc = obj_desc;
97 pointer = obj_desc->buffer.pointer;
98 count = obj_desc->buffer.length;
118 switch (obj_desc->common.type) {
151 for (i = 0; i <
count; i++) {
157 result |= (((
u64) pointer[i]) << (i * 8));
180 *result_desc = return_desc;
207 switch (obj_desc->
common.type) {
212 *result_desc = obj_desc;
229 new_buf = return_desc->
buffer.pointer;
255 new_buf = return_desc->
buffer.pointer;
267 *result_desc = return_desc;
305 switch (data_width) {
320 supress_zeros =
TRUE;
323 for (i = decimal_length; i > 0; i--) {
328 for (j = 0; j <
i; j++) {
335 if (remainder != 0) {
336 supress_zeros =
FALSE;
339 if (!supress_zeros) {
351 for (i = 0, j = (hex_length - 1); i < hex_length; i++, j--) {
403 u32 string_length = 0;
409 switch (obj_desc->
common.type) {
414 *result_desc = obj_desc;
446 new_buf = return_desc->
buffer.pointer;
451 acpi_ex_convert_to_ascii(obj_desc->
integer.value, base,
457 return_desc->
string.length = string_length;
458 new_buf[string_length] = 0;
477 for (i = 0; i < obj_desc->
buffer.length; i++) {
478 if (obj_desc->
buffer.pointer[i] >= 100) {
480 }
else if (obj_desc->
buffer.pointer[i] >= 10) {
495 string_length = (obj_desc->
buffer.length * 3);
503 string_length = (obj_desc->
buffer.length * 3);
525 new_buf = return_desc->
buffer.pointer;
531 for (i = 0; i < obj_desc->
buffer.length; i++) {
532 new_buf += acpi_ex_convert_to_ascii((
u64) obj_desc->
535 *new_buf++ = separator;
542 if (obj_desc->
buffer.length) {
552 *result_desc = return_desc;
583 *result_desc = source_desc;
594 switch (destination_type) {
604 if (destination_type != source_desc->
common.type) {
606 "Explicit operator, will store (%s) over existing type (%s)\n",
610 (destination_type)));
618 switch (destination_type) {
653 "Bad destination type during conversion: 0x%X",
668 "Unknown Target type ID 0x%X AmlOpcode 0x%X DestType %s",