Home
last modified time | relevance | path

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

/drivers/infiniband/hw/mthca/
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()
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 …]
Dmthca_memfree.h48 MTHCA_DB_REC_PER_PAGE = MTHCA_ICM_PAGE_SIZE / 8 enumerator
139 DECLARE_BITMAP(used, MTHCA_DB_REC_PER_PAGE);