Home
last modified time | relevance | path

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

/net/irda/
Dwrapper.c92 } fcs; in async_wrap_skb() local
95 fcs.value = INIT_FCS; in async_wrap_skb()
143 fcs.value = irda_fcs(fcs.value, skb->data[i]); in async_wrap_skb()
147 fcs.value = ~fcs.value; in async_wrap_skb()
149 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
150 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
152 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
153 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
310 rx_buff->fcs = INIT_FCS; in async_unwrap_bof()
350 rx_buff->fcs = irda_fcs(rx_buff->fcs, in async_unwrap_eof()
[all …]
/net/bluetooth/rfcomm/
Dcore.c188 static inline int __check_fcs(u8 *data, int type, u8 fcs) in __check_fcs() argument
195 return rfcomm_crc_table[f ^ fcs] != 0xcf; in __check_fcs()
727 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_sabm()
741 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_ua()
755 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_disc()
775 cmd->fcs = __fcs2((u8 *) cmd); in rfcomm_queue_disc()
791 cmd.fcs = __fcs2((u8 *) &cmd); in rfcomm_send_dm()
1607 u8 type, dlci, fcs; in rfcomm_recv_frame() local
1614 fcs = *(u8 *)skb_tail_pointer(skb); in rfcomm_recv_frame()
1616 if (__check_fcs(skb->data, type, fcs)) { in rfcomm_recv_frame()