Lines Matching refs:obj_desc

40 	union acpi_operand_object *obj_desc;  in acpi_ds_build_internal_object()  local
94 obj_desc = acpi_ut_create_internal_object((acpi_ps_get_opcode_info in acpi_ds_build_internal_object()
97 if (!obj_desc) { in acpi_ds_build_internal_object()
103 &obj_desc); in acpi_ds_build_internal_object()
105 acpi_ut_remove_reference(obj_desc); in acpi_ds_build_internal_object()
115 obj_desc->reference.resolved = TRUE; in acpi_ds_build_internal_object()
118 !obj_desc->reference.node) { in acpi_ds_build_internal_object()
123 obj_desc->reference.node = in acpi_ds_build_internal_object()
125 obj_desc->reference.aml = op->common.aml; in acpi_ds_build_internal_object()
126 obj_desc->reference.resolved = FALSE; in acpi_ds_build_internal_object()
130 *obj_desc_ptr = obj_desc; in acpi_ds_build_internal_object()
157 union acpi_operand_object *obj_desc; in acpi_ds_build_internal_buffer_obj() local
168 obj_desc = *obj_desc_ptr; in acpi_ds_build_internal_buffer_obj()
169 if (!obj_desc) { in acpi_ds_build_internal_buffer_obj()
173 obj_desc = acpi_ut_create_internal_object(ACPI_TYPE_BUFFER); in acpi_ds_build_internal_buffer_obj()
174 *obj_desc_ptr = obj_desc; in acpi_ds_build_internal_buffer_obj()
175 if (!obj_desc) { in acpi_ds_build_internal_buffer_obj()
194 acpi_ut_remove_reference(obj_desc); in acpi_ds_build_internal_buffer_obj()
206 obj_desc->buffer.length = buffer_length; in acpi_ds_build_internal_buffer_obj()
208 obj_desc->buffer.length = byte_list_length; in acpi_ds_build_internal_buffer_obj()
213 if (obj_desc->buffer.length == 0) { in acpi_ds_build_internal_buffer_obj()
214 obj_desc->buffer.pointer = NULL; in acpi_ds_build_internal_buffer_obj()
218 obj_desc->buffer.pointer = in acpi_ds_build_internal_buffer_obj()
219 ACPI_ALLOCATE_ZEROED(obj_desc->buffer.length); in acpi_ds_build_internal_buffer_obj()
220 if (!obj_desc->buffer.pointer) { in acpi_ds_build_internal_buffer_obj()
221 acpi_ut_delete_object_desc(obj_desc); in acpi_ds_build_internal_buffer_obj()
228 memcpy(obj_desc->buffer.pointer, byte_list->named.data, in acpi_ds_build_internal_buffer_obj()
233 obj_desc->buffer.flags |= AOPOBJ_DATA_VALID; in acpi_ds_build_internal_buffer_obj()
234 op->common.node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_desc); in acpi_ds_build_internal_buffer_obj()
258 union acpi_operand_object *obj_desc; in acpi_ds_create_node() local
282 &obj_desc); in acpi_ds_create_node()
289 node->type = obj_desc->common.type; in acpi_ds_create_node()
293 status = acpi_ns_attach_object(node, obj_desc, node->type); in acpi_ds_create_node()
297 acpi_ut_remove_reference(obj_desc); in acpi_ds_create_node()
325 union acpi_operand_object *obj_desc; in acpi_ds_init_object_from_op() local
330 obj_desc = *ret_obj_desc; in acpi_ds_init_object_from_op()
341 switch (obj_desc->common.type) { in acpi_ds_init_object_from_op()
346 obj_desc->buffer.node = in acpi_ds_init_object_from_op()
349 obj_desc->buffer.aml_start = op->named.data; in acpi_ds_init_object_from_op()
350 obj_desc->buffer.aml_length = op->named.length; in acpi_ds_init_object_from_op()
361 obj_desc->package.node = in acpi_ds_init_object_from_op()
369 obj_desc->package.aml_start = op->named.data; in acpi_ds_init_object_from_op()
370 obj_desc->package.aml_length = op->named.length; in acpi_ds_init_object_from_op()
385 obj_desc->common.flags = AOPOBJ_AML_CONSTANT; in acpi_ds_init_object_from_op()
390 obj_desc->integer.value = 0; in acpi_ds_init_object_from_op()
395 obj_desc->integer.value = 1; in acpi_ds_init_object_from_op()
400 obj_desc->integer.value = ACPI_UINT64_MAX; in acpi_ds_init_object_from_op()
404 (void)acpi_ex_truncate_for32bit_table(obj_desc); in acpi_ds_init_object_from_op()
409 obj_desc->integer.value = ACPI_CA_VERSION; in acpi_ds_init_object_from_op()
424 obj_desc->integer.value = op->common.value.integer; in acpi_ds_init_object_from_op()
426 if (acpi_ex_truncate_for32bit_table(obj_desc)) { in acpi_ds_init_object_from_op()
434 (u32)obj_desc->integer.value)); in acpi_ds_init_object_from_op()
449 obj_desc->string.pointer = op->common.value.string; in acpi_ds_init_object_from_op()
450 obj_desc->string.length = (u32)strlen(op->common.value.string); in acpi_ds_init_object_from_op()
456 obj_desc->common.flags |= AOPOBJ_STATIC_POINTER; in acpi_ds_init_object_from_op()
469 obj_desc->reference.value = in acpi_ds_init_object_from_op()
471 obj_desc->reference.class = ACPI_REFCLASS_LOCAL; in acpi_ds_init_object_from_op()
475 obj_desc->reference. in acpi_ds_init_object_from_op()
480 &obj_desc->reference. in acpi_ds_init_object_from_op()
488 obj_desc->reference.value = in acpi_ds_init_object_from_op()
490 obj_desc->reference.class = ACPI_REFCLASS_ARG; in acpi_ds_init_object_from_op()
493 obj_desc-> in acpi_ds_init_object_from_op()
499 &obj_desc-> in acpi_ds_init_object_from_op()
511 obj_desc->reference.node = op->common.node; in acpi_ds_init_object_from_op()
512 obj_desc->reference.class = ACPI_REFCLASS_NAME; in acpi_ds_init_object_from_op()
514 obj_desc->reference.object = in acpi_ds_init_object_from_op()
521 obj_desc->reference.class = ACPI_REFCLASS_DEBUG; in acpi_ds_init_object_from_op()
538 obj_desc->common.type)); in acpi_ds_init_object_from_op()