OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:roundup2
(Results
1 - 25
of
61
) sorted by relevancy
1
2
3
/src/lib/libc/tls/
tls.c
93
tls_allocation =
roundup2
(tls_size, alignof(max_align_t));
163
tls_size =
roundup2
(phdr->p_memsz, phdr->p_align);
/src/sys/fs/tmpfs/
tmpfs_mem.c
212
const size_t sz =
roundup2
(len, TMPFS_NAME_QUANTUM);
224
const size_t sz =
roundup2
(len, TMPFS_NAME_QUANTUM);
/src/sys/uvm/
uvm_pglist.c
142
candidate =
roundup2
(ulmax(low, uvm_physseg_get_avail_start(psi) +
166
candidate =
roundup2
(ulmax(low, uvm_physseg_get_avail_start(psi)), alignment);
179
candidate =
roundup2
(candidate, alignment);
264
cnt =
roundup2
(cnt, alignment);
352
rlo =
roundup2
(ptoa(uvm_physseg_get_avail_start(upm)), alignment);
353
rlo = MAX(rlo,
roundup2
(low, alignment));
354
rlo = MAX(rlo,
roundup2
(pa - ptoa(num - 1), alignment));
710
low =
roundup2
(low, alignment);
uvm_pgflcache.c
282
(
roundup2
(sz * VM_NFREELIST, coherency_unit) + coherency_unit - 1);
363
addr =
roundup2
((uintptr_t)ucpu->pgflcachemem, coherency_unit);
uvm_page.c
407
bucketsize =
roundup2
(bucketsize, coherency_unit);
755
bucketsize =
roundup2
(bucketsize, coherency_unit);
759
bucketarray = (char *)
roundup2
((uintptr_t)bucketmem, coherency_unit);
958
ucpu = (struct uvm_cpu *)
roundup2
((uintptr_t)ucpu,
/src/sys/ufs/ext2fs/
ext2fs_dir.h
202
#define EXT2FS_DIRSIZ(len)
roundup2
(8 + len, 4)
/src/libexec/ld.elf_so/
tls.c
216
_rtld_tls_static_space =
roundup2
(_rtld_tls_static_space,
424
offset =
roundup2
(_rtld_tls_static_offset, obj->tlsalign);
427
offset =
roundup2
(_rtld_tls_static_offset + obj->tlssize,
/src/sys/ufs/ufs/
extattr.h
106
roundup2
((sizeof(struct extattr) - 1 + (eap)->ea_namelength), 8)
/src/sys/kern/
subr_workqueue.c
69
#define WQ_SIZE (
roundup2
(sizeof(struct workqueue), coherency_unit))
70
#define WQ_QUEUE_SIZE (
roundup2
(sizeof(struct workqueue_queue), coherency_unit))
311
wq = (void *)
roundup2
((uintptr_t)ptr, coherency_unit);
subr_evcnt.c
226
const size_t len =
roundup2
(copylen, sizeof(uint64_t));
subr_kcpuset.c
56
#define KC_MAXCPUS
roundup2
(MAXCPUS, 32)
/src/sys/arch/x86/x86/
cpu_ucode_intel.c
204
(struct intel1_ucode_header *)
roundup2
((uintptr_t)uha, 16);
x86_tlb.c
410
ts = (void *)
roundup2
((uintptr_t)stackbuf, COHERENCY_UNIT);
/src/sys/dev/ic/
i82596.c
579
sc->sc_scp_sz =
roundup2
(sizeof(struct iee_scp), sc->sc_cl_align);
581
sc->sc_iscp_sz =
roundup2
(sizeof(struct iee_iscp), sc->sc_cl_align);
583
sc->sc_scb_sz =
roundup2
(sizeof(struct iee_scb), sc->sc_cl_align);
585
sc->sc_rfd_sz =
roundup2
(sizeof(struct iee_rfd), sc->sc_cl_align);
587
sc->sc_rbd_sz =
roundup2
(sizeof(struct iee_rbd), sc->sc_cl_align);
589
sc->sc_cb_sz =
roundup2
(sizeof(struct iee_cb), sc->sc_cl_align);
591
sc->sc_tbd_sz =
roundup2
(sizeof(struct iee_tbd), sc->sc_cl_align);
/src/sys/dev/ieee1394/
fwdma.c
160
esize = ssize =
roundup2
(esize, PAGE_SIZE);
fwmem.c
389
xfer = fwmem_xfer_req(fwdev, sc, spd, 0,
roundup2
(len, 4), hand);
/src/sys/arch/powerpc/booke/dev/
pq3nandfcm.c
251
for (len =
roundup2
(len, 4); offset < len; offset += 4, dp32++) {
/src/sys/arch/riscv/sifive/
fu540_ccache.c
115
const paddr_t epa =
roundup2
(pa + len, sc->sc_line_size);
/src/sys/arch/evbmips/mipssim/
machdep.c
237
memsize =
roundup2
(MIPS_KSEG0_TO_PHYS((uintptr_t)(end)), 1024 * 1024);
/src/sys/sys/
param.h
437
* Rounding to powers of two. The naive definitions of
roundup2
and
440
* #define
roundup2
(x,m) (((x) + ((m) - 1)) & ~((m) - 1))
446
*
roundup2
and rounddown2 would have the unintended effect of clearing
451
#define
roundup2
(x,m) ((((x) - 1) | ((m) - 1)) + 1)
macro
/src/sys/arch/sparc/stand/ofwboot/
loadfile_machdep.c
290
len =
roundup2
(len + (rva & PAGE_MASK_4M), PAGE_SIZE_4M);
503
len =
roundup2
(len + (rva & PAGE_MASK_4M), PAGE_SIZE_4M);
/src/sys/arch/arm/cortex/
pl310.c
302
len =
roundup2
(len, line_size);
/src/sys/arch/arm/sunxi/
sun4i_emac.c
509
const int len =
roundup2
(m->m_len, 4);
605
pktdata,
roundup2
(len, 4) / 4);
/src/sys/ufs/ffs/
ffs_extattr.c
763
eapad1 =
roundup2
(ealength, 8) - ealength;
764
eapad2 =
roundup2
(ealen, 8) - ealen;
/src/sys/arch/xen/x86/
cpu.c
216
ci = (struct cpu_info *)
roundup2
(ptr, CACHE_LINE_SIZE);
383
ci = (struct cpu_info *)
roundup2
(ptr, CACHE_LINE_SIZE);
Completed in 142 milliseconds
1
2
3
Indexes created Sat Oct 25 16:10:12 GMT 2025