| /arch/s390/include/asm/ |
| A D | ftrace.lds.h | 2 #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 D | pmic-cpcap.c | 47 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 D | omap_twl.c | 51 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 D | sme.c | 266 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 D | map_kernel.c | 179 for (i = 0; i < DIV_ROUND_UP(va_end - va_text, PMD_SIZE); i++) { in __startup_64()
|
| /arch/x86/mm/ |
| A D | kaslr.c | 113 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 D | bootinfo.h | 27 #define NR_WORDS DIV_ROUND_UP(NR_CPUS, BITS_PER_LONG)
|
| /arch/x86/include/asm/ |
| A D | pgtable_32_areas.h | 27 #define CPU_ENTRY_AREA_PAGES (NR_CPUS * DIV_ROUND_UP(sizeof(struct cpu_entry_area), PAGE_SIZE))
|
| /arch/arm64/include/asm/ |
| A D | kvm_pkvm.h | 90 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 D | fixmap.h | 46 FIX_FDT = FIX_FDT_END + DIV_ROUND_UP(MAX_FDT_SIZE, PAGE_SIZE) + 1,
|
| /arch/m68k/include/asm/ |
| A D | delay.h | 118 __delay(DIV_ROUND_UP(nsec * in ndelay()
|
| /arch/arm/include/asm/ |
| A D | kprobes.h | 66 #define MAX_COPIED_INSN DIV_ROUND_UP(RELATIVEJUMP_SIZE, sizeof(kprobe_opcode_t))
|
| /arch/arm/mach-pxa/ |
| A D | irq.c | 185 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 D | am200epd.c | 247 am200_fb_info.modes->yres = DIV_ROUND_UP(totalsize, fw); in am200_presetup_fb()
|
| /arch/arm64/kvm/ |
| A D | trng.c | 36 for (i = 0; i < DIV_ROUND_UP(num_bits, BITS_PER_LONG); i++) in kvm_trng_do_rnd()
|
| /arch/loongarch/lib/ |
| A D | dump_tlb.c | 38 int asidwidth = DIV_ROUND_UP(ilog2(asidmask) + 1, 4); in dump_tlb()
|
| /arch/s390/kernel/ |
| A D | perf_cpum_sf.c | 359 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 D | aes-ce-glue.c | 269 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 D | opal-core.c | 102 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 D | dump_tlb.c | 73 int asidwidth = DIV_ROUND_UP(ilog2(asidmask) + 1, 4); in dump_tlb()
|
| /arch/x86/kernel/ |
| A D | ftrace.c | 349 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 D | espfix_64.c | 62 #define ESPFIX_MAX_PAGES DIV_ROUND_UP(CONFIG_NR_CPUS, ESPFIX_STACKS_PER_PAGE)
|
| A D | ldt.c | 309 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 D | cache.c | 213 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 D | tlbflush.c | 43 unsigned long nr_ptes_in_range = DIV_ROUND_UP(size, stride); in local_flush_tlb_range_threshold_asid()
|