Home
last modified time | relevance | path

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

12345678910>>...27

/kernel/linux/linux-4.19/drivers/char/agp/
Dsgi-agp.c105 sgi_tioca_sizes[0].num_entries = info->ca_gfxgart_entries; in sgi_tioca_fetch_size()
130 int num_entries; in sgi_tioca_insert_memory() local
147 num_entries = A_SIZE_8(temp)->num_entries; in sgi_tioca_insert_memory()
150 num_entries = A_SIZE_16(temp)->num_entries; in sgi_tioca_insert_memory()
153 num_entries = A_SIZE_32(temp)->num_entries; in sgi_tioca_insert_memory()
156 num_entries = A_SIZE_FIX(temp)->num_entries; in sgi_tioca_insert_memory()
161 num_entries = 0; in sgi_tioca_insert_memory()
165 num_entries -= agp_memory_reserved / PAGE_SIZE; in sgi_tioca_insert_memory()
166 if (num_entries < 0) in sgi_tioca_insert_memory()
167 num_entries = 0; in sgi_tioca_insert_memory()
[all …]
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.c199 int num_entries, l1_pages; in efficeon_create_gatt_table() local
201 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_create_gatt_table()
203 printk(KERN_DEBUG PFX "efficeon_create_gatt_table(%d)\n", num_entries); in efficeon_create_gatt_table()
206 BUG_ON(num_entries & 0x3ff); in efficeon_create_gatt_table()
207 l1_pages = num_entries >> 10; in efficeon_create_gatt_table()
240 int i, count = mem->page_count, num_entries; in efficeon_insert_memory() local
247 num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries; in efficeon_insert_memory()
248 if ((pg_start + mem->page_count) > num_entries) in efficeon_insert_memory()
289 int i, count = mem->page_count, num_entries; in efficeon_remove_memory() local
293 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()
/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 …]
/kernel/linux/linux-4.19/arch/riscv/kernel/
Dmodule-sections.c15 int i = got_sec->num_entries; in module_emit_got_entry()
25 got_sec->num_entries++; in module_emit_got_entry()
26 BUG_ON(got_sec->num_entries > got_sec->max_entries); in module_emit_got_entry()
37 int i = plt_sec->num_entries; in module_emit_plt_entry()
48 plt_sec->num_entries++; in module_emit_plt_entry()
49 got_plt_sec->num_entries++; in module_emit_plt_entry()
50 BUG_ON(plt_sec->num_entries > plt_sec->max_entries); in module_emit_plt_entry()
139 mod->arch.plt.num_entries = 0; in module_frob_arch_sections()
146 mod->arch.got.num_entries = 0; in module_frob_arch_sections()
153 mod->arch.got_plt.num_entries = 0; in module_frob_arch_sections()
/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-4.19/arch/x86/platform/efi/
Dquirks.c248 int num_entries; in efi_arch_mem_reserve() local
270 num_entries = efi_memmap_split_count(&md, &mr.range); in efi_arch_mem_reserve()
271 num_entries += efi.memmap.nr_map; in efi_arch_mem_reserve()
273 new_size = efi.memmap.desc_size * num_entries; in efi_arch_mem_reserve()
275 new_phys = efi_memmap_alloc(num_entries); in efi_arch_mem_reserve()
290 efi_memmap_install(new_phys, num_entries); in efi_arch_mem_reserve()
374 int num_entries = 0; in efi_free_boot_services() local
384 num_entries++; in efi_free_boot_services()
390 num_entries++; in efi_free_boot_services()
417 if (!num_entries) in efi_free_boot_services()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_shared_buf.c111 unsigned int i, num_entries, entry_sz; in nfp_shared_buf_register() local
122 num_entries = n; in nfp_shared_buf_register()
125 num_entries * sizeof(pf->shared_bufs[0]), in nfp_shared_buf_register()
130 entry_sz = nfp_cpp_area_size(sb_desc_area) / num_entries; in nfp_shared_buf_register()
132 pf->shared_bufs = kmalloc_array(num_entries, sizeof(pf->shared_bufs[0]), in nfp_shared_buf_register()
139 for (i = 0; i < num_entries; i++) { in nfp_shared_buf_register()
155 pf->num_shared_bufs = num_entries; in nfp_shared_buf_register()
/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 unsigned 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 unsigned 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-4.19/drivers/iommu/
Dio-pgtable-arm-v7s.c262 static void __arm_v7s_pte_sync(arm_v7s_iopte *ptep, int num_entries, in __arm_v7s_pte_sync() argument
269 num_entries * sizeof(*ptep), DMA_TO_DEVICE); in __arm_v7s_pte_sync()
272 int num_entries, struct io_pgtable_cfg *cfg) in __arm_v7s_set_pte() argument
276 for (i = 0; i < num_entries; i++) in __arm_v7s_set_pte()
279 __arm_v7s_pte_sync(ptep, num_entries, cfg); in __arm_v7s_set_pte()
382 int lvl, int num_entries, arm_v7s_iopte *ptep) in arm_v7s_init_pte() argument
388 for (i = 0; i < num_entries; i++) in arm_v7s_init_pte()
408 if (num_entries > 1) in arm_v7s_init_pte()
413 __arm_v7s_set_pte(ptep, pte, num_entries, cfg); in arm_v7s_init_pte()
447 int num_entries = size >> ARM_V7S_LVL_SHIFT(lvl); in __arm_v7s_map() local
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bo_list.h50 unsigned num_entries; member
64 unsigned num_entries,
77 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
82 e != amdgpu_bo_list_array_entry(list, (list)->num_entries); \
Damdgpu_bo_list.c60 unsigned num_entries, struct amdgpu_bo_list **result) in amdgpu_bo_list_create() argument
62 unsigned last_entry = 0, first_userptr = num_entries; in amdgpu_bo_list_create()
70 if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list)) in amdgpu_bo_list_create()
75 size += num_entries * sizeof(struct amdgpu_bo_list_entry); in amdgpu_bo_list_create()
86 memset(array, 0, num_entries * sizeof(struct amdgpu_bo_list_entry)); in amdgpu_bo_list_create()
88 for (i = 0; i < num_entries; ++i) { in amdgpu_bo_list_create()
133 list->num_entries = num_entries; in amdgpu_bo_list_create()
135 trace_amdgpu_cs_bo_status(list->num_entries, total_size); in amdgpu_bo_list_create()
/kernel/linux/linux-5.10/drivers/iommu/
Dio-pgtable-arm-v7s.c294 static void __arm_v7s_pte_sync(arm_v7s_iopte *ptep, int num_entries, in __arm_v7s_pte_sync() argument
301 num_entries * sizeof(*ptep), DMA_TO_DEVICE); in __arm_v7s_pte_sync()
304 int num_entries, struct io_pgtable_cfg *cfg) in __arm_v7s_set_pte() argument
308 for (i = 0; i < num_entries; i++) in __arm_v7s_set_pte()
311 __arm_v7s_pte_sync(ptep, num_entries, cfg); in __arm_v7s_set_pte()
412 int lvl, int num_entries, arm_v7s_iopte *ptep) in arm_v7s_init_pte() argument
418 for (i = 0; i < num_entries; i++) in arm_v7s_init_pte()
438 if (num_entries > 1) in arm_v7s_init_pte()
443 __arm_v7s_set_pte(ptep, pte, num_entries, cfg); in arm_v7s_init_pte()
477 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-4.19/arch/x86/kernel/
Dunwind_orc.c30 unsigned int num_entries, unsigned long ip) in __orc_find() argument
33 int *last = ip_table + num_entries - 1; in __orc_find()
36 if (!num_entries) in __orc_find()
224 unsigned int num_entries = orc_ip_size / sizeof(int); in unwind_module_init() local
228 num_entries != orc_size / sizeof(*orc)); in unwind_module_init()
238 sort(orc_ip, num_entries, sizeof(int), orc_sort_cmp, orc_sort_swap); in unwind_module_init()
243 mod->arch.num_orcs = num_entries; in unwind_module_init()
251 size_t num_entries = orc_ip_size / sizeof(int); in unwind_init() local
255 if (!num_entries || orc_ip_size % sizeof(int) != 0 || in unwind_init()
257 num_entries != orc_size / sizeof(struct orc_entry)) { in unwind_init()
[all …]
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dsmsm.c81 u32 num_entries; member
433 u32 num_entries; in smsm_get_size_info() member
445 smsm->num_entries = SMSM_DEFAULT_NUM_ENTRIES; in smsm_get_size_info()
450 smsm->num_entries = info->num_entries; in smsm_get_size_info()
455 smsm->num_entries, smsm->num_hosts); in smsm_get_size_info()
483 smsm->num_entries, in qcom_smsm_probe()
518 smsm->num_entries * sizeof(u32)); in qcom_smsm_probe()
531 size = smsm->num_entries * smsm->num_hosts * sizeof(u32); in qcom_smsm_probe()
561 if (ret || id >= smsm->num_entries) { in qcom_smsm_probe()
586 for (id = 0; id < smsm->num_entries; id++) in qcom_smsm_probe()
[all …]
/kernel/linux/linux-4.19/drivers/soc/qcom/
Dsmsm.c89 u32 num_entries; member
436 u32 num_entries; in smsm_get_size_info() member
448 smsm->num_entries = SMSM_DEFAULT_NUM_ENTRIES; in smsm_get_size_info()
453 smsm->num_entries = info->num_entries; in smsm_get_size_info()
458 smsm->num_entries, smsm->num_hosts); in smsm_get_size_info()
486 smsm->num_entries, in qcom_smsm_probe()
521 smsm->num_entries * sizeof(u32)); in qcom_smsm_probe()
534 size = smsm->num_entries * smsm->num_hosts * sizeof(u32); in qcom_smsm_probe()
564 if (ret || id >= smsm->num_entries) { in qcom_smsm_probe()
589 for (id = 0; id < smsm->num_entries; id++) in qcom_smsm_probe()
[all …]

12345678910>>...27