Searched refs:BITS_PER_PAGE (Results 1 – 2 of 2) sorted by relevance
10 #define BITS_PER_PAGE (PAGE_SIZE * BITS_PER_BYTE) macro410 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()
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()