Lines Matching refs:code
57 u8 code; member
204 static void ppp_tx_cp(struct net_device *dev, u16 pid, u8 code, in ppp_tx_cp() argument
217 if (pid == PID_LCP && (code == LCP_ECHO_REQ || code == LCP_ECHO_REPLY)) in ppp_tx_cp()
228 cp->code = code; in ppp_tx_cp()
238 BUG_ON(code >= CP_CODES); in ppp_tx_cp()
246 proto_name(pid), code_names[code], id, debug_buffer); in ppp_tx_cp()
299 static void ppp_cp_event(struct net_device *dev, u16 pid, u16 event, u8 code, in ppp_cp_event() argument
333 ppp_tx_cp(dev, pid, code, id, len, data); in ppp_cp_event()
475 if (cp->code < CP_CODES) in ppp_rx()
476 sprintf(debug_buffer, "[%s id 0x%X]", code_names[cp->code], in ppp_rx()
479 sprintf(debug_buffer, "[code %u id 0x%X]", cp->code, cp->id); in ppp_rx()
491 switch (cp->code) { in ppp_rx()
516 switch (cp->code) { in ppp_rx()