Lines Matching refs:bit
61 int bit, result; in bitmask_ffz() local
65 bit = ffs(~bitmask[i]); in bitmask_ffz()
66 if (bit) { in bitmask_ffz()
68 bit--; in bitmask_ffz()
69 result = BITS_PER_WORD * i + bit; in bitmask_ffz()
78 static inline void bitmask_set(unsigned int *bitmask, int bit) in bitmask_set() argument
80 bitmask[BIT_WORD(bit)] |= BIT_MASK(bit); in bitmask_set()
83 static inline void bitmask_clear(unsigned int *bitmask, int bit) in bitmask_clear() argument
85 bitmask[BIT_WORD(bit)] &= ~BIT_MASK(bit); in bitmask_clear()
88 static inline bool bitmask_test(unsigned int *bitmask, int bit) in bitmask_test() argument
90 return bitmask[BIT_WORD(bit)] & BIT_MASK(bit); in bitmask_test()