Lines Matching refs:evc
70 struct s_srf_evc *evc ; in smt_init_evc() local
80 evc = smc->evcs ; in smt_init_evc()
85 evc->evc_code = init->code ; in smt_init_evc()
86 evc->evc_para = init->para ; in smt_init_evc()
87 evc->evc_index = init->index + index ; in smt_init_evc()
89 evc->evc_multiple = &fail_safe ; in smt_init_evc()
90 evc->evc_cond_state = &fail_safe ; in smt_init_evc()
92 evc++ ; in smt_init_evc()
97 if ((unsigned int) (evc - smc->evcs) > MAX_EVCS) { in smt_init_evc()
138 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_init_evc()
139 if (SMT_IS_CONDITION(evc->evc_code)) { in smt_init_evc()
140 if (!evc->evc_cond_state) { in smt_init_evc()
143 evc->evc_multiple = &fail_safe ; in smt_init_evc()
146 if (!evc->evc_multiple) { in smt_init_evc()
149 evc->evc_cond_state = &fail_safe ; in smt_init_evc()
160 struct s_srf_evc *evc ; in smt_get_evc() local
162 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_get_evc()
163 if (evc->evc_code == code && evc->evc_index == index) in smt_get_evc()
164 return evc; in smt_get_evc()
183 struct s_srf_evc *evc ; in smt_srf_event() local
197 if (!(evc = smt_get_evc(smc,code,index))) { in smt_srf_event()
205 if (*evc->evc_cond_state == cond) in smt_srf_event()
216 *evc->evc_cond_state = TRUE ; in smt_srf_event()
217 evc->evc_rep_required = TRUE ; in smt_srf_event()
222 *evc->evc_cond_state = FALSE ; in smt_srf_event()
227 if (evc->evc_rep_required) { in smt_srf_event()
228 *evc->evc_multiple = TRUE ; in smt_srf_event()
231 evc->evc_rep_required = TRUE ; in smt_srf_event()
232 *evc->evc_multiple = FALSE ; in smt_srf_event()
238 snmp_srf_event(smc,evc) ; in smt_srf_event()
331 struct s_srf_evc *evc ; in clear_all_rep() local
334 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_all_rep()
335 evc->evc_rep_required = FALSE ; in clear_all_rep()
336 if (SMT_IS_CONDITION(evc->evc_code)) in clear_all_rep()
337 *evc->evc_cond_state = FALSE ; in clear_all_rep()
344 struct s_srf_evc *evc ; in clear_reported() local
348 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_reported()
349 if (SMT_IS_CONDITION(evc->evc_code)) { in clear_reported()
350 if (*evc->evc_cond_state == FALSE) in clear_reported()
351 evc->evc_rep_required = FALSE ; in clear_reported()
356 evc->evc_rep_required = FALSE ; in clear_reported()
357 *evc->evc_multiple = FALSE ; in clear_reported()
369 struct s_srf_evc *evc ; in smt_send_srf() local
402 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_send_srf()
403 if (evc->evc_rep_required) { in smt_send_srf()
404 smt_add_para(smc,&pcon,evc->evc_para, in smt_send_srf()
405 (int)evc->evc_index,0) ; in smt_send_srf()