/drivers/acpi/acpica/ |
D | exstorob.c | 80 buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); in acpi_ex_store_buffer_to_buffer() 89 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer() 90 if (!target_desc->buffer.pointer) { in acpi_ex_store_buffer_to_buffer() 103 memset(target_desc->buffer.pointer, 0, in acpi_ex_store_buffer_to_buffer() 105 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer() 132 memcpy(target_desc->buffer.pointer, buffer, in acpi_ex_store_buffer_to_buffer() 177 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); in acpi_ex_store_string_to_string() 190 memset(target_desc->string.pointer, 0, in acpi_ex_store_string_to_string() 192 memcpy(target_desc->string.pointer, buffer, length); in acpi_ex_store_string_to_string() 198 if (target_desc->string.pointer && in acpi_ex_store_string_to_string() [all …]
|
D | exconcat.c | 234 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate() 262 buffer = return_desc->string.pointer; in acpi_ex_do_concatenate() 266 strcpy(buffer, local_operand0->string.pointer); in acpi_ex_do_concatenate() 267 strcat(buffer, local_operand1->string.pointer); in acpi_ex_do_concatenate() 284 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate() 288 memcpy(buffer, operand0->buffer.pointer, in acpi_ex_do_concatenate() 291 local_operand1->buffer.pointer, in acpi_ex_do_concatenate() 348 strcpy(return_desc->string.pointer, "["); in acpi_ex_convert_to_object_type_string() 349 strcat(return_desc->string.pointer, type_string); in acpi_ex_convert_to_object_type_string() 350 strcat(return_desc->string.pointer, " Object]"); in acpi_ex_convert_to_object_type_string() [all …]
|
D | dbtest.c | 579 acpi_os_printf(" %2.2X", temp1->buffer.pointer[i]); in acpi_db_test_buffer_type() 599 write_value.buffer.pointer = buffer; in acpi_db_test_buffer_type() 613 if (memcmp(temp2->buffer.pointer, buffer, byte_length)) { in acpi_db_test_buffer_type() 620 write_value.buffer.pointer = temp1->buffer.pointer; in acpi_db_test_buffer_type() 634 if (memcmp(temp1->buffer.pointer, temp3->buffer.pointer, byte_length)) { in acpi_db_test_buffer_type() 685 temp1->string.length, temp1->string.pointer); in acpi_db_test_string_type() 691 write_value.string.pointer = value_to_write; in acpi_db_test_string_type() 705 if (strcmp(temp2->string.pointer, value_to_write)) { in acpi_db_test_string_type() 707 temp2->string.pointer, value_to_write); in acpi_db_test_string_type() 712 write_value.string.length = strlen(temp1->string.pointer); in acpi_db_test_string_type() [all …]
|
D | utcopy.c | 145 external_object->string.pointer = (char *)data_space; in acpi_ut_copy_isimple_to_esimple() 153 (void *)internal_object->string.pointer, in acpi_ut_copy_isimple_to_esimple() 159 external_object->buffer.pointer = data_space; in acpi_ut_copy_isimple_to_esimple() 166 (void *)internal_object->buffer.pointer, in acpi_ut_copy_isimple_to_esimple() 406 ret_buffer->pointer, in acpi_ut_copy_iobject_to_eobject() 416 pointer), in acpi_ut_copy_iobject_to_eobject() 419 pointer, in acpi_ut_copy_iobject_to_eobject() 497 internal_object->string.pointer = in acpi_ut_copy_esimple_to_isimple() 501 if (!internal_object->string.pointer) { in acpi_ut_copy_esimple_to_isimple() 505 memcpy(internal_object->string.pointer, in acpi_ut_copy_esimple_to_isimple() [all …]
|
D | rscreate.c | 156 aml_start = aml_buffer->buffer.pointer; in ACPI_EXPORT_SYMBOL() 180 resource = output_buffer->pointer; in ACPI_EXPORT_SYMBOL() 189 output_buffer->pointer, (u32) output_buffer->length)); in ACPI_EXPORT_SYMBOL() 260 buffer = output_buffer->pointer; in acpi_rs_create_pci_routing_table() 347 (u8 *) output_buffer->pointer); in acpi_rs_create_pci_routing_table() 348 path_buffer.pointer = user_prt->source; in acpi_rs_create_pci_routing_table() 361 obj_desc->string.pointer); in acpi_rs_create_pci_routing_table() 415 output_buffer->pointer, (u32) output_buffer->length)); in acpi_rs_create_pci_routing_table() 448 resource_list->pointer)); in acpi_rs_create_aml_resources() 453 acpi_rs_get_aml_length(resource_list->pointer, in acpi_rs_create_aml_resources() [all …]
|
D | nsconvert.c | 81 status = acpi_ut_strtoul64(original_object->string.pointer, in acpi_ns_convert_to_integer() 100 original_object->buffer.pointer[i] << (i * in acpi_ns_convert_to_integer() 174 (original_object->buffer.pointer[length])) { in acpi_ns_convert_to_string() 189 memcpy(new_object->string.pointer, in acpi_ns_convert_to_string() 190 original_object->buffer.pointer, length); in acpi_ns_convert_to_string() 252 memcpy(new_object->buffer.pointer, in acpi_ns_convert_to_buffer() 253 original_object->string.pointer, in acpi_ns_convert_to_buffer() 287 dword_buffer = ACPI_CAST_PTR(u32, new_object->buffer.pointer); in acpi_ns_convert_to_buffer() 349 ascii_string = original_object->string.pointer; in acpi_ns_convert_to_unicode() 359 unicode_buffer = ACPI_CAST_PTR(u16, new_object->buffer.pointer); in acpi_ns_convert_to_unicode() [all …]
|
D | exconvrt.c | 76 u8 *pointer; in acpi_ex_convert_to_integer() local 97 pointer = obj_desc->buffer.pointer; in acpi_ex_convert_to_integer() 127 status = acpi_ut_strtoul64(ACPI_CAST_PTR(char, pointer), in acpi_ex_convert_to_integer() 159 result |= (((u64) pointer[i]) << (i * 8)); in acpi_ex_convert_to_integer() 231 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer() 255 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer() 256 strncpy((char *)new_buf, (char *)obj_desc->string.pointer, in acpi_ex_convert_to_buffer() 449 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_string() 481 if (obj_desc->buffer.pointer[i] >= 100) { in acpi_ex_convert_to_string() 483 } else if (obj_desc->buffer.pointer[i] >= 10) { in acpi_ex_convert_to_string() [all …]
|
D | dbcmds.c | 345 if (table_desc->pointer) { in acpi_db_display_table_info() 347 table_desc->pointer); in acpi_db_display_table_info() 551 return_buffer.pointer = acpi_gbl_db_buffer; in acpi_db_display_template() 570 return_buffer.pointer)); in acpi_db_display_template() 574 acpi_ut_debug_dump_buffer((u8 *)node->object->buffer.pointer, in acpi_db_display_template() 738 original_aml = return_buffer.pointer; in acpi_dm_test_resource_conversion() 740 acpi_dm_compare_aml_resources(original_aml->buffer.pointer, in acpi_dm_test_resource_conversion() 742 length, new_aml.pointer, in acpi_dm_test_resource_conversion() 747 ACPI_FREE(new_aml.pointer); in acpi_dm_test_resource_conversion() 749 ACPI_FREE(resource_buffer.pointer); in acpi_dm_test_resource_conversion() [all …]
|
D | tbinstal.c | 93 new_table_desc->pointer); in acpi_tb_install_table_with_override() 96 new_table_desc->pointer); in acpi_tb_install_table_with_override() 105 acpi_ut_set_integer_width(new_table_desc->pointer->revision); in acpi_tb_install_table_with_override() 197 acpi_tb_notify_table(ACPI_TABLE_EVENT_INSTALL, new_table_desc.pointer); in acpi_tb_install_standard_table() 242 status = acpi_os_table_override(old_table_desc->pointer, &table); in acpi_tb_override_table() 253 status = acpi_os_physical_table_override(old_table_desc->pointer, in acpi_tb_override_table() 291 new_table_desc.pointer); in acpi_tb_override_table()
|
D | tbfind.c | 111 if (!acpi_gbl_root_table_list.tables[i].pointer) { in acpi_tb_find_table() 122 if (!acpi_gbl_root_table_list.tables[i].pointer) { in acpi_tb_find_table() 130 (acpi_gbl_root_table_list.tables[i].pointer->signature, in acpi_tb_find_table() 135 tables[i].pointer-> in acpi_tb_find_table() 140 || !memcmp(acpi_gbl_root_table_list.tables[i].pointer-> in acpi_tb_find_table()
|
D | exconfig.c | 132 status = acpi_tb_find_table(operand[0]->string.pointer, in acpi_ex_load_table_op() 133 operand[1]->string.pointer, in acpi_ex_load_table_op() 134 operand[2]->string.pointer, &table_index); in acpi_ex_load_table_op() 165 operand[3]->string.pointer, in acpi_ex_load_table_op() 176 if ((operand[4]->string.pointer[0] != AML_ROOT_PREFIX) && in acpi_ex_load_table_op() 177 (operand[4]->string.pointer[0] != AML_PARENT_PREFIX)) { in acpi_ex_load_table_op() 188 operand[4]->string.pointer, in acpi_ex_load_table_op() 407 obj_desc->buffer.pointer); in acpi_ex_load_op()
|
/drivers/base/ |
D | property.c | 65 const void *pointer; in pset_prop_find() local 71 pointer = prop->pointer.raw_data; in pset_prop_find() 73 pointer = &prop->value.raw_data; in pset_prop_find() 74 if (!pointer) in pset_prop_find() 78 return pointer; in pset_prop_find() 85 const void *pointer; in pset_prop_read_u8_array() local 88 pointer = pset_prop_find(pset, propname, length); in pset_prop_read_u8_array() 89 if (IS_ERR(pointer)) in pset_prop_read_u8_array() 90 return PTR_ERR(pointer); in pset_prop_read_u8_array() 92 memcpy(values, pointer, length); in pset_prop_read_u8_array() [all …]
|
/drivers/ide/ |
D | ide-acpi.c | 246 output.pointer = NULL; /* ACPI-CA sets this; save/free it later */ in do_drive_get_GTF() 259 if (!output.length || !output.pointer) { in do_drive_get_GTF() 263 output.pointer); in do_drive_get_GTF() 267 out_obj = output.pointer; in do_drive_get_GTF() 273 kfree(output.pointer); in do_drive_get_GTF() 277 if (!out_obj->buffer.length || !out_obj->buffer.pointer || in do_drive_get_GTF() 282 out_obj->buffer.pointer); in do_drive_get_GTF() 284 kfree(output.pointer); in do_drive_get_GTF() 289 *gtf_address = (unsigned long)out_obj->buffer.pointer; in do_drive_get_GTF() 405 output.pointer = NULL; /* ACPI-CA sets this; save/free it later */ in ide_acpi_get_timing() [all …]
|
/drivers/acpi/ |
D | utils.c | 73 if (!format || !format->pointer || (format->length < 1)) { in acpi_extract_package() 91 format_string = format->pointer; in acpi_extract_package() 179 buffer->pointer = ACPI_ALLOCATE_ZEROED(size_required); in acpi_extract_package() 180 if (!buffer->pointer) in acpi_extract_package() 188 !buffer->pointer) { in acpi_extract_package() 193 head = buffer->pointer; in acpi_extract_package() 194 tail = buffer->pointer + tail_offset; in acpi_extract_package() 201 u8 **pointer = NULL; in acpi_extract_package() local 214 pointer = (u8 **) head; in acpi_extract_package() 215 *pointer = tail; in acpi_extract_package() [all …]
|
D | processor_pdc.c | 99 obj->buffer.pointer = (u8 *) buf; in acpi_processor_alloc_pdc() 101 obj_list->pointer = obj; in acpi_processor_alloc_pdc() 127 obj = pdc_in->pointer; in acpi_processor_eval_pdc() 128 buffer = (u32 *)(obj->buffer.pointer); in acpi_processor_eval_pdc() 154 kfree(obj_list->pointer->buffer.pointer); in acpi_processor_set_pdc() 155 kfree(obj_list->pointer); in acpi_processor_set_pdc()
|
D | bus.c | 227 pr_debug(" %x", *((u32 *)(context->cap.pointer + i))); in acpi_print_osc_error() 247 context->ret.pointer = NULL; in acpi_run_osc() 251 input.pointer = in_params; in acpi_run_osc() 254 in_params[0].buffer.pointer = (u8 *)&guid; in acpi_run_osc() 261 in_params[3].buffer.pointer = context->cap.pointer; in acpi_run_osc() 270 out_obj = output.pointer; in acpi_run_osc() 279 errors = *((u32 *)out_obj->buffer.pointer) & ~(1 << 0); in acpi_run_osc() 291 if (((u32 *)context->cap.pointer)[OSC_QUERY_DWORD] in acpi_run_osc() 302 context->ret.pointer = kmemdup(out_obj->buffer.pointer, in acpi_run_osc() 304 if (!context->ret.pointer) { in acpi_run_osc() [all …]
|
D | property.c | 56 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract() 85 dn->data.pointer = desc; in acpi_nondev_subnode_extract() 108 if (acpi_nondev_subnode_extract(buf.pointer, handle, link, list, in acpi_nondev_subnode_data_ok() 112 ACPI_FREE(buf.pointer); in acpi_nondev_subnode_data_ok() 127 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, in acpi_nondev_subnode_ok() 206 if (!guid_equal((guid_t *)guid->buffer.pointer, &ads_guid)) in acpi_enumerate_nondev_subnodes() 315 if (!guid_equal((guid_t *)guid->buffer.pointer, &prp_guid)) in acpi_extract_properties() 360 if (acpi_extract_properties(buf.pointer, &adev->data)) { in acpi_init_properties() 361 adev->data.pointer = buf.pointer; in acpi_init_properties() 365 if (acpi_enumerate_nondev_subnodes(adev->handle, buf.pointer, in acpi_init_properties() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_acpi.c | 58 atif_arg.pointer = &atif_arg_elements[0]; in amdgpu_atif_call() 66 atif_arg_elements[1].buffer.pointer = params->pointer; in amdgpu_atif_call() 79 kfree(buffer.pointer); in amdgpu_atif_call() 83 return buffer.pointer; in amdgpu_atif_call() 158 size = *(u16 *) info->buffer.pointer; in amdgpu_atif_verify_interface() 166 memcpy(&output, info->buffer.pointer, size); in amdgpu_atif_verify_interface() 205 size = *(u16 *) info->buffer.pointer; in amdgpu_atif_get_notification_params() 213 memcpy(¶ms, info->buffer.pointer, size); in amdgpu_atif_get_notification_params() 264 size = *(u16 *)info->buffer.pointer; in amdgpu_atif_get_sbios_requests() 272 memcpy(req, info->buffer.pointer, size); in amdgpu_atif_get_sbios_requests() [all …]
|
D | amdgpu_atpx_handler.c | 112 atpx_arg.pointer = &atpx_arg_elements[0]; in amdgpu_atpx_call() 120 atpx_arg_elements[1].buffer.pointer = params->pointer; in amdgpu_atpx_call() 133 kfree(buffer.pointer); in amdgpu_atpx_call() 137 return buffer.pointer; in amdgpu_atpx_call() 185 size = *(u16 *) info->buffer.pointer; in amdgpu_atpx_validate() 193 memcpy(&output, info->buffer.pointer, size); in amdgpu_atpx_validate() 264 size = *(u16 *) info->buffer.pointer; in amdgpu_atpx_verify_interface() 272 memcpy(&output, info->buffer.pointer, size); in amdgpu_atpx_verify_interface() 305 params.pointer = &input; in amdgpu_atpx_set_discrete_state() 341 params.pointer = &input; in amdgpu_atpx_switch_disp_mux() [all …]
|
/drivers/pci/hotplug/ |
D | acpi_pcihp.c | 65 __func__, (char *)string.pointer, status); in acpi_run_oshp() 68 __func__, (char *)string.pointer); in acpi_run_oshp() 71 (char *)string.pointer); in acpi_run_oshp() 73 kfree(string.pointer); in acpi_run_oshp() 109 (char *)string.pointer); in acpi_get_hp_hw_control_from_firmware() 115 kfree(string.pointer); in acpi_get_hp_hw_control_from_firmware() 136 (char *)string.pointer); in acpi_get_hp_hw_control_from_firmware() 150 kfree(string.pointer); in acpi_get_hp_hw_control_from_firmware() 154 pci_name(pdev), (char *)string.pointer); in acpi_get_hp_hw_control_from_firmware() 155 kfree(string.pointer); in acpi_get_hp_hw_control_from_firmware()
|
/drivers/gpu/drm/radeon/ |
D | radeon_acpi.c | 120 atif_arg.pointer = &atif_arg_elements[0]; in radeon_atif_call() 128 atif_arg_elements[1].buffer.pointer = params->pointer; in radeon_atif_call() 141 kfree(buffer.pointer); in radeon_atif_call() 145 return buffer.pointer; in radeon_atif_call() 220 size = *(u16 *) info->buffer.pointer; in radeon_atif_verify_interface() 228 memcpy(&output, info->buffer.pointer, size); in radeon_atif_verify_interface() 267 size = *(u16 *) info->buffer.pointer; in radeon_atif_get_notification_params() 275 memcpy(¶ms, info->buffer.pointer, size); in radeon_atif_get_notification_params() 326 size = *(u16 *)info->buffer.pointer; in radeon_atif_get_sbios_requests() 334 memcpy(req, info->buffer.pointer, size); in radeon_atif_get_sbios_requests() [all …]
|
D | radeon_atpx_handler.c | 100 atpx_arg.pointer = &atpx_arg_elements[0]; in radeon_atpx_call() 108 atpx_arg_elements[1].buffer.pointer = params->pointer; in radeon_atpx_call() 121 kfree(buffer.pointer); in radeon_atpx_call() 125 return buffer.pointer; in radeon_atpx_call() 173 size = *(u16 *) info->buffer.pointer; in radeon_atpx_validate() 181 memcpy(&output, info->buffer.pointer, size); in radeon_atpx_validate() 241 size = *(u16 *) info->buffer.pointer; in radeon_atpx_verify_interface() 249 memcpy(&output, info->buffer.pointer, size); in radeon_atpx_verify_interface() 282 params.pointer = &input; in radeon_atpx_set_discrete_state() 318 params.pointer = &input; in radeon_atpx_switch_disp_mux() [all …]
|
/drivers/cpufreq/ |
D | pcc-cpufreq.c | 267 pccp = buffer.pointer; in pcc_get_offset() 296 kfree(buffer.pointer); in pcc_get_offset() 313 input.pointer = in_params; in pcc_cpufreq_do_osc() 316 in_params[0].buffer.pointer = OSC_UUID; in pcc_cpufreq_do_osc() 323 in_params[3].buffer.pointer = (u8 *)&capabilities; in pcc_cpufreq_do_osc() 335 out_obj = output.pointer; in pcc_cpufreq_do_osc() 341 errors = *((u32 *)out_obj->buffer.pointer) & ~(1 << 0); in pcc_cpufreq_do_osc() 347 supported = *((u32 *)(out_obj->buffer.pointer + 4)); in pcc_cpufreq_do_osc() 353 kfree(output.pointer); in pcc_cpufreq_do_osc() 364 out_obj = output.pointer; in pcc_cpufreq_do_osc() [all …]
|
/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 435 unsigned int pointer) in ftgmac100_next_rx_pointer() argument 437 return (pointer + 1) & (priv->rx_q_entries - 1); in ftgmac100_next_rx_pointer() 461 unsigned int pointer, size; in ftgmac100_rx_packet() local 466 pointer = priv->rx_pointer; in ftgmac100_rx_packet() 467 rxdes = &priv->rxdes[pointer]; in ftgmac100_rx_packet() 510 skb = priv->rx_skbs[pointer]; in ftgmac100_rx_packet() 512 ftgmac100_alloc_rx_buf(priv, pointer, rxdes, GFP_ATOMIC); in ftgmac100_rx_packet() 560 ftgmac100_alloc_rx_buf(priv, pointer, rxdes, GFP_ATOMIC); in ftgmac100_rx_packet() 561 priv->rx_pointer = ftgmac100_next_rx_pointer(priv, pointer); in ftgmac100_rx_packet() 580 priv->rx_pointer = ftgmac100_next_rx_pointer(priv, pointer); in ftgmac100_rx_packet() [all …]
|
/drivers/acpi/x86/ |
D | apple.c | 48 if (props->buffer.pointer[0] != 3) { in acpi_extract_apple_properties() 51 props->buffer.length, props->buffer.pointer); in acpi_extract_apple_properties() 117 newprops[k].string.pointer = free_space; in acpi_extract_apple_properties() 118 memcpy(free_space, key->string.pointer, key->string.length); in acpi_extract_apple_properties() 126 newprops[v].buffer.pointer = free_space; in acpi_extract_apple_properties() 127 memcpy(free_space, val->buffer.pointer, in acpi_extract_apple_properties() 136 adev->data.pointer = newprops; in acpi_extract_apple_properties()
|