Home
last modified time | relevance | path

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

123456

/NextBSD/sys/boot/uboot/lib/
HDcopy.c104 eubldr = roundup2((uint64_t)uboot_heap_end, KERN_ALIGN); in uboot_loadaddr()
108 sblock = roundup2((uint64_t)si->mr[i].start, in uboot_loadaddr()
145 return roundup2(addr, PAGE_SIZE); in uboot_loadaddr()
/NextBSD/sys/boot/i386/gptboot/
HDgptboot.c143 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main()
279 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load()
282 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load()
313 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
/NextBSD/contrib/elftoolchain/common/
HD_elftc.h377 #define roundup2 roundup macro
421 #define roundup2 roundup macro
480 #define roundup2 roundup macro
/NextBSD/sys/net80211/
HDieee80211_radiotap.c72 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv()
88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv()
360 off = roundup2(off, items[i].align); in radiotap_offset()
/NextBSD/usr.sbin/bhyve/
HDvirtio.h272 size = roundup2(size, VRING_ALIGN); in vring_size()
276 size = roundup2(size, VRING_ALIGN); in vring_size()
/NextBSD/sys/dev/drm2/radeon/
HDevergreen_blit_kms.c49 h = roundup2(h, 8); in set_render_target()
602 dwords = roundup2(rdev->r600_blit.state_len, 0x10); in set_default_state()
654 obj_size = roundup2(obj_size, 256); in evergreen_blit_init()
661 obj_size = roundup2(obj_size, 256); in evergreen_blit_init()
668 obj_size = roundup2(obj_size, 256); in evergreen_blit_init()
HDr600_blit_kms.c47 h = roundup2(h, 8); in set_render_target()
439 dwords = roundup2(rdev->r600_blit.state_len, 0x10); in set_default_state()
504 obj_size = roundup2(obj_size, 256); in r600_blit_init()
508 obj_size = roundup2(obj_size, 256); in r600_blit_init()
512 obj_size = roundup2(obj_size, 256); in r600_blit_init()
HDradeon_fb.c127 height = roundup2(mode_cmd->height, 8); in radeonfb_create_pinned_object()
129 aligned_size = roundup2(size, PAGE_SIZE); in radeonfb_create_pinned_object()
/NextBSD/sys/dev/ifmlx4/
HDif_mlx4.c123 sctx->isc_qsizes[0] = roundup2((ixl_ringsz * sizeof(struct i40e_tx_desc)) + in mlx4_register()
125 sctx->isc_qsizes[1] = roundup2(ixl_ringsz * in mlx4_register()
/NextBSD/sys/arm64/arm64/
HDgic_v3_its.c317 roundup2(LPI_PENDTAB_SIZE, PAGE_SIZE_64K), in gic_v3_its_detach()
358 its_tbl_size = roundup2(its_tbl_size, page_size); in its_alloc_tables()
677 cpu_dcache_wb_range((vm_offset_t)conf_base, roundup2(LPI_CONFTAB_SIZE, in lpi_init_conftable()
705 roundup2(LPI_PENDTAB_SIZE, PAGE_SIZE_64K), M_GIC_V3_ITS, in lpi_alloc_cpu_pendtables()
710 roundup2(LPI_PENDTAB_SIZE, PAGE_SIZE_64K)); in lpi_alloc_cpu_pendtables()
836 lpi_id_num = roundup2(lpi_id_num, bits_in_chunk); in lpi_bitmap_init()
1424 roundup2(roundup2(nvecs, 2) * esize, 0x100), M_GIC_V3_ITS, in its_device_alloc_locked()
HDgenassym.c51 ASSYM(PCB_SIZE, roundup2(sizeof(struct pcb), STACKALIGNBYTES + 1));
/NextBSD/sys/dev/drm2/i915/
HDintel_fb.c59 mode_cmd.pitches[0] = roundup2(mode_cmd.width * ((sizes->surface_bpp + 7) / in intelfb_create()
65 size = roundup2(size, PAGE_SIZE); in intelfb_create()
/NextBSD/sys/boot/i386/zfsboot/
HDzfsboot.c444 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main()
639 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load()
642 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load()
673 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
/NextBSD/sys/net/
HDvnet.c173 #define VNET_SIZE roundup2(VNET_BYTES, PAGE_SIZE)
374 size = roundup2(size, sizeof(void *)); in vnet_data_alloc()
406 size = roundup2(size, sizeof(void *)); in vnet_data_free()
/NextBSD/lib/libc/tests/string/
HDwcsnlen_test.c44 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE; in makebuf()
HDstpncpy_test.c43 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE; in makebuf()
/NextBSD/sys/dev/cxgbe/cxgbei/
HDicl_cxgbei.c182 a = roundup2(mtod(m, uintptr_t), _Alignof(struct icl_cxgbei_pdu)); in icl_cxgbei_new_pdu()
190 a = roundup2((uintptr_t)(icp + 1), _Alignof(struct iscsi_bhs *)); in icl_cxgbei_new_pdu()
280 padding = roundup2(ip->ip_data_len, 4) - ip->ip_data_len; in finalize_pdu()
555 wr = alloc_wrqe(roundup2(flowclen, 16), toep->ofld_txq); in send_iscsi_flowc_wr()
/NextBSD/sys/boot/efi/loader/
HDcopy.c72 staging = roundup2(staging, 2 * 1024 * 1024); in efi_copy_init()
/NextBSD/sys/dev/sound/
HDunit.c181 i = roundup2(i, 2); in snd_unit_init()
/NextBSD/sys/crypto/via/
HDpadlock.h82 #define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16))
/NextBSD/sys/boot/i386/boot2/
HDboot2.c243 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main()
344 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load()
361 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
/NextBSD/contrib/elftoolchain/libelf/
HDelf_strptr.c109 count = roundup2(count, alignment); in elf_strptr()
/NextBSD/sys/kern/
HDsubr_pcpu.c166 size = roundup2(size, sizeof(void *)); in dpcpu_alloc()
198 size = roundup2(size, sizeof(void *)); in dpcpu_free()
/NextBSD/sys/fs/ext2fs/
HDext2_lookup.c379 endsearch = roundup2(dp->i_size, DIRBLKSIZ); in ext2_lookup_ino()
512 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); in ext2_lookup_ino()
521 dp->i_endoff = roundup2(enduseful, DIRBLKSIZ); in ext2_lookup_ino()
845 dp->i_size = roundup2(dp->i_size, DIRBLKSIZ); in ext2_direnter()
/NextBSD/sbin/hastd/
HDnv.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)); in nv_add()
803 vsize = roundup2(vsize, 8) - vsize; in nv_add()

123456