Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/arch/powerpc/crypto/
H A Dcrc-vpmsum_test.c25 u16 crc16 = 0, verify16 = 0; in crc_test_init() local
89 crypto_shash_final(crct10dif_shash, (u8 *)(&crc16)); in crc_test_init()
93 if (crc16 != verify16) { in crc_test_init()
95 crc16, verify16, len); in crc_test_init()
/kernel/linux/linux-6.6/arch/powerpc/crypto/
H A Dcrc-vpmsum_test.c25 u16 crc16 = 0, verify16 = 0; in crc_test_init() local
89 crypto_shash_final(crct10dif_shash, (u8 *)(&crc16)); in crc_test_init()
93 if (crc16 != verify16) { in crc_test_init()
95 crc16, verify16, len); in crc_test_init()
/kernel/linux/linux-5.10/drivers/w1/slaves/
H A Dw1_ds2423.c18 #include <linux/crc16.h>
78 crc = crc16(CRC16_INIT, wrbuf, 3); in w1_slave_show()
79 crc = crc16(crc, rbuf, 11); in w1_slave_show()
85 crc = crc16(CRC16_INIT, in w1_slave_show()
H A Dw1_ds28e17.c8 #include <linux/crc16.h>
126 dev_warn(&sl->dev, "crc16 mismatch\n"); in w1_f19_error()
158 crc = crc16(CRC16_INIT, command, command_count); in __w1_f19_i2c_write()
162 crc = crc16(crc, w1_buf, 1); in __w1_f19_i2c_write()
165 crc = crc16(crc, buffer, count); in __w1_f19_i2c_write()
277 crc = crc16(CRC16_INIT, w1_buf, 3); in w1_f19_i2c_read()
316 crc = crc16(CRC16_INIT, w1_buf, 3); in w1_f19_i2c_write_read()
319 crc = crc16(crc, wbuffer, wcount); in w1_f19_i2c_write_read()
323 crc = crc16(crc, w1_buf, 1); in w1_f19_i2c_write_read()
H A Dw1_ds250x.c13 #include <linux/crc16.h>
108 w1_read_block(sl->master, buf + 3, 3); /* redir, crc16 */ in w1_ds2505_read_page()
110 crc = crc16(CRC16_INIT, buf, 6); in w1_ds2505_read_page()
126 w1_read_block(sl->master, buf, 2); /* crc16 */ in w1_ds2505_read_page()
127 crc = crc16(CRC16_INIT, &data->eprom[epoff], W1_PAGE_SIZE); in w1_ds2505_read_page()
128 crc = crc16(crc, buf, 2); in w1_ds2505_read_page()
H A Dw1_ds2433.c16 #include <linux/crc16.h>
82 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block()
223 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { in eeprom_write()
H A Dw1_ds28e04.c15 #include <linux/crc16.h>
92 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f1C_refresh_block()
244 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) in eeprom_write()
/kernel/linux/linux-6.6/drivers/w1/slaves/
H A Dw1_ds2423.c18 #include <linux/crc16.h>
78 crc = crc16(CRC16_INIT, wrbuf, 3); in w1_slave_show()
79 crc = crc16(crc, rbuf, 11); in w1_slave_show()
85 crc = crc16(CRC16_INIT, in w1_slave_show()
H A Dw1_ds28e17.c8 #include <linux/crc16.h>
126 dev_warn(&sl->dev, "crc16 mismatch\n"); in w1_f19_error()
158 crc = crc16(CRC16_INIT, command, command_count); in __w1_f19_i2c_write()
162 crc = crc16(crc, w1_buf, 1); in __w1_f19_i2c_write()
165 crc = crc16(crc, buffer, count); in __w1_f19_i2c_write()
277 crc = crc16(CRC16_INIT, w1_buf, 3); in w1_f19_i2c_read()
316 crc = crc16(CRC16_INIT, w1_buf, 3); in w1_f19_i2c_write_read()
319 crc = crc16(crc, wbuffer, wcount); in w1_f19_i2c_write_read()
323 crc = crc16(crc, w1_buf, 1); in w1_f19_i2c_write_read()
H A Dw1_ds250x.c13 #include <linux/crc16.h>
108 w1_read_block(sl->master, buf + 3, 3); /* redir, crc16 */ in w1_ds2505_read_page()
110 crc = crc16(CRC16_INIT, buf, 6); in w1_ds2505_read_page()
126 w1_read_block(sl->master, buf, 2); /* crc16 */ in w1_ds2505_read_page()
127 crc = crc16(CRC16_INIT, &data->eprom[epoff], W1_PAGE_SIZE); in w1_ds2505_read_page()
128 crc = crc16(crc, buf, 2); in w1_ds2505_read_page()
H A Dw1_ds2433.c16 #include <linux/crc16.h>
82 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block()
226 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { in eeprom_write()
H A Dw1_ds28e04.c15 #include <linux/crc16.h>
92 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f1C_refresh_block()
247 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) in eeprom_write()
/kernel/linux/linux-5.10/lib/
H A Dcrc16.c3 * 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) in crc16() function
61 EXPORT_SYMBOL(crc16); variable
/kernel/linux/linux-6.6/lib/
H A Dcrc16.c3 * 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) in crc16() function
61 EXPORT_SYMBOL(crc16); variable
/kernel/linux/linux-5.10/drivers/net/can/spi/mcp251xfd/
H A DMakefile7 mcp251xfd-objs += mcp251xfd-crc16.o
/kernel/linux/linux-5.10/include/linux/
H A Dcrc16.h3 * crc16.h - CRC-16 routine
20 extern u16 crc16(u16 crc, const u8 *buffer, size_t len);
/kernel/linux/linux-6.6/include/linux/
H A Dcrc16.h3 * crc16.h - CRC-16 routine
20 extern u16 crc16(u16 crc, const u8 *buffer, size_t len);
/kernel/linux/linux-5.10/drivers/input/keyboard/
H A Dapplespi.c45 #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
150 * @crc16: on last finger: crc over the whole message struct
152 * @crc16 field; unknown on all other fingers.
168 __le16 crc16; member
197 * @crc16: crc over the whole message struct (message header +
198 * this struct) minus this @crc16 field
201 __le16 crc16; member
221 __le16 crc16; global() member
234 __le16 crc16; global() member
249 __le16 crc16; global() member
266 __le16 crc16; global() member
344 __le16 crc16; global() member
[all...]
/kernel/linux/linux-6.6/drivers/input/keyboard/
H A Dapplespi.c45 #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
150 * @crc16: on last finger: crc over the whole message struct
152 * @crc16 field; unknown on all other fingers.
168 __le16 crc16; member
197 * @crc16: crc over the whole message struct (message header +
198 * this struct) minus this @crc16 field
201 __le16 crc16; member
221 __le16 crc16; global() member
234 __le16 crc16; global() member
249 __le16 crc16; global() member
266 __le16 crc16; global() member
353 __le16 crc16; global() member
[all...]
/kernel/linux/linux-6.6/drivers/net/can/spi/mcp251xfd/
H A DMakefile8 mcp251xfd-objs += mcp251xfd-crc16.o
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/
H A Deeprom.c739 u16 crc16 = ~0; in p54_parse_eeprom() local
864 crc16 = ~crc_ccitt(crc16, (u8 *) entry, sizeof(*entry)); in p54_parse_eeprom()
865 if (crc16 != le16_to_cpup((__le16 *)entry->data)) { in p54_parse_eeprom()
878 crc16 = crc_ccitt(crc16, (u8 *)entry, (entry_len + 1) * 2); in p54_parse_eeprom()
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/p54/
H A Deeprom.c739 u16 crc16 = ~0; in p54_parse_eeprom() local
864 crc16 = ~crc_ccitt(crc16, (u8 *) entry, sizeof(*entry)); in p54_parse_eeprom()
865 if (crc16 != le16_to_cpup((__le16 *)entry->data)) { in p54_parse_eeprom()
878 crc16 = crc_ccitt(crc16, (u8 *)entry, (entry_len + 1) * 2); in p54_parse_eeprom()
/kernel/linux/linux-5.10/drivers/iio/chemical/
H A Dscd30_serial.c7 #include <linux/crc16.h>
52 return crc16(0xffff, buf, size); in scd30_serdev_calc_crc()
/kernel/linux/linux-5.10/drivers/s390/char/
H A Dhmcdrv_ftp.c18 #include <linux/crc16.h>
91 crc = crc16(crc, cmd, len); in hmcdrv_ftp_cmd_getid()
/kernel/linux/linux-6.6/drivers/iio/chemical/
H A Dscd30_serial.c7 #include <linux/crc16.h>
52 return crc16(0xffff, buf, size); in scd30_serdev_calc_crc()

Completed in 15 milliseconds

123