Searched refs:roundup2 (Results 1 – 13 of 13) sorted by relevance
/openbsd/sys/dev/pci/drm/include/linux/ |
H A D | align.h | 8 #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 D | tmpfs_mem.c | 194 #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.h | 373 #define roundup2 roundup macro 417 #define roundup2 roundup macro 476 #define roundup2 roundup macro
|
H A D | elf_strptr.c | 107 count = roundup2(count, alignment); in elf_strptr()
|
H A D | elf_update.c | 257 scn_size = roundup2(scn_size, d->d_align); in _libelf_compute_section_extents()
|
/openbsd/sys/dev/pci/ |
H A D | if_igc.h | 191 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
|
H A D | if_igc.c | 408 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 D | if_ngbereg.h | 585 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
|
H A D | ixgbe.h | 122 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
|
H A D | if_ix.c | 2168 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 D | if_ngbe.c | 1195 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 D | arml2cc.c | 87 #define roundup2(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) macro
|
/openbsd/sys/ufs/ufs/ |
H A D | ufs_lookup.c | 221 #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()
|