Lines Matching refs:rc
21 struct mt_resource_constraint *const *rc; in mt_lp_rm_register() local
28 for (i = 0U, rc = rm->consts; *rc != NULL; i++, rc++) { in mt_lp_rm_register()
29 if ((*rc)->init != NULL) in mt_lp_rm_register()
30 (*rc)->init(); in mt_lp_rm_register()
41 struct mt_resource_constraint const *rc = NULL; in mt_lp_rm_reset_constraint() local
46 rc = plat_mt_rm.plat_rm->consts[idx]; in mt_lp_rm_reset_constraint()
48 if ((rc == NULL) || (rc->reset == NULL)) in mt_lp_rm_reset_constraint()
51 return rc->reset(cpuid, stateid); in mt_lp_rm_reset_constraint()
78 struct mt_resource_constraint const *rc; in mt_lp_rm_do_constraint() local
84 rc = rm->consts[constraint_id]; in mt_lp_rm_do_constraint()
85 if ((rc != NULL) && (rc->run != NULL)) in mt_lp_rm_do_constraint()
86 res = rc->run(cpuid, stateid); in mt_lp_rm_do_constraint()
96 struct mt_resource_constraint *const *rc; in mt_lp_rm_find_constraint() local
110 for (i = idx, rc = (rm->consts + idx); *rc != NULL; i++, rc++) { in mt_lp_rm_find_constraint()
111 if (((*rc)->is_valid != NULL) && in mt_lp_rm_find_constraint()
112 ((*rc)->is_valid(cpuid, stateid))) { in mt_lp_rm_find_constraint()
136 struct mt_resource_constraint *const *rc; in mt_lp_rm_do_update() local
142 for (rc = rm->consts; *rc != NULL; rc++) { in mt_lp_rm_do_update()
143 if ((*rc)->update != NULL) { in mt_lp_rm_do_update()
144 res = (*rc)->update(stateid, type, p); in mt_lp_rm_do_update()