Home
last modified time | relevance | path

Searched refs:crc8 (Results 1 – 25 of 34) sorted by relevance

12

/linux/net/can/
A Dgw.c377 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 Dw1_ds250x.c52 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 Dcrc8.c74 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.cmd1crc8.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.cmd1 …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 Dbuilt-in.a58 crc8.o/
A DMakefile176 obj-$(CONFIG_CRC8) += crc8.o
A DKconfig264 algorithm. Module will be called crc8.
/linux/drivers/iio/chemical/
A Dscd30_i2c.c82 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 Dsgp40.c175 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 Dsps30_i2c.c97 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 Dscd4x.c158 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 Dsgp30.c85 u8 crc8; member
212 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer()
/linux/drivers/hwmon/pmbus/
A Dadm1266.c122 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 Dsht4x.c105 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 Dsht3x.c369 *position = crc8(sht3x_crc8_table, in limit_store()
/linux/include/linux/
A Dcrc8.h99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc);
/linux/drivers/iio/accel/
A Dsca3300.c146 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 Dmt6360-core.c438 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 Di2c-core-smbus.c28 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 Dkernel-api.rst133 lib/crc8.c
/linux/drivers/gpio/
A Dgpio-max3191x.c141 val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0); in max3191x_readout_locked()
/linux/drivers/iio/pressure/
A Dicp10100.c180 crc = crc8(icp10100_crc8_table, ptr, ICP10100_CRC8_WORD_LENGTH, in icp10100_send_cmd()
/linux/Documentation/core-api/
A Dkernel-api.rst130 .. kernel-doc:: lib/crc8.c
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_type.h1389 u16 crc8; member

Completed in 58 milliseconds

12