Lines Matching full:fcs
133 * When a frame is complete, check the FCS and pass valid frames to the LL.
143 __u16 fcs = bcs->rx_fcs; in hdlc_loop() local
208 /* frame too short for FCS */ in hdlc_loop()
214 } else if (fcs != PPP_GOODFCS) { in hdlc_loop()
242 fcs = PPP_INITFCS; in hdlc_loop()
268 fcs = crc_ccitt_byte(fcs, c); in hdlc_loop()
274 bcs->rx_fcs = fcs; in hdlc_loop()
450 * Encode a data packet into an octet stuffed HDLC frame with FCS,
461 __u16 fcs; in HDLC_Encode() local
468 fcs = PPP_INITFCS; in HDLC_Encode()
474 fcs = crc_ccitt_byte(fcs, *cp++); in HDLC_Encode()
476 fcs ^= 0xffff; /* complement */ in HDLC_Encode()
479 * + 2 bytes FCS + 2 stuffing bytes for FCS (if needed) + 2 flag bytes in HDLC_Encode()
506 /* Finally add FCS (byte stuffed) and flag sequence */ in HDLC_Encode()
507 c = (fcs & 0x00ff); /* least significant byte first */ in HDLC_Encode()
514 c = ((fcs >> 8) & 0x00ff); in HDLC_Encode()