Lines Matching refs:bit
612 u32 bit; in netlbl_catmap_walk() local
621 bit = offset % NETLBL_CATMAP_MAPSIZE; in netlbl_catmap_walk()
624 bit = 0; in netlbl_catmap_walk()
626 bitmap = iter->bitmap[idx] >> bit; in netlbl_catmap_walk()
632 bit++; in netlbl_catmap_walk()
635 (NETLBL_CATMAP_MAPSIZE * idx) + bit; in netlbl_catmap_walk()
645 bit = 0; in netlbl_catmap_walk()
668 u32 bit; in netlbl_catmap_walkrng() local
678 bit = offset % NETLBL_CATMAP_MAPSIZE; in netlbl_catmap_walkrng()
681 bit = 0; in netlbl_catmap_walkrng()
683 bitmask = NETLBL_CATMAP_BIT << bit; in netlbl_catmap_walkrng()
689 bit++; in netlbl_catmap_walkrng()
692 if (prev && idx == 0 && bit == 0) in netlbl_catmap_walkrng()
696 (NETLBL_CATMAP_MAPSIZE * idx) + bit - 1; in netlbl_catmap_walkrng()
705 bit = 0; in netlbl_catmap_walkrng()
776 u32 bit, in netlbl_catmap_setbit() argument
782 iter = _netlbl_catmap_getnode(catmap, bit, _CM_F_ALLOC, flags); in netlbl_catmap_setbit()
786 bit -= iter->startbit; in netlbl_catmap_setbit()
787 idx = bit / NETLBL_CATMAP_MAPSIZE; in netlbl_catmap_setbit()
788 iter->bitmap[idx] |= NETLBL_CATMAP_BIT << (bit % NETLBL_CATMAP_MAPSIZE); in netlbl_catmap_setbit()
924 void netlbl_bitmap_setbit(unsigned char *bitmap, u32 bit, u8 state) in netlbl_bitmap_setbit() argument
930 byte_spot = bit / 8; in netlbl_bitmap_setbit()
931 bitmask = 0x80 >> (bit % 8); in netlbl_bitmap_setbit()