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

/freebsd-12-stable/sys/dev/drm2/
H A Ddrm_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)
89 KASSERT(max % NB_BITS_PER_LONG == 0, ("invalid bitmap size %lu", max));
90 for (i = 0; i < max / NB_BITS_PER_LONG; i++) {
93 return (i * NB_BITS_PER_LONG + ffsl(n) - 1);

Completed in 50 milliseconds