Home
last modified time | relevance | path

Searched refs:idm (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/gpu/drm/xe/
H A Dxe_guc_id_mgr.c17 static struct xe_guc *idm_to_guc(struct xe_guc_id_mgr *idm) in idm_to_guc() argument
19 return container_of(idm, struct xe_guc, submission_state.idm); in idm_to_guc()
22 static struct xe_gt *idm_to_gt(struct xe_guc_id_mgr *idm) in idm_to_gt() argument
24 return guc_to_gt(idm_to_guc(idm)); in idm_to_gt()
27 static struct xe_device *idm_to_xe(struct xe_guc_id_mgr *idm) in idm_to_xe() argument
29 return gt_to_xe(idm_to_gt(idm)); in idm_to_xe()
32 #define idm_assert(idm, cond) xe_gt_assert(idm_to_gt(idm), cond) argument
33 #define idm_mutex(idm) (&idm_to_guc(idm)->submission_state.lock) argument
35 static void idm_print_locked(struct xe_guc_id_mgr *idm, struct drm_printer *p, int indent);
39 struct xe_guc_id_mgr *idm = arg; in __fini_idm() local
[all …]
H A Dxe_guc_id_mgr.h12 int xe_guc_id_mgr_init(struct xe_guc_id_mgr *idm, unsigned int count);
14 int xe_guc_id_mgr_reserve_locked(struct xe_guc_id_mgr *idm, unsigned int count);
15 void xe_guc_id_mgr_release_locked(struct xe_guc_id_mgr *idm, unsigned int id, unsigned int count);
17 int xe_guc_id_mgr_reserve(struct xe_guc_id_mgr *idm, unsigned int count, unsigned int retain);
18 void xe_guc_id_mgr_release(struct xe_guc_id_mgr *idm, unsigned int start, unsigned int count);
20 void xe_guc_id_mgr_print(struct xe_guc_id_mgr *idm, struct drm_printer *p, int indent);
H A Dxe_guc_types.h70 struct xe_guc_id_mgr idm; member
H A Dxe_gt_sriov_pf_config.c716 struct xe_guc_id_mgr *idm = &gt->uc.guc.submission_state.idm; in pf_reserve_ctxs() local
719 return xe_guc_id_mgr_reserve(idm, num, spare); in pf_reserve_ctxs()
724 struct xe_guc_id_mgr *idm = &gt->uc.guc.submission_state.idm; in pf_release_ctxs() local
727 xe_guc_id_mgr_release(idm, start, num); in pf_release_ctxs()
931 struct xe_guc_id_mgr *idm = &gt->uc.guc.submission_state.idm; in pf_estimate_fair_ctxs() local
933 u32 fair = (idm->total - spare) / num_vfs; in pf_estimate_fair_ctxs()
937 ret = xe_guc_id_mgr_reserve(idm, fair * num_vfs, spare); in pf_estimate_fair_ctxs()
940 xe_guc_id_mgr_release(idm, ret, fair * num_vfs); in pf_estimate_fair_ctxs()
H A Dxe_guc_submit.c290 err = xe_guc_id_mgr_init(&guc->submission_state.idm, num_ids); in xe_guc_submit_init()
314 xe_guc_id_mgr_release_locked(&guc->submission_state.idm, in __release_guc_id()
335 ret = xe_guc_id_mgr_reserve_locked(&guc->submission_state.idm, in alloc_guc_id()
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_guc_id_mgr_test.c13 struct xe_guc_id_mgr *idm; in guc_id_mgr_test_init() local
16 idm = &xe_device_get_gt(test->priv, 0)->uc.guc.submission_state.idm; in guc_id_mgr_test_init()
18 mutex_init(idm_mutex(idm)); in guc_id_mgr_test_init()
19 test->priv = idm; in guc_id_mgr_test_init()
25 struct xe_guc_id_mgr *idm = test->priv; in bad_init() local
27 KUNIT_EXPECT_EQ(test, -EINVAL, xe_guc_id_mgr_init(idm, 0)); in bad_init()
28 KUNIT_EXPECT_EQ(test, -ERANGE, xe_guc_id_mgr_init(idm, GUC_ID_MAX + 1)); in bad_init()
33 struct xe_guc_id_mgr *idm = test->priv; in no_init() local
35 mutex_lock(idm_mutex(idm)); in no_init()
36 KUNIT_EXPECT_EQ(test, -ENODATA, xe_guc_id_mgr_reserve_locked(idm, 0)); in no_init()
[all …]
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm-hr2.dtsi187 reg-names = "nand", "iproc-idm", "iproc-ext";
H A Dbcm-ns.dtsi484 reg-names = "nand", "iproc-idm", "iproc-ext";
H A Dbcm-cygnus.dtsi469 reg-names = "nand", "iproc-idm", "iproc-ext";
H A Dbcm-nsp.dtsi278 reg-names = "nand", "iproc-idm", "iproc-ext";
/linux/arch/arm64/boot/dts/broadcom/stingray/
H A Dstingray.dtsi583 reg-names = "nand", "iproc-idm", "iproc-ext";
/linux/arch/arm64/boot/dts/broadcom/northstar2/
H A Dns2.dtsi739 reg-names = "nand", "iproc-idm", "iproc-ext";