Lines Matching full:fcs
531 int fcs, i, count, c, proto; in ppp_async_encode() local
542 fcs = ap->tfcs; in ppp_async_encode()
564 fcs = PPP_INITFCS; in ppp_async_encode()
571 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
573 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
578 * Once we put in the last byte, we need to put in the FCS in ppp_async_encode()
587 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
597 ap->tfcs = fcs; in ppp_async_encode()
602 * We have finished the packet. Add the FCS and flag. in ppp_async_encode()
604 fcs = ~fcs; in ppp_async_encode()
605 c = fcs & 0xff; in ppp_async_encode()
607 c = (fcs >> 8) & 0xff; in ppp_async_encode()
769 unsigned int len, fcs; in process_input_packet() local
778 /* check the FCS */ in process_input_packet()
783 fcs = PPP_INITFCS; in process_input_packet()
785 fcs = PPP_FCS(fcs, *p++); in process_input_packet()
786 if (fcs != PPP_GOODFCS) in process_input_packet()
787 goto err; /* bad FCS */ in process_input_packet()
953 int dlen, fcs, i, code; in async_lcp_peek() local
972 fcs = PPP_INITFCS; in async_lcp_peek()
974 fcs = PPP_FCS(fcs, data[i]); in async_lcp_peek()
978 ap->lcp_fcs = fcs; in async_lcp_peek()
983 fcs ^= ap->lcp_fcs; in async_lcp_peek()
985 if (fcs != 0) in async_lcp_peek()