Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdkfd/
H A 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 …]
H A Dkfd_priv.h373 unsigned long *doorbell_bitmap; member
705 unsigned long *doorbell_bitmap; member
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_mes.c53 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()
H A Damdgpu_mes.h134 unsigned long *doorbell_bitmap; member