/linux/mm/ |
H A D | mempool.c | 24 static void poison_error(mempool_t *pool, void *element, size_t size, in poison_error() argument 32 pr_err("BUG: mempool element poison mismatch\n"); in poison_error() 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 59 /* Skip checking: KASAN might save its metadata in the element. */ in check_element() 65 __check_element(pool, element, (size_ in check_element() 78 __poison_element(void * element,size_t size) __poison_element() argument 86 poison_element(mempool_t * pool,void * element) poison_element() argument 107 check_element(mempool_t * pool,void * element) check_element() argument 110 poison_element(mempool_t * pool,void * element) poison_element() argument 115 kasan_poison_element(mempool_t * pool,void * element) kasan_poison_element() argument 125 kasan_unpoison_element(mempool_t * pool,void * element) kasan_unpoison_element() argument 137 add_element(mempool_t * pool,void * element) add_element() argument 147 void *element = pool->elements[--pool->curr_nr]; remove_element() local 169 void *element = remove_element(pool); mempool_exit() local 215 void *element; mempool_init_node() local 316 void *element; mempool_resize() local 392 void *element; mempool_alloc() local 474 void *element; mempool_alloc_preallocated() local 504 mempool_free(void * element,mempool_t * pool) mempool_free() argument 569 mempool_free_slab(void * element,void * pool_data) mempool_free_slab() argument 587 mempool_kfree(void * element,void * pool_data) mempool_kfree() argument 600 mempool_kvfree(void * element,void * pool_data) mempool_kvfree() argument 617 mempool_free_pages(void * element,void * pool_data) mempool_free_pages() argument [all...] |
/linux/drivers/acpi/acpica/ |
H A D | uttrack.c | 281 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 …]
|
H A D | dspkginit.c | 23 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/security/tomoyo/ |
H A D | gc.c | 40 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/scripts/ |
H A D | asn1_compiler.c | 681 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/drivers/platform/chrome/ |
H A D | chromeos_acpi.c | 73 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/Documentation/core-api/ |
H A D | min_heap.rst | 13 the smallest element is always at the root. 110 element = min_heap_peek(heap); 113 element. 115 This macro returns a pointer to the smallest element (the root) of the heap, or 125 success = min_heap_push(heap, element, callbacks, args); 127 - **heap**: A pointer to the min-heap into which the element should be inserted. 128 - **element**: A pointer to the element to be inserted into the heap. 133 This macro inserts an element into the heap. It returns `true` if the insertion 136 **Inline Version:** min_heap_push_inline(heap, element, callbacks, args) 145 - **heap**: A pointer to the min-heap from which to remove the smallest element. [all …]
|
/linux/drivers/acpi/ |
H A D | utils.c | 74 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 …]
|
H A D | acpi_processor.c | 869 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()
|
H A D | property.c | 809 const union acpi_object **element, in acpi_get_ref_args() argument 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() 925 const union acpi_object *element, *end; in __acpi_node_get_property_reference() local 988 element = obj->package.elements; in __acpi_node_get_property_reference() 989 end = element + obj->package.count; in __acpi_node_get_property_reference() 991 while (element < end) { in __acpi_node_get_property_reference() 992 switch (element->type) { in __acpi_node_get_property_reference() [all …]
|
/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | acpi_thermal_rel.c | 77 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/drivers/hwmon/ |
H A D | hp-wmi-sensors.c | 543 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/drivers/counter/ |
H A D | counter-sysfs.c | 367 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/drivers/mfd/ |
H A D | si476x-prop.c | 19 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/lib/ |
H A D | min_heap.c | 51 void __min_heap_pop_push(min_heap_char *heap, const void *element, size_t elem_size, in __min_heap_pop_push() argument 54 __min_heap_pop_push_inline(heap, element, elem_size, func, args); in __min_heap_pop_push() 58 bool __min_heap_push(min_heap_char *heap, const void *element, size_t elem_size, in __min_heap_push() argument 61 return __min_heap_push_inline(heap, element, elem_size, func, args); in __min_heap_push()
|
H A D | lru_cache.c | 82 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/drivers/net/wireless/intel/iwlwifi/mvm/tests/ |
H A D | links.c | 182 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()
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | hvcserver.c | 65 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/drivers/infiniband/hw/mlx4/ |
H A D | sysfs.c | 500 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/scripts/coccinelle/misc/ |
H A D | array_size.cocci | 2 /// 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/drivers/scsi/esas2r/ |
H A D | esas2r_int.c | 342 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/drivers/s390/scsi/ |
H A D | zfcp_qdio.h | 88 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/drivers/platform/loongarch/ |
H A D | loongson-laptop.c | 285 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/Documentation/RCU/ |
H A D | rcuref.rst | 50 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/net/wireless/ |
H A D | scan.c | 176 bool cfg80211_is_element_inherited(const struct element *elem, in cfg80211_is_element_inherited() 177 const struct element *non_inherit_elem) in cfg80211_is_element_inherited() 230 static size_t cfg80211_copy_elem_with_frags(const struct element *elem, in cfg80211_copy_elem_with_frags() 273 const struct element *non_inherit_elem, *parent, *sub; in cfg80211_gen_new_ie() 385 const struct element *ssid_elem; in is_bss() 408 const struct element *ssid_elem; in cfg80211_add_nontrans_list() 519 const struct element **elem, u32 *s_ssid) in cfg80211_calc_short_ssid() 544 const struct element *ssid_elem, in cfg80211_parse_ap_info() 621 const struct element *rnr; in cfg80211_iter_rnr() 674 const struct element *ssid_elem; [all …]
|