Home
last modified time | relevance | path

Searched refs:crc16 (Results 1 – 25 of 35) sorted by relevance

12

/linux/Documentation/translations/zh_CN/networking/
H A Dgeneric-hdlc.rst94 no-parity / crc16 / crc16-pr0 (预设零值的CRC16) / crc32-itu
96 crc16-itu (使用ITU-T多项式的CRC16) / crc16-itu-pr0 - 校验方式选项
/linux/drivers/w1/slaves/
H A Dw1_ds2423.c78 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.c158 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_ds2406.c48 if (crc16(0, w1_buf, sizeof(w1_buf)) == 0xb001) /* good read? */ in w1_f12_read_state()
80 if (crc16(0, w1_buf, sizeof(w1_buf)) == 0xb001) /* good read? */ in w1_f12_write_output()
H A Dw1_ds250x.c110 crc = crc16(CRC16_INIT, buf, 6); 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_ds28e04.c92 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()
H A Dw1_ds2433.c105 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block()
247 if (crc16(CRC16_INIT, &buf[idx], W1_PAGE_SIZE) != CRC16_VALID) { in eeprom_write()
/linux/lib/crc/
H A Dcrc16.c55 u16 crc16(u16 crc, const u8 *p, size_t len) in crc16() function
61 EXPORT_SYMBOL(crc16);
H A DMakefile8 obj-$(CONFIG_CRC16) += crc16.o
20 crc-t10dif-$(CONFIG_X86) += x86/crc16-msb-pclmul.o
H A DKconfig27 the functions from <linux/crc16.h>.
/linux/Documentation/networking/
H A Dgeneric-hdlc.rst88 no-parity / crc16 / crc16-pr0 (CRC16 with preset zeros) / crc32-itu
90 crc16-itu (CRC16 with ITU-T polynomial) / crc16-itu-pr0 - sets parity
/linux/drivers/input/keyboard/
H A Dapplespi.c131 __le16 crc16; member
168 __le16 crc16; member
201 __le16 crc16; member
221 __le16 crc16; member
234 __le16 crc16; member
249 __le16 crc16; member
266 __le16 crc16; member
353 __le16 crc16; member
864 crc = crc16(0, (u8 *)message, le16_to_cpu(packet->length) - 2); in applespi_send_cmd_msg()
867 crc = crc16(0, (u8 *)packet, sizeof(*packet) - 2); in applespi_send_cmd_msg()
[all …]
/linux/Documentation/filesystems/ext4/
H A Dgroup_descr.rst36 checksum is the crc16 of the FS UUID, the group number, and the group
102 - Group descriptor checksum; crc16(sb_uuid+group_num+bg_desc) if the
106 field in bg_desc is skipped when calculating crc16 checksum,
H A Dchecksums.rst71 else if gdt_csum, then crc16(UUID + group number + the entire
/linux/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()
/linux/drivers/net/can/spi/mcp251xfd/
H A DMakefile8 mcp251xfd-objs += mcp251xfd-crc16.o
/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_mac.h253 __le16 crc16; member
/linux/drivers/iio/chemical/
H A Dscd30_serial.c52 return crc16(0xffff, buf, size); in scd30_serdev_calc_crc()
/linux/Documentation/w1/slaves/
H A Dw1_ds2423.rst37 - 2 bytes for crc16 which was calculated from the data read since the previous crc bytes
/linux/Documentation/translations/zh_CN/core-api/
H A Dkernel-api.rst144 lib/crc16.c
/linux/drivers/net/hamradio/
H A Dmkiss.c150 crc = crc16(0, cp, size); in check_crc_16()
490 crc = swab16(crc16(0, p, len)); in ax_encaps()
/linux/drivers/crypto/
H A Datmel-i2c.c51 *__crc16 = cpu_to_le16(bitrev16(crc16(0, data, len))); in atmel_i2c_checksum()
/linux/arch/mips/pci/
H A Dpci-xtalk-bridge.c588 if (crc16(CRC16_INIT, prom, 32) != CRC16_VALID || in bridge_get_partnum()
589 crc16(CRC16_INIT, prom + 32, 32) != CRC16_VALID) in bridge_get_partnum()
/linux/lib/crc/tests/
H A Dcrc_kunit.c302 return crc16(crc, p, len); in crc16_wrapper()
/linux/fs/ubifs/
H A Dlpt.c360 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, in ubifs_pack_pnode()
392 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, in ubifs_pack_nnode()
417 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, in ubifs_pack_ltab()
439 crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, in ubifs_pack_lsave()
931 calc_crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES, in check_lpt_crc()

12