Lines Matching refs:rm
17 int mt_lp_rm_register(struct mt_resource_manager *rm) in mt_lp_rm_register() argument
22 if ((rm == NULL) || (rm->consts == NULL) || in mt_lp_rm_register()
27 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()
60 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_get_status() local
62 if ((rm == NULL) || (type >= PLAT_RC_MAX)) { in mt_lp_rm_get_status()
66 for (con = rm->consts; *con != NULL; con++) { in mt_lp_rm_get_status()
83 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_do_constraint() local
85 if ((rm == NULL) || (constraint_id >= plat_mt_rm.count)) { in mt_lp_rm_do_constraint()
89 rc = rm->consts[constraint_id]; in mt_lp_rm_do_constraint()
103 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_find_constraint() local
105 if ((rm == NULL) || (idx >= plat_mt_rm.count)) { in mt_lp_rm_find_constraint()
110 if (rm->update != NULL) { in mt_lp_rm_find_constraint()
111 res = rm->update(rm->consts, plat_mt_rm.count, stateid, priv); in mt_lp_rm_find_constraint()
118 for (i = idx, rc = (rm->consts + idx); *rc != NULL; i++, rc++) { in mt_lp_rm_find_constraint()
146 struct mt_resource_manager *rm = plat_mt_rm.plat_rm; in mt_lp_rm_do_update() local
148 if (rm == NULL) { in mt_lp_rm_do_update()
152 for (rc = rm->consts; *rc != NULL; rc++) { in mt_lp_rm_do_update()