Lines Matching refs:code
59 u8 code; member
207 static void ppp_tx_cp(struct net_device *dev, u16 pid, u8 code, in ppp_tx_cp() argument
220 if (pid == PID_LCP && (code == LCP_ECHO_REQ || code == LCP_ECHO_REPLY)) in ppp_tx_cp()
232 cp->code = code; in ppp_tx_cp()
242 BUG_ON(code >= CP_CODES); in ppp_tx_cp()
250 proto_name(pid), code_names[code], id, debug_buffer); in ppp_tx_cp()
304 static void ppp_cp_event(struct net_device *dev, u16 pid, u16 event, u8 code, in ppp_cp_event() argument
338 ppp_tx_cp(dev, pid, code, id, len, data); in ppp_cp_event()
474 if (cp->code < CP_CODES) in ppp_rx()
475 sprintf(debug_buffer, "[%s id 0x%X]", code_names[cp->code], in ppp_rx()
478 sprintf(debug_buffer, "[code %u id 0x%X]", cp->code, cp->id); in ppp_rx()
490 switch (cp->code) { in ppp_rx()
515 switch (cp->code) { in ppp_rx()