Lines Matching defs:nr_bits
2366 * Set @nr_bits bits in @bitmap starting from @bit.
2370 unsigned int bit, unsigned int nr_bits)
2373 unsigned int end = bit + nr_bits;
2479 unsigned int count, bit, nr_bits;
2498 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2500 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits);
2507 nr_blocks -= nr_bits;
2508 chunk_block += nr_bits;
2524 * Clear nr_bits bits in bitmap starting from bit.
2527 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits)
2530 int end = bit + nr_bits;
2560 unsigned int count, bit, nr_bits;
2577 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2580 bit, nr_bits);
2587 nr_blocks -= nr_bits;
2588 chunk_block += nr_bits;
2636 unsigned int bit, set_bit, nr_bits;
2652 nr_bits = min(nr_blocks, zone_bits - bit);
2663 nr_blocks -= nr_bits;
2664 chunk_block += nr_bits;
2713 * Count the number of bits set starting from bit up to bit + nr_bits - 1.
2715 static int dmz_count_bits(void *bitmap, int bit, int nr_bits)
2718 int end = bit + nr_bits;
2747 unsigned int bit, nr_bits;
2763 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2764 n += dmz_count_bits(bitmap, bit, nr_bits);
2768 nr_blocks -= nr_bits;
2769 chunk_block += nr_bits;