Lines Matching refs:last_word
562 int idx, i, last_word; in bm_count_bits() local
573 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits()
575 for (i = 0; i < last_word; i++) in bm_count_bits()
577 p_addr[last_word] &= cpu_to_lel(mask); in bm_count_bits()
578 bits += hweight_long(p_addr[last_word]); in bm_count_bits()
580 if (BITS_PER_LONG == 32 && (last_word & 1) == 0) in bm_count_bits()
581 p_addr[last_word+1] = 0; in bm_count_bits()
1416 int page_nr, int first_word, int last_word) in bm_set_full_words_within_one_page() argument
1422 for (i = first_word; i < last_word; i++) { in bm_set_full_words_within_one_page()
1459 int last_word; in _drbd_bm_set_bits() local
1483 last_word = LWPP; in _drbd_bm_set_bits()
1487 bm_set_full_words_within_one_page(device->bitmap, page_nr, first_word, last_word); in _drbd_bm_set_bits()
1494 last_word = MLPP(el >> LN2_BPL); in _drbd_bm_set_bits()
1502 if (last_word) in _drbd_bm_set_bits()
1503 bm_set_full_words_within_one_page(device->bitmap, last_page, first_word, last_word); in _drbd_bm_set_bits()