Lines Matching refs:NULL
23 if ((rm == NULL) || (rm->consts == NULL) || in mt_lp_rm_register()
24 (plat_mt_rm.plat_rm != NULL)) { in mt_lp_rm_register()
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()
41 struct mt_resource_constraint const *rc = NULL; in mt_lp_rm_reset_constraint()
43 if ((plat_mt_rm.plat_rm == NULL) || (idx >= plat_mt_rm.count)) in mt_lp_rm_reset_constraint()
48 if ((rc == NULL) || (rc->reset == NULL)) in mt_lp_rm_reset_constraint()
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()
64 if ((*con)->get_status == NULL) in mt_lp_rm_get_status()
81 if ((rm == NULL) || (constraint_id >= plat_mt_rm.count)) in mt_lp_rm_do_constraint()
85 if ((rc != NULL) && (rc->run != NULL)) in mt_lp_rm_do_constraint()
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()
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()
139 if (rm == NULL) in mt_lp_rm_do_update()
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()