Lines Matching defs:bits

39  * 1 << (50 - 12)	bits needed
40 * 38 --> we need u64 to index and count bits
58 * (1 << 32) bits * 4k storage.
96 unsigned long bm_set; /* nr of set bits; THINK maybe atomic_t? */
171 * 1<<38 bits,
173 * Use 24 bits as page index, covers 2 peta byte storage
183 * set if bits have been set since last IO. */
185 /* to mark for lazy writeout once syncer cleared all clearable bits,
186 * we if bits have been cleared since last IO. */
295 /* on a 32bit box, this would allow for exactly (2<<38) bits. */
470 * this masks out the remaining bits.
471 * Returns the number of bits cleared.
489 /* number of bits modulo bits per page */
491 /* mask the used bits of the word containing the last bit */
525 /* number of bits modulo bits per page */
527 /* mask the used bits of the word containing the last bit */
557 unsigned long bits = 0;
564 bits += bitmap_weight(p_addr, BITS_PER_PAGE);
571 bits += bitmap_weight(p_addr, last_word * BITS_PER_LONG);
573 bits += hweight_long(p_addr[last_word]);
578 return bits;
628 * Otherwise, the bitmap is initialized to all bits set.
633 unsigned long bits, words, owords, obits;
666 bits = BM_SECT_TO_BIT(ALIGN(capacity, BM_SECT_PER_BIT));
669 words = ALIGN(bits,BITS_PER_LONG) >> LN2_BPL;
673 words = ALIGN(bits, 64) >> LN2_BPL;
678 if (bits > bits_on_disk) {
679 drbd_info(device, "bits = %lu\n", bits);
708 growing = bits > obits;
714 b->bm_bits = bits;
721 b->bm_set += bits - obits;
739 drbd_info(device, "resync bitmap: bits=%lu words=%lu pages=%lu\n", bits, words, want);
813 unsigned long word, bits;
836 bits = hweight_long(*bm);
839 b->bm_set += hweight_long(word) - bits;
893 /* set all bits in the bitmap */
909 /* clear all bits in the bitmap */
1168 drbd_info(device, "recounting of set bits took additional %lu jiffies\n",
1174 drbd_info(device, "%s (%lu bits) marked out-of-sync by on disk bit-map.\n",
1343 /* returns number of bits actually changed.
1347 * expected to be called for only a few bits (e - s about BITS_PER_LONG).
1394 /* returns number of bits actually changed.
1420 /* returns number of bits changed 0 -> 1 */
1426 /* returns number of bits changed 1 -> 0 */
1432 /* sets all bits in full words,
1438 int bits;
1445 bits = hweight_long(paddr[i]);
1447 changed += BITS_PER_LONG - bits;
1463 * Sets bits from s to e _inclusive_. */
1495 /* bits filling the current long */
1527 /* possibly trailing bits.
1542 * -1 ... first out of bounds access, stop testing for bits!
1574 /* returns number of bits set in the range [s, e] */
1618 * but the general usage is that this is only use during a cstate when bits are