Lines Matching refs:mmap_db_index
762 ((nes_ucontext->mmap_db_index[index] - nesdev->base_doorbell_index) * 4096)) in nes_mmap()
811 nespd->mmap_db_index = find_next_zero_bit(nesucontext->allocated_doorbells, in nes_alloc_pd()
814 nespd->mmap_db_index, nespd->pd_id); in nes_alloc_pd()
815 if (nespd->mmap_db_index >= NES_MAX_USER_DB_REGIONS) { in nes_alloc_pd()
823 uresp.mmap_db_index = nespd->mmap_db_index; in nes_alloc_pd()
830 set_bit(nespd->mmap_db_index, nesucontext->allocated_doorbells); in nes_alloc_pd()
831 nesucontext->mmap_db_index[nespd->mmap_db_index] = nespd->pd_id; in nes_alloc_pd()
832 nesucontext->first_free_db = nespd->mmap_db_index + 1; in nes_alloc_pd()
854 nespd->mmap_db_index); in nes_dealloc_pd()
855 clear_bit(nespd->mmap_db_index, nesucontext->allocated_doorbells); in nes_dealloc_pd()
856 nesucontext->mmap_db_index[nespd->mmap_db_index] = 0; in nes_dealloc_pd()
857 if (nesucontext->first_free_db > nespd->mmap_db_index) { in nes_dealloc_pd()
858 nesucontext->first_free_db = nespd->mmap_db_index; in nes_dealloc_pd()
1729 nes_ucontext->mmap_db_index[0]); in nes_create_cq()
1775 resp.mmap_db_index = 0; in nes_create_cq()