Searched refs:doorbell_bitmap (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_doorbell.c | 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() [all …]
|
D | kfd_priv.h | 373 unsigned long *doorbell_bitmap; member 705 unsigned long *doorbell_bitmap; member
|
D | kfd_device_queue_manager.c | 441 if (__test_and_set_bit(*restore_id, qpd->doorbell_bitmap)) in allocate_doorbell() 449 found = find_first_zero_bit(qpd->doorbell_bitmap, in allocate_doorbell() 455 set_bit(found, qpd->doorbell_bitmap); in allocate_doorbell() 478 old = test_and_clear_bit(q->doorbell_id, qpd->doorbell_bitmap); in deallocate_doorbell()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_mes.c | 53 found = find_next_zero_bit(mes->doorbell_bitmap, mes->num_mes_dbs, offset); in amdgpu_mes_kernel_doorbell_get() 59 set_bit(found, mes->doorbell_bitmap); in amdgpu_mes_kernel_doorbell_get() 74 old = test_and_clear_bit(rel_index, mes->doorbell_bitmap); in amdgpu_mes_kernel_doorbell_free() 84 mes->doorbell_bitmap = bitmap_zalloc(PAGE_SIZE / sizeof(u32), GFP_KERNEL); in amdgpu_mes_doorbell_init() 85 if (!mes->doorbell_bitmap) { in amdgpu_mes_doorbell_init() 93 set_bit(i, mes->doorbell_bitmap); in amdgpu_mes_doorbell_init() 124 bitmap_free(adev->mes.doorbell_bitmap); in amdgpu_mes_doorbell_free()
|
D | amdgpu_mes.h | 135 unsigned long *doorbell_bitmap; member
|