Home
last modified time | relevance | path

Searched refs:roundup (Results 1 – 25 of 181) sorted by relevance

12345678

/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c100 + roundup(sizeof (psinfo_t), sizeof (Word)) in setup_note_header()
101 + roundup(sizeof (pstatus_t), sizeof (Word)) in setup_note_header()
102 + roundup(prgetprivsize(), sizeof (Word)) in setup_note_header()
104 + roundup(strlen(platform) + 1, sizeof (Word)) in setup_note_header()
107 + roundup(sizeof (utsname), sizeof (Word)) in setup_note_header()
109 + roundup(sizeof (prsecflags_t), sizeof (Word)) in setup_note_header()
117 roundup(sizeof (psinfo_t), sizeof (Word)); in setup_note_header()
128 roundup(sizeof (prcred_t), sizeof (Word)); in setup_note_header()
143 + nlwp * roundup(size, sizeof (Word)); in setup_note_header()
157 roundup(size, sizeof (Word)); in setup_note_header()
[all …]
H A Dold_notes.c74 + roundup(sizeof (prpsinfo_t), sizeof (Word)) in setup_old_note_header()
75 + roundup(strlen(platform) + 1, sizeof (Word)) in setup_old_note_header()
76 + roundup(__KERN_NAUXV_IMPL * sizeof (aux_entry_t), in setup_old_note_header()
78 + nlwp * roundup(sizeof (prstatus_t), sizeof (Word)); in setup_old_note_header()
81 nlwp * roundup(sizeof (prfpregset_t), sizeof (Word)); in setup_old_note_header()
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbootinfo64.c70 a += roundup(strlen(s) + 1, sizeof(u_int64_t));\
82 a += roundup(sizeof(s), sizeof(u_int64_t)); \
93 a += roundup(mm->md_size, sizeof(u_int64_t));\
182 addr = roundup(addr, PAGE_SIZE); in bi_load64()
203 envp = roundup(addr + size, PAGE_SIZE); in bi_load64()
207 kernend = roundup(addr, PAGE_SIZE); in bi_load64()
H A Dbootinfo32.c68 a += roundup(strlen(s) + 1, sizeof(u_long));\
80 a += roundup(sizeof(s), sizeof(u_long)); \
91 a += roundup(mm->md_size, sizeof(u_long));\
200 addr = roundup(addr, PAGE_SIZE); in bi_load32()
207 addr = roundup(addr, PAGE_SIZE); in bi_load32()
223 kernend = roundup(addr + size, PAGE_SIZE); in bi_load32()
H A Dmultiboot.c67 roundup(METADATA_FIXED_SIZE + METADATA_MODULE_SIZE * mod_num, PAGE_SIZE)
226 last_addr = roundup(last_addr + n, MULTIBOOT_INFO_ALIGN); in mb_malloc()
252 last_addr = roundup(mfp->f_addr + mfp->f_size, MULTIBOOT_MOD_ALIGN); in multiboot_exec()
306 last_addr += roundup(sizeof(*mb_mod) * num, MULTIBOOT_INFO_ALIGN); in multiboot_exec()
465 rfp->f_size = roundup(rfp->f_size, PAGE_SIZE); in multiboot_obj_loadfile()
513 rfp->f_size = roundup(rfp->f_size, PAGE_SIZE); in multiboot_obj_loadfile()
/illumos-gate/usr/src/uts/sun4/os/
H A Dstartup.c1112 alloc_base = (caddr_t)roundup((uintptr_t)alloc_base, in startup_memlist()
1156 psetable_sz = roundup( in startup_memlist()
1165 kmem64_sz = roundup(kmem64_sz, PAGESIZE); in startup_memlist()
1192 pp_sz = roundup(pp_sz, PAGESIZE); in startup_memlist()
1354 memlist_sz = roundup(memlist_sz, PAGESIZE); in startup_memlist()
1625 hme8blk_sz = roundup(HME8BLK_SZ, sizeof (int64_t)); in startup_modules()
1626 hme1blk_sz = roundup(HME1BLK_SZ, sizeof (int64_t)); in startup_modules()
1654 nhblksz = roundup(nhblksz, MMU_PAGESIZE); in startup_modules()
2012 segziosize = mmu_btop(roundup(size, MMU_PAGESIZE)); in startup_vm()
2436 memseg_sz = roundup(memseg_sz, PAGESIZE); in ndata_alloc_memseg()
[all …]
H A Dmemnode.c80 end = roundup(end, btop(mem_node_physalign)) - 1; in mem_node_add_slice()
126 end = roundup(end, btop(mem_node_physalign)) - 1; in mem_node_del_slice()
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c355 size += roundup(sizeof (shstr), SH_ADDRALIGN); in fake_elf64()
397 size += roundup(d[DI_STRSZ]->d_un.d_val, SH_ADDRALIGN); in fake_elf64()
401 size += roundup(phdr->p_filesz, SH_ADDRALIGN); in fake_elf64()
443 size += roundup(pltsz, SH_ADDRALIGN); in fake_elf64()
505 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
560 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
584 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
604 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
711 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
/illumos-gate/usr/src/boot/efi/loader/
H A Dbootinfo.c177 a += roundup(strlen(s) + 1, sizeof (ulong_t)); \
189 a += roundup(sizeof (s), sizeof (ulong_t)); \
200 a += roundup(mm->md_size, sizeof (ulong_t)); \
394 addr = roundup(addr, PAGE_SIZE); in bi_load()
401 addr = roundup(addr, PAGE_SIZE); in bi_load()
410 addr += roundup(dtb_size, PAGE_SIZE); in bi_load()
436 kernend = roundup(addr + size, PAGE_SIZE); in bi_load()
H A Dcopy.c52 roundup((uintptr_t)module + module->mb_size, MULTIBOOT_TAG_ALIGN)) { in addr_verify()
141 roundup((uintptr_t)mp + mp->mb_size, MULTIBOOT_TAG_ALIGN); in efi_physaddr()
/illumos-gate/usr/src/boot/libsa/
H A Dnfs.c218 len = sizeof (uint32_t) + roundup(len, sizeof (uint32_t)); in nfs_getrootfh()
283 pos = roundup(d->fhsize, sizeof (uint32_t)) / sizeof (uint32_t); in nfs_lookupfh()
287 roundup(len, sizeof (uint32_t)); in nfs_lookupfh()
306 pos = roundup(newfd->fhsize, sizeof (uint32_t)) / sizeof (uint32_t); in nfs_lookupfh()
352 args, sizeof (uint32_t) + roundup(d->fhsize, sizeof (uint32_t)), in nfs_readlink()
419 pos = roundup(d->fhsize, sizeof (uint32_t)) / sizeof (uint32_t); in nfs_readdata()
428 args, 4 * sizeof (uint32_t) + roundup(d->fhsize, sizeof (uint32_t)), in nfs_readdata()
786 pos = roundup(fp->fhsize, in nfs_readdir()
796 roundup(fp->fhsize, sizeof (uint32_t)), in nfs_readdir()
828 pos = roundup(d->d_namlen, sizeof (uint32_t)) / sizeof (uint32_t); in nfs_readdir()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dnblk.c69 roundup(size, frsize) : in nblk()
70 roundup(size, bsize); in nblk()
/illumos-gate/usr/src/psm/stand/bootlst/common/
H A Dsasubr.c49 next = (caddr_t)roundup((uintptr_t)&_end, MINALLOC); in bkmem_alloc()
51 next += roundup(s, MINALLOC); in bkmem_alloc()
/illumos-gate/usr/src/stand/lib/sa/
H A Dmemlist.c77 tablep = (caddr_t)roundup((uintptr_t)tablep, 8); in getlink()
83 n = roundup(n, 8); in getlink()
/illumos-gate/usr/src/uts/sun4/vm/
H A Dsfmmu.c458 translen = roundup(translen, MMU_PAGESIZE); in read_prom_mappings()
491 base = roundup(base, ecache_alignsize); in ndata_alloc_init()
547 base = roundup(ndata->ml_address, alignment); in ndata_extra_base()
609 base = roundup(frlist->ml_address, alignment); in ndata_select_chunk()
610 end = roundup(base + wanted, ecache_alignsize); in ndata_select_chunk()
676 base = roundup(found->ml_address, alignment); in ndata_alloc()
677 end = roundup(base + wanted, ecache_alignsize); in ndata_alloc()
984 ktsb_base = (caddr_t)roundup((uintptr_t)tsbbase, ktsb_sz); in sfmmu_ktsb_alloc()
997 ktsb4m_base = (caddr_t)roundup((uintptr_t)tsbbase, ktsb4m_sz); in sfmmu_ktsb_alloc()
/illumos-gate/usr/src/boot/common/
H A Dload_elf_obj.c143 dest = roundup(dest, PAGE_SIZE); in __elfN()
224 lastaddr = roundup(lastaddr, shdr[i].sh_addralign); in __elfN()
248 lastaddr = roundup(lastaddr, shdr[ef->symtabindex].sh_addralign); in __elfN()
259 lastaddr = roundup(lastaddr, shdr[symstrindex].sh_addralign); in __elfN()
271 lastaddr = roundup(lastaddr, shdr[ef->shstrindex].sh_addralign); in __elfN()
280 lastaddr = roundup(lastaddr, shdr[i].sh_addralign); in __elfN()
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootops.c232 size = roundup(size, MAX(align, 8)); in bop_temp_alloc()
240 size = roundup(size, PAGESIZE); in bop_temp_alloc()
609 prom_free((caddr_t)(uintptr_t)eadr, roundup(esize, PAGESIZE)); in bop_free_elf()
611 prom_free((caddr_t)(uintptr_t)dynseg, roundup(dynsize, PAGESIZE)); in bop_free_elf()
/illumos-gate/usr/src/boot/efi/loader/arch/i386/
H A Dbootinfo.c149 a += roundup(strlen(s) + 1, sizeof(u_int64_t));\
160 a += roundup(sizeof(s), sizeof(u_int64_t)); \
170 a += roundup(mm->md_size, sizeof(u_int64_t));\
/illumos-gate/usr/src/uts/common/io/
H A Dksyms.c183 size_t sz, rlen = roundup(size, PAGESIZE); in ksyms_mapin()
261 (void) as_unmap(curproc->p_as, addr, roundup(realsize, PAGESIZE)); in ksyms_open()
272 roundup(ksyms_clones[clone].ksyms_size, PAGESIZE)); in ksyms_close()
351 rlen = roundup(len, PAGESIZE); in ksyms_segmap()
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c350 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf32()
356 offset += sizeof (Elf32_Nhdr) + roundup(nhdr->n_namesz, in read_elf32()
357 4) + roundup(nhdr->n_descsz, 4); in read_elf32()
417 size = roundup(phdr->p_memsz + off, in read_elf32()
725 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf64()
731 offset += sizeof (Elf64_Nhdr) + roundup(nhdr->n_namesz, in read_elf64()
732 4) + roundup(nhdr->n_descsz, 4); in read_elf64()
799 size = roundup(phdr->p_memsz + off, in read_elf64()
1297 pva = (caddr_t)roundup((uintptr_t)*spp, alloc_pagesize); in segbrk()
1302 size = roundup((bytes - (pva - va)), alloc_pagesize); in segbrk()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_buf.c87 size_t adj = roundup(off, align) - off; in dt_buf_write()
140 return (roundup(off, align)); in dt_buf_offset()
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dsun4x_standalloc.c248 bytes = roundup(bytes, pagesize); in resalloc()
307 memlistpage = (caddr_t)roundup((uintptr_t)_end, pagesize); in reset_alloc()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmemnode.c83 end = roundup(end, btop(mem_node_physalign)) - 1; in mem_node_add_slice()
130 end = roundup(end, btop(mem_node_physalign)) - 1; in mem_node_del_slice()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_trans.c690 niblk += roundup(n3blk * sizeof (daddr_t), bsize) / bsize + 1; in ufs_log_amt()
691 nl2ptr = roundup(niblk, fni) / fni + 1; in ufs_log_amt()
692 niblk += roundup(nl2ptr * sizeof (daddr_t), bsize) / bsize + 2; in ufs_log_amt()
706 niblk += roundup(n2blk * sizeof (daddr_t), bsize) / bsize + 2; in ufs_log_amt()
781 nchunks = roundup(resv, ufs_trans_max_resv) / in ufs_trans_trunc_resv()
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dparam.h44 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ macro

12345678