Home
last modified time | relevance | path

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

/openbsd/sys/dev/pci/drm/include/linux/
H A Dalign.h8 #define roundup2(x, y) (((x) + ((y) - 1)) & (~((__typeof(x))(y) - 1))) macro
12 #define ALIGN(x, y) roundup2((x), (y))
15 #define PTR_ALIGN(x, y) ((__typeof(x))roundup2((unsigned long)(x), (y)))
/openbsd/sys/tmpfs/
H A Dtmpfs_mem.c194 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro
199 const size_t sz = roundup2(len, TMPFS_NAME_QUANTUM); in tmpfs_strname_alloc()
211 const size_t sz = roundup2(len, TMPFS_NAME_QUANTUM); in tmpfs_strname_free()
221 const size_t fln = roundup2(fcnp->cn_namelen, TMPFS_NAME_QUANTUM); in tmpfs_strname_neqlen()
222 const size_t tln = roundup2(tcnp->cn_namelen, TMPFS_NAME_QUANTUM); in tmpfs_strname_neqlen()
/openbsd/lib/libelf/
H A D_elftc.h373 #define roundup2 roundup macro
417 #define roundup2 roundup macro
476 #define roundup2 roundup macro
H A Delf_strptr.c107 count = roundup2(count, alignment); in elf_strptr()
H A Delf_update.c257 scn_size = roundup2(scn_size, d->d_align); in _libelf_compute_section_extents()
/openbsd/sys/dev/pci/
H A Dif_igc.h191 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
H A Dif_igc.c408 tsize = roundup2(sc->num_tx_desc * sizeof(union igc_adv_tx_desc), in igc_allocate_queues()
425 rsize = roundup2(sc->num_rx_desc * sizeof(union igc_adv_rx_desc), in igc_allocate_queues()
532 roundup2(sc->hw.mac.max_frame_size, 1024); in igc_reset()
2213 rsize = roundup2(sc->num_rx_desc * sizeof(union igc_adv_rx_desc), in igc_setup_receive_ring()
H A Dif_ngbereg.h585 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
H A Dixgbe.h122 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
H A Dif_ix.c2168 tsize = roundup2(sc->num_tx_desc * in ixgbe_allocate_queues()
2195 rsize = roundup2(sc->num_rx_desc * in ixgbe_allocate_queues()
2782 rsize = roundup2(sc->num_rx_desc * in ixgbe_setup_receive_ring()
H A Dif_ngbe.c1195 tsize = roundup2(sc->num_tx_desc * sizeof(union ngbe_tx_desc), in ngbe_allocate_queues()
1212 rsize = roundup2(sc->num_rx_desc * sizeof(union ngbe_rx_desc), in ngbe_allocate_queues()
1420 rsize = roundup2(sc->num_rx_desc * sizeof(union ngbe_rx_desc), in ngbe_setup_receive_ring()
/openbsd/sys/arch/arm/cortex/
H A Darml2cc.c87 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
/openbsd/sys/ufs/ufs/
H A Dufs_lookup.c221 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ in ufs_lookup() macro
222 dp->i_offset = roundup2(DIP(dp, size), DIRBLKSIZ); in ufs_lookup()