Home
last modified time | relevance | path

Searched refs:NBBY (Results 1 – 2 of 2) sorted by relevance

/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmutils.h657 #ifndef NBBY /* the BSD family defines NBBY */
658 #define NBBY 8 /* 8 bits per byte */ macro
666 #define setbit(a, i) (((uint8 *)a)[(i) / NBBY] |= 1 << ((i) % NBBY))
667 #define clrbit(a, i) (((uint8 *)a)[(i) / NBBY] &= ~(1 << ((i) % NBBY)))
668 #define isset(a, i) (((const uint8 *)a)[(i) / NBBY] & (1 << ((i) % NBBY)))
669 #define isclr(a, i) ((((const uint8 *)a)[(i) / NBBY] & (1 << ((i) % NBBY))) == 0)
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Dbcmutils.c2270 ((uint8 *)array)[bit / NBBY] |= 1 << (bit % NBBY); in setbit()
2277 ((uint8 *)array)[bit / NBBY] &= ~(1 << (bit % NBBY)); in clrbit()
2284 return (((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY))); in isset()
2291 return ((((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY))) == 0); in isclr()