Lines Matching refs:evc
74 struct s_srf_evc *evc ; in smt_init_evc() local
84 evc = smc->evcs ; in smt_init_evc()
89 evc->evc_code = init->code ; in smt_init_evc()
90 evc->evc_para = init->para ; in smt_init_evc()
91 evc->evc_index = init->index + index ; in smt_init_evc()
93 evc->evc_multiple = &fail_safe ; in smt_init_evc()
94 evc->evc_cond_state = &fail_safe ; in smt_init_evc()
96 evc++ ; in smt_init_evc()
101 if ((unsigned int) (evc - smc->evcs) > MAX_EVCS) { in smt_init_evc()
142 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_init_evc()
143 if (SMT_IS_CONDITION(evc->evc_code)) { in smt_init_evc()
144 if (!evc->evc_cond_state) { in smt_init_evc()
147 evc->evc_multiple = &fail_safe ; in smt_init_evc()
150 if (!evc->evc_multiple) { in smt_init_evc()
153 evc->evc_cond_state = &fail_safe ; in smt_init_evc()
164 struct s_srf_evc *evc ; in smt_get_evc() local
166 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_get_evc()
167 if (evc->evc_code == code && evc->evc_index == index) in smt_get_evc()
168 return evc; in smt_get_evc()
187 struct s_srf_evc *evc ; in smt_srf_event() local
201 if (!(evc = smt_get_evc(smc,code,index))) { in smt_srf_event()
209 if (*evc->evc_cond_state == cond) in smt_srf_event()
220 *evc->evc_cond_state = TRUE ; in smt_srf_event()
221 evc->evc_rep_required = TRUE ; in smt_srf_event()
226 *evc->evc_cond_state = FALSE ; in smt_srf_event()
231 if (evc->evc_rep_required) { in smt_srf_event()
232 *evc->evc_multiple = TRUE ; in smt_srf_event()
235 evc->evc_rep_required = TRUE ; in smt_srf_event()
236 *evc->evc_multiple = FALSE ; in smt_srf_event()
242 snmp_srf_event(smc,evc) ; in smt_srf_event()
335 struct s_srf_evc *evc ; in clear_all_rep() local
338 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_all_rep()
339 evc->evc_rep_required = FALSE ; in clear_all_rep()
340 if (SMT_IS_CONDITION(evc->evc_code)) in clear_all_rep()
341 *evc->evc_cond_state = FALSE ; in clear_all_rep()
348 struct s_srf_evc *evc ; in clear_reported() local
352 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_reported()
353 if (SMT_IS_CONDITION(evc->evc_code)) { in clear_reported()
354 if (*evc->evc_cond_state == FALSE) in clear_reported()
355 evc->evc_rep_required = FALSE ; in clear_reported()
360 evc->evc_rep_required = FALSE ; in clear_reported()
361 *evc->evc_multiple = FALSE ; in clear_reported()
373 struct s_srf_evc *evc ; in smt_send_srf() local
406 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_send_srf()
407 if (evc->evc_rep_required) { in smt_send_srf()
408 smt_add_para(smc,&pcon,evc->evc_para, in smt_send_srf()
409 (int)evc->evc_index,0) ; in smt_send_srf()