Lines Matching refs:fcs
178 * FCS lookup table as calculated by genfcstab.
214 #define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
216 #define PPP_INITFCS 0xffff /* Initial FCS value */
217 #define PPP_GOODFCS 0xf0b8 /* Good final FCS value */
244 unsigned short fcs;
294 fcs = PPP_INITFCS;
296 fcs = PPP_FCS(fcs, p[k]);
297 fcs &= 0xFFFF;
326 if (fcs != PPP_GOODFCS)
327 printf(" BAD FCS: (residue = %x)\n", fcs);