Home
last modified time | relevance | path

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

123

/openbmc/linux/net/can/
H 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 …]
/openbmc/linux/drivers/nvmem/layouts/
H A Dsl28vpd.c21 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()
/openbmc/linux/drivers/w1/slaves/
H 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()
/openbmc/linux/lib/
H 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);
/openbmc/linux/drivers/hwmon/
H A Daht10.c93 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()
H 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()
/openbmc/u-boot/drivers/tpm/
H A Dtpm_tis_sandbox.c37 uint8_t crc8; member
279 rsk.crc8 = crc8(0, (unsigned char *)&rsk, in sandbox_tpm_xfer()
281 crc8)); in sandbox_tpm_xfer()
/openbmc/linux/drivers/iio/chemical/
H 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()
H 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()
H 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()
H A Dscd4x.c163 crc = crc8(scd4x_crc8_table, buf + i, 2, CRC8_INIT_VALUE); in scd4x_read()
193 crc = crc8(scd4x_crc8_table, buf + 2, 2, CRC8_INIT_VALUE); in scd4x_write()
248 crc = crc8(scd4x_crc8_table, buf + i, 2, CRC8_INIT_VALUE); in scd4x_write_and_fetch()
/openbmc/linux/drivers/mfd/
H A Dtps6594-spi.c44 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()
H A Dtps6594-i2c.c70 if (buf_rx[1] != crc8(tps6594_i2c_crc_table, crc_data, sizeof(crc_data), CRC8_INIT_VALUE)) in tps6594_i2c_reg_read_with_crc()
98 buf[msg.len - 1] = crc8(tps6594_i2c_crc_table, crc_data, sizeof(crc_data), CRC8_INIT_VALUE); in tps6594_i2c_reg_write_with_crc()
/openbmc/openbmc-tools/bi2cp/
H A Drequirements.txt1 crc8
H A Dbi2cp12 import crc8
221 hash = crc8.crc8()
/openbmc/u-boot/include/linux/
H A Dcrc8.h21 unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len);
/openbmc/u-boot/lib/
H A Dcrc8.c23 unsigned int crc8(unsigned int crc, const unsigned char *vptr, int len) in crc8() function
H A DMakefile30 obj-y += crc8.o
51 obj-y += crc8.o
/openbmc/linux/include/linux/
H A Dcrc8.h99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc);
/openbmc/u-boot/include/u-boot/
H A Dcrc.h12 unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len);
/openbmc/linux/drivers/hwmon/pmbus/
H 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()
/openbmc/libpldm/include/libpldm/
H A Dutils.h31 uint8_t crc8(const void *data, size_t size);
/openbmc/u-boot/tools/
H A Dgen_ethaddr_crc.c43 printf("%.2x\n", crc8(0, ethaddr, ARP_HLEN)); in process_mac()
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_pfvf_utils.c21 return crc8(pfvf_crc8_table, buf, buf_len, CRC8_INIT_VALUE); in adf_pfvf_calc_blkmsg_crc()
/openbmc/libpldm/tests/
H A Dutils.cpp19 auto checksum = crc8(data, 9); in TEST()

123