Lines Matching defs:nr_bits
2383 * Set @nr_bits bits in @bitmap starting from @bit.
2387 unsigned int bit, unsigned int nr_bits)
2390 unsigned int end = bit + nr_bits;
2496 unsigned int count, bit, nr_bits;
2515 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2517 count = dmz_set_bits((unsigned long *)mblk->data, bit, nr_bits);
2524 nr_blocks -= nr_bits;
2525 chunk_block += nr_bits;
2541 * Clear nr_bits bits in bitmap starting from bit.
2544 static int dmz_clear_bits(unsigned long *bitmap, int bit, int nr_bits)
2547 int end = bit + nr_bits;
2577 unsigned int count, bit, nr_bits;
2594 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2597 bit, nr_bits);
2604 nr_blocks -= nr_bits;
2605 chunk_block += nr_bits;
2653 unsigned int bit, set_bit, nr_bits;
2669 nr_bits = min(nr_blocks, zone_bits - bit);
2680 nr_blocks -= nr_bits;
2681 chunk_block += nr_bits;
2730 * Count the number of bits set starting from bit up to bit + nr_bits - 1.
2732 static int dmz_count_bits(void *bitmap, int bit, int nr_bits)
2735 int end = bit + nr_bits;
2764 unsigned int bit, nr_bits;
2780 nr_bits = min(nr_blocks, zmd->zone_bits_per_mblk - bit);
2781 n += dmz_count_bits(bitmap, bit, nr_bits);
2785 nr_blocks -= nr_bits;
2786 chunk_block += nr_bits;