Searched refs:BITS_PER_PAGE (Results 1 – 2 of 2) sorted by relevance
10 #define BITS_PER_PAGE (PAGE_SIZE * BITS_PER_BYTE) macro405 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()
473 #ifndef BITS_PER_PAGE474 #define BITS_PER_PAGE (1UL << (PAGE_SHIFT + 3)) macro475 #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()