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

12345

/freebsd-10.3-release/sys/boot/uboot/lib/
H A Dcopy.c104 eubldr = roundup2((uint64_t)uboot_heap_end, KERN_ALIGN);
108 sblock = roundup2((uint64_t)si->mr[i].start,
138 return roundup2(addr, PAGE_SIZE);
/freebsd-10.3-release/usr.sbin/bhyve/
H A Dvirtio.h272 size = roundup2(size, VRING_ALIGN);
276 size = roundup2(size, VRING_ALIGN);
/freebsd-10.3-release/lib/libc/tests/string/
H A Dstpncpy_test.c43 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE;
H A Dwcsnlen_test.c44 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE;
/freebsd-10.3-release/lib/libelf/
H A Delf_strptr.c110 count = roundup2(count, alignment);
/freebsd-10.3-release/sys/crypto/via/
H A Dpadlock.h82 #define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16))
/freebsd-10.3-release/sys/dev/sound/
H A Dunit.c181 i = roundup2(i, 2);
/freebsd-10.3-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.3-release/sys/boot/i386/gptboot/
H A Dgptboot.c139 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
275 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
278 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE);
309 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.3-release/sys/dev/drm2/i915/
H A Dintel_fb.c59 mode_cmd.pitches[0] = roundup2(mode_cmd.width * ((sizes->surface_bpp + 7) /
65 size = roundup2(size, PAGE_SIZE);
/freebsd-10.3-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.c127 height = roundup2(mode_cmd->height, 8);
129 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.3-release/sys/boot/i386/zfsboot/
H A Dzfsboot.c440 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
635 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
638 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE);
669 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.3-release/sys/sys/
H A Dparam.h295 #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.3-release/sys/kern/
H A Dsubr_pcpu.c166 size = roundup2(size, sizeof(void *));
198 size = roundup2(size, sizeof(void *));
/freebsd-10.3-release/sys/boot/i386/boot2/
H A Dboot2.c201 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
301 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
318 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.3-release/sys/boot/pc98/boot2/
H A Dboot2.c330 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
440 p += roundup2(hdr.ex.a_text, PAGE_SIZE);
457 p += roundup2(ep[1].p_memsz, PAGE_SIZE);
/freebsd-10.3-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.3-release/lib/libprocstat/
H A Dcore.c218 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) +
219 roundup2(nhdr.n_descsz, sizeof(Elf32_Size));
/freebsd-10.3-release/sys/amd64/amd64/
H A Dvm_machdep.c103 roundup2(cpu_max_ext_state_size, XSAVE_AREA_ALIGN);
123 roundup2(cpu_max_ext_state_size, XSAVE_AREA_ALIGN) -
/freebsd-10.3-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.3-release/sys/dev/firewire/
H A Dfwdma.c164 esize = ssize = roundup2(esize, PAGE_SIZE);
/freebsd-10.3-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 272 milliseconds

12345