Home
last modified time | relevance | path

Searched refs:BITS_PER_PAGE (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/vfio/
Diova_bitmap.c10 #define BITS_PER_PAGE (PAGE_SIZE * BITS_PER_BYTE) macro
410 unsigned int page_idx = cur_bit / BITS_PER_PAGE; in iova_bitmap_set()
411 unsigned int offset = cur_bit % BITS_PER_PAGE; in iova_bitmap_set()
412 unsigned int nbits = min(BITS_PER_PAGE - offset, in iova_bitmap_set()
/linux-6.1.9/drivers/block/drbd/
Ddrbd_bitmap.c473 #ifndef BITS_PER_PAGE
474 #define BITS_PER_PAGE (1UL << (PAGE_SHIFT + 3)) macro
475 #define BITS_PER_PAGE_MASK (BITS_PER_PAGE - 1)
477 # if BITS_PER_PAGE != (1UL << (PAGE_SHIFT + 3))
564 bits += bitmap_weight(p_addr, BITS_PER_PAGE); in bm_count_bits()