Lines Matching refs:bitmask
151 unsigned char bitmask;
158 bitmask = 0x80 >> (offset % 8);
161 if ((state && (byte & bitmask) == bitmask) ||
162 (state == 0 && (byte & bitmask) == 0))
166 bitmask >>= 1;
167 if (bitmask == 0) {
169 bitmask = 0x80;
183 * Set a single bit in the bitmask. Returns zero on success, negative values
191 u8 bitmask;
195 bitmask = 0x80 >> (bit % 8);
197 bitmap[byte_spot] |= bitmask;
199 bitmap[byte_spot] &= ~bitmask;