Lines Matching refs:doorbell_bitmap
75 kfd->doorbell_bitmap = bitmap_zalloc(size / sizeof(u32), GFP_KERNEL); in kfd_doorbell_init()
76 if (!kfd->doorbell_bitmap) { in kfd_doorbell_init()
91 bitmap_free(kfd->doorbell_bitmap); in kfd_doorbell_init()
101 bitmap_free(kfd->doorbell_bitmap); in kfd_doorbell_fini()
156 inx = find_first_zero_bit(kfd->doorbell_bitmap, PAGE_SIZE / sizeof(u32)); in kfd_get_kernel_doorbell()
158 __set_bit(inx, kfd->doorbell_bitmap); in kfd_get_kernel_doorbell()
186 __clear_bit(inx, kfd->doorbell_bitmap); in kfd_release_kernel_doorbell()
226 __set_bit(i, qpd->doorbell_bitmap); in init_doorbell_bitmap()
228 qpd->doorbell_bitmap); in init_doorbell_bitmap()
259 qpd->doorbell_bitmap = bitmap_zalloc(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, in kfd_alloc_process_doorbells()
261 if (!qpd->doorbell_bitmap) { in kfd_alloc_process_doorbells()
288 bitmap_free(qpd->doorbell_bitmap); in kfd_alloc_process_doorbells()
289 qpd->doorbell_bitmap = NULL; in kfd_alloc_process_doorbells()
297 if (qpd->doorbell_bitmap) { in kfd_free_process_doorbells()
298 bitmap_free(qpd->doorbell_bitmap); in kfd_free_process_doorbells()
299 qpd->doorbell_bitmap = NULL; in kfd_free_process_doorbells()