Lines Matching refs:fcs
526 int fcs, i, count, c, proto; in ppp_async_encode() local
537 fcs = ap->tfcs; in ppp_async_encode()
559 fcs = PPP_INITFCS; in ppp_async_encode()
566 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
568 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
582 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
592 ap->tfcs = fcs; in ppp_async_encode()
599 fcs = ~fcs; in ppp_async_encode()
600 c = fcs & 0xff; in ppp_async_encode()
602 c = (fcs >> 8) & 0xff; in ppp_async_encode()
764 unsigned int len, fcs; in process_input_packet() local
778 fcs = PPP_INITFCS; in process_input_packet()
780 fcs = PPP_FCS(fcs, *p++); in process_input_packet()
781 if (fcs != PPP_GOODFCS) in process_input_packet()
947 int dlen, fcs, i, code; in async_lcp_peek() local
966 fcs = PPP_INITFCS; in async_lcp_peek()
968 fcs = PPP_FCS(fcs, data[i]); in async_lcp_peek()
972 ap->lcp_fcs = fcs; in async_lcp_peek()
977 fcs ^= ap->lcp_fcs; in async_lcp_peek()
979 if (fcs != 0) in async_lcp_peek()