Lines Matching refs:rc
20 struct mt_resource_constraint *const *rc; in mt_lp_rm_register() local
27 for (i = 0U, rc = rm->consts; *rc != NULL; i++, rc++) { in mt_lp_rm_register()
28 if ((*rc)->init != NULL) { in mt_lp_rm_register()
29 (*rc)->init(); in mt_lp_rm_register()
41 struct mt_resource_constraint const *rc = NULL; in mt_lp_rm_reset_constraint() local
47 rc = plat_mt_rm.plat_rm->consts[idx]; in mt_lp_rm_reset_constraint()
49 if ((rc == NULL) || (rc->reset == NULL)) { in mt_lp_rm_reset_constraint()
53 return rc->reset(cpuid, stateid); in mt_lp_rm_reset_constraint()
82 struct mt_resource_constraint const *rc; in mt_lp_rm_do_constraint() local
89 rc = rm->consts[constraint_id]; in mt_lp_rm_do_constraint()
90 if ((rc != NULL) && (rc->run != NULL)) { in mt_lp_rm_do_constraint()
91 res = rc->run(cpuid, stateid); in mt_lp_rm_do_constraint()
102 struct mt_resource_constraint *const *rc; in mt_lp_rm_find_constraint() local
118 for (i = idx, rc = (rm->consts + idx); *rc != NULL; i++, rc++) { in mt_lp_rm_find_constraint()
119 if (((*rc)->is_valid != NULL) && in mt_lp_rm_find_constraint()
120 ((*rc)->is_valid(cpuid, stateid))) { in mt_lp_rm_find_constraint()
145 struct mt_resource_constraint *const *rc; in mt_lp_rm_do_update() local
152 for (rc = rm->consts; *rc != NULL; rc++) { in mt_lp_rm_do_update()
153 if ((*rc)->update != NULL) { in mt_lp_rm_do_update()
154 res = (*rc)->update(stateid, type, p); in mt_lp_rm_do_update()