/linux-master/include/linux/ |
H A D | crc16.h | 3 * crc16.h - CRC-16 routine 20 extern u16 crc16(u16 crc, const u8 *buffer, size_t len);
|
/linux-master/drivers/w1/slaves/ |
H A D | w1_ds2423.c | 18 #include <linux/crc16.h> 78 crc = crc16(CRC16_INIT, wrbuf, 3); 79 crc = crc16(crc, rbuf, 11); 85 crc = crc16(CRC16_INIT,
|
H A D | w1_ds250x.c | 13 #include <linux/crc16.h> 108 w1_read_block(sl->master, buf + 3, 3); /* redir, crc16 */ 110 crc = crc16(CRC16_INIT, buf, 6); 126 w1_read_block(sl->master, buf, 2); /* crc16 */ 127 crc = crc16(CRC16_INIT, &data->eprom[epoff], W1_PAGE_SIZE); 128 crc = crc16(crc, buf, 2);
|
H A D | w1_ds28e17.c | 8 #include <linux/crc16.h> 126 dev_warn(&sl->dev, "crc16 mismatch\n"); 158 crc = crc16(CRC16_INIT, command, command_count); 162 crc = crc16(crc, w1_buf, 1); 165 crc = crc16(crc, buffer, count); 277 crc = crc16(CRC16_INIT, w1_buf, 3); 316 crc = crc16(CRC16_INIT, w1_buf, 3); 319 crc = crc16(crc, wbuffer, wcount); 323 crc = crc16(crc, w1_buf, 1);
|
H A D | w1_ds28e04.c | 15 #include <linux/crc16.h> 92 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) 247 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE)
|
H A D | w1_ds2433.c | 17 #include <linux/crc16.h> 105 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) 247 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) {
|
H A D | w1_ds2406.c | 16 #include <linux/crc16.h>
|
/linux-master/arch/powerpc/crypto/ |
H A D | crc-vpmsum_test.c | 25 u16 crc16 = 0, verify16 = 0; local 89 crypto_shash_final(crct10dif_shash, (u8 *)(&crc16)); 93 if (crc16 != verify16) { 95 crc16, verify16, len);
|
/linux-master/drivers/net/can/spi/mcp251xfd/ |
H A D | Makefile | 8 mcp251xfd-objs += mcp251xfd-crc16.o
|
/linux-master/lib/ |
H A D | crc16.c | 3 * crc16.c 8 #include <linux/crc16.h> 48 * crc16 - compute the CRC-16 for the data buffer 55 u16 crc16(u16 crc, u8 const *buffer, size_t len) function 61 EXPORT_SYMBOL(crc16); variable
|
/linux-master/drivers/s390/char/ |
H A D | hmcdrv_ftp.c | 18 #include <linux/crc16.h> 91 crc = crc16(crc, cmd, len);
|
/linux-master/drivers/iio/chemical/ |
H A D | scd30_serial.c | 7 #include <linux/crc16.h> 52 return crc16(0xffff, buf, size);
|
/linux-master/drivers/input/keyboard/ |
H A D | applespi.c | 45 #include <linux/crc16.h> 122 * @crc16: crc over the whole message struct (message header + 123 * this struct) minus this @crc16 field 131 __le16 crc16; member in struct:keyboard_protocol 150 * @crc16: on last finger: crc over the whole message struct 152 * @crc16 field; unknown on all other fingers. 168 __le16 crc16; member in struct:tp_finger 197 * @crc16: crc over the whole message struct (message header + 198 * this struct) minus this @crc16 field 201 __le16 crc16; member in struct:command_protocol_tp_info 221 __le16 crc16; member in struct:touchpad_info_protocol 234 __le16 crc16; member in struct:command_protocol_mt_init 249 __le16 crc16; member in struct:command_protocol_capsl 266 __le16 crc16; member in struct:command_protocol_bl 353 __le16 crc16; member in struct:spi_packet [all...] |
/linux-master/drivers/crypto/ |
H A D | atmel-i2c.c | 10 #include <linux/crc16.h> 51 *__crc16 = cpu_to_le16(bitrev16(crc16(0, data, len)));
|
/linux-master/drivers/net/wireless/intersil/p54/ |
H A D | eeprom.c | 739 u16 crc16 = ~0; local 864 crc16 = ~crc_ccitt(crc16, (u8 *) entry, sizeof(*entry)); 865 if (crc16 != le16_to_cpup((__le16 *)entry->data)) { 878 crc16 = crc_ccitt(crc16, (u8 *)entry, (entry_len + 1) * 2);
|
/linux-master/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_mac.h | 253 __le16 crc16; member in struct:cck_plcp_header
|
/linux-master/net/batman-adv/ |
H A D | bridge_loop_avoidance.c | 14 #include <linux/crc16.h> 190 old_backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); 753 old_backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); 761 backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); 1339 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); 1544 crc = crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN);
|
/linux-master/drivers/net/phy/ |
H A D | smsc.c | 23 #include <linux/crc16.h> 327 return bitrev16(crc16(0xFFFF, buffer, len));
|
/linux-master/drivers/net/hamradio/ |
H A D | mkiss.c | 11 #include <linux/crc16.h> 150 crc = crc16(0, cp, size); 490 crc = swab16(crc16(0, p, len));
|
/linux-master/arch/mips/pci/ |
H A D | pci-xtalk-bridge.c | 15 #include <linux/crc16.h> 588 if (crc16(CRC16_INIT, prom, 32) != CRC16_VALID || 589 crc16(CRC16_INIT, prom + 32, 32) != CRC16_VALID)
|
/linux-master/fs/ubifs/ |
H A D | lpt.c | 35 #include <linux/crc16.h> 360 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, 392 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, 417 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, 439 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, 931 calc_crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES,
|
/linux-master/drivers/net/ethernet/sgi/ |
H A D | ioc3-eth.c | 31 #include <linux/crc16.h> 218 crc16(CRC16_INIT, prom, 13) != CRC16_VALID)
|
/linux-master/drivers/hwmon/ |
H A D | aquacomputer_d5next.c | 15 #include <linux/crc16.h> 690 checksum = crc16(0xffff, priv->buffer + priv->checksum_start,
|
/linux-master/drivers/media/usb/ttusb-dec/ |
H A D | ttusb_dec.c | 301 static u16 crc16(u16 crc, const u8 *buf, size_t len) function 1354 firmware_csum = crc16(~0, firmware, firmware_size) ^ ~0;
|
/linux-master/drivers/net/can/usb/etas_es58x/ |
H A D | es58x_core.c | 14 #include <linux/crc16.h> 75 * es58x_calculate_crc() - Compute the crc16 of a given URB. 80 * Return: crc16 value. 87 crc = crc16(0, &urb_cmd->raw_cmd[ES58X_CRC_CALC_OFFSET], len); 97 * Return: crc16 value.
|