| /linux/mm/ |
| H A D | mempool.c | 41 static void poison_error(struct mempool *pool, void *element, size_t size, in poison_error() argument 51 pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : ""); in poison_error() 53 pr_cont("%x ", *(u8 *)(element + i)); in poison_error() 58 static void __check_element(struct mempool *pool, void *element, size_t size) in __check_element() argument 60 u8 *obj = element; in __check_element() 67 poison_error(pool, element, size, i); in __check_element() 74 static void check_element(struct mempool *pool, void *element) in check_element() argument 82 __check_element(pool, element, (size_t)pool->pool_data); in check_element() 84 __check_element(pool, element, kmem_cache_size(pool->pool_data)); in check_element() 91 struct page *page = (struct page *)element; in check_element() [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/drivers/tty/vt/ |
| H A D | ucs.c | 23 static int interval16_cmp(const void *key, const void *element) in interval16_cmp() argument 26 const struct ucs_interval16 *entry = element; in interval16_cmp() 35 static int interval32_cmp(const void *key, const void *element) in interval32_cmp() argument 38 const struct ucs_interval32 *entry = element; in interval32_cmp() 116 static int recomposition_cmp(const void *key, const void *element) in recomposition_cmp() argument 119 const struct ucs_recomposition *entry = element; in recomposition_cmp() 178 static int ucs_page_desc_cmp(const void *key, const void *element) in ucs_page_desc_cmp() argument 181 const struct ucs_page_desc *entry = element; in ucs_page_desc_cmp() 190 static int ucs_page_entry_cmp(const void *key, const void *element) in ucs_page_entry_cmp() argument 193 const struct ucs_page_entry *entry = element; in ucs_page_entry_cmp()
|
| /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/include/linux/ |
| H A D | mempool.h | 16 typedef void (mempool_free_t)(void *element, void *pool_data); 74 void mempool_free(void *element, struct mempool *pool); 84 void mempool_free_slab(void *element, void *pool_data); 96 void mempool_kfree(void *element, void *pool_data); 110 void mempool_free_pages(void *element, void *pool_data);
|
| /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/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
|
| H A D | flexible_array.cocci | 3 /// Zero-length and one-element arrays are deprecated, see 99 …https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)" 106 …https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)"
|
| /linux/rust/proc-macro2/ |
| H A D | rcvec.rs | 77 pub(crate) fn push(&mut self, element: T) { in push() 78 self.inner.push(element); in push() 99 pub(crate) fn push(&mut self, element: T) { in push() 100 self.inner.push(element); in push()
|
| /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/acpi/ |
| 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 | 868 const union acpi_object **element, in acpi_get_ref_args() argument 882 for (i = 0; (*element) + i < end && i < num_args; i++) { in acpi_get_ref_args() 883 acpi_object_type type = (*element)[i].type; in acpi_get_ref_args() 901 args->args[i] = (*element)[i].integer.value; in acpi_get_ref_args() 904 (*element) += nargs; in acpi_get_ref_args() 952 const union acpi_object *element, *end; in acpi_fwnode_get_reference_args() local 1015 element = obj->package.elements; in acpi_fwnode_get_reference_args() 1016 end = element + obj->package.count; in acpi_fwnode_get_reference_args() 1018 while (element < end) { in acpi_fwnode_get_reference_args() 1019 switch (element->type) { in acpi_fwnode_get_reference_args() [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/lib/ |
| 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/platform/loongarch/ |
| H A D | loongson-laptop.c | 284 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()
|
| /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/mac80211/ |
| H A D | parse.c | 11 * element parsing for mac80211 41 /* The basic Multi-Link element in the original elements */ 42 const struct element *ml_basic_elem; 44 /* The reconfiguration Multi-Link element in the original elements */ 45 const struct element *ml_reconf_elem; 47 /* The EPCS Multi-Link element in the original elements */ 48 const struct element *ml_epcs_elem; 54 * scratch buffer that can be used for various element parsing related 55 * tasks, e.g., element de-fragmentation etc. 64 const struct element *ele in ieee80211_parse_extension_element() [all...] |
| /linux/Documentation/bpf/ |
| H A D | map_sockmap.rst | 132 - ``BPF_ANY``: Create a new element or update an existing element. 133 - ``BPF_NOEXIST``: Create a new element only if it did not exist. 134 - ``BPF_EXIST``: Update an existing element. 153 - ``BPF_ANY``: Create a new element or update an existing element. 154 - ``BPF_NOEXIST``: Create a new element only if it did not exist. 155 - ``BPF_EXIST``: Update an existing element. 242 For ``sendmsg()`` hooks this is likely the first scatterlist element. But for 282 - BPF_ANY: Create a new element or update an existing element. 283 - BPF_NOEXIST: Create a new element only if it did not exist. 284 - BPF_EXIST: Update an existing element. [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nft_nat_zones.sh | 166 ( echo add element inet raw iiftomark \{ 171 echo add element inet raw iiftozone \{ 195 if ! ip netns exec "$gw" nft get element inet raw inicmp "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 }" | grep -q "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 counter packets 3 bytes 252 }"; then 198 ip netns exec "$gw" nft get element inet raw inicmp "{ 10.1.0.3 . \"veth$i\" . 10.3.0.99 }" 1>&2 203 if ! ip netns exec "$gw" nft get element inet raw inicmp "{ 10.3.0.99 . \"veth0\" . 10.3.0.1 }" | grep -q "{ 10.3.0.99 . \"veth0\" . 10.3.0.1 counter packets $((3 * maxclients)) bytes $((252 * maxclients)) }"; then 206 ip netns exec "$gw" nft get element inet raw inicmp "{ 10.3.99 . \"veth0\" . 10.3.0.1 }" 1>&2 250 if ! ip netns exec "$gw" nft get element inet raw inflows "{ 10.1.0.3 . 10000 . \"veth$i\" . 10.3.0.99 . 5201 }" > /dev/null;then 260 if ! ip netns exec "$gw" nft get element inet raw inflows "{ 10.3.0.99 . 5201 . \"veth0\" . 10.3.0.1 . 10000 }" > /dev/null;then
|