Lines Matching refs:last_word
573 int idx, last_word; in bm_count_bits() local
583 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits()
585 bits += bitmap_weight(p_addr, last_word * BITS_PER_LONG); in bm_count_bits()
586 p_addr[last_word] &= cpu_to_lel(mask); in bm_count_bits()
587 bits += hweight_long(p_addr[last_word]); in bm_count_bits()
589 if (BITS_PER_LONG == 32 && (last_word & 1) == 0) in bm_count_bits()
590 p_addr[last_word+1] = 0; in bm_count_bits()
1449 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1458 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1495 int last_word; in _drbd_bm_set_bits() local
1519 last_word = LWPP; in _drbd_bm_set_bits()
1523 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1530 last_word = MLPP(el >> LN2_BPL); in _drbd_bm_set_bits()
1538 if (last_word) in _drbd_bm_set_bits()
1539 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()