Lines Matching refs:last_word
559 int idx, last_word; in bm_count_bits() local
569 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits()
571 bits += bitmap_weight(p_addr, last_word * BITS_PER_LONG); in bm_count_bits()
572 p_addr[last_word] &= cpu_to_lel(mask); in bm_count_bits()
573 bits += hweight_long(p_addr[last_word]); in bm_count_bits()
575 if (BITS_PER_LONG == 32 && (last_word & 1) == 0) in bm_count_bits()
576 p_addr[last_word+1] = 0; in bm_count_bits()
1472 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1481 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1518 int last_word; in _drbd_bm_set_bits() local
1542 last_word = LWPP; in _drbd_bm_set_bits()
1546 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1553 last_word = MLPP(el >> LN2_BPL); in _drbd_bm_set_bits()
1561 if (last_word) in _drbd_bm_set_bits()
1562 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()