Home
last modified time | relevance | path

Searched refs:BITS_PER_PAGE_MASK (Results 1 – 3 of 3) sorted by relevance

/drivers/block/drbd/
Ddrbd_bitmap.c482 #define BITS_PER_PAGE_MASK (BITS_PER_PAGE - 1) macro
492 tmp = (b->bm_bits & BITS_PER_PAGE_MASK); in bm_clear_surplus()
528 tmp = (b->bm_bits & BITS_PER_PAGE_MASK); in bm_set_surplus()
572 last_word = ((b->bm_bits - 1) & BITS_PER_PAGE_MASK) >> LN2_BPL; in bm_count_bits()
1316 bit_offset = bm_fo & ~BITS_PER_PAGE_MASK; in __bm_find_next()
1321 PAGE_SIZE*8, bm_fo & BITS_PER_PAGE_MASK); in __bm_find_next()
1324 PAGE_SIZE*8, bm_fo & BITS_PER_PAGE_MASK); in __bm_find_next()
1425 c += (0 == __test_and_set_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to()
1427 c -= (0 != __test_and_clear_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr)); in __bm_change_bits_to()
1604 i = test_bit_le(bitnr & BITS_PER_PAGE_MASK, p_addr) ? 1 : 0; in drbd_bm_test_bit()
/drivers/infiniband/hw/ipath/
Dipath_qp.c43 #define BITS_PER_PAGE_MASK (BITS_PER_PAGE-1) macro
135 offset = qpn & BITS_PER_PAGE_MASK; in alloc_qpn()
196 clear_bit(qpn & BITS_PER_PAGE_MASK, map->page); in free_qpn()
/drivers/infiniband/hw/qib/
Dqib_qp.c42 #define BITS_PER_PAGE_MASK (BITS_PER_PAGE-1) macro
146 offset = qpn & BITS_PER_PAGE_MASK; in alloc_qpn()
205 clear_bit(qpn & BITS_PER_PAGE_MASK, map->page); in free_qpn()