Lines Matching refs:ice_bitmap_t

37 typedef u32 ice_bitmap_t;
40 #define BITS_PER_CHUNK (BITS_PER_BYTE * sizeof(ice_bitmap_t))
50 #define LAST_CHUNK_MASK(nr) (((ice_bitmap_t)~0) >> \
54 ice_bitmap_t A[BITS_TO_CHUNKS(sz)]
56 static inline bool ice_is_bit_set_internal(u16 nr, const ice_bitmap_t *bitmap)
74 static inline void ice_clear_bit_internal(u16 nr, ice_bitmap_t *bitmap)
79 static inline void ice_set_bit_internal(u16 nr, ice_bitmap_t *bitmap)
85 ice_bitmap_t *bitmap)
94 static inline bool ice_test_and_set_bit_internal(u16 nr, ice_bitmap_t *bitmap)
111 static inline bool ice_is_bit_set(const ice_bitmap_t *bitmap, u16 nr)
125 static inline void ice_clear_bit(u16 nr, ice_bitmap_t *bitmap)
138 static inline void ice_set_bit(u16 nr, ice_bitmap_t *bitmap)
152 ice_test_and_clear_bit(u16 nr, ice_bitmap_t *bitmap)
167 ice_test_and_set_bit(u16 nr, ice_bitmap_t *bitmap)
178 * operates on an ice_bitmap_t which was declared using ice_declare_bitmap. It
182 static inline void ice_zero_bitmap(ice_bitmap_t *bmp, u16 size)
184 ice_memset(bmp, 0, BITS_TO_CHUNKS(size) * sizeof(ice_bitmap_t),
202 ice_and_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1,
203 const ice_bitmap_t *bmp2, u16 size)
205 ice_bitmap_t res = 0, mask;
239 ice_or_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1,
240 const ice_bitmap_t *bmp2, u16 size)
242 ice_bitmap_t mask;
270 ice_xor_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1,
271 const ice_bitmap_t *bmp2, u16 size)
273 ice_bitmap_t mask;
301 ice_andnot_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1,
302 const ice_bitmap_t *bmp2, u16 size)
304 ice_bitmap_t mask;
330 ice_find_next_bit(const ice_bitmap_t *bitmap, u16 size, u16 offset)
372 static inline u16 ice_find_first_bit(const ice_bitmap_t *bitmap, u16 size)
390 static inline bool ice_is_any_bit_set(ice_bitmap_t *bitmap, u16 size)
405 static inline void ice_cp_bitmap(ice_bitmap_t *dst, ice_bitmap_t *src, u16 size)
407 ice_memcpy(dst, src, BITS_TO_CHUNKS(size) * sizeof(ice_bitmap_t),
422 ice_bitmap_set(ice_bitmap_t *dst, u16 pos, u16 num_bits)
440 ice_bitmap_hweight(ice_bitmap_t *bm, u16 size)
462 ice_cmp_bitmap(ice_bitmap_t *bmp1, ice_bitmap_t *bmp2, u16 size)
464 ice_bitmap_t mask;