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()518 --db_tab->page[index / MTHCA_DB_REC_PER_PAGE].refcount; in mthca_unmap_user_db()603 MTHCA_DB_REC_PER_PAGE)) { in mthca_alloc_db()643 bitmap_zero(page->used, MTHCA_DB_REC_PER_PAGE); in mthca_alloc_db()646 j = find_first_zero_bit(page->used, MTHCA_DB_REC_PER_PAGE); in mthca_alloc_db()650 j = MTHCA_DB_REC_PER_PAGE - 1 - j; in mthca_alloc_db()652 ret = i * MTHCA_DB_REC_PER_PAGE + j; in mthca_alloc_db()669 i = db_index / MTHCA_DB_REC_PER_PAGE; in mthca_free_db()670 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);