Home
last modified time | relevance | path

Searched refs:fcs (Results 1 – 16 of 16) sorted by relevance

/dragonfly/usr.sbin/ppp/
H A Dhdlc.c112 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 Dpred.c184 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 Drfcomm_session.c627 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 Drfcomm.h167 uint8_t fcs; member
/dragonfly/sys/netgraph7/
H A Dng_pred1.c385 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 Dng_async.c81 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 Dng_async.c73 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 Dprint-802_15_4.c1804 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 Dppp_defs.h81 #define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
/dragonfly/contrib/file/magic/Magdir/
H A Dfcs3 # $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 Dcrtfastmath.c106 long int fcs; in set_fast_math() member
/dragonfly/sys/netgraph7/bluetooth/include/
H A Dng_btsocket_rfcomm.h133 u_int8_t fcs; member
/dragonfly/sys/dev/raid/amr/
H A Damr.c535 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 Damrreg.h536 } __packed fcs; member
/dragonfly/sys/dev/virtual/vmware/vmxnet3/
H A Dif_vmxreg.h168 uint32_t fcs:1; /* Frame CRC correct */ member
/dragonfly/sys/netgraph7/bluetooth/socket/
H A Dng_btsocket_rfcomm.c303 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()