Lines Matching defs:fcs
613 uint8_t fcs, b;
623 fcs = 0xff;
633 fcs = FCS(fcs, b);
639 fcs = FCS(fcs, b);
647 fcs = FCS(fcs, b);
660 fcs = FCS(fcs, b);
668 fcs = FCS(fcs, b);
670 if (fcs != 0xcf) {
671 DPRINTF("Bad FCS value (%#2.2x), frame discarded\n", fcs);
1469 uint8_t fcs, cr;
1498 fcs = 0xff;
1499 fcs = FCS(fcs, hdr->address);
1500 fcs = FCS(fcs, hdr->control);
1501 fcs = FCS(fcs, hdr->length);
1502 fcs = 0xff - fcs; /* ones complement */
1503 hdr->fcs = fcs;
1512 DPRINTFN(5, "dlci %d type %2.2x (%d bytes, fcs=%#2.2x)\n",
1513 dlci, type, m->m_pkthdr.len, fcs);
1532 uint8_t fcs, *hdr;
1575 fcs = FCS(0xff, *hdr);
1580 fcs = FCS(fcs, *hdr);
1602 fcs = 0xff - fcs; /* ones complement */
1604 m_copyback(m0, len, sizeof(fcs), &fcs);
1605 if (m0->m_pkthdr.len != len + sizeof(fcs))
1608 DPRINTFN(10, "dlci %d, pktlen %d (%d data, %d credits), fcs=%#2.2x\n",
1610 credits, fcs);