| /f-stack/tools/compat/ |
| H A D | compat.h | 56 #ifndef roundup2 57 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | genassym.c | 41 ASSYM(BOOTPARAMS_SIZE, roundup2(sizeof(struct arm64_bootparams), 60 ASSYM(PCB_SIZE, roundup2(sizeof(struct pcb), STACKALIGNBYTES + 1));
|
| H A D | busdma_bounce.c | 281 newtag->alloc_size = roundup2(newtag->common.maxsize, in bounce_bus_dma_tag_create() 305 maxsize = roundup2(maxsize, PAGE_SIZE) + PAGE_SIZE; in bounce_bus_dma_tag_create() 457 pages = atop(roundup2(dmat->common.maxsize, PAGE_SIZE)) + 1; in bounce_bus_dmamap_create() 724 sg_len = roundup2(sg_len, in _bus_dmamap_count_pages()
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_radiotap.c | 74 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv() 90 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv() 362 off = roundup2(off, items[i].align); in radiotap_offset()
|
| H A D | ieee80211_superg.c | 344 m_adj(n, roundup2(framelen, 4) - framelen); /* padding */ in ieee80211_ff_decap() 428 pad = roundup2(m1->m_pkthdr.len, 4) - m1->m_pkthdr.len; in ieee80211_ff_encap() 561 pad = roundup2(m1->m_pkthdr.len, 4) - m1->m_pkthdr.len; in ieee80211_amsdu_encap()
|
| /f-stack/freebsd/crypto/via/ |
| H A D | padlock.h | 74 #define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16))
|
| /f-stack/freebsd/netinet6/ |
| H A D | in6_fib_algo.c | 87 #define LRADIX6_ITEM_SZ roundup2(sizeof(struct radix6_addr_entry), CACHE_LINE_SIZE) 146 lr->radix_mem = (void *)roundup2((uintptr_t)mem, CACHE_LINE_SIZE); in lradix6_init()
|
| /f-stack/freebsd/sys/ |
| H A D | bitstring.h | 80 #ifdef roundup2 81 #define _bit_roundup2 roundup2
|
| H A D | param.h | 310 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro
|
| H A D | pcpu.h | 77 #define DPCPU_SIZE roundup2(DPCPU_BYTES, PAGE_SIZE)
|
| /f-stack/freebsd/net/ |
| H A D | vnet.c | 175 #define VNET_SIZE roundup2(VNET_BYTES, PAGE_SIZE) 380 size = roundup2(size, sizeof(void *)); in vnet_data_alloc() 412 size = roundup2(size, sizeof(void *)); in vnet_data_free()
|
| /f-stack/freebsd/kern/ |
| H A D | subr_pcpu.c | 171 size = roundup2(size, sizeof(void *)); in dpcpu_alloc() 203 size = roundup2(size, sizeof(void *)); in dpcpu_free()
|
| H A D | kern_dump.c | 51 #define MD_ALIGN(x) roundup2((off_t)(x), PAGE_SIZE) 328 hdrgap = fileofs - roundup2((off_t)hdrsz, di->blocksize); in dumpsys_generic()
|
| H A D | subr_compressor.c | 110 s = gz_alloc(NULL, 1, roundup2(sizeof(*s), PAGE_SIZE)); in gz_init() 292 wkspc = (void *)roundup2((uintptr_t)wkspc, 8); in zstdio_init()
|
| H A D | imgact_elf.c | 219 p += roundup2(note->n_namesz, ELF_NOTE_ROUNDSIZE); in __elfN() 244 p += roundup2(note->n_namesz, ELF_NOTE_ROUNDSIZE); in kfreebsd_trans_osrel() 2056 roundup2(sizeof(FREEBSD_ABI_VENDOR), ELF_NOTE_ROUNDSIZE) + in register_note() 2058 roundup2(size, ELF_NOTE_ROUNDSIZE); /* note description */ in register_note() 2068 padded_len = roundup2(len, ELF_NOTE_ROUNDSIZE); in append_note_data() 2098 roundup2(sizeof(FREEBSD_ABI_VENDOR), ELF_NOTE_ROUNDSIZE) + in __elfN() 2100 roundup2(size, ELF_NOTE_ROUNDSIZE); /* note description */ in __elfN() 2681 roundup2(note->n_namesz, ELF_NOTE_ROUNDSIZE) + in __elfN() 2682 roundup2(note->n_descsz, ELF_NOTE_ROUNDSIZE)); in __elfN() 2734 p += roundup2(note->n_namesz, ELF_NOTE_ROUNDSIZE); in note_fctl_cb()
|
| /f-stack/freebsd/netinet/ |
| H A D | in_fib_algo.c | 165 bd = (struct bsearch4_data *)roundup2((uintptr_t)mem, CACHE_LINE_SIZE); in bsearch4_init() 516 #define LRADIX4_ITEM_SZ roundup2(sizeof(struct radix4_addr_entry), 64) 578 lr->rt_base = (char *)roundup2((uintptr_t)lr->mem, CACHE_LINE_SIZE); in lradix4_init()
|
| /f-stack/freebsd/i386/i386/ |
| H A D | vm_machdep.c | 97 roundup2(cpu_max_ext_state_size, XSAVE_AREA_ALIGN); in get_pcb_user_save_td() 117 roundup2(cpu_max_ext_state_size, XSAVE_AREA_ALIGN) - in get_pcb_td()
|
| H A D | minidump_machdep_base.c | 56 #define DEV_ALIGN(x) roundup2((off_t)(x), DEV_BSIZE)
|
| /f-stack/freebsd/amd64/cloudabi32/ |
| H A D | cloudabi32_sysvec.c | 79 *stack_base -= roundup2(sizeof(args), sizeof(register_t)); in cloudabi32_fixup_tcb()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_fw_private.h | 532 #define RULEKSIZE0(r) roundup2((sizeof(struct ip_fw) + (r)->cmd_len*4 - 4), 8) 534 #define RULEUSIZE1(r) (roundup2(sizeof(struct ip_fw_rule) + \ 536 #define RULEKSIZE1(r) roundup2((sizeof(struct ip_fw) + (r)->cmd_len*4 - 4), 8)
|
| /f-stack/freebsd/vm/ |
| H A D | vnode_pager.c | 403 roundup2(object->size, pagesperblock), in vnode_pager_haspage() 508 base = roundup2(base, DEV_BSIZE); in vnode_pager_setsize() 1322 pgoff = roundup2(pgoff, DEV_BSIZE); in vnode_pager_generic_putpages() 1351 maxblksz = roundup2(poffset + maxsize, DEV_BSIZE); in vnode_pager_generic_putpages() 1505 pos_devb = roundup2(pos & PAGE_MASK, DEV_BSIZE); in vnode_pager_undirty_pages()
|
| H A D | memguard.c | 355 req_size = roundup2(req_size, 16); in memguard_alloc()
|
| /f-stack/freebsd/mips/mips/ |
| H A D | tlb.c | 213 end = roundup2(end, 1 << TLBMASK_SHIFT); in tlb_invalidate_range()
|
| /f-stack/freebsd/x86/x86/ |
| H A D | busdma_bounce.c | 586 sg_len = roundup2(sg_len, in _bus_dmamap_count_pages() 623 sg_len = roundup2(sg_len, in _bus_dmamap_count_ma() 820 sgsize = roundup2(sgsize, dmat->common.alignment); in bounce_bus_dmamap_load_buffer() 887 sgsize = roundup2(sgsize, dmat->common.alignment); in bounce_bus_dmamap_load_ma()
|
| /f-stack/freebsd/net/route/ |
| H A D | nhop_ctl.c | 102 #define NHOP_OBJECT_ALIGNED_SIZE roundup2(sizeof(struct nhop_object), \ 104 #define NHOP_PRIV_ALIGNED_SIZE roundup2(sizeof(struct nhop_priv), \
|