Lines Matching full:fcs
536 int fcs, i, count, c, proto; in ppp_async_encode() local
547 fcs = ap->tfcs; in ppp_async_encode()
569 fcs = PPP_INITFCS; in ppp_async_encode()
576 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
578 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
583 * Once we put in the last byte, we need to put in the FCS in ppp_async_encode()
592 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
602 ap->tfcs = fcs; in ppp_async_encode()
607 * We have finished the packet. Add the FCS and flag. in ppp_async_encode()
609 fcs = ~fcs; in ppp_async_encode()
610 c = fcs & 0xff; in ppp_async_encode()
612 c = (fcs >> 8) & 0xff; in ppp_async_encode()
774 unsigned int len, fcs; in process_input_packet() local
783 /* check the FCS */ in process_input_packet()
788 fcs = PPP_INITFCS; in process_input_packet()
790 fcs = PPP_FCS(fcs, *p++); in process_input_packet()
791 if (fcs != PPP_GOODFCS) in process_input_packet()
792 goto err; /* bad FCS */ in process_input_packet()
958 int dlen, fcs, i, code; in async_lcp_peek() local
977 fcs = PPP_INITFCS; in async_lcp_peek()
979 fcs = PPP_FCS(fcs, data[i]); in async_lcp_peek()
983 ap->lcp_fcs = fcs; in async_lcp_peek()
988 fcs ^= ap->lcp_fcs; in async_lcp_peek()
990 if (fcs != 0) in async_lcp_peek()