Home
last modified time | relevance | path

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

/drivers/infiniband/hw/ipath/
Dipath_qp.c42 #define BITS_PER_PAGE (PAGE_SIZE*BITS_PER_BYTE) macro
43 #define BITS_PER_PAGE_MASK (BITS_PER_PAGE-1)
44 #define mk_qpn(qpt, map, off) (((map) - (qpt)->map) * BITS_PER_PAGE + \
47 BITS_PER_PAGE, off)
136 map = &qpt->map[qpn / BITS_PER_PAGE]; in alloc_qpn()
162 } while (offset < BITS_PER_PAGE && qpn < QPN_MAX); in alloc_qpn()
194 map = qpt->map + qpn / BITS_PER_PAGE; in free_qpn()
1038 atomic_set(&idev->qp_table.map[i].n_free, BITS_PER_PAGE); in ipath_init_qp_table()
/drivers/block/drbd/
Ddrbd_bitmap.c482 #ifndef BITS_PER_PAGE
483 #define BITS_PER_PAGE (1UL << (PAGE_SHIFT + 3)) macro
484 #define BITS_PER_PAGE_MASK (BITS_PER_PAGE - 1)
486 # if BITS_PER_PAGE != (1UL << (PAGE_SHIFT + 3))