• Home
  • Raw
  • Download

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()
189 struct s_srf_evc *evc ; in smt_srf_event() local
203 if (!(evc = smt_get_evc(smc,code,index))) { in smt_srf_event()
211 if (*evc->evc_cond_state == cond) in smt_srf_event()
222 *evc->evc_cond_state = TRUE ; in smt_srf_event()
223 evc->evc_rep_required = TRUE ; in smt_srf_event()
228 *evc->evc_cond_state = FALSE ; in smt_srf_event()
233 if (evc->evc_rep_required) { in smt_srf_event()
234 *evc->evc_multiple = TRUE ; in smt_srf_event()
237 evc->evc_rep_required = TRUE ; in smt_srf_event()
238 *evc->evc_multiple = FALSE ; in smt_srf_event()
244 snmp_srf_event(smc,evc) ; in smt_srf_event()
337 struct s_srf_evc *evc ; in clear_all_rep() local
340 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_all_rep()
341 evc->evc_rep_required = FALSE ; in clear_all_rep()
342 if (SMT_IS_CONDITION(evc->evc_code)) in clear_all_rep()
343 *evc->evc_cond_state = FALSE ; in clear_all_rep()
350 struct s_srf_evc *evc ; in clear_reported() local
354 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in clear_reported()
355 if (SMT_IS_CONDITION(evc->evc_code)) { in clear_reported()
356 if (*evc->evc_cond_state == FALSE) in clear_reported()
357 evc->evc_rep_required = FALSE ; in clear_reported()
362 evc->evc_rep_required = FALSE ; in clear_reported()
363 *evc->evc_multiple = FALSE ; in clear_reported()
375 struct s_srf_evc *evc ; in smt_send_srf() local
408 for (i = 0, evc = smc->evcs ; i < MAX_EVCS ; i++, evc++) { in smt_send_srf()
409 if (evc->evc_rep_required) { in smt_send_srf()
410 smt_add_para(smc,&pcon,evc->evc_para, in smt_send_srf()
411 (int)evc->evc_index,0) ; in smt_send_srf()