Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/linux-6.6.21/kernel/sched/
Dcpudeadline.c29 int orig_cpu = cp->elements[idx].cpu; in cpudl_heapify_down()
30 u64 orig_dl = cp->elements[idx].dl; in cpudl_heapify_down()
45 cp->elements[l].dl)) { in cpudl_heapify_down()
47 largest_dl = cp->elements[l].dl; in cpudl_heapify_down()
50 cp->elements[r].dl)) in cpudl_heapify_down()
57 cp->elements[idx].cpu = cp->elements[largest].cpu; in cpudl_heapify_down()
58 cp->elements[idx].dl = cp->elements[largest].dl; in cpudl_heapify_down()
59 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_down()
63 cp->elements[idx].cpu = orig_cpu; in cpudl_heapify_down()
64 cp->elements[idx].dl = orig_dl; in cpudl_heapify_down()
[all …]
/linux-6.6.21/drivers/staging/octeon/
Dethernet-mem.c24 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) in cvm_oct_fill_hw_skbuff() argument
26 int freed = elements; in cvm_oct_fill_hw_skbuff()
38 return elements - freed; in cvm_oct_fill_hw_skbuff()
47 static void cvm_oct_free_hw_skbuff(int pool, int size, int elements) in cvm_oct_free_hw_skbuff() argument
56 elements--; in cvm_oct_free_hw_skbuff()
61 if (elements < 0) in cvm_oct_free_hw_skbuff()
63 pool, elements); in cvm_oct_free_hw_skbuff()
64 else if (elements > 0) in cvm_oct_free_hw_skbuff()
66 pool, elements); in cvm_oct_free_hw_skbuff()
77 static int cvm_oct_fill_hw_memory(int pool, int size, int elements) in cvm_oct_fill_hw_memory() argument
[all …]
/linux-6.6.21/drivers/acpi/acpica/
Dnsprepkg.c22 union acpi_operand_object **elements, u32 count);
26 union acpi_operand_object **elements,
33 union acpi_operand_object **elements, u32 count);
56 union acpi_operand_object **elements; in acpi_ns_check_package() local
82 elements = return_object->package.elements; in acpi_ns_check_package()
110 status = acpi_ns_custom_package(info, elements, count); in acpi_ns_check_package()
134 status = acpi_ns_check_package_elements(info, elements, in acpi_ns_check_package()
151 status = acpi_ns_check_object_type(info, elements, in acpi_ns_check_package()
158 elements++; in acpi_ns_check_package()
183 acpi_ns_check_object_type(info, elements, in acpi_ns_check_package()
[all …]
Dnsrepair2.c88 acpi_ns_sort_list(union acpi_operand_object **elements,
366 element_ptr = return_object->package.elements; in acpi_ns_repair_CID()
428 outer_elements = &return_object->package.elements[i + 1]; in acpi_ns_repair_CST()
441 obj_desc = (*outer_elements)->package.elements[1]; /* Index1 = Type */ in acpi_ns_repair_CST()
462 obj_desc = return_object->package.elements[0]; in acpi_ns_repair_CST()
590 top_object_list = package_object->package.elements; in acpi_ns_repair_PRT()
597 sub_object_list = sub_package->package.elements; in acpi_ns_repair_PRT()
652 union acpi_operand_object **elements; in acpi_ns_repair_PSS() local
676 outer_elements = return_object->package.elements; in acpi_ns_repair_PSS()
680 elements = (*outer_elements)->package.elements; in acpi_ns_repair_PSS()
[all …]
Dhwxface.c339 union acpi_operand_object **elements; in ACPI_EXPORT_SYMBOL() local
397 elements = info->return_object->package.elements; in ACPI_EXPORT_SYMBOL()
406 if (elements[0]->common.type != ACPI_TYPE_INTEGER) { in ACPI_EXPORT_SYMBOL()
413 *sleep_type_a = (u8)elements[0]->integer.value; in ACPI_EXPORT_SYMBOL()
414 *sleep_type_b = (u8)(elements[0]->integer.value >> 8); in ACPI_EXPORT_SYMBOL()
420 if ((elements[0]->common.type != ACPI_TYPE_INTEGER) || in ACPI_EXPORT_SYMBOL()
421 (elements[1]->common.type != ACPI_TYPE_INTEGER)) { in ACPI_EXPORT_SYMBOL()
428 *sleep_type_a = (u8)elements[0]->integer.value; in ACPI_EXPORT_SYMBOL()
429 *sleep_type_b = (u8)elements[1]->integer.value; in ACPI_EXPORT_SYMBOL()
Dnsconvert.c187 union acpi_operand_object **elements; in acpi_ns_convert_to_buffer() local
232 elements = original_object->package.elements; in acpi_ns_convert_to_buffer()
236 if ((!*elements) || in acpi_ns_convert_to_buffer()
237 ((*elements)->common.type != ACPI_TYPE_INTEGER)) { in acpi_ns_convert_to_buffer()
240 elements++; in acpi_ns_convert_to_buffer()
252 elements = original_object->package.elements; in acpi_ns_convert_to_buffer()
256 *dword_buffer = (u32)(*elements)->integer.value; in acpi_ns_convert_to_buffer()
258 elements++; in acpi_ns_convert_to_buffer()
Ddspkginit.c111 if (!obj_desc->package.elements) { in acpi_ds_build_internal_package_obj()
112 obj_desc->package.elements = ACPI_ALLOCATE_ZEROED(((acpi_size) in acpi_ds_build_internal_package_obj()
119 if (!obj_desc->package.elements) { in acpi_ds_build_internal_package_obj()
192 elements[i]); in acpi_ds_build_internal_package_obj()
196 obj_desc->package.elements[i] = in acpi_ds_build_internal_package_obj()
204 elements[i]); in acpi_ds_build_internal_package_obj()
219 elements[i], NULL, in acpi_ds_build_internal_package_obj()
221 elements[i]); in acpi_ds_build_internal_package_obj()
241 elements[i])); in acpi_ds_build_internal_package_obj()
Ddbconvert.c171 union acpi_object *elements; in acpi_db_convert_to_package() local
174 elements = in acpi_db_convert_to_package()
187 status = acpi_db_convert_to_object(type, this, &elements[i]); in acpi_db_convert_to_package()
189 acpi_db_delete_objects(i + 1, elements); in acpi_db_convert_to_package()
190 ACPI_FREE(elements); in acpi_db_convert_to_package()
199 object->package.elements = elements; in acpi_db_convert_to_package()
362 buffer_desc = &obj_desc->package.elements[0]; in acpi_db_dump_pld_buffer()
/linux-6.6.21/drivers/acpi/
Dpfr_update.c134 out_obj->package.elements[CAP_STATUS_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
135 out_obj->package.elements[CAP_UPDATE_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
136 out_obj->package.elements[CAP_CODE_TYPE_IDX].type != ACPI_TYPE_BUFFER || in query_capability()
137 out_obj->package.elements[CAP_FW_VER_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
138 out_obj->package.elements[CAP_CODE_RT_VER_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
139 out_obj->package.elements[CAP_DRV_TYPE_IDX].type != ACPI_TYPE_BUFFER || in query_capability()
140 out_obj->package.elements[CAP_DRV_RT_VER_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
141 out_obj->package.elements[CAP_DRV_SVN_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
142 out_obj->package.elements[CAP_PLAT_ID_IDX].type != ACPI_TYPE_BUFFER || in query_capability()
143 out_obj->package.elements[CAP_OEM_ID_IDX].type != ACPI_TYPE_BUFFER || in query_capability()
[all …]
Dpfr_telemetry.c91 in_obj.package.elements = &in_buf; in get_pfrt_log_data_info()
102 out_obj->package.elements[LOG_STATUS_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
103 out_obj->package.elements[LOG_EXT_STATUS_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
104 out_obj->package.elements[LOG_MAX_SZ_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
105 out_obj->package.elements[LOG_CHUNK1_LO_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
106 out_obj->package.elements[LOG_CHUNK1_HI_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
107 out_obj->package.elements[LOG_CHUNK1_SZ_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
108 out_obj->package.elements[LOG_CHUNK2_LO_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
109 out_obj->package.elements[LOG_CHUNK2_HI_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
110 out_obj->package.elements[LOG_CHUNK2_SZ_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
[all …]
Dacpi_adxl.c55 o = obj->package.elements; in adxl_dsm()
65 o = obj->package.elements + 1; in adxl_dsm()
113 argv4[0].package.elements = &argv4[1]; in adxl_decode()
121 r = results->package.elements + 1; in adxl_decode()
127 r = r->package.elements; in adxl_decode()
169 p = params->package.elements + 1; in adxl_init()
176 p = p->package.elements; in adxl_init()
Dproperty.c83 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
155 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, in acpi_nondev_subnode_ok()
176 link = &links->package.elements[i]; in acpi_add_nondev_subnodes()
182 if (link->package.elements[0].type != ACPI_TYPE_STRING) in acpi_add_nondev_subnodes()
186 switch (link->package.elements[1].type) { in acpi_add_nondev_subnodes()
192 handle = link->package.elements[1].reference.handle; in acpi_add_nondev_subnodes()
197 desc = &link->package.elements[1]; in acpi_add_nondev_subnodes()
223 guid = &desc->package.elements[i]; in acpi_enumerate_nondev_subnodes()
224 links = &desc->package.elements[i + 1]; in acpi_enumerate_nondev_subnodes()
261 switch (value->package.elements[j].type) { in acpi_property_value_ok()
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/net/can/
Dbosch,m_can.yaml65 the following elements start from. This is usually set to
67 are used to specify how many elements are used for each FIFO/Buffer.
69 M_CAN includes the following elements according to user manual:
70 11-bit Filter 0-128 elements / 0-128 words
71 29-bit Filter 0-64 elements / 0-128 words
72 Rx FIFO 0 0-64 elements / 0-1152 words
73 Rx FIFO 1 0-64 elements / 0-1152 words
74 Rx Buffers 0-64 elements / 0-1152 words
75 Tx Event FIFO 0-32 elements / 0-64 words
76 Tx Buffers 0-32 elements / 0-576 words
[all …]
/linux-6.6.21/drivers/platform/x86/intel/int1092/
Dintel_sar.c83 num = &item->package.elements[0]; in parse_package()
102 num = &item->package.elements[itr + 1]; in parse_package()
105 if (get_int_value(&num->package.elements[0], &temp.device_mode)) in parse_package()
107 if (get_int_value(&num->package.elements[1], &temp.bandtable_index)) in parse_package()
109 if (get_int_value(&num->package.elements[2], &temp.antennatable_index)) in parse_package()
111 if (get_int_value(&num->package.elements[3], &temp.sartable_index)) in parse_package()
228 out->package.elements[0].type == ACPI_TYPE_INTEGER && in sar_get_data()
229 out->package.elements[1].type == ACPI_TYPE_INTEGER && in sar_get_data()
230 out->package.elements[2].type == ACPI_TYPE_PACKAGE && in sar_get_data()
231 out->package.elements[2].package.count > 0) { in sar_get_data()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/
Dacpi.c270 data->package.elements[0].type != ACPI_TYPE_INTEGER) { in iwl_acpi_get_wifi_pkg_range()
275 *tbl_rev = data->package.elements[0].integer.value; in iwl_acpi_get_wifi_pkg_range()
281 wifi_pkg = &data->package.elements[i]; in iwl_acpi_get_wifi_pkg_range()
289 domain = &wifi_pkg->package.elements[0]; in iwl_acpi_get_wifi_pkg_range()
330 if (tbl_rev == 1 && wifi_pkg->package.elements[1].type == in iwl_acpi_get_tas()
333 (u32)wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_tas()
352 wifi_pkg->package.elements[1].type == ACPI_TYPE_INTEGER) { in iwl_acpi_get_tas()
353 enabled = !!wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_tas()
366 if (wifi_pkg->package.elements[2].type != ACPI_TYPE_INTEGER || in iwl_acpi_get_tas()
367 wifi_pkg->package.elements[2].integer.value > in iwl_acpi_get_tas()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_diag.c81 u32 elements; in i40e_diag_reg_test() local
87 elements = i40e_reg_list[i].elements; in i40e_diag_reg_test()
91 elements = hw->func_caps.num_tx_qp; in i40e_diag_reg_test()
98 elements = hw->func_caps.num_msix_vectors - 1; in i40e_diag_reg_test()
102 for (j = 0; j < elements && !ret_code; j++) { in i40e_diag_reg_test()
/linux-6.6.21/net/netfilter/ipset/
Dip_set_bitmap_ip.c43 u32 elements; /* number of max elements in the set */ member
221 u32 elements, u32 hosts, u8 netmask) in init_map_ip() argument
223 map->members = bitmap_zalloc(elements, GFP_KERNEL | __GFP_NOWARN); in init_map_ip()
228 map->elements = elements; in init_map_ip()
258 u64 elements; in bitmap_ip_create() local
299 elements = (u64)last_ip - first_ip + 1; in bitmap_ip_create()
312 elements = 2UL << (netmask - mask_bits - 1); in bitmap_ip_create()
314 if (elements > IPSET_BITMAP_MAX_RANGE + 1) in bitmap_ip_create()
318 hosts, (unsigned long long)elements); in bitmap_ip_create()
321 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ip_create()
[all …]
Dip_set_bitmap_gen.h51 for (id = 0; id < map->elements; id++) in mtype_ext_cleanup()
76 bitmap_zero(map->members, map->elements); in mtype_flush()
77 set->elements = 0; in mtype_flush()
86 map->elements * dsize; in mtype_memsize()
102 nla_put_net32(skb, IPSET_ATTR_ELEMENTS, htonl(set->elements))) in mtype_head()
139 set->elements--; in mtype_add()
149 set->elements--; in mtype_add()
167 set->elements++; in mtype_add()
184 set->elements--; in mtype_del()
215 for (; cb->args[IPSET_CB_ARG0] < map->elements; in mtype_list()
[all …]
Dip_set_bitmap_ipmac.c48 u32 elements; /* number of max elements in the set */ member
300 u32 first_ip, u32 last_ip, u32 elements) in init_map_ipmac() argument
302 map->members = bitmap_zalloc(elements, GFP_KERNEL | __GFP_NOWARN); in init_map_ipmac()
307 map->elements = elements; in init_map_ipmac()
322 u64 elements; in bitmap_ipmac_create() local
351 elements = (u64)last_ip - first_ip + 1; in bitmap_ipmac_create()
353 if (elements > IPSET_BITMAP_MAX_RANGE + 1) in bitmap_ipmac_create()
359 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ipmac_create()
363 map->memsize = BITS_TO_LONGS(elements) * sizeof(unsigned long); in bitmap_ipmac_create()
365 if (!init_map_ipmac(set, map, first_ip, last_ip, elements)) { in bitmap_ipmac_create()
/linux-6.6.21/drivers/platform/x86/dell/dell-wmi-sysman/
Dsysman.c395 union acpi_object *elements; in init_bios_attributes() local
439 elements = obj->package.elements; in init_bios_attributes()
442 if (elements[ATTR_NAME].type != ACPI_TYPE_STRING) { in init_bios_attributes()
446 if (strlen(elements[ATTR_NAME].string.pointer) == 0) { in init_bios_attributes()
455 duplicate = kset_find_obj(tmp_set, elements[ATTR_NAME].string.pointer); in init_bios_attributes()
458 elements[ATTR_NAME].string.pointer); in init_bios_attributes()
473 elements[ATTR_NAME].string.pointer); in init_bios_attributes()
482 retval = populate_enum_data(elements, instance_id, attr_name_kobj, in init_bios_attributes()
486 retval = populate_int_data(elements, instance_id, attr_name_kobj); in init_bios_attributes()
489 retval = populate_str_data(elements, instance_id, attr_name_kobj); in init_bios_attributes()
[all …]
/linux-6.6.21/drivers/input/misc/
Dsoc_button_array.c273 soc_button_get_acpi_object_int(&desc->package.elements[0]) != 1 || in soc_button_parse_btn_desc()
275 soc_button_get_acpi_object_int(&desc->package.elements[2]) != in soc_button_parse_btn_desc()
284 soc_button_get_acpi_object_int(&desc->package.elements[1]); in soc_button_parse_btn_desc()
285 upage = soc_button_get_acpi_object_int(&desc->package.elements[3]); in soc_button_parse_btn_desc()
286 usage = soc_button_get_acpi_object_int(&desc->package.elements[4]); in soc_button_parse_btn_desc()
358 uuid = &desc->package.elements[i]; in soc_button_get_button_info()
362 desc->package.elements[i + 1].type != ACPI_TYPE_PACKAGE) { in soc_button_get_button_info()
367 btns_desc = &desc->package.elements[i + 1]; in soc_button_get_button_info()
379 el0 = &btns_desc->package.elements[0]; in soc_button_get_button_info()
383 soc_button_get_acpi_object_int(&el0->package.elements[0]) == 0 && in soc_button_get_button_info()
[all …]
/linux-6.6.21/drivers/char/tpm/
Dtpm_ppi.c82 obj->package.elements[0].type == ACPI_TYPE_INTEGER && in tpm_show_ppi_request()
83 obj->package.elements[1].type == ACPI_TYPE_INTEGER && in tpm_show_ppi_request()
84 obj->package.elements[2].type == ACPI_TYPE_INTEGER) { in tpm_show_ppi_request()
85 if (obj->package.elements[0].integer.value) in tpm_show_ppi_request()
88 req = obj->package.elements[1].integer.value; in tpm_show_ppi_request()
92 obj->package.elements[2].integer.value); in tpm_show_ppi_request()
98 obj->package.elements[0].type == ACPI_TYPE_INTEGER && in tpm_show_ppi_request()
99 obj->package.elements[1].type == ACPI_TYPE_INTEGER) { in tpm_show_ppi_request()
100 if (obj->package.elements[0].integer.value) in tpm_show_ppi_request()
104 obj->package.elements[1].integer.value); in tpm_show_ppi_request()
[all …]
/linux-6.6.21/drivers/hwtracing/coresight/
Dcoresight-platform.c370 graphid = &obj->package.elements[0]; in is_acpi_coresight_graph()
371 guid = &obj->package.elements[1]; in is_acpi_coresight_graph()
372 links = &obj->package.elements[2]; in is_acpi_coresight_graph()
458 rev = &graph->package.elements[0]; in acpi_validate_dsd_graph()
459 nr_graphs = &graph->package.elements[1]; in acpi_validate_dsd_graph()
483 const union acpi_object *obj = &graph->package.elements[i]; in acpi_validate_dsd_graph()
515 guid = &dsd->package.elements[i]; in acpi_get_dsd_graph()
516 package = &dsd->package.elements[i + 1]; in acpi_get_dsd_graph()
538 nlinks = cs_graph->package.elements[2].integer.value; in acpi_validate_coresight_graph()
566 nr_graphs = graph_list->package.elements[1].integer.value; in acpi_get_coresight_graph()
[all …]
/linux-6.6.21/drivers/scsi/lpfc/
Dlpfc_mem.c98 pool->elements = kmalloc_array(LPFC_MBUF_POOL_SIZE, in lpfc_mem_alloc()
101 if (!pool->elements) in lpfc_mem_alloc()
107 pool->elements[i].virt = dma_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
108 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
109 if (!pool->elements[i].virt) in lpfc_mem_alloc()
180 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
181 pool->elements[i].phys); in lpfc_mem_alloc()
182 kfree(pool->elements); in lpfc_mem_alloc()
252 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
253 pool->elements[i].phys); in lpfc_mem_free()
[all …]
/linux-6.6.21/drivers/acpi/x86/
Dapple.c69 union acpi_object *key = &props->package.elements[i * 2]; in acpi_extract_apple_properties()
70 union acpi_object *val = &props->package.elements[i * 2 + 1]; in acpi_extract_apple_properties()
103 newprops->package.elements = &newprops[1]; in acpi_extract_apple_properties()
107 union acpi_object *key = &props->package.elements[i * 2]; in acpi_extract_apple_properties()
108 union acpi_object *val = &props->package.elements[i * 2 + 1]; in acpi_extract_apple_properties()
114 newprops[1 + j].package.elements = &newprops[k]; in acpi_extract_apple_properties()

12345678910>>...14