Searched refs:BITS_TO_LONGS (Results 1 – 6 of 6) sorted by relevance
11 unsigned long name[BITS_TO_LONGS(bits)]36 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()43 unsigned int nlongs = BITS_TO_LONGS(nbits); in bitmap_fill()123 return calloc(1, BITS_TO_LONGS(nbits) * sizeof(unsigned long)); in bitmap_alloc()
17 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) macro
24 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG) macro
17 unsigned long name[BITS_TO_LONGS(bits)]
25 int nr = BITS_TO_LONGS(bits); in __bitmap_or()
934 mask->nr = BITS_TO_LONGS(max); in synthesize_mask()960 return sizeof(struct perf_record_record_cpu_map) + BITS_TO_LONGS(*max) * sizeof(long); in mask_size()