Home
last modified time | relevance | path

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

/NextBSD/sys/dev/drm2/
HDdrm_atomic.h39 #define NB_BITS_PER_LONG (sizeof(long) * NBBY) macro
40 #define BITS_TO_LONGS(x) howmany(x, NB_BITS_PER_LONG)
66 #define __bit_word(b) ((b) / NB_BITS_PER_LONG)
67 #define __bit_mask(b) (1UL << (b) % NB_BITS_PER_LONG)
86 KASSERT(max % NB_BITS_PER_LONG == 0, ("invalid bitmap size %lu", max)); in find_first_zero_bit()
87 for (i = 0; i < max / NB_BITS_PER_LONG; i++) { in find_first_zero_bit()
90 return (i * NB_BITS_PER_LONG + ffsl(n) - 1); in find_first_zero_bit()