Home
last modified time | relevance | path

Searched refs:idm_reserve_chunk_locked (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/xe/tests/
Dxe_guc_id_mgr_test.c66 KUNIT_EXPECT_GE(test, idm_reserve_chunk_locked(idm, 1, 0), 0); in check_used()
87 KUNIT_EXPECT_EQ(test, idm_reserve_chunk_locked(idm, 1, idm->total), -EDQUOT); in check_quota()
88 KUNIT_EXPECT_EQ(test, idm_reserve_chunk_locked(idm, 1, idm->total - n), -EDQUOT); in check_quota()
89 KUNIT_EXPECT_EQ(test, idm_reserve_chunk_locked(idm, idm->total - n, 1), -EDQUOT); in check_quota()
90 KUNIT_EXPECT_GE(test, idm_reserve_chunk_locked(idm, 1, 1), 0); in check_quota()
92 KUNIT_EXPECT_LE(test, 0, idm_reserve_chunk_locked(idm, 1, 0)); in check_quota()
110 KUNIT_EXPECT_LE(test, 0, idm_reserve_chunk_locked(idm, 1, 0)); in check_all()
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_guc_id_mgr.c121 static int idm_reserve_chunk_locked(struct xe_guc_id_mgr *idm, in idm_reserve_chunk_locked() function
190 return idm_reserve_chunk_locked(idm, count, 0); in xe_guc_id_mgr_reserve_locked()
230 ret = idm_reserve_chunk_locked(idm, count, retain); in xe_guc_id_mgr_reserve()