Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c461 i = index / MTHCA_DB_REC_PER_PAGE; in mthca_map_user_db()
463 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) || in mthca_map_user_db()
520 --db_tab->page[index / MTHCA_DB_REC_PER_PAGE].refcount; in mthca_unmap_user_db()
606 MTHCA_DB_REC_PER_PAGE)) { in mthca_alloc_db()
646 bitmap_zero(page->used, MTHCA_DB_REC_PER_PAGE); in mthca_alloc_db()
649 j = find_first_zero_bit(page->used, MTHCA_DB_REC_PER_PAGE); in mthca_alloc_db()
653 j = MTHCA_DB_REC_PER_PAGE - 1 - j; in mthca_alloc_db()
655 ret = i * MTHCA_DB_REC_PER_PAGE + j; in mthca_alloc_db()
672 i = db_index / MTHCA_DB_REC_PER_PAGE; in mthca_free_db()
673 j = db_index % MTHCA_DB_REC_PER_PAGE; in mthca_free_db()
[all …]
H A Dmthca_memfree.h48 MTHCA_DB_REC_PER_PAGE = MTHCA_ICM_PAGE_SIZE / 8 enumerator
139 DECLARE_BITMAP(used, MTHCA_DB_REC_PER_PAGE);