Home | History | Annotate | Download | only in dhdutil

Lines Matching defs:bit

1645 	uint32 bit, mask;
1654 bit = bd->bitfield[i].bit;
1655 if ((flags & mask) == bit) {
1673 uint32 bit;
1682 bit = bd[i].bit;
1684 if (bit == 0 && flags != 0) {
1689 } else if ((flags & bit) == 0)
1691 flags &= ~bit;
2266 /* Set bit in byte array. */
2268 setbit(void *array, uint bit)
2270 ((uint8 *)array)[bit / NBBY] |= 1 << (bit % NBBY);
2273 /* Clear bit in byte array. */
2275 clrbit(void *array, uint bit)
2277 ((uint8 *)array)[bit / NBBY] &= ~(1 << (bit % NBBY));
2280 /* Test if bit is set in byte array. */
2282 isset(const void *array, uint bit)
2284 return (((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY)));
2287 /* Test if bit is clear in byte array. */
2289 isclr(const void *array, uint bit)
2291 return ((((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY))) == 0);