Home
last modified time | relevance | path

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

12

/freebsd-12-stable/usr.sbin/ppp/
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()
123 HdlcFcsBuf(u_short fcs, struct mbuf *m) in HdlcFcsBuf() argument
132 fcs = (fcs >> 8) ^ fcstab[(fcs ^ *pos++) & 0xff]; in HdlcFcsBuf()
139 return (fcs); in HdlcFcsBuf()
148 u_short fcs; in hdlc_LayerPush() local
151 fcs = HdlcFcsBuf(INITFCS, bp); in hdlc_LayerPush()
152 fcs = ~fcs; in hdlc_LayerPush()
166 *cp++ = fcs & 0377; /* Low byte first (nothing like consistency) */ in hdlc_LayerPush()
[all …]
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-stable/sys/netgraph/
Dng_pred1.c104 static uint16_t Crc16(uint16_t fcs, u_char *cp, int len);
387 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()
[all …]
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-stable/usr.sbin/bluetooth/bt3cfw/
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-stable/sys/net/
Dppp_defs.h83 #define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
/freebsd-12-stable/contrib/file/magic/Magdir/
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-stable/sys/i386/linux/
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-stable/sys/gnu/dts/arm64/rockchip/
Drk3368-evb-act8846.dts20 fcs,suspend-voltage-selector = <1>;
32 fcs,suspend-voltage-selector = <1>;
Drk3399-puma.dtsi358 compatible = "fcs,fan53555";
360 fcs,suspend-voltage-selector = <1>;
392 compatible = "fcs,fan53555";
399 fcs,suspend-voltage-selector = <1>;
Drk3399-roc-pc.dtsi457 fcs,suspend-voltage-selector = <1>;
476 fcs,suspend-voltage-selector = <1>;
509 compatible = "fcs,fusb302";
526 compatible = "fcs,fusb302";
Drk3399-hugsun-x99.dts193 fcs,suspend-voltage-selector = <1>;
211 fcs,suspend-voltage-selector = <1>;
427 compatible = "fcs,fusb302";
Drk3399-nanopi4.dtsi221 fcs,suspend-voltage-selector = <1>;
240 fcs,suspend-voltage-selector = <1>;
473 compatible = "fcs,fusb302";
Drk3399-orangepi.dts421 fcs,suspend-voltage-selector = <1>;
438 fcs,suspend-voltage-selector = <1>;
510 compatible = "fcs,fusb302";
Drk3399-rockpro64.dtsi428 fcs,suspend-voltage-selector = <1>;
447 fcs,suspend-voltage-selector = <1>;
482 compatible = "fcs,fusb302";
/freebsd-12-stable/sys/gnu/dts/arm/
Drk3288-evb-act8846.dts35 fcs,suspend-voltage-selector = <1>;
47 fcs,suspend-voltage-selector = <1>;
Drk3288-firefly-reload-core.dtsi73 fcs,suspend-voltage-selector = <1>;
87 fcs,suspend-voltage-selector = <1>;
Drk3288-rock2-som.dtsi187 fcs,suspend-voltage-selector = <1>;
201 fcs,suspend-voltage-selector = <1>;
Drk3288-r89.dts122 fcs,suspend-voltage-selector = <1>;
136 fcs,suspend-voltage-selector = <1>;
Drk3288-miqi.dts125 fcs,suspend-voltage-selector = <1>;
139 fcs,suspend-voltage-selector = <1>;
Drk3288-phycore-som.dtsi320 compatible = "fcs,fan53555";
322 fcs,suspend-voltage-selector = <1>;
/freebsd-12-stable/sys/gnu/dts/arm64/freescale/
Dimx8mq-nitrogen.dts115 compatible = "fcs,fan53555";
132 compatible = "fcs,fan53555";
149 compatible = "fcs,fan53555";
/freebsd-12-stable/contrib/gcc/config/i386/
Dcrtfastmath.c91 long int fcs; in set_fast_math() member
/freebsd-12-stable/sys/gnu/dts/arm64/amlogic/
Dmeson-gxm-s912-libretech-pc.dts46 compatible = "fcs,fusb302";
/freebsd-12-stable/sys/dev/amr/
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()

12