Searched refs:bitindex (Results 1 – 3 of 3) sorted by relevance
221 unsigned int bitindex, shift; in ebitmap_clear_bit() local242 bitindex = bit % EBITMAP_ELT_BITS; in ebitmap_clear_bit()243 shift = bitindex; in ebitmap_clear_bit()276 unsigned int bitindex = bit % EBITMAP_ELT_BITS; in ebitmap_set_bit() local281 (*map->cache) |= (EBITMAP_ELT_TYPE)1 << bitindex; in ebitmap_set_bit()317 bitindex = bit % EBITMAP_ELT_BITS; in ebitmap_set_bit()319 map->elts[eltwordindex] |= (EBITMAP_ELT_TYPE)1 << bitindex; in ebitmap_set_bit()331 unsigned int bitindex= bit % EBITMAP_ELT_BITS; in ebitmap_bit_p() local338 return ((*map->cache) >> bitindex) & 1; in ebitmap_bit_p()352 return (map->elts[wordindex] >> bitindex) & 1; in ebitmap_bit_p()
1101 unsigned int bitindex; in sbitmap_popcount() local1104 bitindex = maxbit % SBITMAP_ELT_BITS; in sbitmap_popcount()1105 if (bitindex != 0) in sbitmap_popcount()1107 theword &= (SBITMAP_ELT_TYPE)-1 >> (SBITMAP_ELT_BITS - bitindex); in sbitmap_popcount()
1008 u32 bitindex; in ixgbe_set_vfta_82598() local1024 bitindex = (vlan & 0x7) << 2; /* lower 3 bits indicate nibble */ in ixgbe_set_vfta_82598()1028 bits &= (~(0x0F << bitindex)); in ixgbe_set_vfta_82598()1029 bits |= (vind << bitindex); in ixgbe_set_vfta_82598()1033 bitindex = vlan & 0x1F; /* lower five bits */ in ixgbe_set_vfta_82598()1038 bits |= (1 << bitindex); in ixgbe_set_vfta_82598()1041 bits &= ~(1 << bitindex); in ixgbe_set_vfta_82598()