Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/vfio/
Diova_bitmap.c10 #define BITS_PER_PAGE (PAGE_SIZE * BITS_PER_BYTE) macro
405 unsigned long page_idx = offset / BITS_PER_PAGE; in iova_bitmap_set()
409 offset = offset % BITS_PER_PAGE; in iova_bitmap_set()
412 unsigned long size = min(BITS_PER_PAGE - offset, nbits); in iova_bitmap_set()
/Linux-v6.1/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()