Home
last modified time | relevance | path

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

/Linux-v5.15/net/can/
Dgw.c104 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 …]
/Linux-v5.15/drivers/w1/slaves/
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-v5.15/lib/
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);
DMakefile175 obj-$(CONFIG_CRC8) += crc8.o
DKconfig264 algorithm. Module will be called crc8.
/Linux-v5.15/drivers/iio/chemical/
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()
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()
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()
Dsgp30.c85 u8 crc8; member
212 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer()
/Linux-v5.15/drivers/hwmon/pmbus/
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-v5.15/include/linux/
Dcrc8.h99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc);
/Linux-v5.15/drivers/hwmon/
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()
Dsht3x.c369 *position = crc8(sht3x_crc8_table, in limit_store()
/Linux-v5.15/drivers/iio/accel/
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-v5.15/drivers/mfd/
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-v5.15/Documentation/translations/zh_CN/core-api/
Dkernel-api.rst133 lib/crc8.c
/Linux-v5.15/drivers/i2c/
Di2c-core-smbus.c28 static u8 crc8(u16 data) in crc8() function
53 crc = crc8((crc ^ p[i]) << 8); in i2c_smbus_pec()
/Linux-v5.15/drivers/gpio/
Dgpio-max3191x.c141 val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0); in max3191x_readout_locked()
/Linux-v5.15/drivers/iio/pressure/
Dicp10100.c180 crc = crc8(icp10100_crc8_table, ptr, ICP10100_CRC8_WORD_LENGTH, in icp10100_send_cmd()
/Linux-v5.15/Documentation/core-api/
Dkernel-api.rst130 .. kernel-doc:: lib/crc8.c
/Linux-v5.15/drivers/net/ethernet/intel/i40e/
Di40e_type.h1389 u16 crc8; member
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c1409 crc = crc8(cdu_crc8_table, (u8 *)&data_to_crc, sizeof(data_to_crc), in qed_calc_cdu_validation_byte()
/Linux-v5.15/drivers/pci/controller/dwc/
Dpcie-qcom.c1319 hash = crc8(qcom_pcie_crc8_table, (u8 *)&bdf_be, sizeof(bdf_be), in qcom_pcie_config_sid_sm8250()
/Linux-v5.15/drivers/net/ethernet/marvell/
Dmvneta.c2974 unsigned char crc8, in mvneta_set_other_mcast_addr() argument
2981 tbl_offset = (crc8 / 4) * 4; /* Register offset from OMC table base */ in mvneta_set_other_mcast_addr()
2982 reg_offset = crc8 % 4; /* Entry offset within the above reg */ in mvneta_set_other_mcast_addr()