Lines Matching refs:code
35 static struct s_srf_evc *smt_get_evc(struct s_smc *smc, int code, int index);
40 u_char code ; member
80 evc->evc_code = init->code ; in smt_init_evc()
152 static struct s_srf_evc *smt_get_evc(struct s_smc *smc, int code, int index) in smt_get_evc() argument
158 if (evc->evc_code == code && evc->evc_index == index) in smt_get_evc()
176 void smt_srf_event(struct s_smc *smc, int code, int index, int cond) in smt_srf_event() argument
185 if (code == SMT_COND_MAC_DUP_ADDR && cond) { in smt_srf_event()
189 if (code) { in smt_srf_event()
190 DB_SMT("SRF: %s index %d", srf_names[code], index); in smt_srf_event()
192 if (!(evc = smt_get_evc(smc,code,index))) { in smt_srf_event()
199 if (SMT_IS_CONDITION(code)) { in smt_srf_event()
208 if (SMT_IS_CONDITION(code)) { in smt_srf_event()