Searched refs:crc16 (Results 1 - 29 of 29) sorted by relevance

/linux-4.1.27/include/linux/
H A Dcrc16.h2 * crc16.h - CRC-16 routine
22 extern u16 crc16(u16 crc, const u8 *buffer, size_t len);
/linux-4.1.27/lib/
H A Dcrc16.c2 * crc16.c
10 #include <linux/crc16.h>
50 * crc16 - compute the CRC-16 for the data buffer
57 u16 crc16(u16 crc, u8 const *buffer, size_t len) crc16() function
63 EXPORT_SYMBOL(crc16); variable
H A DMakefile72 obj-$(CONFIG_CRC16) += crc16.o
/linux-4.1.27/drivers/w1/slaves/
H A Dw1_ds2423.c31 #include <linux/crc16.h>
91 crc = crc16(CRC16_INIT, wrbuf, 3); w1_slave_show()
92 crc = crc16(crc, rbuf, 11); w1_slave_show()
98 crc = crc16(CRC16_INIT, w1_slave_show()
H A Dw1_ds2433.c18 #include <linux/crc16.h>
89 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) w1_f23_refresh_block()
230 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { eeprom_write()
H A Dw1_ds28e04.c17 #include <linux/crc16.h>
99 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) w1_f1C_refresh_block()
251 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) eeprom_write()
H A Dw1_ds2406.c18 #include <linux/crc16.h>
/linux-4.1.27/drivers/video/fbdev/msm/
H A Dmddi_hw.h146 uint16_t crc16; member in struct:mddi_client_status
192 uint16_t crc16; member in struct:mddi_client_caps
285 uint16_t crc16; member in struct:mddi_register_access
H A Dmddi.c525 ra->crc16 = 0; mddi_remote_write()
564 ra->crc16 = 0; mddi_remote_read()
/linux-4.1.27/drivers/net/wireless/p54/
H A Deeprom.c740 u16 crc16 = ~0; p54_parse_eeprom() local
865 crc16 = ~crc_ccitt(crc16, (u8 *) entry, sizeof(*entry)); p54_parse_eeprom()
866 if (crc16 != le16_to_cpup((__le16 *)entry->data)) { p54_parse_eeprom()
879 crc16 = crc_ccitt(crc16, (u8 *)entry, (entry_len + 1) * 2); p54_parse_eeprom()
/linux-4.1.27/drivers/net/wireless/
H A Dwl3501.h277 u16 crc16; member in struct:wl3501_tx_hdr
298 u16 crc16; member in struct:wl3501_rx_hdr
546 u16 crc16; member in struct:wl3501_80211_tx_plcp_hdr
/linux-4.1.27/drivers/s390/char/
H A Dhmcdrv_ftp.c17 #include <linux/crc16.h>
90 crc = crc16(crc, cmd, len); hmcdrv_ftp_cmd_getid()
/linux-4.1.27/net/batman-adv/
H A Dbridge_loop_avoidance.c27 #include <linux/crc16.h>
602 claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); batadv_bla_add_claim()
609 backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); batadv_bla_add_claim()
637 claim->backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); batadv_bla_del_claim()
1100 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); batadv_bla_update_orig_address()
1237 crc = crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN); batadv_bla_init()
H A Dtypes.h871 * @crc: crc16 checksum over all claims
/linux-4.1.27/fs/ubifs/
H A Dlpt.c47 #include <linux/crc16.h>
370 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, ubifs_pack_pnode()
402 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, ubifs_pack_nnode()
427 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, ubifs_pack_ltab()
449 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, ubifs_pack_lsave()
921 calc_crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, check_lpt_crc()
H A Dlpt_commit.c28 #include <linux/crc16.h>
1129 calc_crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, is_a_node()
/linux-4.1.27/drivers/net/wireless/zd1211rw/
H A Dzd_mac.h265 __le16 crc16; member in struct:cck_plcp_header
/linux-4.1.27/drivers/dma/bestcomm/
H A Dbestcomm.c269 0xc0145670, /* FDT[60] - crc16() */
/linux-4.1.27/drivers/net/hamradio/
H A Dmkiss.c21 #include <linux/crc16.h>
158 crc = crc16(0, cp, size); check_crc_16()
498 crc = swab16(crc16(0, p, len)); ax_encaps()
/linux-4.1.27/drivers/media/usb/ttusb-dec/
H A Dttusb_dec.c253 static u16 crc16(u16 crc, const u8 *buf, size_t len) crc16() function
1335 firmware_csum = crc16(~0, firmware, firmware_size) ^ ~0; ttusb_dec_boot_dsp()
/linux-4.1.27/include/uapi/linux/genwqe/
H A Dgenwqe_card.h416 __u16 vcrc; /* variant crc16 */
/linux-4.1.27/drivers/mmc/host/
H A Dmmc_spi.c664 * + crc16
769 * + crc16
/linux-4.1.27/drivers/net/usb/
H A Dsmsc95xx.c28 #include <linux/crc16.h>
1172 u32 crc = bitrev16(crc16(0xFFFF, buffer, len)); smsc_crc()
H A Dsmsc75xx.c28 #include <linux/crc16.h>
1455 return bitrev16(crc16(0xFFFF, buffer, len)); smsc_crc()
/linux-4.1.27/drivers/misc/genwqe/
H A Dcard_ddcb.c163 * should result in a crc16 of 0x89c3
165 * Return: crc16 checksum in big endian format !
/linux-4.1.27/fs/ext4/
H A Dsuper.c39 #include <linux/crc16.h>
2041 /* old crc16 code */ ext4_group_desc_csum()
2048 crc = crc16(~0, sbi->s_es->s_uuid, sizeof(sbi->s_es->s_uuid)); ext4_group_desc_csum()
2049 crc = crc16(crc, (__u8 *)&le_group, sizeof(le_group)); ext4_group_desc_csum()
2050 crc = crc16(crc, (__u8 *)gdp, offset); ext4_group_desc_csum()
2056 crc = crc16(crc, (__u8 *)gdp + offset, ext4_group_desc_csum()
H A Dext4.h289 __le16 bg_checksum; /* crc16(sb_uuid+group+desc) */
/linux-4.1.27/net/bluetooth/
H A Dl2cap_core.c34 #include <linux/crc16.h>
1050 u16 fcs = crc16(0, (u8 *)skb->data, skb->len); l2cap_create_sframe_pdu()
1858 u16 fcs = crc16(0, (u8 *) skb->data, skb->len); l2cap_streaming_send()
1907 u16 fcs = crc16(0, (u8 *) skb->data, skb->len); l2cap_ertm_send()
2008 u16 fcs = crc16(0, (u8 *) tx_skb->data, l2cap_ertm_resend()
5740 our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size); l2cap_check_fcs()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_hsi.h3007 u16 crc16; member in struct:dmae_command
3009 u16 crc16; member in struct:dmae_command

Completed in 1214 milliseconds