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