Lines Matching refs:bit
1645 uint32 bit, mask; in bcm_format_field() local
1654 bit = bd->bitfield[i].bit; in bcm_format_field()
1655 if ((flags & mask) == bit) { in bcm_format_field()
1673 uint32 bit; in bcm_format_flags() local
1682 bit = bd[i].bit; in bcm_format_flags()
1684 if (bit == 0 && flags != 0) { in bcm_format_flags()
1689 } else if ((flags & bit) == 0) in bcm_format_flags()
1691 flags &= ~bit; in bcm_format_flags()
2268 setbit(void *array, uint bit) in setbit() argument
2270 ((uint8 *)array)[bit / NBBY] |= 1 << (bit % NBBY); in setbit()
2275 clrbit(void *array, uint bit) in clrbit() argument
2277 ((uint8 *)array)[bit / NBBY] &= ~(1 << (bit % NBBY)); in clrbit()
2282 isset(const void *array, uint bit) in isset() argument
2284 return (((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY))); in isset()
2289 isclr(const void *array, uint bit) in isclr() argument
2291 return ((((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY))) == 0); in isclr()