Lines Matching defs:nr_bits
2369 * Set @nr_bits bits in @bitmap starting from @bit.
2373 unsigned int bit, unsigned int nr_bits)
2376 unsigned int end = bit + nr_bits;
2482 unsigned int count, bit, nr_bits;
2501 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2503 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits);
2510 nr_blocks -= nr_bits;
2511 chunk_block += nr_bits;
2527 * Clear nr_bits bits in bitmap starting from bit.
2530 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits)
2533 int end = bit + nr_bits;
2563 unsigned int count, bit, nr_bits;
2580 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2583 bit, nr_bits);
2590 nr_blocks -= nr_bits;
2591 chunk_block += nr_bits;
2639 unsigned int bit, set_bit, nr_bits;
2655 nr_bits = min(nr_blocks, zone_bits - bit);
2666 nr_blocks -= nr_bits;
2667 chunk_block += nr_bits;
2716 * Count the number of bits set starting from bit up to bit + nr_bits - 1.
2718 static int dmz_count_bits(void *bitmap, int bit, int nr_bits)
2721 int end = bit + nr_bits;
2750 unsigned int bit, nr_bits;
2766 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2767 n += dmz_count_bits(bitmap, bit, nr_bits);
2771 nr_blocks -= nr_bits;
2772 chunk_block += nr_bits;