Home
last modified time | relevance | path

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

12345678910>>...13

/Linux-v5.10/mm/
Dmempool.c25 static void poison_error(mempool_t *pool, void *element, size_t size, in poison_error() argument
35 pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : ""); in poison_error()
37 pr_cont("%x ", *(u8 *)(element + i)); in poison_error()
42 static void __check_element(mempool_t *pool, void *element, size_t size) in __check_element() argument
44 u8 *obj = element; in __check_element()
51 poison_error(pool, element, size, i); in __check_element()
58 static void check_element(mempool_t *pool, void *element) in check_element() argument
62 __check_element(pool, element, ksize(element)); in check_element()
66 void *addr = kmap_atomic((struct page *)element); in check_element()
73 static void __poison_element(void *element, size_t size) in __poison_element() argument
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c68 elinfo = &mlxsw_afk_element_infos[elinst->element]; in mlxsw_afk_blocks_check()
137 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->hits[i].element); in mlxsw_afk_picker_count_hits()
172 memcpy(&hits_element, &picker->hits[block_index].element, in mlxsw_afk_picker_subtract_hits()
177 if (__test_and_clear_bit(j, picker->hits[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->hits[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.h47 enum mlxsw_afk_element element; /* element ID */ member
54 .element = MLXSW_AFK_ELEMENT_##_element, \
75 enum mlxsw_afk_element element; member
87 .element = MLXSW_AFK_ELEMENT_##_element, \
131 #define mlxsw_afk_element_usage_for_each(element, elusage) \ argument
132 for_each_set_bit(element, (elusage)->usage, MLXSW_AFK_ELEMENT_MAX)
136 enum mlxsw_afk_element element) in mlxsw_afk_element_usage_add() argument
138 __set_bit(element, elusage->usage); in mlxsw_afk_element_usage_add()
209 enum mlxsw_afk_element element,
212 enum mlxsw_afk_element element,
/Linux-v5.10/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-v5.10/drivers/acpi/
Dutils.c85 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
87 switch (element->type) { in acpi_extract_package()
116 (element->string.length * sizeof(char)) + in acpi_extract_package()
122 sizeof(u8 *) + element->buffer.length; in acpi_extract_package()
185 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
187 switch (element->type) { in acpi_extract_package()
193 element->integer.value; in acpi_extract_package()
200 element->integer.value; in acpi_extract_package()
219 memcpy(tail, element->string.pointer, in acpi_extract_package()
220 element->string.length); in acpi_extract_package()
[all …]
Dproperty.c668 const union acpi_object *element, *end; in __acpi_node_get_property_reference() local
713 element = obj->package.elements; in __acpi_node_get_property_reference()
714 end = element + obj->package.count; in __acpi_node_get_property_reference()
716 while (element < end) { in __acpi_node_get_property_reference()
719 if (element->type == ACPI_TYPE_LOCAL_REFERENCE) { in __acpi_node_get_property_reference()
722 ret = acpi_bus_get_device(element->reference.handle, in __acpi_node_get_property_reference()
728 element++; in __acpi_node_get_property_reference()
735 element < end && element->type == ACPI_TYPE_STRING; in __acpi_node_get_property_reference()
736 element++) { in __acpi_node_get_property_reference()
738 ref_fwnode, element->string.pointer); in __acpi_node_get_property_reference()
[all …]
Dacpi_processor.c781 union acpi_object *element; in acpi_processor_evaluate_cst() local
799 element = &cst->package.elements[i]; in acpi_processor_evaluate_cst()
800 if (element->type != ACPI_TYPE_PACKAGE) { in acpi_processor_evaluate_cst()
802 i, element->type); in acpi_processor_evaluate_cst()
806 if (element->package.count != 4) { in acpi_processor_evaluate_cst()
808 i, element->package.count); in acpi_processor_evaluate_cst()
812 obj = &element->package.elements[0]; in acpi_processor_evaluate_cst()
822 obj = &element->package.elements[1]; in acpi_processor_evaluate_cst()
881 obj = &element->package.elements[2]; in acpi_processor_evaluate_cst()
890 obj = &element->package.elements[3]; in acpi_processor_evaluate_cst()
/Linux-v5.10/include/linux/
Dmempool.h14 typedef void (mempool_free_t)(void *element, void *pool_data);
49 extern void mempool_free(void *element, mempool_t *pool);
57 void mempool_free_slab(void *element, void *pool_data);
78 void mempool_kfree(void *element, void *pool_data);
97 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()
Dieee80211.h3774 struct element { struct
3782 for (_elem = (const struct element *)(_data); \
3787 _elem = (const struct element *)(_elem->data + _elem->datalen))
3789 #define for_each_element_id(element, _id, data, datalen) \ argument
3790 for_each_element(element, data, datalen) \
3791 if (element->id == (_id))
3793 #define for_each_element_extid(element, extid, _data, _datalen) \ argument
3794 for_each_element(element, _data, _datalen) \
3795 if (element->id == WLAN_EID_EXTENSION && \
3796 element->datalen > 0 && \
[all …]
/Linux-v5.10/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-v5.10/drivers/thermal/intel/int340x_thermal/
Dacpi_thermal_rel.c78 struct acpi_buffer element = { 0, NULL }; in acpi_parse_trt() local
102 element.length = sizeof(struct trt); in acpi_parse_trt()
103 element.pointer = trt; in acpi_parse_trt()
106 &trt_format, &element); in acpi_parse_trt()
155 struct acpi_buffer element = { 0, NULL }; in acpi_parse_art() local
181 element.length = sizeof(struct art); in acpi_parse_art()
182 element.pointer = art; in acpi_parse_art()
185 &art_format, &element); in acpi_parse_art()
/Linux-v5.10/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-v5.10/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
Dflexible_array.cocci3 /// Zero-length and one-element arrays are deprecated, see
80 …https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)"
87 …https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)"
/Linux-v5.10/Documentation/devicetree/bindings/interrupt-controller/
Dqcom,pdc.txt35 The first element of the tuple is the PDC pin for the
37 The second element is the trigger type.
50 The first element of the tuple is the starting PDC port.
51 The second element is the GIC hwirq number for the PDC port.
52 The third element is the number of interrupts in sequence.
/Linux-v5.10/drivers/s390/scsi/
Dzfcp_qdio.h81 return &qdio->req_q[q_req->sbal_last]->element[0]; in zfcp_qdio_sbale_req()
93 return &qdio->req_q[q_req->sbal_last]->element[q_req->sbale_curr]; in zfcp_qdio_sbale_curr()
227 sbale = qdio->req_q[q_req->sbal_first]->element; in zfcp_qdio_set_data_div()
256 sbale = qdio->req_q[q_req->sbal_first]->element; in zfcp_qdio_set_scount()
/Linux-v5.10/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()
/Linux-v5.10/drivers/infiniband/hw/mlx4/
Dsysfs.c502 struct port_table_attribute *element; in alloc_group_attrs() local
510 element = kzalloc(sizeof (struct port_table_attribute), in alloc_group_attrs()
512 if (!element) in alloc_group_attrs()
514 if (snprintf(element->name, sizeof (element->name), in alloc_group_attrs()
515 "%d", i) >= sizeof (element->name)) { in alloc_group_attrs()
516 kfree(element); in alloc_group_attrs()
519 sysfs_attr_init(&element->attr.attr); in alloc_group_attrs()
520 element->attr.attr.name = element->name; in alloc_group_attrs()
522 element->attr.attr.mode = S_IWUSR | S_IRUGO; in alloc_group_attrs()
523 element->attr.store = store; in alloc_group_attrs()
[all …]
/Linux-v5.10/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
/Linux-v5.10/lib/
Dlru_cache.c92 struct lc_element **element = NULL; in lc_create() local
110 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
111 if (!element) in lc_create()
129 lc->lc_element = element; in lc_create()
143 element[i] = e; in lc_create()
150 void *p = element[i]; in lc_create()
155 kfree(element); in lc_create()

12345678910>>...13