Home
last modified time | relevance | path

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

12

/freebsd-12.1/usr.sbin/ppp/
H A Dhdlc.c114 u_short fcs = INITFCS; in hdlc_Fcs() local
117 fcs = (fcs >> 8) ^ fcstab[(fcs ^ *cp++) & 0xff]; in hdlc_Fcs()
119 return fcs; in hdlc_Fcs()
132 fcs = (fcs >> 8) ^ fcstab[(fcs ^ *pos++) & 0xff]; in HdlcFcsBuf()
139 return (fcs); in HdlcFcsBuf()
148 u_short fcs; in hdlc_LayerPush() local
152 fcs = ~fcs; in hdlc_LayerPush()
167 *cp++ = fcs >> 8; in hdlc_LayerPush()
307 u_short fcs; in hdlc_LayerPull() local
322 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()
/freebsd-12.1/sys/netgraph/
H A Dng_pred1.c387 uint16_t fcs, lenn; in ng_pred1_compress() local
418 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2); in ng_pred1_compress()
419 fcs = Crc16(fcs, priv->inbuf + 2, inlen); in ng_pred1_compress()
420 fcs = ~fcs; in ng_pred1_compress()
440 (out + outlen)[0] = fcs & 0xFF; in ng_pred1_compress()
441 (out + outlen)[1] = fcs >> 8; in ng_pred1_compress()
470 uint16_t fcs; in ng_pred1_decompress() local
523 fcs = Crc16(PPP_INITFCS, (u_char *)&lenn, 2); in ng_pred1_decompress()
524 fcs = Crc16(fcs, priv->outbuf, len); in ng_pred1_decompress()
525 fcs = Crc16(fcs, priv->inbuf + inlen - 2, 2); in ng_pred1_decompress()
[all …]
H A Dng_async.c81 u_int16_t fcs; /* Decoded async FCS (so far) */ member
385 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
387 *fcs = PPP_FCS(*fcs, x); in nga_async_add()
406 u_int16_t fcs, fcs0; in nga_rcv_sync() local
411 #define ADD_BYTE(x) nga_async_add(sc, &fcs, accm, &alen, (x)) in nga_rcv_sync()
452 fcs = PPP_INITFCS; in nga_rcv_sync()
472 fcs0 = fcs; in nga_rcv_sync()
523 if (sc->fcs != PPP_GOODFCS) { in nga_rcv_async()
555 sc->fcs = PPP_INITFCS; in nga_rcv_async()
582 sc->fcs = PPP_FCS(sc->fcs, ch); in nga_rcv_async()
/freebsd-12.1/usr.sbin/bluetooth/bt3cfw/
H A Dbt3cfw.c144 int i, size, address, cs, fcs; in main() local
148 fcs = hexa2int8(buffer + 2 + size * 2); in main()
200 if (((cs + fcs) & 0xff) != 0xff) { in main()
203 firmware_filename, (cs & 0xff), fcs, in main()
204 ((cs + fcs) & 0xff)); in main()
/freebsd-12.1/sys/net/
H A Dppp_defs.h83 #define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
/freebsd-12.1/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
/freebsd-12.1/sys/i386/linux/
H A Dlinux_ptrace.c167 l_long fcs; member
180 linux_r->fcs = bsd_r->fpr_env[4]; in map_fpregs_to_linux()
193 bsd_r->fpr_env[4] = linux_r->fcs; in map_fpregs_from_linux()
205 l_long fcs; member
/freebsd-12.1/sys/gnu/dts/arm64/rockchip/
H A Drk3368-evb-act8846.dts20 fcs,suspend-voltage-selector = <1>;
32 fcs,suspend-voltage-selector = <1>;
H A Drk3399-puma.dtsi352 compatible = "fcs,fan53555";
354 fcs,suspend-voltage-selector = <1>;
388 compatible = "fcs,fan53555";
395 fcs,suspend-voltage-selector = <1>;
H A Drk3399-roc-pc.dts379 fcs,suspend-voltage-selector = <1>;
398 fcs,suspend-voltage-selector = <1>;
433 compatible = "fcs,fusb302";
450 compatible = "fcs,fusb302";
H A Drk3399-rockpro64.dts422 fcs,suspend-voltage-selector = <1>;
441 fcs,suspend-voltage-selector = <1>;
476 compatible = "fcs,fusb302";
H A Drk3399-nanopi4.dtsi183 fcs,suspend-voltage-selector = <1>;
202 fcs,suspend-voltage-selector = <1>;
435 compatible = "fcs,fusb302";
H A Drk3399-rock960.dtsi119 fcs,suspend-voltage-selector = <1>;
137 fcs,suspend-voltage-selector = <1>;
/freebsd-12.1/sys/gnu/dts/arm/
H A Drk3288-evb-act8846.dts35 fcs,suspend-voltage-selector = <1>;
47 fcs,suspend-voltage-selector = <1>;
H A Drk3288-firefly-reload-core.dtsi73 fcs,suspend-voltage-selector = <1>;
87 fcs,suspend-voltage-selector = <1>;
H A Drk3288-rock2-som.dtsi187 fcs,suspend-voltage-selector = <1>;
201 fcs,suspend-voltage-selector = <1>;
H A Drk3288-r89.dts122 fcs,suspend-voltage-selector = <1>;
136 fcs,suspend-voltage-selector = <1>;
H A Drk3288-miqi.dts125 fcs,suspend-voltage-selector = <1>;
139 fcs,suspend-voltage-selector = <1>;
H A Drk3288-phycore-som.dtsi320 compatible = "fcs,fan53555";
322 fcs,suspend-voltage-selector = <1>;
H A Drk3288-firefly.dtsi213 fcs,suspend-voltage-selector = <1>;
227 fcs,suspend-voltage-selector = <1>;
/freebsd-12.1/contrib/gcc/config/i386/
H A Dcrtfastmath.c91 long int fcs; in set_fast_math() member
/freebsd-12.1/sys/dev/amr/
H A Damr.c581 switch (ali.ui.fcs.opcode) { in amr_linux_ioctl_int()
583 switch(ali.ui.fcs.subopcode) { in amr_linux_ioctl_int()
606 if (ali.ui.fcs.opcode == 0x80) in amr_linux_ioctl_int()
609 len = ali.ui.fcs.length; in amr_linux_ioctl_int()
822 if (ali.ui.fcs.opcode == 0x82) in amr_ioctl()
825 adapter = (ali.ui.fcs.adapno) ^ 'm' << 8; in amr_ioctl()
/freebsd-12.1/sys/netgraph/bluetooth/include/
H A Dng_btsocket_rfcomm.h135 u_int8_t fcs; member
/freebsd-12.1/sys/dev/vmware/vmxnet3/
H A Dif_vmxreg.h168 uint32_t fcs:1; /* Frame CRC correct */ member

12