Lines Matching defs:nr
57 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
96 static inline void mlx5_set_bit(unsigned int nr, unsigned long *addr)
98 addr[(nr / BITS_PER_LONG)] |= (1 << (nr % BITS_PER_LONG));
101 static inline void mlx5_clear_bit(unsigned int nr, unsigned long *addr)
103 addr[(nr / BITS_PER_LONG)] &= ~(1 << (nr % BITS_PER_LONG));
106 static inline int mlx5_test_bit(unsigned int nr, const unsigned long *addr)
108 return !!(addr[(nr / BITS_PER_LONG)] & (1 << (nr % BITS_PER_LONG)));