Lines Matching refs:pasid_limit
28 static unsigned int pasid_limit; variable
33 pasid_limit = KFD_MAX_NUM_OF_PROCESSES; in kfd_pasid_init()
35 pasid_bitmap = kcalloc(BITS_TO_LONGS(pasid_limit), sizeof(long), GFP_KERNEL); in kfd_pasid_init()
51 if (new_limit < pasid_limit) { in kfd_set_pasid_limit()
57 ok = (find_next_bit(pasid_bitmap, pasid_limit, new_limit) == in kfd_set_pasid_limit()
58 pasid_limit); in kfd_set_pasid_limit()
60 pasid_limit = new_limit; in kfd_set_pasid_limit()
72 return pasid_limit; in kfd_get_pasid_limit()
81 found = find_first_zero_bit(pasid_bitmap, pasid_limit); in kfd_pasid_alloc()
82 if (found == pasid_limit) in kfd_pasid_alloc()
94 BUG_ON(pasid == 0 || pasid >= pasid_limit); in kfd_pasid_free()