Home
last modified time | relevance | path

Searched refs:DIV_ROUND_UP (Results 1 – 25 of 54) sorted by relevance

123

/arch/s390/include/asm/
A Dftrace.lds.h2 #ifndef DIV_ROUND_UP
3 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
9 DIV_ROUND_UP(SIZEOF_FTRACE_HOTPATCH_TRAMPOLINE * (n), \
/arch/arm/mach-omap2/
A Dpmic-cpcap.c47 return DIV_ROUND_UP(uv - 600000, 12500); in omap_cpcap_uv_to_vsel()
111 return DIV_ROUND_UP(uv - 770000, 10000); in omap_max8952_uv_to_vsel()
179 vsel = DIV_ROUND_UP(uv - 750000, 12500); in omap_fan535503_uv_to_vsel()
198 vsel = DIV_ROUND_UP(uv - 750000, 12500); in omap_fan535508_uv_to_vsel()
A Domap_twl.c51 return DIV_ROUND_UP(uv - 600000, 12500); in twl4030_uv_to_vsel()
122 return DIV_ROUND_UP(uv - 709000, 12660) + 1; in twl6030_uv_to_vsel()
124 return DIV_ROUND_UP(uv - 607700, 12660) + 1; in twl6030_uv_to_vsel()
/arch/x86/boot/startup/
A Dsme.c266 entries += (DIV_ROUND_UP(len, PGDIR_SIZE) + 1) * sizeof(p4d_t) * PTRS_PER_P4D; in sme_pgtable_calc()
267 entries += (DIV_ROUND_UP(len, P4D_SIZE) + 1) * sizeof(pud_t) * PTRS_PER_PUD; in sme_pgtable_calc()
268 entries += (DIV_ROUND_UP(len, PUD_SIZE) + 1) * sizeof(pmd_t) * PTRS_PER_PMD; in sme_pgtable_calc()
277 tables += DIV_ROUND_UP(entries, PGDIR_SIZE) * sizeof(p4d_t) * PTRS_PER_P4D; in sme_pgtable_calc()
278 tables += DIV_ROUND_UP(entries, P4D_SIZE) * sizeof(pud_t) * PTRS_PER_PUD; in sme_pgtable_calc()
279 tables += DIV_ROUND_UP(entries, PUD_SIZE) * sizeof(pmd_t) * PTRS_PER_PMD; in sme_pgtable_calc()
A Dmap_kernel.c179 for (i = 0; i < DIV_ROUND_UP(va_end - va_text, PMD_SIZE); i++) { in __startup_64()
/arch/x86/mm/
A Dkaslr.c113 memory_tb = DIV_ROUND_UP(max_pfn << PAGE_SHIFT, 1UL << TB_SHIFT) + in kernel_randomize_memory()
132 kaslr_regions[2].size_tb = DIV_ROUND_UP(vmemmap_size, 1UL << TB_SHIFT); in kernel_randomize_memory()
/arch/loongarch/include/asm/
A Dbootinfo.h27 #define NR_WORDS DIV_ROUND_UP(NR_CPUS, BITS_PER_LONG)
/arch/x86/include/asm/
A Dpgtable_32_areas.h27 #define CPU_ENTRY_AREA_PAGES (NR_CPUS * DIV_ROUND_UP(sizeof(struct cpu_entry_area), PAGE_SIZE))
/arch/arm64/include/asm/
A Dkvm_pkvm.h90 nr_pages = DIV_ROUND_UP(nr_pages, PTRS_PER_PTE); in __hyp_pgtable_max_pages()
160 return (2 * KVM_FFA_MBOX_NR_PAGES) + DIV_ROUND_UP(desc_max, PAGE_SIZE); in hyp_ffa_proxy_pages()
A Dfixmap.h46 FIX_FDT = FIX_FDT_END + DIV_ROUND_UP(MAX_FDT_SIZE, PAGE_SIZE) + 1,
/arch/m68k/include/asm/
A Ddelay.h118 __delay(DIV_ROUND_UP(nsec * in ndelay()
/arch/arm/include/asm/
A Dkprobes.h66 #define MAX_COPIED_INSN DIV_ROUND_UP(RELATIVEJUMP_SIZE, sizeof(kprobe_opcode_t))
/arch/arm/mach-pxa/
A Dirq.c185 for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) { in pxa_irq_suspend()
204 for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) { in pxa_irq_resume()
A Dam200epd.c247 am200_fb_info.modes->yres = DIV_ROUND_UP(totalsize, fw); in am200_presetup_fb()
/arch/arm64/kvm/
A Dtrng.c36 for (i = 0; i < DIV_ROUND_UP(num_bits, BITS_PER_LONG); i++) in kvm_trng_do_rnd()
/arch/loongarch/lib/
A Ddump_tlb.c38 int asidwidth = DIV_ROUND_UP(ilog2(asidmask) + 1, 4); in dump_tlb()
/arch/s390/kernel/
A Dperf_cpum_sf.c359 CPUM_SF_SDB_DIAG_FACTOR = DIV_ROUND_UP(si.dsdes, si.bsdes); in sfb_set_limits()
432 n_sdb = CPUM_SF_MIN_SDB + DIV_ROUND_UP(freq, 10000); in allocate_buffers()
453 return min_t(unsigned long, min, DIV_ROUND_UP(percent * base, 100)); in min_percent()
494 ratio = DIV_ROUND_UP(100 * OVERFLOW_REG(hwc) * cpuhw->sfb.num_sdb, in sfb_account_overflows()
1240 OVERFLOW_REG(hwc) = DIV_ROUND_UP(OVERFLOW_REG(hwc) + in hw_perf_event_update()
1252 SAMPL_RATE(hwc) += DIV_ROUND_UP(SAMPL_RATE(hwc), 10); in hw_perf_event_update()
1619 n_sdbt = DIV_ROUND_UP(nr_pages, CPUM_SF_SDB_PER_TABLE); in aux_buffer_setup()
/arch/arm/crypto/
A Daes-ce-glue.c269 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt()
327 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt()
436 int xts_blocks = DIV_ROUND_UP(req->cryptlen, in xts_encrypt()
508 int xts_blocks = DIV_ROUND_UP(req->cryptlen, in xts_decrypt()
/arch/powerpc/platforms/powernv/
A Dopal-core.c102 buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf64_Word)); in append_elf64_note()
104 buf += DIV_ROUND_UP(namesz, sizeof(Elf64_Word)); in append_elf64_note()
106 buf += DIV_ROUND_UP(data_len, sizeof(Elf64_Word)); in append_elf64_note()
/arch/mips/lib/
A Ddump_tlb.c73 int asidwidth = DIV_ROUND_UP(ilog2(asidmask) + 1, 4); in dump_tlb()
/arch/x86/kernel/
A Dftrace.c349 npages = DIV_ROUND_UP(*tramp_size, PAGE_SIZE); in create_trampoline()
444 npages = DIV_ROUND_UP(size, PAGE_SIZE); in set_ftrace_ops_ro()
A Despfix_64.c62 #define ESPFIX_MAX_PAGES DIV_ROUND_UP(CONFIG_NR_CPUS, ESPFIX_STACKS_PER_PAGE)
A Dldt.c309 nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); in map_ldt_struct()
361 nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); in unmap_ldt_struct()
/arch/arc/mm/
A Dcache.c213 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v3()
272 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v4()
643 num_lines = DIV_ROUND_UP(sz, l2_line_sz); in slc_op_line()
/arch/riscv/mm/
A Dtlbflush.c43 unsigned long nr_ptes_in_range = DIV_ROUND_UP(size, stride); in local_flush_tlb_range_threshold_asid()

Completed in 49 milliseconds

123