Home
last modified time | relevance | path

Searched refs:num_entries (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/include/net/tc_act/
Dtc_gate.h33 size_t num_entries; member
106 u32 num_entries; in tcf_gate_num_entries() local
108 num_entries = to_gate(a)->param.num_entries; in tcf_gate_num_entries()
110 return num_entries; in tcf_gate_num_entries()
119 u32 num_entries; in tcf_gate_get_list() local
123 num_entries = p->num_entries; in tcf_gate_get_list()
128 if (i != num_entries) in tcf_gate_get_list()
131 oe = kcalloc(num_entries, sizeof(*oe), GFP_ATOMIC); in tcf_gate_get_list()
/kernel/linux/linux-5.10/drivers/char/agp/
Dgeneric.c321 int num_entries; in agp_num_entries() local
328 num_entries = A_SIZE_8(temp)->num_entries; in agp_num_entries()
331 num_entries = A_SIZE_16(temp)->num_entries; in agp_num_entries()
334 num_entries = A_SIZE_32(temp)->num_entries; in agp_num_entries()
337 num_entries = A_SIZE_LVL2(temp)->num_entries; in agp_num_entries()
340 num_entries = A_SIZE_FIX(temp)->num_entries; in agp_num_entries()
343 num_entries = 0; in agp_num_entries()
347 num_entries -= agp_memory_reserved>>PAGE_SHIFT; in agp_num_entries()
348 if (num_entries<0) in agp_num_entries()
349 num_entries = 0; in agp_num_entries()
[all …]
Di460-agp.c153 values[i].num_entries = (values[i].size << 8) >> (I460_IO_PAGE_SHIFT - 12); in i460_fetch_size()
154 values[i].page_order = ilog2((sizeof(u32)*values[i].num_entries) >> PAGE_SHIFT); in i460_fetch_size()
234 size = current_size->num_entries * sizeof(i460.lp_desc[0]); in i460_configure()
244 int page_order, num_entries, i; in i460_create_gatt_table() local
252 num_entries = A_SIZE_8(temp)->num_entries; in i460_create_gatt_table()
265 for (i = 0; i < num_entries; ++i) in i460_create_gatt_table()
273 int num_entries, i; in i460_free_gatt_table() local
278 num_entries = A_SIZE_8(temp)->num_entries; in i460_free_gatt_table()
280 for (i = 0; i < num_entries; ++i) in i460_free_gatt_table()
282 WR_FLUSH_GATT(num_entries - 1); in i460_free_gatt_table()
[all …]
Defficeon-agp.c198 int num_entries, l1_pages; in efficeon_create_gatt_table() local
200 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_create_gatt_table()
202 printk(KERN_DEBUG PFX "efficeon_create_gatt_table(%d)\n", num_entries); in efficeon_create_gatt_table()
205 BUG_ON(num_entries & 0x3ff); in efficeon_create_gatt_table()
206 l1_pages = num_entries >> 10; in efficeon_create_gatt_table()
238 int i, count = mem->page_count, num_entries; in efficeon_insert_memory() local
245 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_insert_memory()
246 if ((pg_start + mem->page_count) > num_entries) in efficeon_insert_memory()
287 int i, count = mem->page_count, num_entries; in efficeon_remove_memory() local
291 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_remove_memory()
[all …]
Dalpha-agp.c88 int num_entries, status; in alpha_core_agp_insert_memory() local
95 num_entries = A_SIZE_FIX(temp)->num_entries; in alpha_core_agp_insert_memory()
96 if ((pg_start + mem->page_count) > num_entries) in alpha_core_agp_insert_memory()
169 aper_size->num_entries = agp->aperture.size / PAGE_SIZE; in alpha_core_agp_setup()
170 aper_size->page_order = __ffs(aper_size->num_entries / 1024); in alpha_core_agp_setup()
Dagp.h66 int num_entries; member
73 int num_entries; member
80 int num_entries; member
87 int num_entries; member
93 int num_entries; member
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dmodule-sections.c16 int i = got_sec->num_entries; in module_emit_got_entry()
26 got_sec->num_entries++; in module_emit_got_entry()
27 BUG_ON(got_sec->num_entries > got_sec->max_entries); in module_emit_got_entry()
38 int i = plt_sec->num_entries; in module_emit_plt_entry()
51 plt_sec->num_entries++; in module_emit_plt_entry()
52 got_plt_sec->num_entries++; in module_emit_plt_entry()
53 BUG_ON(plt_sec->num_entries > plt_sec->max_entries); in module_emit_plt_entry()
142 mod->arch.plt.num_entries = 0; in module_frob_arch_sections()
149 mod->arch.got.num_entries = 0; in module_frob_arch_sections()
156 mod->arch.got_plt.num_entries = 0; in module_frob_arch_sections()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_shared_buf.c81 unsigned int i, num_entries, entry_sz; in nfp_shared_buf_register() local
92 num_entries = n; in nfp_shared_buf_register()
95 num_entries * sizeof(pf->shared_bufs[0]), in nfp_shared_buf_register()
100 entry_sz = nfp_cpp_area_size(sb_desc_area) / num_entries; in nfp_shared_buf_register()
102 pf->shared_bufs = kmalloc_array(num_entries, sizeof(pf->shared_bufs[0]), in nfp_shared_buf_register()
109 for (i = 0; i < num_entries; i++) { in nfp_shared_buf_register()
125 pf->num_shared_bufs = num_entries; in nfp_shared_buf_register()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bo_list.c64 size_t num_entries, struct amdgpu_bo_list **result) in amdgpu_bo_list_create() argument
66 unsigned last_entry = 0, first_userptr = num_entries; in amdgpu_bo_list_create()
74 if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list)) in amdgpu_bo_list_create()
79 size += num_entries * sizeof(struct amdgpu_bo_list_entry); in amdgpu_bo_list_create()
90 memset(array, 0, num_entries * sizeof(struct amdgpu_bo_list_entry)); in amdgpu_bo_list_create()
92 for (i = 0; i < num_entries; ++i) { in amdgpu_bo_list_create()
135 list->num_entries = num_entries; in amdgpu_bo_list_create()
137 trace_amdgpu_cs_bo_status(list->num_entries, total_size); in amdgpu_bo_list_create()
148 for (i = first_userptr; i < num_entries; ++i) { in amdgpu_bo_list_create()
Damdgpu_bo_list.h49 unsigned num_entries; member
63 size_t num_entries,
76 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
81 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
/kernel/linux/linux-5.10/drivers/iommu/
Dio-pgtable-arm-v7s.c298 static void __arm_v7s_pte_sync(arm_v7s_iopte *ptep, int num_entries, in __arm_v7s_pte_sync() argument
305 num_entries * sizeof(*ptep), DMA_TO_DEVICE); in __arm_v7s_pte_sync()
308 int num_entries, struct io_pgtable_cfg *cfg) in __arm_v7s_set_pte() argument
312 for (i = 0; i < num_entries; i++) in __arm_v7s_set_pte()
315 __arm_v7s_pte_sync(ptep, num_entries, cfg); in __arm_v7s_set_pte()
416 int lvl, int num_entries, arm_v7s_iopte *ptep) in arm_v7s_init_pte() argument
422 for (i = 0; i < num_entries; i++) in arm_v7s_init_pte()
442 if (num_entries > 1) in arm_v7s_init_pte()
447 __arm_v7s_set_pte(ptep, pte, num_entries, cfg); in arm_v7s_init_pte()
481 int num_entries = size >> ARM_V7S_LVL_SHIFT(lvl); in __arm_v7s_map() local
[all …]
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_tas.c171 int num_entries = 0; in sja1105_init_scheduling() local
212 num_entries += tas_data->offload[port]->num_entries; in sja1105_init_scheduling()
218 num_entries += gating_cfg->num_entries; in sja1105_init_scheduling()
230 table->entries = kcalloc(num_entries, table->ops->unpacked_entry_size, in sja1105_init_scheduling()
234 table->entry_count = num_entries; in sja1105_init_scheduling()
282 schedule_end_idx = k + offload->num_entries - 1; in sja1105_init_scheduling()
309 for (i = 0; i < offload->num_entries; i++, k++) { in sja1105_init_scheduling()
328 schedule_end_idx = k + gating_cfg->num_entries - 1; in sja1105_init_scheduling()
424 i < offload->num_entries; in sja1105_tas_check_conflicts()
430 j < admin->num_entries; in sja1105_tas_check_conflicts()
[all …]
/kernel/linux/linux-5.10/fs/exfat/
Dnamei.c203 int num_entries) in exfat_search_empty_slot() argument
217 if (num_entries <= hint_femp->count) { in exfat_search_empty_slot()
268 if (num_empty >= num_entries) { in exfat_search_empty_slot()
271 return (dentry - (num_entries - 1)); in exfat_search_empty_slot()
305 struct exfat_chain *p_dir, int num_entries) in exfat_find_empty_entry() argument
326 num_entries)) < 0) { in exfat_find_empty_entry()
475 int ret, dentry, num_entries; in exfat_add_entry() local
487 num_entries = exfat_calc_num_entries(&uniname); in exfat_add_entry()
488 if (num_entries < 0) { in exfat_add_entry()
489 ret = num_entries; in exfat_add_entry()
[all …]
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dsmsm.c81 u32 num_entries; member
434 u32 num_entries; in smsm_get_size_info() member
446 smsm->num_entries = SMSM_DEFAULT_NUM_ENTRIES; in smsm_get_size_info()
451 smsm->num_entries = info->num_entries; in smsm_get_size_info()
456 smsm->num_entries, smsm->num_hosts); in smsm_get_size_info()
484 smsm->num_entries, in qcom_smsm_probe()
519 smsm->num_entries * sizeof(u32)); in qcom_smsm_probe()
533 size = smsm->num_entries * smsm->num_hosts * sizeof(u32); in qcom_smsm_probe()
565 if (ret || id >= smsm->num_entries) { in qcom_smsm_probe()
592 for (id = 0; id < smsm->num_entries; id++) in qcom_smsm_probe()
[all …]
/kernel/linux/linux-5.10/arch/x86/platform/efi/
Dquirks.c250 int num_entries; in efi_arch_mem_reserve() local
272 num_entries = efi_memmap_split_count(&md, &mr.range); in efi_arch_mem_reserve()
273 num_entries += efi.memmap.nr_map; in efi_arch_mem_reserve()
275 if (efi_memmap_alloc(num_entries, &data) != 0) { in efi_arch_mem_reserve()
403 int num_entries = 0; in efi_free_boot_services() local
417 num_entries++; in efi_free_boot_services()
423 num_entries++; in efi_free_boot_services()
457 if (!num_entries) in efi_free_boot_services()
460 if (efi_memmap_alloc(num_entries, &data) != 0) { in efi_free_boot_services()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_nve.c65 unsigned int num_entries; member
301 WARN_ON(mc_record->num_entries); in mlxsw_sp_nve_mc_record_destroy()
313 unsigned int num_entries = mc_record->num_entries; in mlxsw_sp_nve_mc_record_get() local
317 num_entries < nve->num_max_mc_entries[proto]) in mlxsw_sp_nve_mc_record_get()
327 if (mc_record->num_entries != 0) in mlxsw_sp_nve_mc_record_put()
358 unsigned int num_entries = 0; in mlxsw_sp_nve_mc_record_refresh() local
373 next_kvdl_index, mc_record->num_entries); in mlxsw_sp_nve_mc_record_refresh()
383 num_entries++); in mlxsw_sp_nve_mc_record_refresh()
386 WARN_ON(num_entries != mc_record->num_entries); in mlxsw_sp_nve_mc_record_refresh()
439 mc_record->num_entries++; in mlxsw_sp_nve_mc_record_ip_add()
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/
Dunwind_orc.c34 unsigned int num_entries, unsigned long ip) in __orc_find() argument
37 int *last = ip_table + num_entries - 1; in __orc_find()
40 if (!num_entries) in __orc_find()
248 unsigned int num_entries = orc_ip_size / sizeof(int); in unwind_module_init() local
252 num_entries != orc_size / sizeof(*orc)); in unwind_module_init()
262 sort(orc_ip, num_entries, sizeof(int), orc_sort_cmp, orc_sort_swap); in unwind_module_init()
267 mod->arch.num_orcs = num_entries; in unwind_module_init()
275 size_t num_entries = orc_ip_size / sizeof(int); in unwind_init() local
279 if (!num_entries || orc_ip_size % sizeof(int) != 0 || in unwind_init()
281 num_entries != orc_size / sizeof(struct orc_entry)) { in unwind_init()
[all …]
/kernel/linux/linux-5.10/drivers/parisc/
Diosapic.c222 static struct irt_entry *iosapic_alloc_irt(int num_entries) in iosapic_alloc_irt() argument
231 a = (unsigned long)kmalloc(sizeof(struct irt_entry) * num_entries + 8, GFP_KERNEL); in iosapic_alloc_irt()
268 unsigned long num_entries = 0UL; in iosapic_load_irt() local
275 status = pdc_pat_get_irt_size(&num_entries, cell_num); in iosapic_load_irt()
279 BUG_ON(num_entries == 0); in iosapic_load_irt()
287 table = iosapic_alloc_irt(num_entries); in iosapic_load_irt()
308 status = pdc_pci_irt_size(&num_entries, 0); in iosapic_load_irt()
316 BUG_ON(num_entries == 0); in iosapic_load_irt()
318 table = iosapic_alloc_irt(num_entries); in iosapic_load_irt()
326 status = pdc_pci_irt(num_entries, 0, table); in iosapic_load_irt()
[all …]
/kernel/linux/linux-5.10/scripts/
Dsorttable.h134 unsigned int num_entries = *orc_ip_size / sizeof(int); in sort_orctable() local
135 unsigned int orc_size = num_entries * sizeof(struct orc_entry); in sort_orctable()
159 for (i = 0; i < num_entries; i++) { in sort_orctable()
165 qsort(idxs, num_entries, sizeof(int), orc_sort_cmp); in sort_orctable()
167 for (i = 0; i < num_entries; i++) { in sort_orctable()
320 int num_entries = _r(&extab_sec->sh_size) / extable_ent_size; in do_sort() local
321 qsort(extab_image, num_entries, in do_sort()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dsmu7_smumgr.c373 toc->num_entries = 0; in smu7_request_smu_load_fw()
377 UCODE_ID_RLC_G, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
380 UCODE_ID_CP_CE, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
383 UCODE_ID_CP_PFP, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
386 UCODE_ID_CP_ME, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
389 UCODE_ID_CP_MEC, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
392 UCODE_ID_CP_MEC_JT1, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
395 UCODE_ID_CP_MEC_JT2, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
398 UCODE_ID_SDMA0, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
401 UCODE_ID_SDMA1, &toc->entry[toc->num_entries++]), in smu7_request_smu_load_fw()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/aicasm/
Daicasm_symbol.c383 symbol_node_t *regnode, u_int num_entries) in aic_print_reg_dump_end() argument
396 if (num_entries != 0) in aic_print_reg_dump_end()
413 num_entries != 0 ? regnode->symbol->name : "NULL", in aic_print_reg_dump_end()
414 num_entries != 0 ? "_parse_table" : "", in aic_print_reg_dump_end()
415 num_entries, in aic_print_reg_dump_end()
548 int num_entries; in symtable_dump() local
550 num_entries = 0; in symtable_dump()
556 if (num_entries == 0) in symtable_dump()
561 num_entries++; in symtable_dump()
565 curnode, num_entries); in symtable_dump()
/kernel/linux/linux-5.10/arch/riscv/include/asm/
Dmodule.h16 int num_entries; member
40 for (i = 0; i < sec->num_entries; i++) { in get_got_entry()
93 for (i = 0; i < sec->num_entries; i++) { in get_got_plt_idx()
/kernel/linux/linux-5.10/drivers/regulator/
Dti-abb-regulator.c514 int num_entries, min_uV = INT_MAX, max_uV = 0; in ti_abb_init_table() local
522 num_entries = of_property_count_u32_elems(dev->of_node, pname); in ti_abb_init_table()
523 if (num_entries < 0) { in ti_abb_init_table()
525 return num_entries; in ti_abb_init_table()
528 if (!num_entries || (num_entries % num_values)) { in ti_abb_init_table()
533 num_entries /= num_values; in ti_abb_init_table()
535 info = devm_kcalloc(dev, num_entries, sizeof(*info), GFP_KERNEL); in ti_abb_init_table()
541 volt_table = devm_kcalloc(dev, num_entries, sizeof(unsigned int), in ti_abb_init_table()
546 abb->rdesc.n_voltages = num_entries; in ti_abb_init_table()
551 for (i = 0; i < num_entries; i++, info++, volt_table++) { in ti_abb_init_table()
/kernel/linux/linux-5.10/drivers/remoteproc/
Dqcom_pil_info.c24 size_t num_entries; member
59 _reloc.num_entries = (u32)resource_size(&imem) / PIL_RELOC_ENTRY_SIZE; in qcom_pil_info_init()
86 for (i = 0; i < _reloc.num_entries; i++) { in qcom_pil_info_store()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_device.c273 size_t num_entries, size_t user_entry_size) in copy_gid_entries_to_user() argument
284 entries, sizeof(*entries) * num_entries); in copy_gid_entries_to_user()
294 for (i = 0; i < num_entries; i++) { in copy_gid_entries_to_user()
319 ssize_t num_entries; in UVERBS_HANDLER() local
352 num_entries = rdma_query_gid_table(ib_dev, entries, max_entries); in UVERBS_HANDLER()
353 if (num_entries < 0) in UVERBS_HANDLER()
356 ret = copy_gid_entries_to_user(attrs, entries, num_entries, in UVERBS_HANDLER()
363 &num_entries, sizeof(num_entries)); in UVERBS_HANDLER()

12345678910>>...15