Lines Matching refs:crc
58 u16 crc; in digital_skb_add_crc() local
60 crc = crc_func(init, skb->data, skb->len); in digital_skb_add_crc()
63 crc = ~crc; in digital_skb_add_crc()
66 crc = __fswab16(crc); in digital_skb_add_crc()
68 skb_put_u8(skb, crc & 0xFF); in digital_skb_add_crc()
69 skb_put_u8(skb, (crc >> 8) & 0xFF); in digital_skb_add_crc()
76 u16 crc; in digital_skb_check_crc() local
81 crc = crc_func(crc_init, skb->data, skb->len - 2); in digital_skb_check_crc()
84 crc = ~crc; in digital_skb_check_crc()
87 crc = __swab16(crc); in digital_skb_check_crc()
89 rc = (skb->data[skb->len - 2] - (crc & 0xFF)) + in digital_skb_check_crc()
90 (skb->data[skb->len - 1] - ((crc >> 8) & 0xFF)); in digital_skb_check_crc()