Lines Matching refs:rm

18 int mt_lp_rm_register(struct mt_resource_manager *rm)  in mt_lp_rm_register()  argument
23 if ((rm == NULL) || (rm->consts == NULL) || in mt_lp_rm_register()
28 for (i = 0U, rc = rm->consts; *rc != NULL; i++, rc++) { in mt_lp_rm_register()
33 plat_mt_rm.plat_rm = rm; in mt_lp_rm_register()
58 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_get_status() local
60 if ((rm == NULL) || (type >= PLAT_RC_MAX)) in mt_lp_rm_get_status()
63 for (con = rm->consts; *con != NULL; con++) { in mt_lp_rm_get_status()
79 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_do_constraint() local
81 if ((rm == NULL) || (constraint_id >= plat_mt_rm.count)) in mt_lp_rm_do_constraint()
84 rc = rm->consts[constraint_id]; in mt_lp_rm_do_constraint()
97 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_find_constraint() local
99 if ((rm == NULL) || (idx >= plat_mt_rm.count)) in mt_lp_rm_find_constraint()
103 if (rm->update != NULL) { in mt_lp_rm_find_constraint()
104 res = rm->update(rm->consts, plat_mt_rm.count, stateid, priv); in mt_lp_rm_find_constraint()
110 for (i = idx, rc = (rm->consts + idx); *rc != NULL; i++, rc++) { in mt_lp_rm_find_constraint()
137 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_do_update() local
139 if (rm == NULL) in mt_lp_rm_do_update()
142 for (rc = rm->consts; *rc != NULL; rc++) { in mt_lp_rm_do_update()
155 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_do_hwctrl() local
158 if (!rm || !rm->hwctrl || (type >= PLAT_AP_HW_CTRL_MAX)) in mt_lp_rm_do_hwctrl()
161 res = rm->hwctrl(type, set, priv); in mt_lp_rm_do_hwctrl()