Home
last modified time | relevance | path

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

1234

/f-stack/tools/compat/
H A Dcompat.h56 #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 Dgenassym.c41 ASSYM(BOOTPARAMS_SIZE, roundup2(sizeof(struct arm64_bootparams),
60 ASSYM(PCB_SIZE, roundup2(sizeof(struct pcb), STACKALIGNBYTES + 1));
H A Dbusdma_bounce.c281 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 Dieee80211_radiotap.c74 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 Dieee80211_superg.c344 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 Dpadlock.h74 #define PADLOCK_ALIGN(p) (void *)(roundup2((uintptr_t)(p), 16))
/f-stack/freebsd/netinet6/
H A Din6_fib_algo.c87 #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 Dbitstring.h80 #ifdef roundup2
81 #define _bit_roundup2 roundup2
H A Dparam.h310 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro
H A Dpcpu.h77 #define DPCPU_SIZE roundup2(DPCPU_BYTES, PAGE_SIZE)
/f-stack/freebsd/net/
H A Dvnet.c175 #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 Dsubr_pcpu.c171 size = roundup2(size, sizeof(void *)); in dpcpu_alloc()
203 size = roundup2(size, sizeof(void *)); in dpcpu_free()
H A Dkern_dump.c51 #define MD_ALIGN(x) roundup2((off_t)(x), PAGE_SIZE)
328 hdrgap = fileofs - roundup2((off_t)hdrsz, di->blocksize); in dumpsys_generic()
H A Dsubr_compressor.c110 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 Dimgact_elf.c219 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 Din_fib_algo.c165 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 Dvm_machdep.c97 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 Dminidump_machdep_base.c56 #define DEV_ALIGN(x) roundup2((off_t)(x), DEV_BSIZE)
/f-stack/freebsd/amd64/cloudabi32/
H A Dcloudabi32_sysvec.c79 *stack_base -= roundup2(sizeof(args), sizeof(register_t)); in cloudabi32_fixup_tcb()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_private.h532 #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 Dvnode_pager.c403 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 Dmemguard.c355 req_size = roundup2(req_size, 16); in memguard_alloc()
/f-stack/freebsd/mips/mips/
H A Dtlb.c213 end = roundup2(end, 1 << TLBMASK_SHIFT); in tlb_invalidate_range()
/f-stack/freebsd/x86/x86/
H A Dbusdma_bounce.c586 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 Dnhop_ctl.c102 #define NHOP_OBJECT_ALIGNED_SIZE roundup2(sizeof(struct nhop_object), \
104 #define NHOP_PRIV_ALIGNED_SIZE roundup2(sizeof(struct nhop_priv), \

1234