Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 164) sorted by relevance

1234567

/drivers/acpi/acpica/
Duttrack.c281 struct acpi_debug_mem_block *element; in acpi_ut_find_allocation() local
283 element = acpi_gbl_global_list->list_head; in acpi_ut_find_allocation()
284 if (!element) { in acpi_ut_find_allocation()
295 while (element > allocation) { in acpi_ut_find_allocation()
299 if (!element->next) { in acpi_ut_find_allocation()
300 return (element); in acpi_ut_find_allocation()
303 element = element->next; in acpi_ut_find_allocation()
306 if (element == allocation) { in acpi_ut_find_allocation()
307 return (element); in acpi_ut_find_allocation()
310 return (element->previous); in acpi_ut_find_allocation()
[all …]
Ddspkginit.c23 acpi_ds_resolve_package_element(union acpi_operand_object **element);
386 union acpi_operand_object *element = *element_ptr; in acpi_ds_resolve_package_element() local
396 if (element->reference.resolved) { in acpi_ds_resolve_package_element()
406 scope_info.scope.node = element->reference.node; /* Prefix node */ in acpi_ds_resolve_package_element()
408 status = acpi_ns_lookup(&scope_info, (char *)element->reference.aml, in acpi_ds_resolve_package_element()
435 (char *)element->reference. in acpi_ds_resolve_package_element()
473 element->reference.resolved = TRUE; in acpi_ds_resolve_package_element()
474 element->reference.node = resolved_node; in acpi_ds_resolve_package_element()
475 type = element->reference.node->type; in acpi_ds_resolve_package_element()
525 acpi_ut_remove_reference(element); in acpi_ds_resolve_package_element()
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c73 elinfo = &mlxsw_afk_element_infos[elinst->element]; in mlxsw_afk_blocks_check()
141 DECLARE_BITMAP(element, MLXSW_AFK_ELEMENT_MAX);
148 enum mlxsw_afk_element element) in mlxsw_afk_picker_count_hits() argument
160 if (elinst->element == element) { in mlxsw_afk_picker_count_hits()
161 __set_bit(element, picker[i].element); in mlxsw_afk_picker_count_hits()
176 memcpy(&hits_element, &picker[block_index].element, in mlxsw_afk_picker_subtract_hits()
181 if (__test_and_clear_bit(j, picker[i].element)) in mlxsw_afk_picker_subtract_hits()
208 enum mlxsw_afk_element element; in mlxsw_afk_picker_key_info_add() local
213 for_each_set_bit(element, picker[block_index].chosen_element, in mlxsw_afk_picker_key_info_add()
215 key_info->element_to_block[element] = key_info->blocks_count; in mlxsw_afk_picker_key_info_add()
[all …]
Dcore_acl_flex_keys.h51 enum mlxsw_afk_element element; /* element ID */ member
58 .element = MLXSW_AFK_ELEMENT_##_element, \
79 enum mlxsw_afk_element element; member
91 .element = MLXSW_AFK_ELEMENT_##_element, \
144 #define mlxsw_afk_element_usage_for_each(element, elusage) \ argument
145 for_each_set_bit(element, (elusage)->usage, MLXSW_AFK_ELEMENT_MAX)
149 enum mlxsw_afk_element element) in mlxsw_afk_element_usage_add() argument
151 __set_bit(element, elusage->usage); in mlxsw_afk_element_usage_add()
222 enum mlxsw_afk_element element,
225 enum mlxsw_afk_element element,
/drivers/platform/chrome/
Dchromeos_acpi.c73 union acpi_object *element = obj->package.elements; in chromeos_acpi_handle_package() local
77 element += pkg_num; in chromeos_acpi_handle_package()
79 if (element->type == ACPI_TYPE_PACKAGE) { in chromeos_acpi_handle_package()
80 if (sub_pkg_num >= element->package.count) in chromeos_acpi_handle_package()
83 element = element->package.elements; in chromeos_acpi_handle_package()
84 element += sub_pkg_num; in chromeos_acpi_handle_package()
87 switch (element->type) { in chromeos_acpi_handle_package()
89 return sysfs_emit(buf, "%d\n", (int)element->integer.value); in chromeos_acpi_handle_package()
91 return sysfs_emit(buf, "%s\n", element->string.pointer); in chromeos_acpi_handle_package()
99 for (i = 0; i < element->buffer.length && room_left; i += byte_per_line) { in chromeos_acpi_handle_package()
[all …]
/drivers/acpi/
Dutils.c74 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
76 switch (element->type) { in acpi_extract_package()
103 (element->string.length * sizeof(char)) + in acpi_extract_package()
109 sizeof(u8 *) + element->buffer.length; in acpi_extract_package()
166 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
168 switch (element->type) { in acpi_extract_package()
174 element->integer.value; in acpi_extract_package()
181 element->integer.value; in acpi_extract_package()
200 memcpy(tail, element->string.pointer, in acpi_extract_package()
201 element->string.length); in acpi_extract_package()
[all …]
Dacpi_processor.c869 union acpi_object *element; in acpi_processor_evaluate_cst() local
887 element = &cst->package.elements[i]; in acpi_processor_evaluate_cst()
888 if (element->type != ACPI_TYPE_PACKAGE) { in acpi_processor_evaluate_cst()
890 i, element->type); in acpi_processor_evaluate_cst()
894 if (element->package.count != 4) { in acpi_processor_evaluate_cst()
896 i, element->package.count); in acpi_processor_evaluate_cst()
900 obj = &element->package.elements[0]; in acpi_processor_evaluate_cst()
910 obj = &element->package.elements[1]; in acpi_processor_evaluate_cst()
969 obj = &element->package.elements[2]; in acpi_processor_evaluate_cst()
978 obj = &element->package.elements[3]; in acpi_processor_evaluate_cst()
Dproperty.c812 const union acpi_object **element, in acpi_get_ref_args() argument
823 for (i = 0; (*element) + i < end && i < num_args; i++) { in acpi_get_ref_args()
824 acpi_object_type type = (*element)[i].type; in acpi_get_ref_args()
842 args->args[i] = (*element)[i].integer.value; in acpi_get_ref_args()
845 (*element) += nargs; in acpi_get_ref_args()
928 const union acpi_object *element, *end; in __acpi_node_get_property_reference() local
991 element = obj->package.elements; in __acpi_node_get_property_reference()
992 end = element + obj->package.count; in __acpi_node_get_property_reference()
994 while (element < end) { in __acpi_node_get_property_reference()
995 switch (element->type) { in __acpi_node_get_property_reference()
[all …]
/drivers/thermal/intel/int340x_thermal/
Dacpi_thermal_rel.c77 struct acpi_buffer element = { 0, NULL }; in acpi_parse_trt() local
101 element.length = sizeof(struct trt); in acpi_parse_trt()
102 element.pointer = trt; in acpi_parse_trt()
105 &trt_format, &element); in acpi_parse_trt()
151 struct acpi_buffer element = { 0, NULL }; in acpi_parse_art() local
177 element.length = sizeof(struct art); in acpi_parse_art()
178 element.pointer = art; in acpi_parse_art()
181 &art_format, &element); in acpi_parse_art()
272 struct acpi_buffer element = { 0, NULL }; in acpi_parse_psvt() local
277 element.length = ACPI_ALLOCATE_BUFFER; in acpi_parse_psvt()
[all …]
/drivers/hwmon/
Dhp-wmi-sensors.c543 union acpi_object *element, in extract_acpi_value() argument
549 *out_value = element->integer.value; in extract_acpi_value()
553 *out_string = element->type == ACPI_TYPE_BUFFER ? in extract_acpi_value()
554 hp_wmi_wstrdup(dev, element->buffer.pointer) : in extract_acpi_value()
555 hp_wmi_strdup(dev, strim(element->string.pointer)); in extract_acpi_value()
819 union acpi_object *element; in populate_numeric_sensor_from_wobj() local
836 element = wobj->package.elements; in populate_numeric_sensor_from_wobj()
846 err = extract_acpi_value(dev, element, type, &value, &string); in populate_numeric_sensor_from_wobj()
850 element++; in populate_numeric_sensor_from_wobj()
935 const union acpi_object *element; in update_numeric_sensor_from_wobj() local
[all …]
/drivers/counter/
Dcounter-sysfs.c367 const struct counter_array *const element = a->comp.priv; in counter_comp_array_u32_show() local
372 element->type != COUNTER_COMP_SIGNAL_POLARITY) in counter_comp_array_u32_show()
375 err = a->comp.signal_array_u32_read(counter, a->parent, element->idx, in counter_comp_array_u32_show()
389 const struct counter_array *const element = a->comp.priv; in counter_comp_array_u32_store() local
393 if (element->type != COUNTER_COMP_SIGNAL_POLARITY || in counter_comp_array_u32_store()
397 err = counter_find_enum(&data, element->avail->enums, in counter_comp_array_u32_store()
398 element->avail->num_items, buf, in counter_comp_array_u32_store()
403 err = a->comp.signal_array_u32_write(counter, a->parent, element->idx, in counter_comp_array_u32_store()
417 const struct counter_array *const element = a->comp.priv; in counter_comp_array_u64_show() local
423 err = a->comp.device_array_u64_read(counter, element->idx, in counter_comp_array_u64_show()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/tests/
Dlinks.c182 struct element *element; in KUNIT_ARRAY_PARAM_DESC() local
183 size_t ies_size = sizeof(struct cfg80211_bss_ies) + sizeof(*bss_load) + sizeof(element); in KUNIT_ARRAY_PARAM_DESC()
201 ies->len = sizeof(*bss_load) + sizeof(struct element); in KUNIT_ARRAY_PARAM_DESC()
203 element = (void *)ies->data; in KUNIT_ARRAY_PARAM_DESC()
204 element->datalen = sizeof(*bss_load); in KUNIT_ARRAY_PARAM_DESC()
205 element->id = 11; in KUNIT_ARRAY_PARAM_DESC()
207 bss_load = (void *)element->data; in KUNIT_ARRAY_PARAM_DESC()
/drivers/mfd/
Dsi476x-prop.c19 static bool si476x_core_element_is_in_array(u16 element, in si476x_core_element_is_in_array() argument
26 if (element == array[i]) in si476x_core_element_is_in_array()
32 static bool si476x_core_element_is_in_range(u16 element, in si476x_core_element_is_in_range() argument
39 if (element <= range[i].high && element >= range[i].low) in si476x_core_element_is_in_range()
/drivers/infiniband/hw/mlx4/
Dsysfs.c500 struct port_table_attribute *element; in alloc_group_attrs() local
508 element = kzalloc(sizeof (struct port_table_attribute), in alloc_group_attrs()
510 if (!element) in alloc_group_attrs()
512 if (snprintf(element->name, sizeof (element->name), in alloc_group_attrs()
513 "%d", i) >= sizeof (element->name)) { in alloc_group_attrs()
514 kfree(element); in alloc_group_attrs()
517 sysfs_attr_init(&element->attr.attr); in alloc_group_attrs()
518 element->attr.attr.name = element->name; in alloc_group_attrs()
520 element->attr.attr.mode = S_IWUSR | S_IRUGO; in alloc_group_attrs()
521 element->attr.store = store; in alloc_group_attrs()
[all …]
/drivers/scsi/esas2r/
Desas2r_int.c342 struct list_head *element, *next; in esas2r_do_deferred_processes() local
346 list_for_each_safe(element, next, &a->defer_list) { in esas2r_do_deferred_processes()
347 rq = list_entry(element, struct esas2r_request, in esas2r_do_deferred_processes()
351 list_del(element); in esas2r_do_deferred_processes()
361 list_del(element); in esas2r_do_deferred_processes()
364 list_del(element); in esas2r_do_deferred_processes()
395 struct list_head *element; in esas2r_process_adapter_reset() local
432 list_for_each(element, &a->defer_list) { in esas2r_process_adapter_reset()
433 rq = list_entry(element, struct esas2r_request, req_list); in esas2r_process_adapter_reset()
449 struct list_head *element; in esas2r_process_bus_reset() local
[all …]
Desas2r_io.c140 struct esas2r_inbound_list_source_entry *element; in esas2r_start_vda_request() local
158 element = in esas2r_start_vda_request()
167 element->address = cpu_to_le64(rq->vrq_md->phys_addr); in esas2r_start_vda_request()
168 element->length = cpu_to_le32(rq->vda_req_sz); in esas2r_start_vda_request()
771 struct list_head *next, *element; in esas2r_send_task_mgmt() local
782 list_for_each_safe(element, next, &a->defer_list) { in esas2r_send_task_mgmt()
783 rq = list_entry(element, struct esas2r_request, req_list); in esas2r_send_task_mgmt()
815 list_for_each_safe(element, next, &a->active_list) { in esas2r_send_task_mgmt()
816 rq = list_entry(element, struct esas2r_request, in esas2r_send_task_mgmt()
/drivers/s390/scsi/
Dzfcp_qdio.h88 return &qdio->req_q[q_req->sbal_last]->element[0]; in zfcp_qdio_sbale_req()
100 return &qdio->req_q[q_req->sbal_last]->element[q_req->sbale_curr]; in zfcp_qdio_sbale_curr()
234 sbale = qdio->req_q[q_req->sbal_first]->element; in zfcp_qdio_set_data_div()
263 sbale = qdio->req_q[q_req->sbal_first]->element; in zfcp_qdio_set_scount()
/drivers/platform/loongarch/
Dloongson-laptop.c284 union acpi_object *element, *sub_pack; in hotkey_map() local
288 element = &sub_pack->package.elements[0]; in hotkey_map()
289 hotkey_keycode_map[index].type = element->integer.value; in hotkey_map()
290 element = &sub_pack->package.elements[1]; in hotkey_map()
291 hotkey_keycode_map[index].code = element->integer.value; in hotkey_map()
292 element = &sub_pack->package.elements[2]; in hotkey_map()
293 hotkey_keycode_map[index].keycode = element->integer.value; in hotkey_map()
/drivers/gpu/drm/msm/disp/
Dmdp_format.c75 .element = { (e0), (e1), (e2), (e3) }, \
95 .element = { (e0), (e1), (e2), (e3) }, \
115 .element = { (e0), (e1), (e2), (e3)}, \
134 .element = { (e0), (e1), 0, 0 }, \
154 .element = { (e0), (e1), 0, 0 }, \
173 .element = { (e0), (e1), 0, 0 }, \
193 .element = { (e0), (e1), 0, 0 }, \
213 .element = { (e0), (e1), (e2), 0 }, \
/drivers/misc/cxl/
Dhcalls.c132 struct cxl_process_element_hcall *element, in cxl_h_attach_process() argument
138 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_ATTACH_CA_PROCESS, unit_address, virt_to_phys(element)); in cxl_h_attach_process()
140 unit_address, virt_to_phys(element), rc); in cxl_h_attach_process()
141 trace_cxl_hcall_attach(unit_address, virt_to_phys(element), retbuf[0], retbuf[1], retbuf[2], rc); in cxl_h_attach_process()
145 cxl_dump_debug_buffer(element, sizeof(*element)); in cxl_h_attach_process()
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_wb.c95 pattern = (fmt->element[3] << 24) | in dpu_hw_wb_setup_format()
96 (fmt->element[2] << 16) | in dpu_hw_wb_setup_format()
97 (fmt->element[1] << 8) | in dpu_hw_wb_setup_format()
98 (fmt->element[0] << 0); in dpu_hw_wb_setup_format()
/drivers/acpi/x86/
Ds2idle.c226 union acpi_object *element = in lpi_device_get_constraints() local
229 switch (element->type) { in lpi_device_get_constraints()
231 info.enabled = element->integer.value; in lpi_device_get_constraints()
234 info.name = element->string.pointer; in lpi_device_get_constraints()
237 package_count = element->package.count; in lpi_device_get_constraints()
238 info.package = element->package.elements; in lpi_device_get_constraints()
/drivers/usb/host/
Duhci-debug.c170 __hc32 element = qh_element(qh); in uhci_show_qh() local
184 hc32_to_cpu(uhci, element)); in uhci_show_qh()
196 if (element & UHCI_PTR_QH(uhci)) in uhci_show_qh()
199 if (element & UHCI_PTR_DEPTH(uhci)) in uhci_show_qh()
202 if (element & cpu_to_hc32(uhci, 8)) in uhci_show_qh()
205 if (!(element & ~(UHCI_PTR_QH(uhci) | UHCI_PTR_DEPTH(uhci)))) in uhci_show_qh()
225 if (element != LINK_TO_TD(uhci, td)) in uhci_show_qh()
/drivers/staging/media/atomisp/pci/runtime/queue/src/
Dqueue.c290 int ia_css_queue_peek(ia_css_queue_t *qhandle, u32 offset, uint32_t *element) in ia_css_queue_peek() argument
295 if ((!qhandle) || (!element)) in ia_css_queue_peek()
308 *element = ia_css_circbuf_peek_from_start(&qhandle->desc.cb_local, (int)offset); in ia_css_queue_peek()
332 *element = cb_elem.val; in ia_css_queue_peek()
/drivers/s390/net/
Dqeth_core_main.c1391 if (buf->buffer->element[0].sflags & SBAL_SFLAGS0_PCI_REQ) { in qeth_clear_output_buffer()
1399 void *data = dma64_to_virt(buf->buffer->element[i].addr); in qeth_clear_output_buffer()
2960 buf->buffer->element[i].length = PAGE_SIZE; in qeth_init_input_buffer()
2961 buf->buffer->element[i].addr = u64_to_dma64( in qeth_init_input_buffer()
2964 buf->buffer->element[i].eflags = SBAL_EFLAGS_LAST_ENTRY; in qeth_init_input_buffer()
2966 buf->buffer->element[i].eflags = 0; in qeth_init_input_buffer()
2967 buf->buffer->element[i].sflags = 0; in qeth_init_input_buffer()
3437 buf->element[15].sflags); in qeth_check_qdio_errors()
3439 buf->element[14].sflags); in qeth_check_qdio_errors()
3441 if ((buf->element[15].sflags) == 0x12) { in qeth_check_qdio_errors()
[all …]

1234567