Home
last modified time | relevance | path

Searched refs:doorbell_bitmap (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_doorbell.c75 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 …]
Dkfd_priv.h372 unsigned long *doorbell_bitmap; member
694 unsigned long *doorbell_bitmap; member
Dkfd_device_queue_manager.c389 if (__test_and_set_bit(*restore_id, qpd->doorbell_bitmap)) in allocate_doorbell()
397 found = find_first_zero_bit(qpd->doorbell_bitmap, in allocate_doorbell()
403 set_bit(found, qpd->doorbell_bitmap); in allocate_doorbell()
426 old = test_and_clear_bit(q->doorbell_id, qpd->doorbell_bitmap); in deallocate_doorbell()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mes.c54 found = find_next_zero_bit(mes->doorbell_bitmap, mes->num_mes_dbs, offset); in amdgpu_mes_kernel_doorbell_get()
60 set_bit(found, mes->doorbell_bitmap); in amdgpu_mes_kernel_doorbell_get()
76 old = test_and_clear_bit(rel_index, mes->doorbell_bitmap); in amdgpu_mes_kernel_doorbell_free()
86 mes->doorbell_bitmap = bitmap_zalloc(PAGE_SIZE / sizeof(u32), GFP_KERNEL); in amdgpu_mes_doorbell_init()
87 if (!mes->doorbell_bitmap) { in amdgpu_mes_doorbell_init()
95 set_bit(i, mes->doorbell_bitmap); in amdgpu_mes_doorbell_init()
103 bitmap_free(adev->mes.doorbell_bitmap); in amdgpu_mes_doorbell_free()
Damdgpu_mes.h134 unsigned long *doorbell_bitmap; member