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