Home
last modified time | relevance | path

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

12345678

/titanic_41/usr/src/uts/common/exec/elf/
H A Delf_notes.c98 + roundup(sizeof (psinfo_t), sizeof (Word)) in setup_note_header()
99 + roundup(sizeof (pstatus_t), sizeof (Word)) in setup_note_header()
100 + roundup(prgetprivsize(), sizeof (Word)) in setup_note_header()
101 + roundup(priv_get_implinfo_size(), sizeof (Word)) in setup_note_header()
102 + roundup(strlen(platform) + 1, sizeof (Word)) in setup_note_header()
103 + roundup(strlen(p->p_zone->zone_name) + 1, sizeof (Word)) in setup_note_header()
104 + roundup(__KERN_NAUXV_IMPL * sizeof (aux_entry_t), sizeof (Word)) in setup_note_header()
105 + roundup(sizeof (utsname), sizeof (Word)) in setup_note_header()
106 + roundup(sizeof (core_content_t), sizeof (Word)) in setup_note_header()
107 + (nlwp + nzomb) * roundup(sizeof (lwpsinfo_t), sizeof (Word)) in setup_note_header()
[all …]
H A Dold_notes.c71 + roundup(sizeof (prpsinfo_t), sizeof (Word)) in setup_old_note_header()
72 + roundup(strlen(platform) + 1, sizeof (Word)) in setup_old_note_header()
73 + roundup(__KERN_NAUXV_IMPL * sizeof (aux_entry_t), in setup_old_note_header()
75 + nlwp * roundup(sizeof (prstatus_t), sizeof (Word)); in setup_old_note_header()
78 + nlwp*roundup(sizeof (prfpregset_t), sizeof (Word)); in setup_old_note_header()
81 + nlwp * roundup(size, sizeof (Word)); in setup_old_note_header()
95 roundup(size, sizeof (Word)); in setup_old_note_header()
/titanic_41/usr/src/uts/sun4/os/
H A Dstartup.c804 aligned_end = (caddr_t)roundup((uintptr_t)end, alignsize); in alloc_kmem64()
996 moddata = (caddr_t)roundup((uintptr_t)e_data, MMU_PAGESIZE); in startup_memlist()
1000 nalloc_end = (caddr_t)roundup((uintptr_t)nalloc_base, MMU_PAGESIZE4M); in startup_memlist()
1017 modtext = (caddr_t)roundup((uintptr_t)e_text, MMU_PAGESIZE); in startup_memlist()
1020 modtext_sz = (caddr_t)roundup((uintptr_t)modtext, MMU_PAGESIZE4M) - in startup_memlist()
1089 alloc_base = (caddr_t)roundup((uintptr_t)nalloc_end, MMU_PAGESIZE); in startup_memlist()
1093 alloc_base = (caddr_t)roundup((uintptr_t)alloc_base, ecache_alignsize); in startup_memlist()
1101 alloc_base = (caddr_t)roundup((uintptr_t)alloc_base, ecache_alignsize); in startup_memlist()
1116 alloc_base = (caddr_t)roundup((uintptr_t)alloc_base, in startup_memlist()
1160 psetable_sz = roundup( in startup_memlist()
[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()
/titanic_41/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c350 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()
503 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
558 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
582 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
602 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
703 off += roundup(sp->sh_size, SH_ADDRALIGN); in fake_elf64()
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dmallopt.c58 __mallinfo.grain = roundup(value, ALIGNSIZ); in mallopt()
69 __mallinfo.mxfast = roundup(__mallinfo.mxfast, __mallinfo.grain); in mallopt()
H A Dmemalign.c83 nbytes = roundup(nbytes, ALIGNSIZ);
99 x = roundup((uint)p, align); /* ccom work-around */
H A Ddouble_decim.c57 goto roundup; in decimal_round()
59 goto roundup; in decimal_round()
66 goto roundup; in decimal_round()
70 goto roundup; in decimal_round()
74 goto roundup; in decimal_round()
78 roundup: in decimal_round()
H A Dmallint.h109 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
/titanic_41/usr/src/cmd/svr4pkg/libinst/
H A Dnblk.c69 roundup(size, frsize) : in nblk()
70 roundup(size, bsize); in nblk()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/lib/libbc/inc/include/sys/
H A Dparam.h189 #define roundup(x, y) ((((u_int)(x)+((u_int)(y)-1))/(u_int)(y))*(u_int)(y)) macro
192 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
/titanic_41/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()
/titanic_41/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()
603 prom_free((caddr_t)(uintptr_t)eadr, roundup(esize, PAGESIZE)); in bop_free_elf()
605 prom_free((caddr_t)(uintptr_t)dynseg, roundup(dynsize, PAGESIZE)); in bop_free_elf()
/titanic_41/usr/src/common/lvm/
H A Dmd_convert.c139 first_comp = roundup(first_comp, sizeof (long long)); in get_big_stripe_req_size()
172 first_comp = roundup(first_comp, sizeof (long long)); in get_small_stripe_req_size()
314 roundup(sizeof (mm_unit32_od_t), sizeof (long long)); in mirror_convert()
342 roundup(sizeof (mm_unit_t), sizeof (long long)); in mirror_convert()
497 roundup(sizeof (mt_unit_t), sizeof (long long)); in trans_master_convert()
526 roundup(sizeof (mt_unit32_od_t), sizeof (long long)); in trans_master_convert()
/titanic_41/usr/src/psm/stand/bootblks/common/
H A Dutil.fth35 : roundup ( x y -- x' ) 1- tuck + swap invert and ;
169 swap h# 2000 roundup swap
174 h# 2000 roundup
179 h# 2000 roundup
/titanic_41/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()
/titanic_41/usr/src/psm/stand/boot/common/
H A Dreadfile.c422 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf32()
428 offset += sizeof (Elf32_Nhdr) + roundup(nhdr->n_namesz, in read_elf32()
429 4) + roundup(nhdr->n_descsz, 4); in read_elf32()
489 size = roundup(phdr->p_memsz + off, in read_elf32()
823 descp = namep + roundup(nhdr->n_namesz, 4); in read_elf64()
829 offset += sizeof (Elf64_Nhdr) + roundup(nhdr->n_namesz, in read_elf64()
830 4) + roundup(nhdr->n_descsz, 4); in read_elf64()
903 size = roundup(phdr->p_memsz + off, in read_elf64()
1440 pva = (caddr_t)roundup((uintptr_t)*spp, alloc_pagesize);
1445 size = roundup((bytes - (pva - va)), alloc_pagesize);
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_buf.c89 size_t adj = roundup(off, align) - off; in dt_buf_write()
142 return (roundup(off, align)); in dt_buf_offset()
/titanic_41/usr/src/psm/stand/boot/sparc/common/
H A Dsun4x_standalloc.c250 bytes = roundup(bytes, pagesize); in resalloc()
309 memlistpage = (caddr_t)roundup((uintptr_t)_end, pagesize); in reset_alloc()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dbuffer.c128 newlen = roundup(buffer->alloc + len, BUFFER_ALLOCSZ); in buffer_append_space()
154 if (roundup(buffer->alloc + len, BUFFER_ALLOCSZ) <= BUFFER_MAX_LEN) in buffer_check_alloc()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/uts/common/sys/scsi/impl/
H A Dsense.h61 (roundup(sizeof (struct scsi_extended_sense), sizeof (int)))

12345678