/dragonfly/usr.sbin/ppp/ |
H A D | hdlc.c | 112 u_short fcs = INITFCS; in hdlc_Fcs() local 115 fcs = (fcs >> 8) ^ fcstab[(fcs ^ *cp++) & 0xff]; in hdlc_Fcs() 117 return fcs; in hdlc_Fcs() 130 fcs = (fcs >> 8) ^ fcstab[(fcs ^ *pos++) & 0xff]; in HdlcFcsBuf() 137 return (fcs); in HdlcFcsBuf() 146 u_short fcs; in hdlc_LayerPush() local 150 fcs = ~fcs; in hdlc_LayerPush() 165 *cp++ = fcs >> 8; in hdlc_LayerPush() 305 u_short fcs; in hdlc_LayerPull() local 318 p->link.name, fcs, (fcs == GOODFCS) ? "good" : "BAD!"); in hdlc_LayerPull() [all …]
|
H A D | pred.c | 184 u_short fcs; in Pred1Output() local 195 fcs = hdlc_Fcs(bufp, 2 + orglen); in Pred1Output() 196 fcs = ~fcs; in Pred1Output() 211 *wp++ = fcs & 0377; in Pred1Output() 212 *wp++ = fcs >> 8; in Pred1Output() 226 u_short fcs; in Pred1Input() local 264 fcs = hdlc_Fcs(bufp, wp->m_len = pp - bufp); in Pred1Input() 265 if (fcs == GOODFCS) { in Pred1Input() 283 " olen = 0x%x\n", fcs, pre, len, olen); in Pred1Input()
|
/dragonfly/sys/netbt/ |
H A D | rfcomm_session.c | 627 fcs = FCS(fcs, b); in rfcomm_session_input() 633 fcs = FCS(fcs, b); in rfcomm_session_input() 641 fcs = FCS(fcs, b); in rfcomm_session_input() 654 fcs = FCS(fcs, b); in rfcomm_session_input() 662 fcs = FCS(fcs, b); in rfcomm_session_input() 1490 fcs = FCS(fcs, hdr->address); in rfcomm_session_send_frame() 1491 fcs = FCS(fcs, hdr->control); in rfcomm_session_send_frame() 1492 fcs = FCS(fcs, hdr->length); in rfcomm_session_send_frame() 1493 fcs = 0xff - fcs; /* ones complement */ in rfcomm_session_send_frame() 1494 hdr->fcs = fcs; in rfcomm_session_send_frame() [all …]
|
H A D | rfcomm.h | 167 uint8_t fcs; member
|
/dragonfly/sys/netgraph7/ |
H A D | ng_pred1.c | 385 uint16_t fcs, lenn; in ng_pred1_compress() local 411 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2); in ng_pred1_compress() 412 fcs = Crc16(fcs, priv->inbuf + 2, inlen); in ng_pred1_compress() 413 fcs = ~fcs; in ng_pred1_compress() 433 (out + outlen)[0] = fcs & 0xFF; in ng_pred1_compress() 434 (out + outlen)[1] = fcs >> 8; in ng_pred1_compress() 461 uint16_t fcs; in ng_pred1_decompress() local 508 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2); in ng_pred1_decompress() 509 fcs = Crc16(fcs, priv->outbuf, len); in ng_pred1_decompress() 510 fcs = Crc16(fcs, priv->inbuf + inlen - 2, 2); in ng_pred1_decompress() [all …]
|
/dragonfly/sys/netgraph7/async/ |
H A D | ng_async.c | 81 u_int16_t fcs; /* Decoded async FCS (so far) */ member 435 nga_async_add(const sc_p sc, u_int16_t *fcs, u_int32_t accm, int *len, u_char x) in nga_async_add() argument 437 *fcs = PPP_FCS(*fcs, x); in nga_async_add() 456 u_int16_t fcs, fcs0; in nga_rcv_sync() local 461 #define ADD_BYTE(x) nga_async_add(sc, &fcs, accm, &alen, (x)) in nga_rcv_sync() 502 fcs = PPP_INITFCS; in nga_rcv_sync() 522 fcs0 = fcs; in nga_rcv_sync() 573 if (sc->fcs != PPP_GOODFCS) { in nga_rcv_async() 605 sc->fcs = PPP_INITFCS; in nga_rcv_async() 632 sc->fcs = PPP_FCS(sc->fcs, ch); in nga_rcv_async()
|
/dragonfly/sys/netgraph/async/ |
H A D | ng_async.c | 73 u_int16_t fcs; /* Decoded async FCS (so far) */ member 417 nga_async_add(const sc_p sc, u_int16_t *fcs, u_int32_t accm, int *len, u_char x) in nga_async_add() argument 419 *fcs = PPP_FCS(*fcs, x); in nga_async_add() 438 u_int16_t fcs, fcs0; in nga_rcv_sync() local 441 #define ADD_BYTE(x) nga_async_add(sc, &fcs, accm, &alen, (x)) in nga_rcv_sync() 478 fcs = PPP_INITFCS; in nga_rcv_sync() 498 fcs0 = fcs; in nga_rcv_sync() 547 if (sc->fcs != PPP_GOODFCS) { in nga_rcv_async() 574 sc->fcs = PPP_INITFCS; in nga_rcv_async() 601 sc->fcs = PPP_FCS(sc->fcs, ch); in nga_rcv_async()
|
/dragonfly/contrib/tcpdump/ |
H A D | print-802_15_4.c | 1804 uint32_t fcs, crc_check; in ieee802_15_4_std_frames() local 1814 fcs = 0; in ieee802_15_4_std_frames() 1819 if (crc_check == fcs) { in ieee802_15_4_std_frames() 1826 if (crc_check == fcs) { in ieee802_15_4_std_frames() 2097 if (crc_check == fcs) { in ieee802_15_4_std_frames() 2101 fcs, crc_check); in ieee802_15_4_std_frames() 2203 uint32_t fcs, crc_check; in ieee802_15_4_mp_frame() local 2216 fcs = 0; in ieee802_15_4_mp_frame() 2222 if (crc_check == fcs) { in ieee802_15_4_mp_frame() 2412 if (crc_check == fcs) { in ieee802_15_4_mp_frame() [all …]
|
/dragonfly/sys/net/ppp_layer/ |
H A D | ppp_defs.h | 81 #define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
|
/dragonfly/contrib/file/magic/Magdir/ |
H A D | fcs | 3 # $File: fcs,v 1.4 2009/09/19 16:28:09 christos Exp $ 4 # fcs: file(1) magic for FCS (Flow Cytometry Standard) data files
|
/dragonfly/contrib/gcc-4.7/libgcc/config/i386/ |
H A D | crtfastmath.c | 106 long int fcs; in set_fast_math() member
|
/dragonfly/sys/netgraph7/bluetooth/include/ |
H A D | ng_btsocket_rfcomm.h | 133 u_int8_t fcs; member
|
/dragonfly/sys/dev/raid/amr/ |
H A D | amr.c | 535 switch (ali.ui.fcs.opcode) { in amr_linux_ioctl_int() 537 switch(ali.ui.fcs.subopcode) { in amr_linux_ioctl_int() 560 if (ali.ui.fcs.opcode == 0x80) in amr_linux_ioctl_int() 563 len = ali.ui.fcs.length; in amr_linux_ioctl_int() 779 if (ali.ui.fcs.opcode == 0x82) in amr_ioctl() 782 adapter = (ali.ui.fcs.adapno) ^ 'm' << 8; in amr_ioctl()
|
H A D | amrreg.h | 536 } __packed fcs; member
|
/dragonfly/sys/dev/virtual/vmware/vmxnet3/ |
H A D | if_vmxreg.h | 168 uint32_t fcs:1; /* Frame CRC correct */ member
|
/dragonfly/sys/netgraph7/bluetooth/socket/ |
H A D | ng_btsocket_rfcomm.c | 303 ng_btsocket_rfcomm_check_fcs(u_int8_t *data, int type, u_int8_t fcs) in ng_btsocket_rfcomm_check_fcs() argument 306 return (ng_btsocket_rfcomm_fcs3(data) != fcs); in ng_btsocket_rfcomm_check_fcs() 308 return (ng_btsocket_rfcomm_fcs2(data) != fcs); in ng_btsocket_rfcomm_check_fcs() 3090 hdr->fcs = ng_btsocket_rfcomm_fcs3((u_int8_t *) hdr); in ng_btsocket_rfcomm_send_command()
|