Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/drivers/isdn/tpam/
Dtpam_crcpc.c97 u16 fcs; in hdlc_encode_modem() local
101 fcs = HDLC_LIKE_FCS_INIT_VAL; in hdlc_encode_modem()
122 fcs = (fcs>>8) ^ t_ap_hdlc_like_fcs[((u8)(fcs^data)) & 0xff]; in hdlc_encode_modem()
130 fcs ^= 0xFFFF; // Complement in hdlc_encode_modem()
132 data = (u8)(fcs & 0xff); /* LSB */ in hdlc_encode_modem()
135 data = (u8)((fcs >> 8)); /* MSB */ in hdlc_encode_modem()
146 u16 fcs; in hdlc_no_accm_encode() local
153 fcs = HDLC_LIKE_FCS_INIT_VAL; in hdlc_no_accm_encode()
158 fcs = (fcs>>8) ^ t_ap_hdlc_like_fcs[((u8)(fcs^data)) & 0xff]; in hdlc_no_accm_encode()
165 fcs ^= 0xFFFF; // Complement in hdlc_no_accm_encode()
[all …]
/linux-2.4.37.9/net/irda/
Dwrapper.c103 } fcs; in async_wrap_skb() local
106 fcs.value = INIT_FCS; in async_wrap_skb()
149 fcs.value = irda_fcs(fcs.value, skb->data[i]); in async_wrap_skb()
153 fcs.value = ~fcs.value; in async_wrap_skb()
155 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
156 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
158 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
159 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
253 rx_buff->fcs = INIT_FCS; in state_begin_frame()
272 rx_buff->fcs = irda_fcs(rx_buff->fcs, byte); in state_begin_frame()
[all …]
Dcrc.c60 unsigned short irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len) in irda_calc_crc16() argument
63 fcs = irda_fcs(fcs, *buf++); in irda_calc_crc16()
64 return fcs; in irda_calc_crc16()
/linux-2.4.37.9/drivers/scsi/
Dpluto.c48 } *fcs __initdata = { 0 };
115 fcs = (struct ctrl_inquiry *) kmalloc (sizeof (struct ctrl_inquiry) * fcscount, GFP_DMA); in pluto_detect()
116 if (!fcs) { in pluto_detect()
121 memset (fcs, 0, sizeof (struct ctrl_inquiry) * fcscount); in pluto_detect()
140 fcs[i].fc = fc; in pluto_detect()
148 SCpnt = &(fcs[i].cmd); in pluto_detect()
149 host = &(fcs[i].host); in pluto_detect()
167 SCpnt->buffer = fcs[i].inquiry; in pluto_detect()
169 SCpnt->request_buffer = fcs[i].inquiry; in pluto_detect()
176 if (!fcs[i].fc) break; in pluto_detect()
[all …]
Dmegaraid.c4833 opcode = ioc.ui.fcs.opcode;
4834 subopcode = ioc.ui.fcs.subopcode;
4851 adapno = ioc.ui.fcs.adapno;
4896 adapno = ioc.ui.fcs.adapno;
4904 length = ioc.ui.fcs.length;
4911 uaddr = ioc.ui.fcs.buffer;
4923 ret = verify_area(VERIFY_WRITE, (char *)ioc.ui.fcs.buffer, length);
4927 ret = verify_area(VERIFY_READ, (char *) ioc.ui.fcs.buffer, length);
4969 ioc.ui.fcs.buffer = kvaddr;
5027 ioc.ui.fcs.buffer = uaddr;
[all …]
Dmegaraid2.c4632 opcode = uioc_mimd.ui.fcs.opcode; in mega_m_to_n()
4633 subopcode = uioc_mimd.ui.fcs.subopcode; in mega_m_to_n()
4652 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
4666 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
4670 uioc->xferlen = uioc_mimd.ui.fcs.length; in mega_m_to_n()
4671 uioc->u_dataaddr = uioc_mimd.ui.fcs.buffer; in mega_m_to_n()
4687 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
/linux-2.4.37.9/drivers/net/
Dppp_async.c546 int fcs, i, count, c, proto; in ppp_async_encode() local
557 fcs = ap->tfcs; in ppp_async_encode()
579 fcs = PPP_INITFCS; in ppp_async_encode()
586 fcs = PPP_FCS(fcs, 0xff); in ppp_async_encode()
588 fcs = PPP_FCS(fcs, 0x03); in ppp_async_encode()
602 fcs = PPP_FCS(fcs, c); in ppp_async_encode()
612 ap->tfcs = fcs; in ppp_async_encode()
619 fcs = ~fcs; in ppp_async_encode()
620 c = fcs & 0xff; in ppp_async_encode()
622 c = (fcs >> 8) & 0xff; in ppp_async_encode()
[all …]
/linux-2.4.37.9/include/net/irda/
Dcrc.h25 static inline __u16 irda_fcs(__u16 fcs, __u8 c) in irda_fcs() argument
27 return (((fcs) >> 8) ^ irda_crc16_table[((fcs) ^ (c)) & 0xff]); in irda_fcs()
31 unsigned short irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len);
Dirda_device.h154 __u16 fcs; member
/linux-2.4.37.9/include/linux/
Dppp_defs.h95 #define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
/linux-2.4.37.9/include/asm-i386/
Duser.h50 long fcs; member
62 long fcs; member
Dprocessor.h282 long fcs; member
295 long fcs; member
310 long fcs; member
/linux-2.4.37.9/include/asm-x86_64/
Duser32.h11 u32 fcs; member
24 int fcs; member
/linux-2.4.37.9/drivers/isdn/hisax/
Dnetjet.c272 u_int fcs; in make_raw_data() local
279 fcs = PPP_INITFCS; in make_raw_data()
282 fcs = PPP_FCS (fcs, val); in make_raw_data()
285 fcs ^= 0xffff; in make_raw_data()
286 val = fcs & 0xff; in make_raw_data()
288 val = (fcs>>8) & 0xff; in make_raw_data()
362 u_int fcs; in make_raw_data_56k() local
384 fcs = PPP_INITFCS; in make_raw_data_56k()
387 fcs = PPP_FCS (fcs, val); in make_raw_data_56k()
390 fcs ^= 0xffff; in make_raw_data_56k()
[all …]
/linux-2.4.37.9/drivers/net/irda/
Ddonauboe.c261 fcs; in toshoboe_checkfcs() local
263 fcs.value = INIT_FCS; in toshoboe_checkfcs()
266 fcs.value = irda_fcs (fcs.value, *(buf++)); in toshoboe_checkfcs()
268 return (fcs.value == GOOD_FCS); in toshoboe_checkfcs()
810 fcs; in toshoboe_maketestpacket() local
818 fcs.value = INIT_FCS; in toshoboe_maketestpacket()
827 fcs.value = irda_fcs (fcs.value, i); in toshoboe_maketestpacket()
830 len += stuff_byte (fcs.bytes[0] ^ badcrc, buf + len); in toshoboe_maketestpacket()
831 len += stuff_byte (fcs.bytes[1] ^ badcrc, buf + len); in toshoboe_maketestpacket()
/linux-2.4.37.9/arch/ppc/xmon/
Dxmon.c579 #define FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
585 unsigned short fcs; in csum() local
592 fcs = 0xffff; in csum()
598 fcs = FCS(fcs, v); in csum()
600 printf("%x\n", fcs); in csum()
/linux-2.4.37.9/net/bluetooth/rfcomm/
Dcore.c129 static inline int __check_fcs(u8 *data, int type, u8 fcs) in __check_fcs() argument
136 return rfcomm_crc_table[f ^ fcs] != 0xcf; in __check_fcs()
631 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_sabm()
645 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_ua()
659 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_disc()
679 cmd->fcs = __fcs2((u8 *) cmd); in rfcomm_queue_disc()
695 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_dm()
1458 u8 type, dlci, fcs; in rfcomm_recv_frame() local
1465 fcs = *(u8 *) skb->tail; in rfcomm_recv_frame()
1467 if (__check_fcs(skb->data, type, fcs)) { in rfcomm_recv_frame()
/linux-2.4.37.9/include/asm-ia64/
Dia32.h149 int fcs; member
162 int fcs; member
/linux-2.4.37.9/arch/ppc64/xmon/
Dxmon.c744 #define FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff]) argument
750 unsigned short fcs; in csum() local
757 fcs = 0xffff; in csum()
763 fcs = FCS(fcs, v); in csum()
765 printf("%x\n", fcs); in csum()
/linux-2.4.37.9/drivers/usb/
Dusbnet.c1680 u32 fcs; in zaurus_tx_fixup() local
1682 fcs = crc32_le (~0, skb->data, skb->len); in zaurus_tx_fixup()
1683 fcs = ~fcs; in zaurus_tx_fixup()
1685 *skb_put (skb, 1) = fcs & 0xff; in zaurus_tx_fixup()
1686 *skb_put (skb, 1) = (fcs>> 8) & 0xff; in zaurus_tx_fixup()
1687 *skb_put (skb, 1) = (fcs>>16) & 0xff; in zaurus_tx_fixup()
1688 *skb_put (skb, 1) = (fcs>>24) & 0xff; in zaurus_tx_fixup()
/linux-2.4.37.9/arch/i386/kernel/
Di387.c269 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user()
301 fxsave->fcs = (env[4] & 0xffff); in convert_fxsr_from_user()
/linux-2.4.37.9/drivers/bluetooth/
Dbt3c_cs.c495 unsigned int iobase, size, addr, fcs, tmp; in bt3c_load_firmware() local
530 fcs = simple_strtol(b, NULL, 16); in bt3c_load_firmware()
538 if (((tmp + fcs) & 0xff) != 0xff) { in bt3c_load_firmware()
/linux-2.4.37.9/drivers/net/pcmcia/
Dnmclan_cs.c336 int fcs; member
1302 lp->mace_stats.fcs++; in mace_rx()
1401 pstats->fram, pstats->fcs); in pr_mace_stats()
1465 lp->linux_stats.rx_crc_errors = lp->mace_stats.fcs; in update_stats()
/linux-2.4.37.9/include/net/bluetooth/
Drfcomm.h121 u8 fcs; member
/linux-2.4.37.9/arch/x86_64/ia32/
Dptrace32.c329 ret = __put_user(childregs->cs, &u->fcs); in sys32_ptrace()

12