Searched refs:crc_ccitt (Results 1 - 18 of 18) sorted by relevance

/linux-4.1.27/include/linux/
H A Dcrc-ccitt.h8 extern u16 crc_ccitt(u16 crc, const u8 *buffer, size_t len);
/linux-4.1.27/include/net/irda/
H A Dcrc.h27 #define irda_calc_crc16(fcs, buf, len) crc_ccitt(fcs, buf, len)
/linux-4.1.27/lib/
H A Dcrc-ccitt.c55 * crc_ccitt - recompute the CRC for the data buffer
60 u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len) crc_ccitt() function
66 EXPORT_SYMBOL(crc_ccitt); variable
/linux-4.1.27/net/nfc/
H A Ddigital.h139 digital_skb_add_crc(skb, crc_ccitt, CRC_A_INIT, 0, 0); digital_skb_add_crc_a()
144 digital_skb_add_crc(skb, crc_ccitt, CRC_B_INIT, 1, 0); digital_skb_add_crc_b()
162 return digital_skb_check_crc(skb, crc_ccitt, CRC_A_INIT, 0, 0); digital_skb_check_crc_a()
167 return digital_skb_check_crc(skb, crc_ccitt, CRC_B_INIT, 1, 0); digital_skb_check_crc_b()
/linux-4.1.27/net/nfc/nci/
H A Dspi.c85 crc = crc_ccitt(CRC_INIT, skb->data, skb->len); nci_spi_send()
170 crc = crc_ccitt(CRC_INIT, skb->data, skb->len); send_acknowledge()
252 ret = (crc_ccitt(CRC_INIT, skb->data, skb->len - NCI_SPI_CRC_LEN) nci_spi_check_crc()
/linux-4.1.27/net/mac802154/
H A Dtx.c87 u16 crc = crc_ccitt(0, skb->data, skb->len); ieee802154_tx()
H A Drx.c264 crc = crc_ccitt(0, skb->data, skb->len); ieee802154_rx()
276 crc = crc_ccitt(0, skb->data, skb->len); ieee802154_rx()
/linux-4.1.27/net/caif/
H A Dcffrml.c79 return crc_ccitt(chks, buf, len); cffrml_checksum()
/linux-4.1.27/drivers/nfc/st21nfca/
H A Di2c.c182 crc = crc_ccitt(0xffff, skb->data, skb->len); st21nfca_hci_add_len_crc()
289 crc = crc_ccitt(0xffff, buf, buflen - 2); check_crc()
/linux-4.1.27/drivers/nfc/nxp-nci/
H A Dfirmware.c84 /* crc_ccitt cannot be used since it is computed MSB first and not LSB first */ nxp_nci_fw_crc()
/linux-4.1.27/drivers/net/hamradio/
H A Dhdlcdrv.c90 unsigned int crc = crc_ccitt(0xffff, buffer, len) ^ 0xffff; append_crc_ccitt()
100 return (crc_ccitt(0xffff, buf, cnt) & 0xffff) == 0xf0b8; check_crc_ccitt()
H A Dbaycom_epp.c263 return (crc_ccitt(0xffff, buf, cnt) & 0xffff) == 0xf0b8; check_crc_ccitt()
270 return (crc_ccitt(0xffff, buf, cnt) ^ 0xffff) & 0xffff; calc_crc_ccitt()
/linux-4.1.27/drivers/net/wireless/p54/
H A Deeprom.c865 crc16 = ~crc_ccitt(crc16, (u8 *) entry, sizeof(*entry)); p54_parse_eeprom()
879 crc16 = crc_ccitt(crc16, (u8 *)entry, (entry_len + 1) * 2); p54_parse_eeprom()
/linux-4.1.27/drivers/nfc/pn544/
H A Di2c.c294 crc = crc_ccitt(0xffff, skb->data, skb->len); pn544_hci_i2c_add_len_crc()
351 crc = crc_ccitt(0xffff, buf, len - 2); check_crc()
625 crc = crc_ccitt(0xffff, data, datalen); pn544_hci_i2c_fw_check_cmd()
/linux-4.1.27/drivers/nfc/microread/
H A Dmicroread.c442 crc = crc_ccitt(0xffff, skb->data, skb->len); microread_im_transceive()
/linux-4.1.27/drivers/net/irda/
H A Dmcs7780.c385 /* Unwrap received packets at MIR speed. A 16 bit crc_ccitt checksum is
438 /* Unwrap received packets at FIR speed. A 32 bit crc_ccitt checksum is
/linux-4.1.27/drivers/net/ethernet/via/
H A Dvia-velocity.c3025 crc = crc_ccitt(crc, &(pattern[i * 8 + j]), 1); wol_calc_crc()
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2800lib.c561 crc = crc_ccitt(~0, data, len - 2); rt2800_check_firmware_crc()

Completed in 523 milliseconds