Lines Matching refs:fcs
521 int fcs, i, count, c, proto; in ppp_async_encode() local
532 fcs = ap->tfcs; in ppp_async_encode()
554 fcs = PPP_INITFCS; in ppp_async_encode()
561 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
563 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
577 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
587 ap->tfcs = fcs; in ppp_async_encode()
594 fcs = ~fcs; in ppp_async_encode()
595 c = fcs & 0xff; in ppp_async_encode()
597 c = (fcs >> 8) & 0xff; in ppp_async_encode()
759 unsigned int len, fcs; in process_input_packet() local
773 fcs = PPP_INITFCS; in process_input_packet()
775 fcs = PPP_FCS(fcs, *p++); in process_input_packet()
776 if (fcs != PPP_GOODFCS) in process_input_packet()
942 int dlen, fcs, i, code; in async_lcp_peek() local
961 fcs = PPP_INITFCS; in async_lcp_peek()
963 fcs = PPP_FCS(fcs, data[i]); in async_lcp_peek()
967 ap->lcp_fcs = fcs; in async_lcp_peek()
972 fcs ^= ap->lcp_fcs; in async_lcp_peek()
974 if (fcs != 0) in async_lcp_peek()