Searched refs:roundup2 (Results 1 - 25 of 100) sorted by relevance

1234

/freebsd-10.0-release/tools/regression/lib/libc/string/
H A Dtest-wcsnlen.c42 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE;
H A Dtest-stpncpy.c41 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE;
/freebsd-10.0-release/usr.sbin/bhyve/
H A Dvirtio.h271 size = roundup2(size, VRING_ALIGN);
275 size = roundup2(size, VRING_ALIGN);
/freebsd-10.0-release/lib/libelf/
H A Delf_strptr.c110 count = roundup2(count, alignment);
/freebsd-10.0-release/sys/compat/linux/
H A Dlinux_socket.h60 #define LINUX_CMSG_ALIGN(len) roundup2(len, sizeof(l_ulong))
/freebsd-10.0-release/sys/crypto/via/
H A Dpadlock.h82 #define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16))
/freebsd-10.0-release/sys/dev/sound/
H A Dunit.c181 i = roundup2(i, 2);
/freebsd-10.0-release/sys/net80211/
H A Dieee80211_radiotap.c71 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t)));
87 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t)));
359 off = roundup2(off, items[i].align);
/freebsd-10.0-release/sys/boot/i386/gptboot/
H A Dgptboot.c142 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
277 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
280 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE);
311 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.0-release/sys/dev/drm2/i915/
H A Dintel_fb.c58 mode_cmd.pitches[0] = roundup2(mode_cmd.width * ((sizes->surface_bpp + 7) /
64 size = roundup2(size, PAGE_SIZE);
/freebsd-10.0-release/sys/dev/drm2/radeon/
H A Devergreen_blit_kms.c49 h = roundup2(h, 8);
602 dwords = roundup2(rdev->r600_blit.state_len, 0x10);
654 obj_size = roundup2(obj_size, 256);
661 obj_size = roundup2(obj_size, 256);
668 obj_size = roundup2(obj_size, 256);
H A Dradeon_fb.c125 height = roundup2(mode_cmd->height, 8);
127 aligned_size = roundup2(size, PAGE_SIZE);
H A Dr600_blit_kms.c47 h = roundup2(h, 8);
439 dwords = roundup2(rdev->r600_blit.state_len, 0x10);
504 obj_size = roundup2(obj_size, 256);
508 obj_size = roundup2(obj_size, 256);
512 obj_size = roundup2(obj_size, 256);
/freebsd-10.0-release/sys/boot/i386/zfsboot/
H A Dzfsboot.c444 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
639 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
642 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE);
673 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.0-release/sys/ofed/include/linux/
H A Dkernel.h65 #define ALIGN(x, y) roundup2((x), (y))
/freebsd-10.0-release/sys/sys/
H A Dparam.h281 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro
H A Dpcpu.h75 #define DPCPU_SIZE roundup2(DPCPU_BYTES, PAGE_SIZE)
/freebsd-10.0-release/sys/kern/
H A Dsubr_pcpu.c141 size = roundup2(size, sizeof(void *));
173 size = roundup2(size, sizeof(void *));
/freebsd-10.0-release/sys/fs/ext2fs/
H A Dext2_lookup.c376 i_offset = roundup2(dp->i_size, DIRBLKSIZ);
413 endsearch = roundup2(dp->i_size, DIRBLKSIZ);
488 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ);
497 dp->i_endoff = roundup2(enduseful, DIRBLKSIZ);
935 dp->i_size = roundup2(dp->i_size, DIRBLKSIZ);
/freebsd-10.0-release/sys/boot/i386/boot2/
H A Dboot2.c227 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
327 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
344 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.0-release/sys/boot/pc98/boot2/
H A Dboot2.c356 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
466 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
483 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.0-release/sys/net/
H A Dvnet.c174 #define VNET_SIZE roundup2(VNET_BYTES, PAGE_SIZE)
375 size = roundup2(size, sizeof(void *));
407 size = roundup2(size, sizeof(void *));
/freebsd-10.0-release/lib/libprocstat/
H A Dcore.c218 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) +
219 roundup2(nhdr.n_descsz, sizeof(Elf32_Size));
/freebsd-10.0-release/sbin/hastd/
H A Dnv.c102 (sizeof(struct nvhdr) + roundup2((nvh)->nvh_namesize, 8))
107 #define NVH_SIZE(nvh) (NVH_HSIZE(nvh) + roundup2(NVH_DSIZE(nvh), 8))
775 nvh = malloc(sizeof(*nvh) + roundup2(namesize, 8));
803 vsize = roundup2(vsize, 8) - vsize;
/freebsd-10.0-release/sys/dev/ciss/
H A Dcissvar.h149 #define CISS_COMMAND_ALLOC_SIZE (roundup2(sizeof(struct ciss_command) + CISS_COMMAND_SG_LENGTH, CISS_COMMAND_ALIGN))

Completed in 170 milliseconds

1234