Home
last modified time | relevance | path

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

12

/drivers/nvmem/layouts/
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()
/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()
/drivers/hwmon/
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()
353 data->crc8 = true; in aht10_probe()
A Dhtu31.c113 crc = crc8(htu31_crc8_table, &t_h_buf[0], 2, HTU31_CRC8_INIT_VAL); in htu31_data_fetch_command()
119 crc = crc8(htu31_crc8_table, &t_h_buf[3], 2, HTU31_CRC8_INIT_VAL); in htu31_data_fetch_command()
199 crc = crc8(htu31_crc8_table, sn_buf, HTU31_SERIAL_NUMBER_LEN, HTU31_CRC8_INIT_VAL); in htu31_read_serial_number()
A Dsht4x.c132 crc = crc8(sht4x_crc8_table, &raw_data[0], SHT4X_WORD_LEN, CRC8_INIT_VALUE); in sht4x_read_values()
139 crc = crc8(sht4x_crc8_table, &raw_data[3], SHT4X_WORD_LEN, CRC8_INIT_VALUE); in sht4x_read_values()
/drivers/power/supply/
A Dstc3117_fuel_gauge.c275 (crc8(stc3117_crc_table, data->ram_data.ram_bytes, in stc3117_init()
280 data->ram_data.reg.crc = crc8(stc3117_crc_table, in stc3117_init()
329 data->ram_data.reg.crc = crc8(stc3117_crc_table, in stc3117_init()
359 (crc8(stc3117_crc_table, data->ram_data.ram_bytes, in stc3117_task()
364 data->ram_data.reg.crc = crc8(stc3117_crc_table, in stc3117_task()
440 data->ram_data.reg.crc = crc8(stc3117_crc_table, in stc3117_task()
/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.c180 tg.rht_crc = crc8(sgp40_crc8_table, (u8 *)&tg.rht_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw()
185 tg.temp_crc = crc8(sgp40_crc8_table, (u8 *)&tg.temp_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw()
204 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.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()
A Dags02ma.c64 crc = crc8(ags02ma_crc8_table, (u8 *)&read_buffer.data, in ags02ma_register_read()
A Dsgp30.c85 u8 crc8; member
215 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer()
/drivers/mfd/
A Dtps6594-spi.c49 if (tps->use_crc && buf[3] != crc8(tps6594_spi_crc_table, buf, 3, CRC8_INIT_VALUE)) in tps6594_spi_reg_read()
69 buf[3] = crc8(tps6594_spi_crc_table, buf, count++, CRC8_INIT_VALUE); in tps6594_spi_reg_write()
A Dtps6594-i2c.c75 if (buf_rx[1] != crc8(tps6594_i2c_crc_table, crc_data, sizeof(crc_data), CRC8_INIT_VALUE)) in tps6594_i2c_reg_read_with_crc()
103 buf[msg.len - 1] = crc8(tps6594_i2c_crc_table, crc_data, sizeof(crc_data), CRC8_INIT_VALUE); in tps6594_i2c_reg_write_with_crc()
A Dmt6360-core.c441 crc = crc8(ddata->crc8_tbl, buf, val_size + MT6360_CRC_PREDATA_OFFSET, 0); in mt6360_regmap_read()
484 buf[val_size] = crc8(ddata->crc8_tbl, buf, val_size, 0); in mt6360_regmap_write()
/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()
/drivers/iio/humidity/
A Dhdc3020.c211 crc = crc8(hdc3020_crc8_table, buf, 2, CRC8_INIT_VALUE); in hdc3020_read_be16()
237 crc = crc8(hdc3020_crc8_table, buf, 2, CRC8_INIT_VALUE); in hdc3020_read_measurement()
242 crc = crc8(hdc3020_crc8_table, buf + 3, 2, CRC8_INIT_VALUE); in hdc3020_read_measurement()
348 buf[4] = crc8(hdc3020_crc8_table, buf + 2, 2, CRC8_INIT_VALUE); in hdc3020_update_heater()
468 buf[4] = crc8(hdc3020_crc8_table, buf + 2, 2, CRC8_INIT_VALUE); in _hdc3020_write_thresh()
/drivers/crypto/intel/qat/qat_common/
A Dadf_pfvf_utils.c21 return crc8(pfvf_crc8_table, buf, buf_len, CRC8_INIT_VALUE); in adf_pfvf_calc_blkmsg_crc()
/drivers/iio/pressure/
A Dsdp500.c64 calculated_crc = crc8(sdp500_crc8_table, rxbuf, in sdp500_read_raw()
/drivers/iio/adc/
A Dad7779.c188 st->reg_tx_buf[2] = crc8(ad7779_crc8_table, st->reg_tx_buf, in ad7779_spi_read()
198 exp_crc = crc8(ad7779_crc8_table, crc_buf, ARRAY_SIZE(crc_buf), 0); in ad7779_spi_read()
218 st->reg_tx_buf[2] = crc8(ad7779_crc8_table, st->reg_tx_buf, in ad7779_spi_write()
/drivers/soundwire/
A Dcadence_master.c2225 crc = crc8(sdw_crc8_lookup_msb, header, header_size, crc); in sdw_cdns_prepare_write_pd0_buffer()
2242 crc = crc8(sdw_crc8_lookup_msb, data, data_size, crc); in sdw_cdns_prepare_write_pd0_buffer()
2279 crc = crc8(sdw_crc8_lookup_msb, header, header_size, crc); in sdw_cdns_prepare_read_pd0_buffer()
2534 crc = crc8(sdw_crc8_lookup_msb, &b0, 1, crc); in extract_read_data()
2537 crc = crc8(sdw_crc8_lookup_msb, &b1, 1, crc); in extract_read_data()
2546 crc = crc8(sdw_crc8_lookup_msb, &b0, 1, crc); in extract_read_data()
/drivers/iio/accel/
A Dsca3300.c258 crc = ~crc8(sca3300_crc_table, &sca_data->txbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer()
268 crc = ~crc8(sca3300_crc_table, &sca_data->rxbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer()
/drivers/i2c/
A Di2c-core-smbus.c30 static u8 crc8(u16 data) in crc8() function
55 crc = crc8((crc ^ p[i]) << 8); in i2c_smbus_pec()
/drivers/gpio/
A Dgpio-max3191x.c128 val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0); in max3191x_readout_locked()
/drivers/input/keyboard/
A Dpinephone-keyboard.c223 crc = crc8(ppkb->crc_table, &new_buf[1], PPKB_COLS, CRC8_INIT_VALUE); in ppkb_update()

Completed in 70 milliseconds

12