| /kernel/linux/linux-5.10/net/can/ |
| D | gw.c | 104 struct cgw_csum_crc8 crc8; member 109 void (*crc8)(struct canfd_frame *cf, member 110 struct cgw_csum_crc8 *crc8); 303 struct cgw_csum_crc8 *crc8) in cgw_csum_crc8_rel() argument 305 int from = calc_idx(crc8->from_idx, cf->len); in cgw_csum_crc8_rel() 306 int to = calc_idx(crc8->to_idx, cf->len); in cgw_csum_crc8_rel() 307 int res = calc_idx(crc8->result_idx, cf->len); in cgw_csum_crc8_rel() 308 u8 crc = crc8->init_crc_val; in cgw_csum_crc8_rel() 315 for (i = crc8->from_idx; i <= crc8->to_idx; i++) in cgw_csum_crc8_rel() 316 crc = crc8->crctab[crc ^ cf->data[i]]; in cgw_csum_crc8_rel() [all …]
|
| /kernel/linux/linux-6.6/net/can/ |
| D | gw.c | 104 struct cgw_csum_crc8 crc8; member 109 void (*crc8)(struct canfd_frame *cf, member 110 struct cgw_csum_crc8 *crc8); 365 struct cgw_csum_crc8 *crc8) in cgw_csum_crc8_rel() argument 367 int from = calc_idx(crc8->from_idx, cf->len); in cgw_csum_crc8_rel() 368 int to = calc_idx(crc8->to_idx, cf->len); in cgw_csum_crc8_rel() 369 int res = calc_idx(crc8->result_idx, cf->len); in cgw_csum_crc8_rel() 370 u8 crc = crc8->init_crc_val; in cgw_csum_crc8_rel() 377 for (i = crc8->from_idx; i <= crc8->to_idx; i++) in cgw_csum_crc8_rel() 378 crc = crc8->crctab[crc ^ cf->data[i]]; in cgw_csum_crc8_rel() [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | crc8.h | 21 /* see usage of this value in crc8() description */ 25 * Return value of crc8() indicating valid message+crc. This is true 32 /* required table size for crc8 algorithm */ 76 * crc8() - calculate a crc8 over the given input data. 81 * @crc: previous returned crc8 value. 83 * The CRC8 is calculated using the polynomial given in crc8_populate_msb() 91 * stream (including CRC8), a final return value of %CRC8_GOOD_VALUE 99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc);
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | crc8.h | 21 /* see usage of this value in crc8() description */ 25 * Return value of crc8() indicating valid message+crc. This is true 32 /* required table size for crc8 algorithm */ 76 * crc8() - calculate a crc8 over the given input data. 81 * @crc: previous returned crc8 value. 83 * The CRC8 is calculated using the polynomial given in crc8_populate_msb() 91 * stream (including CRC8), a final return value of %CRC8_GOOD_VALUE 99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc);
|
| /kernel/linux/linux-6.6/drivers/iio/chemical/ |
| D | sps30_i2c.c | 10 #include <linux/crc8.h> 71 * PM1: upper two bytes, crc8, lower two bytes, crc8 in sps30_i2c_command() 72 * PM2P5: upper two bytes, crc8, lower two bytes, crc8 in sps30_i2c_command() 73 * PM4: upper two bytes, crc8, lower two bytes, crc8 in sps30_i2c_command() 74 * PM10: upper two bytes, crc8, lower two bytes, crc8 in sps30_i2c_command() 89 /* each two bytes are followed by a crc8 */ in sps30_i2c_command() 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()
|
| D | Kconfig | 102 select CRC8 126 select CRC8 137 select CRC8 150 select CRC8 167 select CRC8
|
| D | scd30_i2c.c | 9 #include <linux/crc8.h> 78 /* each two bytes are followed by a crc8 */ in scd30_i2c_command() 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()
|
| D | sgp40.c | 28 #include <linux/crc8.h> 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()
|
| /kernel/linux/linux-6.6/lib/ |
| D | crc8.c | 20 #include <linux/crc8.h> 67 * crc8 - calculate a crc8 over the given input data. 72 * @crc: previous returned crc8 value. 74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc) in crc8() function 82 EXPORT_SYMBOL(crc8); 84 MODULE_DESCRIPTION("CRC8 (by Williams, Ross N.) function");
|
| D | Kconfig | 275 config CRC8 config 276 tristate "CRC8 function" 278 This option provides CRC8 function. Drivers may select this 279 when they need to do cyclic redundancy check according CRC8 280 algorithm. Module will be called crc8.
|
| /kernel/linux/linux-5.10/lib/ |
| D | crc8.c | 20 #include <linux/crc8.h> 67 * crc8 - calculate a crc8 over the given input data. 72 * @crc: previous returned crc8 value. 74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc) in crc8() function 82 EXPORT_SYMBOL(crc8); 84 MODULE_DESCRIPTION("CRC8 (by Williams, Ross N.) function");
|
| D | Kconfig | 243 config CRC8 config 244 tristate "CRC8 function" 246 This option provides CRC8 function. Drivers may select this 247 when they need to do cyclic redundancy check according CRC8 248 algorithm. Module will be called crc8.
|
| /kernel/linux/linux-5.10/drivers/iio/chemical/ |
| D | sps30.c | 11 #include <linux/crc8.h> 95 * PM1: upper two bytes, crc8, lower two bytes, crc8 in sps30_do_cmd() 96 * PM2P5: upper two bytes, crc8, lower two bytes, crc8 in sps30_do_cmd() 97 * PM4: upper two bytes, crc8, lower two bytes, crc8 in sps30_do_cmd() 98 * PM10: upper two bytes, crc8, lower two bytes, crc8 in sps30_do_cmd() 110 buf[4] = crc8(sps30_crc8_table, &buf[2], 2, CRC8_INIT_VALUE); in sps30_do_cmd() 132 buf[4] = crc8(sps30_crc8_table, &buf[2], 2, CRC8_INIT_VALUE); in sps30_do_cmd() 135 buf[7] = crc8(sps30_crc8_table, &buf[5], 2, CRC8_INIT_VALUE); in sps30_do_cmd() 145 u8 crc = crc8(sps30_crc8_table, &buf[i], 2, CRC8_INIT_VALUE); in sps30_do_cmd()
|
| D | scd30_i2c.c | 9 #include <linux/crc8.h> 78 /* each two bytes are followed by a crc8 */ in scd30_i2c_command() 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()
|
| D | Kconfig | 102 select CRC8 124 select CRC8 137 select CRC8
|
| /kernel/linux/linux-6.6/drivers/nvmem/layouts/ |
| D | sl28vpd.c | 3 #include <linux/crc8.h> 21 u8 crc8; member 71 crc = crc8(table, (void *)&data_v1, sizeof(data_v1) - 1, 0); in sl28vpd_v1_check_crc() 73 if (crc != data_v1.crc8) { in sl28vpd_v1_check_crc() 76 crc, data_v1.crc8); in sl28vpd_v1_check_crc()
|
| /kernel/linux/linux-6.6/drivers/hwmon/ |
| D | aht10.c | 13 #include <linux/crc8.h> 78 * @crc8: crc8 support flag 93 bool crc8; member 155 return crc8(crc8_table, raw_data, count, CRC8_INIT_VALUE); in crc8_check() 193 if (data->crc8 && crc8_check(raw_data, data->meas_size)) { in aht10_read_values() 354 data->crc8 = true; in aht10_probe()
|
| /kernel/linux/linux-5.10/drivers/w1/slaves/ |
| 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()
|
| /kernel/linux/linux-6.6/drivers/w1/slaves/ |
| 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()
|
| /kernel/linux/linux-5.10/include/uapi/linux/can/ |
| D | gw.h | 74 CGW_CS_CRC8, /* set data[] CRC8 checksum into data[index] */ 145 /* CRC8 profiles (compute CRC for additional data elements - see below) */ 198 * Set a CRC8 value into data[result-idx] using a given 256 byte CRC8 table, 202 * The CRC8 checksum is calculated like this:
|
| /kernel/linux/linux-6.6/include/uapi/linux/can/ |
| D | gw.h | 74 CGW_CS_CRC8, /* set data[] CRC8 checksum into data[index] */ 145 /* CRC8 profiles (compute CRC for additional data elements - see below) */ 198 * Set a CRC8 value into data[result-idx] using a given 256 byte CRC8 table, 202 * The CRC8 checksum is calculated like this:
|
| /kernel/linux/linux-6.6/drivers/mfd/ |
| D | tps6594-spi.c | 8 #include <linux/crc8.h> 44 if (tps->use_crc && buf[3] != crc8(tps6594_spi_crc_table, buf, 3, CRC8_INIT_VALUE)) in tps6594_spi_reg_read() 64 buf[3] = crc8(tps6594_spi_crc_table, buf, count++, CRC8_INIT_VALUE); in tps6594_spi_reg_write()
|
| /kernel/linux/linux-6.6/drivers/iio/addac/ |
| D | Kconfig | 11 select CRC8 26 select CRC8
|
| /kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/ |
| D | adf_pfvf_utils.c | 3 #include <linux/crc8.h> 21 return crc8(pfvf_crc8_table, buf, buf_len, CRC8_INIT_VALUE); in adf_pfvf_calc_blkmsg_crc()
|
| /kernel/linux/linux-5.10/drivers/hwmon/pmbus/ |
| D | adm1266.c | 10 #include <linux/crc8.h> 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()
|