Lines Matching refs:bitmap_idx
1139 u32 bitmap_idx; in alloc_db_resources() local
1147 bitmap_idx = find_first_zero_bit(dev->sdb_page, attrs->dwqe_pages); in alloc_db_resources()
1148 if (bitmap_idx != attrs->dwqe_pages) { in alloc_db_resources()
1149 set_bit(bitmap_idx, dev->sdb_page); in alloc_db_resources()
1153 ctx->sdb_idx = bitmap_idx; in alloc_db_resources()
1154 ctx->sdb_page_idx = bitmap_idx; in alloc_db_resources()
1156 (bitmap_idx << PAGE_SHIFT); in alloc_db_resources()
1162 bitmap_idx = find_first_zero_bit(dev->sdb_entry, attrs->dwqe_entries); in alloc_db_resources()
1163 if (bitmap_idx != attrs->dwqe_entries) { in alloc_db_resources()
1164 set_bit(bitmap_idx, dev->sdb_entry); in alloc_db_resources()
1168 ctx->sdb_idx = bitmap_idx; in alloc_db_resources()
1170 bitmap_idx / ERDMA_DWQE_TYPE1_CNT_PER_PAGE; in alloc_db_resources()
1171 ctx->sdb_page_off = bitmap_idx % ERDMA_DWQE_TYPE1_CNT_PER_PAGE; in alloc_db_resources()