Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 75) sorted by relevance

123

/drivers/staging/octeon/
Dethernet-mem.c45 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) in cvm_oct_fill_hw_skbuff() argument
47 int freed = elements; in cvm_oct_fill_hw_skbuff()
63 return elements - freed; in cvm_oct_fill_hw_skbuff()
72 static void cvm_oct_free_hw_skbuff(int pool, int size, int elements) in cvm_oct_free_hw_skbuff() argument
81 elements--; in cvm_oct_free_hw_skbuff()
86 if (elements < 0) in cvm_oct_free_hw_skbuff()
88 pool, elements); in cvm_oct_free_hw_skbuff()
89 else if (elements > 0) in cvm_oct_free_hw_skbuff()
91 pool, elements); in cvm_oct_free_hw_skbuff()
102 static int cvm_oct_fill_hw_memory(int pool, int size, int elements) in cvm_oct_fill_hw_memory() argument
[all …]
Dethernet-mem.h28 int cvm_oct_mem_fill_fpa(int pool, int size, int elements);
29 void cvm_oct_mem_empty_fpa(int pool, int size, int elements);
/drivers/acpi/acpica/
Dnsprepkg.c56 union acpi_operand_object **elements, u32 count);
60 union acpi_operand_object **elements,
86 union acpi_operand_object **elements; in acpi_ns_check_package() local
112 elements = return_object->package.elements; in acpi_ns_check_package()
159 status = acpi_ns_check_package_elements(data, elements, in acpi_ns_check_package()
177 status = acpi_ns_check_object_type(data, elements, in acpi_ns_check_package()
183 elements++; in acpi_ns_check_package()
209 acpi_ns_check_object_type(data, elements, in acpi_ns_check_package()
221 acpi_ns_check_object_type(data, elements, in acpi_ns_check_package()
230 elements++; in acpi_ns_check_package()
[all …]
Dnsrepair2.c105 acpi_ns_sort_list(union acpi_operand_object **elements,
377 element_ptr = return_object->package.elements; in acpi_ns_repair_CID()
555 union acpi_operand_object **elements; in acpi_ns_repair_PSS() local
579 outer_elements = return_object->package.elements; in acpi_ns_repair_PSS()
583 elements = (*outer_elements)->package.elements; in acpi_ns_repair_PSS()
584 obj_desc = elements[1]; /* Index1 = power_dissipation */ in acpi_ns_repair_PSS()
628 union acpi_operand_object **elements; in acpi_ns_check_sorted_list() local
646 outer_elements = return_object->package.elements; in acpi_ns_check_sorted_list()
673 elements = (*outer_elements)->package.elements; in acpi_ns_check_sorted_list()
674 obj_desc = elements[sort_index]; in acpi_ns_check_sorted_list()
[all …]
Dnsconvert.c220 union acpi_operand_object **elements; in acpi_ns_convert_to_buffer() local
266 elements = original_object->package.elements; in acpi_ns_convert_to_buffer()
270 if ((!*elements) || in acpi_ns_convert_to_buffer()
271 ((*elements)->common.type != ACPI_TYPE_INTEGER)) { in acpi_ns_convert_to_buffer()
274 elements++; in acpi_ns_convert_to_buffer()
286 elements = original_object->package.elements; in acpi_ns_convert_to_buffer()
290 *dword_buffer = (u32)(*elements)->integer.value; in acpi_ns_convert_to_buffer()
292 elements++; in acpi_ns_convert_to_buffer()
Dhwxface.c477 union acpi_operand_object **elements; in ACPI_EXPORT_SYMBOL() local
528 elements = info->return_object->package.elements; in ACPI_EXPORT_SYMBOL()
535 if (elements[0]->common.type != ACPI_TYPE_INTEGER) { in ACPI_EXPORT_SYMBOL()
542 *sleep_type_a = (u8)elements[0]->integer.value; in ACPI_EXPORT_SYMBOL()
543 *sleep_type_b = (u8)(elements[0]->integer.value >> 8); in ACPI_EXPORT_SYMBOL()
548 if ((elements[0]->common.type != ACPI_TYPE_INTEGER) || in ACPI_EXPORT_SYMBOL()
549 (elements[1]->common.type != ACPI_TYPE_INTEGER)) { in ACPI_EXPORT_SYMBOL()
556 *sleep_type_a = (u8)elements[0]->integer.value; in ACPI_EXPORT_SYMBOL()
557 *sleep_type_b = (u8)elements[1]->integer.value; in ACPI_EXPORT_SYMBOL()
Dutcopy.c263 elements[this_index]; in acpi_ut_copy_ielement_to_eelement()
287 target_object->package.elements = in acpi_ut_copy_ielement_to_eelement()
360 external_object->package.elements = ACPI_CAST_PTR(union acpi_object, in acpi_ut_copy_ipackage_to_epackage()
592 package_elements = package_object->package.elements; in acpi_ut_copy_epackage_to_ipackage()
601 elements[i], in acpi_ut_copy_epackage_to_ipackage()
837 &state->pkg.dest_object->package.elements[this_index]; in acpi_ut_copy_ielement_to_ielement()
935 dest_obj->package.elements = ACPI_ALLOCATE_ZEROED(((acpi_size) in acpi_ut_copy_ipackage_to_ipackage()
939 if (!dest_obj->package.elements) { in acpi_ut_copy_ipackage_to_ipackage()
Ddsobject.c425 obj_desc->package.elements = ACPI_ALLOCATE_ZEROED(((acpi_size) in acpi_ds_build_internal_package_obj()
429 if (!obj_desc->package.elements) { in acpi_ds_build_internal_package_obj()
457 elements[i]); in acpi_ds_build_internal_package_obj()
461 obj_desc->package.elements[i] = in acpi_ds_build_internal_package_obj()
469 elements[i]); in acpi_ds_build_internal_package_obj()
486 elements[i])); in acpi_ds_build_internal_package_obj()
Dexdump.c105 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(package.elements), "Element List"},
592 obj_desc->package.elements); in acpi_ex_dump_operand()
599 obj_desc->package.elements && acpi_dbg_level > 1) { in acpi_ex_dump_operand()
603 elements[index], in acpi_ex_dump_operand()
961 acpi_ex_dump_package_obj(obj_desc->package.elements[i], in acpi_ex_dump_package_obj()
Dnsrepair.c494 source = obj_desc->package.elements; in acpi_ns_remove_null_elements()
565 pkg_obj_desc->package.elements[0] = original_object; in acpi_ns_wrap_with_package()
/drivers/scsi/lpfc/
Dlpfc_mem.c96 pool->elements = kmalloc(sizeof(struct lpfc_dmabuf) * in lpfc_mem_alloc()
98 if (!pool->elements) in lpfc_mem_alloc()
104 pool->elements[i].virt = pci_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
105 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
106 if (!pool->elements[i].virt) in lpfc_mem_alloc()
164 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
165 pool->elements[i].phys); in lpfc_mem_alloc()
166 kfree(pool->elements); in lpfc_mem_alloc()
219 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
220 pool->elements[i].phys); in lpfc_mem_free()
[all …]
/drivers/acpi/
Dutils.c102 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package()
188 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package()
351 element = &(package->package.elements[i]); in acpi_evaluate_reference()
404 || output->package.elements[0].type != ACPI_TYPE_BUFFER in acpi_get_physical_device_location()
405 || output->package.elements[0].buffer.length < ACPI_PLD_REV1_BUFFER_SIZE) { in acpi_get_physical_device_location()
411 output->package.elements[0].buffer.pointer, in acpi_get_physical_device_location()
412 output->package.elements[0].buffer.length, in acpi_get_physical_device_location()
Dprocessor_idle.c379 count = cst->package.elements[0].integer.value; in acpi_processor_get_power_info_cst()
399 element = &(cst->package.elements[i]); in acpi_processor_get_power_info_cst()
406 obj = &(element->package.elements[0]); in acpi_processor_get_power_info_cst()
418 obj = &(element->package.elements[1]); in acpi_processor_get_power_info_cst()
474 obj = &(element->package.elements[2]); in acpi_processor_get_power_info_cst()
480 obj = &(element->package.elements[3]); in acpi_processor_get_power_info_cst()
/drivers/gpu/drm/i915/
Dintel_acpi.c167 union acpi_object *connector_count = &pkg->package.elements[0]; in intel_dsm_platform_mux_info()
171 union acpi_object *obj = &pkg->package.elements[i]; in intel_dsm_platform_mux_info()
173 &obj->package.elements[0]; in intel_dsm_platform_mux_info()
174 union acpi_object *info = &obj->package.elements[1]; in intel_dsm_platform_mux_info()
/drivers/pci/
Dpci-label.c199 package.elements[1].string.pointer, in dsm_label_utf16s_to_utf8s()
200 obj->package.elements[1].string.length, in dsm_label_utf16s_to_utf8s()
229 params[3].package.elements = NULL; in dsm_get_label()
241 len = obj->package.elements[0].integer.value; in dsm_get_label()
245 obj->package.elements[0].integer.value); in dsm_get_label()
/drivers/pci/hotplug/
Dacpiphp_ibm.c312 !(package->package.elements)) { in ibm_get_table_from_acpi()
318 if (package->package.elements[i].type != ACPI_TYPE_BUFFER) { in ibm_get_table_from_acpi()
322 size += package->package.elements[i].buffer.length; in ibm_get_table_from_acpi()
342 package->package.elements[i].buffer.pointer, in ibm_get_table_from_acpi()
343 package->package.elements[i].buffer.length); in ibm_get_table_from_acpi()
344 size += package->package.elements[i].buffer.length; in ibm_get_table_from_acpi()
Dacpi_pcihp.c53 union acpi_object *fields = record->package.elements; in decode_type0_hpx_record()
83 union acpi_object *fields = record->package.elements; in decode_type1_hpx_record()
112 union acpi_object *fields = record->package.elements; in decode_type2_hpx_record()
173 record = &package->package.elements[i]; in acpi_run_hpx()
179 fields = record->package.elements; in acpi_run_hpx()
236 fields = package->package.elements; in acpi_run_hpp()
/drivers/net/wireless/rtlwifi/
Dstats.c113 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi()
118 rtlpriv->stats.ui_rssi.elements[rtlpriv->stats.ui_rssi.index++] = in rtl_process_ui_rssi()
227 last_evm = rtlpriv->stats.ui_link_quality.elements[ in rtl_process_ui_link_quality()
232 rtlpriv->stats.ui_link_quality.elements[ in rtl_process_ui_link_quality()
/drivers/cpufreq/
Dpcc-cpufreq.c276 offset = &(pccp->package.elements[0]); in pcc_get_offset()
284 offset = &(pccp->package.elements[1]); in pcc_get_offset()
427 member = &out_obj->package.elements[0]; in pcc_cpufreq_probe()
483 member = &out_obj->package.elements[1]; in pcc_cpufreq_probe()
502 member = &out_obj->package.elements[2]; in pcc_cpufreq_probe()
510 member = &out_obj->package.elements[3]; in pcc_cpufreq_probe()
/drivers/hwmon/
Dasus_atk0110.c319 return &pack->package.elements[offset]; in atk_get_pack_member()
372 tmp = &obj->package.elements[HWMON_PACK_UNK1]; in validate_hwmon_pack()
378 tmp = &obj->package.elements[HWMON_PACK_UNK2]; in validate_hwmon_pack()
720 union acpi_object *obj = &pack->package.elements[i]; in atk_pack_print()
749 union acpi_object *pack = &ret->package.elements[i]; in atk_debugfs_ggrp_open()
756 id = &pack->package.elements[0]; in atk_debugfs_ggrp_open()
993 union acpi_object *obj = &pack->package.elements[i]; in atk_enumerate_old_hwmon()
1015 union acpi_object *obj = &pack->package.elements[i]; in atk_enumerate_old_hwmon()
1037 union acpi_object *obj = &pack->package.elements[i]; in atk_enumerate_old_hwmon()
1072 union acpi_object *obj = &pack->package.elements[i]; in atk_ec_present()
[all …]
/drivers/staging/iio/Documentation/
Doverview.txt51 device.txt - elements of a typical device driver.
53 trigger.txt - elements of a typical trigger driver.
55 ring.txt - additional elements required for buffer support.
/drivers/char/tpm/
Dtpm_ppi.c53 params[3].package.elements = NULL; in ppi_assign_params()
114 ret_obj = ((union acpi_object *)output.pointer)->package.elements; in tpm_show_ppi_request()
191 params[3].package.elements = &obj; in tpm_store_ppi_request()
303 ret_obj = ((union acpi_object *)output.pointer)->package.elements; in tpm_show_ppi_response()
396 params[3].package.elements = &obj; in show_ppi_operations()
/drivers/i2c/busses/
Di2c-scmi.c188 obj = pkg->package.elements; in acpi_smbus_cmi_access()
225 obj = pkg->package.elements + 1; in acpi_smbus_cmi_access()
233 obj = pkg->package.elements + 2; in acpi_smbus_cmi_access()
315 obj = obj->package.elements; in acpi_smbus_cmi_add_cap()
/drivers/xen/
Dxen-acpi-pad.c72 package->package.elements[0].integer.value == 1) /* rev 1 */ in acpi_pad_pur()
73 num = package->package.elements[1].integer.value; in acpi_pad_pur()
/drivers/spi/
Dspi-omap2-mcspi.c369 int elements = 0; in omap2_mcspi_rx_dma() local
419 elements = element_count - 1; in omap2_mcspi_rx_dma()
422 elements--; in omap2_mcspi_rx_dma()
430 ((u8 *)xfer->rx_buf)[elements++] = w; in omap2_mcspi_rx_dma()
432 ((u16 *)xfer->rx_buf)[elements++] = w; in omap2_mcspi_rx_dma()
434 ((u32 *)xfer->rx_buf)[elements++] = w; in omap2_mcspi_rx_dma()
450 ((u8 *)xfer->rx_buf)[elements] = w; in omap2_mcspi_rx_dma()
452 ((u16 *)xfer->rx_buf)[elements] = w; in omap2_mcspi_rx_dma()
454 ((u32 *)xfer->rx_buf)[elements] = w; in omap2_mcspi_rx_dma()

123