| /Linux-v5.4/net/can/ |
| D | gw.c | 105 struct cgw_csum_crc8 crc8; member 110 void (*crc8)(struct canfd_frame *cf, member 111 struct cgw_csum_crc8 *crc8); 304 struct cgw_csum_crc8 *crc8) in cgw_csum_crc8_rel() argument 306 int from = calc_idx(crc8->from_idx, cf->len); in cgw_csum_crc8_rel() 307 int to = calc_idx(crc8->to_idx, cf->len); in cgw_csum_crc8_rel() 308 int res = calc_idx(crc8->result_idx, cf->len); in cgw_csum_crc8_rel() 309 u8 crc = crc8->init_crc_val; in cgw_csum_crc8_rel() 316 for (i = crc8->from_idx; i <= crc8->to_idx; i++) in cgw_csum_crc8_rel() 317 crc = crc8->crctab[crc ^ cf->data[i]]; in cgw_csum_crc8_rel() [all …]
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/lib/ |
| D | crc8.c | 74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc) in crc8() function 82 EXPORT_SYMBOL(crc8);
|
| D | Makefile | 134 obj-$(CONFIG_CRC8) += crc8.o
|
| D | Kconfig | 238 algorithm. Module will be called crc8.
|
| /Linux-v5.4/drivers/iio/chemical/ |
| D | sps30.c | 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 | sgp30.c | 85 u8 crc8; member 212 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer()
|
| /Linux-v5.4/include/linux/ |
| D | crc8.h | 99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc);
|
| /Linux-v5.4/drivers/i2c/ |
| D | i2c-core-smbus.c | 28 static u8 crc8(u16 data) in crc8() function 46 crc = crc8((crc ^ p[i]) << 8); in i2c_smbus_pec()
|
| /Linux-v5.4/drivers/gpio/ |
| D | gpio-max3191x.c | 140 val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0); in max3191x_readout_locked()
|
| /Linux-v5.4/Documentation/core-api/ |
| D | kernel-api.rst | 127 .. kernel-doc:: lib/crc8.c
|
| /Linux-v5.4/drivers/hwmon/ |
| D | sht3x.c | 369 *position = crc8(sht3x_crc8_table, in limit_store()
|
| /Linux-v5.4/drivers/net/ethernet/intel/i40e/ |
| D | i40e_type.h | 1456 u16 crc8; member
|
| /Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
| D | qed_init_fw_funcs.c | 1393 crc = crc8(cdu_crc8_table, in qed_calc_cdu_validation_byte()
|
| /Linux-v5.4/drivers/net/ethernet/marvell/ |
| D | mvneta.c | 2593 unsigned char crc8, in mvneta_set_other_mcast_addr() argument 2600 tbl_offset = (crc8 / 4) * 4; /* Register offset from OMC table base */ in mvneta_set_other_mcast_addr() 2601 reg_offset = crc8 % 4; /* Entry offset within the above reg */ in mvneta_set_other_mcast_addr()
|