/linux/net/can/ |
A D | gw.c | 377 for (i = crc8->from_idx; i <= crc8->to_idx; i++) in cgw_csum_crc8_rel() 380 for (i = crc8->from_idx; i >= crc8->to_idx; i--) in cgw_csum_crc8_rel() 386 crc = crc8->crctab[crc ^ crc8->profile_data[0]]; in cgw_csum_crc8_rel() 399 cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val; in cgw_csum_crc8_rel() 408 for (i = crc8->from_idx; i <= crc8->to_idx; i++) in cgw_csum_crc8_pos() 413 crc = crc8->crctab[crc ^ crc8->profile_data[0]]; in cgw_csum_crc8_pos() 426 cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val; in cgw_csum_crc8_pos() 435 for (i = crc8->from_idx; i >= crc8->to_idx; i--) in cgw_csum_crc8_neg() 440 crc = crc8->crctab[crc ^ crc8->profile_data[0]]; in cgw_csum_crc8_neg() 453 cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val; in cgw_csum_crc8_neg() [all …]
|
/linux/drivers/w1/slaves/ |
A D | w1_ds250x.c | 52 u8 crc8; in w1_ds2502_read_page() local 67 crc8 = w1_read_8(sl->master); in w1_ds2502_read_page() 68 if (w1_calc_crc8(buf, 3) != crc8) in w1_ds2502_read_page() 73 crc8 = w1_read_8(sl->master); in w1_ds2502_read_page() 74 if (w1_calc_crc8(&data->eprom[pgoff], W1_PAGE_SIZE) != crc8) in w1_ds2502_read_page()
|
/linux/lib/ |
A D | crc8.c | 74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc) in crc8() function 82 EXPORT_SYMBOL(crc8);
|
A D | .crc8.o.cmd | 1 …crc8.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aar… 3 source_lib/crc8.o := lib/crc8.c 5 deps_lib/crc8.o := \ 877 include/linux/crc8.h \ 879 lib/crc8.o: $(deps_lib/crc8.o) 881 $(deps_lib/crc8.o):
|
A D | .built-in.a.cmd | 1 …o lib/crc16.o lib/crc-t10dif.o lib/crc-itu-t.o lib/crc32.o lib/crc7.o lib/crc8.o lib/xxhash.o lib/…
|
A D | built-in.a | 58 crc8.o/
|
A D | Makefile | 176 obj-$(CONFIG_CRC8) += crc8.o
|
A D | Kconfig | 264 algorithm. Module will be called crc8.
|
/linux/drivers/iio/chemical/ |
A D | scd30_i2c.c | 82 crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE); in scd30_i2c_command() 98 crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE); in scd30_i2c_command()
|
A D | sgp40.c | 175 tg.rht_crc = crc8(sgp40_crc8_table, (u8 *)&tg.rht_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw() 180 tg.temp_crc = crc8(sgp40_crc8_table, (u8 *)&tg.temp_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw() 199 crc = crc8(sgp40_crc8_table, (u8 *)&tgres.res_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw()
|
A D | sps30_i2c.c | 97 buf[i + 2] = crc8(sps30_i2c_crc8_table, buf + i, 2, CRC8_INIT_VALUE); in sps30_i2c_command() 110 crc = crc8(sps30_i2c_crc8_table, buf + i, 2, CRC8_INIT_VALUE); in sps30_i2c_command()
|
A D | scd4x.c | 158 crc = crc8(scd4x_crc8_table, buf + i, 2, CRC8_INIT_VALUE); in scd4x_read() 187 crc = crc8(scd4x_crc8_table, buf + 2, 2, CRC8_INIT_VALUE); in scd4x_write() 240 crc = crc8(scd4x_crc8_table, buf + i, 2, CRC8_INIT_VALUE); in scd4x_write_and_fetch()
|
A D | sgp30.c | 85 u8 crc8; member 212 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer()
|
/linux/drivers/hwmon/pmbus/ |
A D | adm1266.c | 122 crc = crc8(pmbus_crc_table, &addr, 1, 0); in adm1266_pmbus_block_xfer() 123 crc = crc8(pmbus_crc_table, msgs[0].buf, msgs[0].len, crc); in adm1266_pmbus_block_xfer() 126 crc = crc8(pmbus_crc_table, &addr, 1, crc); in adm1266_pmbus_block_xfer() 127 crc = crc8(pmbus_crc_table, msgs[1].buf, msgs[1].buf[0] + 1, crc); in adm1266_pmbus_block_xfer()
|
/linux/drivers/hwmon/ |
A D | sht4x.c | 105 crc = crc8(sht4x_crc8_table, &raw_data[0], SHT4X_WORD_LEN, CRC8_INIT_VALUE); in sht4x_read_values() 112 crc = crc8(sht4x_crc8_table, &raw_data[3], SHT4X_WORD_LEN, CRC8_INIT_VALUE); in sht4x_read_values()
|
A D | sht3x.c | 369 *position = crc8(sht3x_crc8_table, in limit_store()
|
/linux/include/linux/ |
A D | crc8.h | 99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc);
|
/linux/drivers/iio/accel/ |
A D | sca3300.c | 146 crc = ~crc8(sca3300_crc_table, &sca_data->txbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer() 156 crc = ~crc8(sca3300_crc_table, &sca_data->rxbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer()
|
/linux/drivers/mfd/ |
A D | mt6360-core.c | 438 crc = crc8(ddata->crc8_tbl, buf, val_size + MT6360_CRC_PREDATA_OFFSET, 0); in mt6360_regmap_read() 479 buf[val_size] = crc8(ddata->crc8_tbl, buf, val_size, 0); in mt6360_regmap_write()
|
/linux/drivers/i2c/ |
A D | i2c-core-smbus.c | 28 static u8 crc8(u16 data) in crc8() function 53 crc = crc8((crc ^ p[i]) << 8); in i2c_smbus_pec()
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | kernel-api.rst | 133 lib/crc8.c
|
/linux/drivers/gpio/ |
A D | gpio-max3191x.c | 141 val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0); in max3191x_readout_locked()
|
/linux/drivers/iio/pressure/ |
A D | icp10100.c | 180 crc = crc8(icp10100_crc8_table, ptr, ICP10100_CRC8_WORD_LENGTH, in icp10100_send_cmd()
|
/linux/Documentation/core-api/ |
A D | kernel-api.rst | 130 .. kernel-doc:: lib/crc8.c
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_type.h | 1389 u16 crc8; member
|