Lines Matching refs:evc
65 struct s_srf_evc *evc ; in smt_init_evc() local
75 evc = smc->evcs ; in smt_init_evc()
80 evc->evc_code = init->code ; in smt_init_evc()
81 evc->evc_para = init->para ; in smt_init_evc()
82 evc->evc_index = init->index + index ; in smt_init_evc()
84 evc->evc_multiple = &fail_safe ; in smt_init_evc()
85 evc->evc_cond_state = &fail_safe ; in smt_init_evc()
87 evc++ ; in smt_init_evc()
92 if ((unsigned int) (evc - smc->evcs) > MAX_EVCS) { in smt_init_evc()
133 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_init_evc()
134 if (SMT_IS_CONDITION(evc->evc_code)) { in smt_init_evc()
135 if (!evc->evc_cond_state) { in smt_init_evc()
138 evc->evc_multiple = &fail_safe ; in smt_init_evc()
141 if (!evc->evc_multiple) { in smt_init_evc()
144 evc->evc_cond_state = &fail_safe ; in smt_init_evc()
155 struct s_srf_evc *evc ; in smt_get_evc() local
157 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_get_evc()
158 if (evc->evc_code == code && evc->evc_index == index) in smt_get_evc()
159 return evc; in smt_get_evc()
178 struct s_srf_evc *evc ; in smt_srf_event() local
192 if (!(evc = smt_get_evc(smc,code,index))) { in smt_srf_event()
200 if (*evc->evc_cond_state == cond) in smt_srf_event()
211 *evc->evc_cond_state = TRUE ; in smt_srf_event()
212 evc->evc_rep_required = TRUE ; in smt_srf_event()
217 *evc->evc_cond_state = FALSE ; in smt_srf_event()
222 if (evc->evc_rep_required) { in smt_srf_event()
223 *evc->evc_multiple = TRUE ; in smt_srf_event()
226 evc->evc_rep_required = TRUE ; in smt_srf_event()
227 *evc->evc_multiple = FALSE ; in smt_srf_event()
233 snmp_srf_event(smc,evc) ; in smt_srf_event()
326 struct s_srf_evc *evc ; in clear_all_rep() local
329 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_all_rep()
330 evc->evc_rep_required = FALSE ; in clear_all_rep()
331 if (SMT_IS_CONDITION(evc->evc_code)) in clear_all_rep()
332 *evc->evc_cond_state = FALSE ; in clear_all_rep()
339 struct s_srf_evc *evc ; in clear_reported() local
343 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_reported()
344 if (SMT_IS_CONDITION(evc->evc_code)) { in clear_reported()
345 if (*evc->evc_cond_state == FALSE) in clear_reported()
346 evc->evc_rep_required = FALSE ; in clear_reported()
351 evc->evc_rep_required = FALSE ; in clear_reported()
352 *evc->evc_multiple = FALSE ; in clear_reported()
364 struct s_srf_evc *evc ; in smt_send_srf() local
397 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_send_srf()
398 if (evc->evc_rep_required) { in smt_send_srf()
399 smt_add_para(smc,&pcon,evc->evc_para, in smt_send_srf()
400 (int)evc->evc_index,0) ; in smt_send_srf()