Home
last modified time | relevance | path

Searched refs:roundup2 (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/boot/common/
H A Dmultiboot2.c206 roundup2(tag->mbh_size, MULTIBOOT_TAG_ALIGN))) { in multiboot2_loadfile()
724 size = roundup2(size, EFI_PAGE_SIZE); in efimemmap_size()
758 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
760 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
763 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
766 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
769 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
771 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
775 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
780 size = roundup2(size, MULTIBOOT_TAG_ALIGN); in mbi_size()
[all …]
H A Dmodule.c575 size = roundup2(sizeof (struct font_info), 8); in build_font_module()
580 size += roundup2(size, 8); in build_font_module()
611 laddr = roundup2(laddr, 8); in build_font_module()
618 laddr = roundup2(laddr, 8); in build_font_module()
696 (uint64_t)(roundup2(st.st_size, PAGE_SIZE) >> 12)); in file_loadraw()
706 (uint64_t)(roundup2(st.st_size, PAGE_SIZE) >> 12)); in file_loadraw()
1174 (uint64_t)(roundup2(fp->f_size, PAGE_SIZE) >> 12)); in file_discard()
H A Dgfx_fb.c522 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_fill()
593 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_video_to_buffer()
695 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_buffer_to_video()
799 bpp = roundup2(gfx_fb.framebuffer_common.framebuffer_bpp, 8) >> 3; in gfxfb_blt_video_to_video()
/illumos-gate/usr/src/boot/i386/libi386/
H A Di386_copy.c153 off = roundup2(addr + 1, MULTIBOOT_MOD_ALIGN); in i386_loadaddr()
155 off = roundup2(mfp->f_addr + mfp->f_size + 1, in i386_loadaddr()
172 off = roundup2(fb_addr + fb_size + 1, in i386_loadaddr()
/illumos-gate/usr/src/boot/i386/isoboot/
H A Disoboot.c237 (roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main()
381 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load()
384 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load()
415 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dparam.h45 #define roundup2(x,y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro
/illumos-gate/usr/src/boot/i386/gptzfsboot/
H A Dzfsboot.c168 (roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main()
404 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load()
409 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load()
451 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
/illumos-gate/usr/src/cmd/bhyve/amd64/
H A De820.c350 base = roundup2(element->base, alignment); in e820_alloc_highest()
384 base = MAX(min_address, roundup2(element->base, alignment)); in e820_alloc_lowest()
/illumos-gate/usr/src/boot/sys/sys/
H A Dparam.h297 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro
/illumos-gate/usr/src/cmd/bhyve/common/
H A Dvirtio.h196 return (roundup2(vring_size(qsz, VRING_ALIGN), VRING_ALIGN)); in vring_size_aligned()
H A Dpci_emul.c591 base = roundup2(*baseptr, size); in pci_emul_alloc_resource()
1051 reallen = roundup2(caplen, 4); /* dword aligned */ in pci_emul_add_capability()
1219 tab_size = roundup2(tab_size, 4096); in pci_emul_add_msixcap()
1503 pci_emul_membase64 = roundup2(pci_emul_membase64, PCI_EMUL_MEMSIZE64); in init_pci()
1580 pci_emul_iobase = roundup2(pci_emul_iobase, BUSIO_ROUNDUP); in init_pci()
1584 pci_emul_membase32 = roundup2(pci_emul_membase32, in init_pci()
1589 pci_emul_membase64 = roundup2(pci_emul_membase64, in init_pci()
H A Dpci_emul.h115 #define PBA_SIZE(msgnum) (roundup2((msgnum), 64) / 8)
H A Dpci_passthru.c533 table_size = roundup2(table_size, 4096); in init_msix_table()
1082 table_size = roundup2(table_size, 4096); in passthru_msix_addr()
H A Dvirtio.c199 base = (char *)roundup2((uintptr_t)base, VRING_ALIGN); in vi_vq_init()
H A Dbasl.c165 table->off = roundup2(*off, table->alignment); in basl_finish_install_guest_tables()
/illumos-gate/usr/src/boot/libsa/
H A Dzalloc.c119 aligned = (char *)(roundup2(dptr, align) - MALLOCALIGN); in znalloc()
/illumos-gate/usr/src/boot/efi/loader/
H A Dcopy.c137 addr = roundup2(mp->mb_mod_end + 1, in efi_physaddr()
/illumos-gate/usr/src/boot/efi/loader/arch/amd64/
H A Dtrap.c261 loader_gdt.rd_limit = roundup2(fw_gdt.rd_limit + in efi_redirect_exceptions()
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfs.c395 total_size = roundup2(head + bytes, secsz); in vdev_read()
484 total_size = roundup2(head + bytes, secsz); in vdev_write()
/illumos-gate/usr/src/boot/efi/libefi/
H A Defipart.c1133 if (ioalign > 1 && (uintptr_t)buf != roundup2((uintptr_t)buf, ioalign)) in efipart_realstrategy()