Searched refs:MTHCA_DB_REC_PER_PAGE (Results 1 – 2 of 2) sorted by relevance
461 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 …]
48 MTHCA_DB_REC_PER_PAGE = MTHCA_ICM_PAGE_SIZE / 8 enumerator139 DECLARE_BITMAP(used, MTHCA_DB_REC_PER_PAGE);