Home
last modified time | relevance | path

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

12345678910>>...15

/linux-6.6.21/mm/
Dmempool.c24 static void poison_error(mempool_t *pool, void *element, size_t size, in poison_error() argument
34 pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : ""); in poison_error()
36 pr_cont("%x ", *(u8 *)(element + i)); in poison_error()
41 static void __check_element(mempool_t *pool, void *element, size_t size) in __check_element() argument
43 u8 *obj = element; in __check_element()
50 poison_error(pool, element, size, i); in __check_element()
57 static void check_element(mempool_t *pool, void *element) in check_element() argument
61 __check_element(pool, element, (size_t)pool->pool_data); in check_element()
63 __check_element(pool, element, kmem_cache_size(pool->pool_data)); in check_element()
67 void *addr = kmap_atomic((struct page *)element); in check_element()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/security/tomoyo/
Dgc.c40 static bool tomoyo_struct_used_by_io_buffer(const struct list_head *element) in tomoyo_struct_used_by_io_buffer() argument
50 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer()
51 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer()
109 static inline void tomoyo_del_transition_control(struct list_head *element) in tomoyo_del_transition_control() argument
112 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
125 static inline void tomoyo_del_aggregator(struct list_head *element) in tomoyo_del_aggregator() argument
128 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
141 static inline void tomoyo_del_manager(struct list_head *element) in tomoyo_del_manager() argument
144 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
156 static void tomoyo_del_acl(struct list_head *element) in tomoyo_del_acl() argument
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c70 elinfo = &mlxsw_afk_element_infos[elinst->element]; in mlxsw_afk_blocks_check()
138 DECLARE_BITMAP(element, MLXSW_AFK_ELEMENT_MAX);
144 enum mlxsw_afk_element element) in mlxsw_afk_picker_count_hits() argument
156 if (elinst->element == element) { in mlxsw_afk_picker_count_hits()
157 __set_bit(element, picker[i].element); in mlxsw_afk_picker_count_hits()
172 memcpy(&hits_element, &picker[block_index].element, in mlxsw_afk_picker_subtract_hits()
177 if (__test_and_clear_bit(j, picker[i].element)) in mlxsw_afk_picker_subtract_hits()
204 enum mlxsw_afk_element element; in mlxsw_afk_picker_key_info_add() local
209 for_each_set_bit(element, picker[block_index].element, in mlxsw_afk_picker_key_info_add()
211 key_info->element_to_block[element] = key_info->blocks_count; in mlxsw_afk_picker_key_info_add()
[all …]
Dcore_acl_flex_keys.h49 enum mlxsw_afk_element element; /* element ID */ member
56 .element = MLXSW_AFK_ELEMENT_##_element, \
77 enum mlxsw_afk_element element; member
89 .element = MLXSW_AFK_ELEMENT_##_element, \
133 #define mlxsw_afk_element_usage_for_each(element, elusage) \ argument
134 for_each_set_bit(element, (elusage)->usage, MLXSW_AFK_ELEMENT_MAX)
138 enum mlxsw_afk_element element) in mlxsw_afk_element_usage_add() argument
140 __set_bit(element, elusage->usage); in mlxsw_afk_element_usage_add()
211 enum mlxsw_afk_element element,
214 enum mlxsw_afk_element element,
/linux-6.6.21/scripts/
Dasn1_compiler.c681 struct element { struct
686 struct element *children; argument
687 struct element *next; argument
688 struct element *render_next; argument
689 struct element *list_next; argument
708 struct element *element; argument
798 static struct element *parse_type(struct token **_cursor, struct token *stop,
819 type->element = parse_type(&cursor, type[1].name, NULL); in parse()
820 type->element->type_def = type; in parse()
833 static struct element *element_list;
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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.c863 union acpi_object *element; in acpi_processor_evaluate_cst() local
881 element = &cst->package.elements[i]; in acpi_processor_evaluate_cst()
882 if (element->type != ACPI_TYPE_PACKAGE) { in acpi_processor_evaluate_cst()
884 i, element->type); in acpi_processor_evaluate_cst()
888 if (element->package.count != 4) { in acpi_processor_evaluate_cst()
890 i, element->package.count); in acpi_processor_evaluate_cst()
894 obj = &element->package.elements[0]; in acpi_processor_evaluate_cst()
904 obj = &element->package.elements[1]; in acpi_processor_evaluate_cst()
963 obj = &element->package.elements[2]; in acpi_processor_evaluate_cst()
972 obj = &element->package.elements[3]; in acpi_processor_evaluate_cst()
Dproperty.c797 const union acpi_object **element, in acpi_get_ref_args() argument
806 for (; *element < end && (*element)->type == ACPI_TYPE_STRING; in acpi_get_ref_args()
807 (*element)++) { in acpi_get_ref_args()
808 const char *child_name = (*element)->string.pointer; in acpi_get_ref_args()
820 for (i = 0; (*element) + i < end && i < num_args; i++) { in acpi_get_ref_args()
821 acpi_object_type type = (*element)[i].type; in acpi_get_ref_args()
839 args->args[i] = (*element)[i].integer.value; in acpi_get_ref_args()
842 (*element) += nargs; in acpi_get_ref_args()
887 const union acpi_object *element, *end; in __acpi_node_get_property_reference() local
935 element = obj->package.elements; in __acpi_node_get_property_reference()
[all …]
/linux-6.6.21/include/linux/
Dmempool.h14 typedef void (mempool_free_t)(void *element, void *pool_data);
54 extern void mempool_free(void *element, mempool_t *pool);
62 void mempool_free_slab(void *element, void *pool_data);
83 void mempool_kfree(void *element, void *pool_data);
102 void mempool_free_pages(void *element, void *pool_data);
Dmin_heap.h100 const void *element, in min_heap_pop_push() argument
103 memcpy(heap->data, element, func->elem_size); in min_heap_pop_push()
109 void min_heap_push(struct min_heap *heap, const void *element, in min_heap_push() argument
121 memcpy(data + (pos * func->elem_size), element, func->elem_size); in min_heap_push()
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/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()
/linux-6.6.21/arch/powerpc/platforms/pseries/
Dhvcserver.c65 struct list_head *element; in hvcs_free_partner_info() local
71 element = head->next; in hvcs_free_partner_info()
72 pi = list_entry(element, struct hvcs_partner_info, node); in hvcs_free_partner_info()
73 list_del(element); in hvcs_free_partner_info()
/linux-6.6.21/scripts/coccinelle/misc/
Darray_size.cocci2 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
6 //# element or by any indexed element or the element type. It replaces the
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/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()
/linux-6.6.21/lib/
Dlru_cache.c82 struct lc_element **element = NULL; in lc_create() local
100 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
101 if (!element) in lc_create()
119 lc->lc_element = element; in lc_create()
133 element[i] = e; in lc_create()
140 void *p = element[--i]; in lc_create()
145 kfree(element); in lc_create()
/linux-6.6.21/drivers/platform/loongarch/
Dloongson-laptop.c285 union acpi_object *element, *sub_pack; in hotkey_map() local
289 element = &sub_pack->package.elements[0]; in hotkey_map()
290 hotkey_keycode_map[index].type = element->integer.value; in hotkey_map()
291 element = &sub_pack->package.elements[1]; in hotkey_map()
292 hotkey_keycode_map[index].code = element->integer.value; in hotkey_map()
293 element = &sub_pack->package.elements[2]; in hotkey_map()
294 hotkey_keycode_map[index].keycode = element->integer.value; in hotkey_map()
/linux-6.6.21/Documentation/RCU/
Drcuref.rst50 search_and_reference() could potentially hold reference to an element which
81 Sometimes, a reference to the element needs to be obtained in the
121 search_and_reference() cannot find this element, which means that the value
123 readers that can or ever will be able to reference the element. The
124 element can therefore safely be freed. This in turn guarantees that if
125 any reader finds the element, that reader may safely acquire a reference

12345678910>>...15