Lines Matching full:fcs
530 int fcs, i, count, c, proto; in ppp_async_encode() local
541 fcs = ap->tfcs; in ppp_async_encode()
563 fcs = PPP_INITFCS; in ppp_async_encode()
570 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
572 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
577 * Once we put in the last byte, we need to put in the FCS in ppp_async_encode()
586 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
596 ap->tfcs = fcs; in ppp_async_encode()
601 * We have finished the packet. Add the FCS and flag. in ppp_async_encode()
603 fcs = ~fcs; in ppp_async_encode()
604 c = fcs & 0xff; in ppp_async_encode()
606 c = (fcs >> 8) & 0xff; in ppp_async_encode()
768 unsigned int len, fcs; in process_input_packet() local
777 /* check the FCS */ in process_input_packet()
782 fcs = PPP_INITFCS; in process_input_packet()
784 fcs = PPP_FCS(fcs, *p++); in process_input_packet()
785 if (fcs != PPP_GOODFCS) in process_input_packet()
786 goto err; /* bad FCS */ in process_input_packet()
952 int dlen, fcs, i, code; in async_lcp_peek() local
971 fcs = PPP_INITFCS; in async_lcp_peek()
973 fcs = PPP_FCS(fcs, data[i]); in async_lcp_peek()
977 ap->lcp_fcs = fcs; in async_lcp_peek()
982 fcs ^= ap->lcp_fcs; in async_lcp_peek()
984 if (fcs != 0) in async_lcp_peek()