Lines Matching refs:fcs
546 int fcs, i, count, c, proto; in ppp_async_encode() local
557 fcs = ap->tfcs; in ppp_async_encode()
579 fcs = PPP_INITFCS; in ppp_async_encode()
586 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
588 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
602 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
612 ap->tfcs = fcs; in ppp_async_encode()
619 fcs = ~fcs; in ppp_async_encode()
620 c = fcs & 0xff; in ppp_async_encode()
622 c = (fcs >> 8) & 0xff; in ppp_async_encode()
785 unsigned int len, fcs, proto; in process_input_packet() local
802 fcs = PPP_INITFCS; in process_input_packet()
804 fcs = PPP_FCS(fcs, *p++); in process_input_packet()
805 if (fcs != PPP_GOODFCS) 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()