/linux-4.1.27/include/linux/ |
H A D | crc16.h | 2 * crc16.h - CRC-16 routine 22 extern u16 crc16(u16 crc, const u8 *buffer, size_t len);
|
/linux-4.1.27/lib/ |
H A D | crc16.c | 2 * 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 D | Makefile | 72 obj-$(CONFIG_CRC16) += crc16.o
|
/linux-4.1.27/drivers/w1/slaves/ |
H A D | w1_ds2423.c | 31 #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 D | w1_ds2433.c | 18 #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 D | w1_ds28e04.c | 17 #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 D | w1_ds2406.c | 18 #include <linux/crc16.h>
|
/linux-4.1.27/drivers/video/fbdev/msm/ |
H A D | mddi_hw.h | 146 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 D | mddi.c | 525 ra->crc16 = 0; mddi_remote_write() 564 ra->crc16 = 0; mddi_remote_read()
|
/linux-4.1.27/drivers/net/wireless/p54/ |
H A D | eeprom.c | 740 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 D | wl3501.h | 277 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 D | hmcdrv_ftp.c | 17 #include <linux/crc16.h> 90 crc = crc16(crc, cmd, len); hmcdrv_ftp_cmd_getid()
|
/linux-4.1.27/net/batman-adv/ |
H A D | bridge_loop_avoidance.c | 27 #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 D | types.h | 871 * @crc: crc16 checksum over all claims
|
/linux-4.1.27/fs/ubifs/ |
H A D | lpt.c | 47 #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 D | lpt_commit.c | 28 #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 D | zd_mac.h | 265 __le16 crc16; member in struct:cck_plcp_header
|
/linux-4.1.27/drivers/dma/bestcomm/ |
H A D | bestcomm.c | 269 0xc0145670, /* FDT[60] - crc16() */
|
/linux-4.1.27/drivers/net/hamradio/ |
H A D | mkiss.c | 21 #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 D | ttusb_dec.c | 253 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 D | genwqe_card.h | 416 __u16 vcrc; /* variant crc16 */
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | mmc_spi.c | 664 * + crc16 769 * + crc16
|
/linux-4.1.27/drivers/net/usb/ |
H A D | smsc95xx.c | 28 #include <linux/crc16.h> 1172 u32 crc = bitrev16(crc16(0xFFFF, buffer, len)); smsc_crc()
|
H A D | smsc75xx.c | 28 #include <linux/crc16.h> 1455 return bitrev16(crc16(0xFFFF, buffer, len)); smsc_crc()
|
/linux-4.1.27/drivers/misc/genwqe/ |
H A D | card_ddcb.c | 163 * should result in a crc16 of 0x89c3 165 * Return: crc16 checksum in big endian format !
|
/linux-4.1.27/fs/ext4/ |
H A D | super.c | 39 #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 D | ext4.h | 289 __le16 bg_checksum; /* crc16(sb_uuid+group+desc) */
|
/linux-4.1.27/net/bluetooth/ |
H A D | l2cap_core.c | 34 #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 D | bnx2x_hsi.h | 3007 u16 crc16; member in struct:dmae_command 3009 u16 crc16; member in struct:dmae_command
|