Home
last modified time | relevance | path

Searched refs:pointer (Results 1 – 25 of 999) sorted by relevance

12345678910>>...40

/Linux-v4.19/drivers/acpi/acpica/
Dexstorob.c46 buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); in acpi_ex_store_buffer_to_buffer()
55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer()
56 if (!target_desc->buffer.pointer) { in acpi_ex_store_buffer_to_buffer()
69 memset(target_desc->buffer.pointer, 0, in acpi_ex_store_buffer_to_buffer()
71 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer()
98 memcpy(target_desc->buffer.pointer, buffer, in acpi_ex_store_buffer_to_buffer()
143 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); in acpi_ex_store_string_to_string()
156 memset(target_desc->string.pointer, 0, in acpi_ex_store_string_to_string()
158 memcpy(target_desc->string.pointer, buffer, length); in acpi_ex_store_string_to_string()
164 if (target_desc->string.pointer && in acpi_ex_store_string_to_string()
[all …]
Dexconcat.c200 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate()
228 buffer = return_desc->string.pointer; in acpi_ex_do_concatenate()
232 strcpy(buffer, local_operand0->string.pointer); in acpi_ex_do_concatenate()
233 strcat(buffer, local_operand1->string.pointer); in acpi_ex_do_concatenate()
250 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate()
254 memcpy(buffer, operand0->buffer.pointer, in acpi_ex_do_concatenate()
257 local_operand1->buffer.pointer, in acpi_ex_do_concatenate()
314 strcpy(return_desc->string.pointer, "["); in acpi_ex_convert_to_object_type_string()
315 strcat(return_desc->string.pointer, type_string); in acpi_ex_convert_to_object_type_string()
316 strcat(return_desc->string.pointer, " Object]"); in acpi_ex_convert_to_object_type_string()
[all …]
Ddbtest.c563 acpi_os_printf(" %2.2X", temp1->buffer.pointer[i]); in acpi_db_test_buffer_type()
583 write_value.buffer.pointer = buffer; in acpi_db_test_buffer_type()
597 if (memcmp(temp2->buffer.pointer, buffer, byte_length)) { in acpi_db_test_buffer_type()
604 write_value.buffer.pointer = temp1->buffer.pointer; in acpi_db_test_buffer_type()
618 if (memcmp(temp1->buffer.pointer, temp3->buffer.pointer, byte_length)) { in acpi_db_test_buffer_type()
669 temp1->string.length, temp1->string.pointer); in acpi_db_test_string_type()
675 write_value.string.pointer = value_to_write; in acpi_db_test_string_type()
689 if (strcmp(temp2->string.pointer, value_to_write)) { in acpi_db_test_string_type()
691 temp2->string.pointer, value_to_write); in acpi_db_test_string_type()
696 write_value.string.length = strlen(temp1->string.pointer); in acpi_db_test_string_type()
[all …]
Dutcopy.c111 external_object->string.pointer = (char *)data_space; in acpi_ut_copy_isimple_to_esimple()
119 (void *)internal_object->string.pointer, in acpi_ut_copy_isimple_to_esimple()
125 external_object->buffer.pointer = data_space; in acpi_ut_copy_isimple_to_esimple()
132 (void *)internal_object->buffer.pointer, in acpi_ut_copy_isimple_to_esimple()
372 ret_buffer->pointer, in acpi_ut_copy_iobject_to_eobject()
382 pointer), in acpi_ut_copy_iobject_to_eobject()
385 pointer, in acpi_ut_copy_iobject_to_eobject()
463 internal_object->string.pointer = in acpi_ut_copy_esimple_to_isimple()
467 if (!internal_object->string.pointer) { in acpi_ut_copy_esimple_to_isimple()
471 memcpy(internal_object->string.pointer, in acpi_ut_copy_esimple_to_isimple()
[all …]
Dnsconvert.c48 acpi_ut_strtoul64(original_object->string.pointer, &value); in acpi_ns_convert_to_integer()
66 original_object->buffer.pointer[i] << (i * in acpi_ns_convert_to_integer()
140 (original_object->buffer.pointer[length])) { in acpi_ns_convert_to_string()
155 memcpy(new_object->string.pointer, in acpi_ns_convert_to_string()
156 original_object->buffer.pointer, length); in acpi_ns_convert_to_string()
218 memcpy(new_object->buffer.pointer, in acpi_ns_convert_to_buffer()
219 original_object->string.pointer, in acpi_ns_convert_to_buffer()
253 dword_buffer = ACPI_CAST_PTR(u32, new_object->buffer.pointer); in acpi_ns_convert_to_buffer()
315 ascii_string = original_object->string.pointer; in acpi_ns_convert_to_unicode()
325 unicode_buffer = ACPI_CAST_PTR(u16, new_object->buffer.pointer); in acpi_ns_convert_to_unicode()
[all …]
Drscreate.c120 aml_start = aml_buffer->buffer.pointer; in ACPI_EXPORT_SYMBOL()
144 resource = output_buffer->pointer; in ACPI_EXPORT_SYMBOL()
153 output_buffer->pointer, (u32) output_buffer->length)); in ACPI_EXPORT_SYMBOL()
224 buffer = output_buffer->pointer; in acpi_rs_create_pci_routing_table()
311 (u8 *) output_buffer->pointer); in acpi_rs_create_pci_routing_table()
312 path_buffer.pointer = user_prt->source; in acpi_rs_create_pci_routing_table()
325 obj_desc->string.pointer); in acpi_rs_create_pci_routing_table()
379 output_buffer->pointer, (u32) output_buffer->length)); in acpi_rs_create_pci_routing_table()
412 resource_list->pointer)); in acpi_rs_create_aml_resources()
417 acpi_rs_get_aml_length(resource_list->pointer, in acpi_rs_create_aml_resources()
[all …]
Dexconvrt.c43 u8 *pointer; in acpi_ex_convert_to_integer() local
63 pointer = obj_desc->buffer.pointer; in acpi_ex_convert_to_integer()
99 (char, pointer)); in acpi_ex_convert_to_integer()
103 (char, pointer)); in acpi_ex_convert_to_integer()
131 result |= (((u64) pointer[i]) << (i * 8)); in acpi_ex_convert_to_integer()
203 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer()
227 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer()
228 strncpy((char *)new_buf, (char *)obj_desc->string.pointer, in acpi_ex_convert_to_buffer()
421 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_string()
453 if (obj_desc->buffer.pointer[i] >= 100) { in acpi_ex_convert_to_string()
[all …]
Ddbcmds.c309 if (table_desc->pointer) { in acpi_db_display_table_info()
311 table_desc->pointer); in acpi_db_display_table_info()
515 return_buffer.pointer = acpi_gbl_db_buffer; in acpi_db_display_template()
534 return_buffer.pointer)); in acpi_db_display_template()
538 acpi_ut_debug_dump_buffer((u8 *)node->object->buffer.pointer, in acpi_db_display_template()
702 original_aml = return_buffer.pointer; in acpi_dm_test_resource_conversion()
704 acpi_dm_compare_aml_resources(original_aml->buffer.pointer, in acpi_dm_test_resource_conversion()
706 length, new_aml.pointer, in acpi_dm_test_resource_conversion()
711 ACPI_FREE(new_aml.pointer); in acpi_dm_test_resource_conversion()
713 ACPI_FREE(resource_buffer.pointer); in acpi_dm_test_resource_conversion()
[all …]
Dtbinstal.c59 new_table_desc->pointer); in acpi_tb_install_table_with_override()
62 new_table_desc->pointer); in acpi_tb_install_table_with_override()
71 acpi_ut_set_integer_width(new_table_desc->pointer->revision); in acpi_tb_install_table_with_override()
163 acpi_tb_notify_table(ACPI_TABLE_EVENT_INSTALL, new_table_desc.pointer); in acpi_tb_install_standard_table()
208 status = acpi_os_table_override(old_table_desc->pointer, &table); in acpi_tb_override_table()
219 status = acpi_os_physical_table_override(old_table_desc->pointer, in acpi_tb_override_table()
257 new_table_desc.pointer); in acpi_tb_override_table()
Dtbfind.c77 if (!acpi_gbl_root_table_list.tables[i].pointer) { in acpi_tb_find_table()
88 if (!acpi_gbl_root_table_list.tables[i].pointer) { in acpi_tb_find_table()
96 (acpi_gbl_root_table_list.tables[i].pointer->signature, in acpi_tb_find_table()
101 tables[i].pointer-> in acpi_tb_find_table()
106 || !memcmp(acpi_gbl_root_table_list.tables[i].pointer-> in acpi_tb_find_table()
/Linux-v4.19/drivers/base/
Dproperty.c64 return prop->pointer.u8_data; in property_get_pointer()
68 return prop->pointer.u16_data; in property_get_pointer()
72 return prop->pointer.u32_data; in property_get_pointer()
76 return prop->pointer.u64_data; in property_get_pointer()
80 return prop->pointer.str; in property_get_pointer()
87 static void property_set_pointer(struct property_entry *prop, const void *pointer) in property_set_pointer() argument
92 prop->pointer.u8_data = pointer; in property_set_pointer()
94 prop->value.u8_data = *((u8 *)pointer); in property_set_pointer()
98 prop->pointer.u16_data = pointer; in property_set_pointer()
100 prop->value.u16_data = *((u16 *)pointer); in property_set_pointer()
[all …]
/Linux-v4.19/arch/ia64/sn/kernel/
Dio_acpi_init.c86 (char *)name_buffer.pointer); in sn_acpi_hubdev_init()
87 kfree(name_buffer.pointer); in sn_acpi_hubdev_init()
91 resource = buffer.pointer; in sn_acpi_hubdev_init()
99 vendor->byte_length, (char *)name_buffer.pointer); in sn_acpi_hubdev_init()
100 kfree(name_buffer.pointer); in sn_acpi_hubdev_init()
114 kfree(buffer.pointer); in sn_acpi_hubdev_init()
142 __func__, status, (char *)name_buffer.pointer); in sn_get_bussoft_ptr()
143 kfree(name_buffer.pointer); in sn_get_bussoft_ptr()
146 resource = buffer.pointer; in sn_get_bussoft_ptr()
154 kfree(buffer.pointer); in sn_get_bussoft_ptr()
[all …]
/Linux-v4.19/drivers/ide/
Dide-acpi.c246 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 …]
/Linux-v4.19/drivers/acpi/
Dutils.c73 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 …]
Dprocessor_pdc.c99 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()
/Linux-v4.19/sound/soc/au1x/
Ddma.c46 struct pcm_period *pointer; in au1000_release_dma_link() local
51 pointer = stream->buffer; in au1000_release_dma_link()
52 if (!pointer) in au1000_release_dma_link()
55 pointer_next = pointer->next; in au1000_release_dma_link()
56 kfree(pointer); in au1000_release_dma_link()
57 pointer = pointer_next; in au1000_release_dma_link()
58 } while (pointer != stream->buffer); in au1000_release_dma_link()
68 struct pcm_period *pointer; in au1000_setup_dma_link() local
86 pointer = stream->buffer; in au1000_setup_dma_link()
88 pointer->start = (u32)(dma_start + (i * period_bytes)); in au1000_setup_dma_link()
[all …]
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_acpi.c120 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(&params, 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 …]
Dradeon_atpx_handler.c100 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 …]
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acpi.c98 atif_arg.pointer = &atif_arg_elements[0]; in amdgpu_atif_call()
106 atif_arg_elements[1].buffer.pointer = params->pointer; in amdgpu_atif_call()
120 kfree(buffer.pointer); in amdgpu_atif_call()
124 return buffer.pointer; in amdgpu_atif_call()
198 size = *(u16 *) info->buffer.pointer; in amdgpu_atif_verify_interface()
206 memcpy(&output, info->buffer.pointer, size); in amdgpu_atif_verify_interface()
275 size = *(u16 *) info->buffer.pointer; in amdgpu_atif_get_notification_params()
283 memcpy(&params, info->buffer.pointer, size); in amdgpu_atif_get_notification_params()
335 size = *(u16 *)info->buffer.pointer; in amdgpu_atif_get_sbios_requests()
343 memcpy(req, info->buffer.pointer, size); in amdgpu_atif_get_sbios_requests()
[all …]
/Linux-v4.19/fs/cifs/
Dasn1.c95 unsigned char *pointer; /* Octet just to be decoded */ member
113 ctx->pointer = buf; in asn1_open()
120 if (ctx->pointer >= ctx->end) { in asn1_octet_decode()
124 *ch = *(ctx->pointer)++; in asn1_octet_decode()
134 if (ctx->pointer >= ctx->end) {
139 ch = *(ctx->pointer)++; /* ch has 0xa, ptr points to length octet */
141 *val = *(++(ctx->pointer)); /* value has enum value */
145 ctx->pointer++;
216 if (*len > ctx->end - ctx->pointer) in asn1_length_decode()
241 *eoc = ctx->pointer + len; in asn1_header_decode()
[all …]
/Linux-v4.19/drivers/pci/hotplug/
Dacpi_pcihp.c50 __func__, (char *)string.pointer, status); in acpi_run_oshp()
53 __func__, (char *)string.pointer); in acpi_run_oshp()
56 (char *)string.pointer); in acpi_run_oshp()
58 kfree(string.pointer); in acpi_run_oshp()
122 (char *)string.pointer); in acpi_get_hp_hw_control_from_firmware()
135 kfree(string.pointer); in acpi_get_hp_hw_control_from_firmware()
139 (char *)string.pointer); in acpi_get_hp_hw_control_from_firmware()
140 kfree(string.pointer); in acpi_get_hp_hw_control_from_firmware()
/Linux-v4.19/drivers/cpufreq/
Dpcc-cpufreq.c267 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 …]
/Linux-v4.19/arch/xtensa/lib/
Dstrncpy_user.S37 # a1/ stack pointer
71 addi a3, a3, 1 # advance src pointer
74 addi a11, a11, 1 # advance dst pointer
84 addi a11, a11, 1 # advance dst pointer
88 addi a3, a3, 2 # advance src pointer
91 addi a11, a11, 1 # advance dst pointer
113 addi a3, a3, 4 # advance src pointer
119 addi a11, a11, 4 # advance dst pointer
128 addi a3, a3, 2 # advance src pointer
137 addi a11, a11, 2 # advance dst pointer
[all …]
/Linux-v4.19/drivers/virt/vboxguest/
Dvboxguest_utils.c209 buf = (void *)src_parm->u.pointer.u.linear_addr; in hgcm_call_preprocess_linaddr()
210 len = src_parm->u.pointer.size; in hgcm_call_preprocess_linaddr()
281 buf = (void *)src_parm->u.pointer.u.linear_addr; in hgcm_call_preprocess()
282 len = src_parm->u.pointer.size; in hgcm_call_preprocess()
336 dst_parm->u.pointer.size = 0; in hgcm_call_init_linaddr()
337 dst_parm->u.pointer.u.linear_addr = 0; in hgcm_call_init_linaddr()
401 src_parm->u.pointer.size, in hgcm_call_init_call()
408 buf = (void *)src_parm->u.pointer.u.linear_addr; in hgcm_call_init_call()
410 src_parm->u.pointer.size, in hgcm_call_init_call()
572 dst_parm->u.pointer.size = src_parm->u.pointer.size; in hgcm_call_copy_back_result()
[all …]
/Linux-v4.19/drivers/acpi/x86/
Dapple.c48 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()

12345678910>>...40