crc8 140 drivers/gpio/gpio-max3191x.c val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0); crc8 369 drivers/hwmon/sht3x.c *position = crc8(sht3x_crc8_table, crc8 46 drivers/i2c/i2c-core-smbus.c crc = crc8((crc ^ p[i]) << 8); crc8 85 drivers/iio/chemical/sgp30.c u8 crc8; crc8 212 drivers/iio/chemical/sgp30.c crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, crc8 110 drivers/iio/chemical/sps30.c buf[4] = crc8(sps30_crc8_table, &buf[2], 2, CRC8_INIT_VALUE); crc8 132 drivers/iio/chemical/sps30.c buf[4] = crc8(sps30_crc8_table, &buf[2], 2, CRC8_INIT_VALUE); crc8 135 drivers/iio/chemical/sps30.c buf[7] = crc8(sps30_crc8_table, &buf[5], 2, CRC8_INIT_VALUE); crc8 145 drivers/iio/chemical/sps30.c u8 crc = crc8(sps30_crc8_table, &buf[i], 2, CRC8_INIT_VALUE); crc8 1456 drivers/net/ethernet/intel/i40e/i40e_type.h u16 crc8; crc8 2608 drivers/net/ethernet/marvell/mvneta.c unsigned char crc8, crc8 2615 drivers/net/ethernet/marvell/mvneta.c tbl_offset = (crc8 / 4) * 4; /* Register offset from OMC table base */ crc8 2616 drivers/net/ethernet/marvell/mvneta.c reg_offset = crc8 % 4; /* Entry offset within the above reg */ crc8 1393 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c crc = crc8(cdu_crc8_table, crc8 52 drivers/w1/slaves/w1_ds250x.c u8 crc8; crc8 67 drivers/w1/slaves/w1_ds250x.c crc8 = w1_read_8(sl->master); crc8 68 drivers/w1/slaves/w1_ds250x.c if (w1_calc_crc8(buf, 3) != crc8) crc8 73 drivers/w1/slaves/w1_ds250x.c crc8 = w1_read_8(sl->master); crc8 74 drivers/w1/slaves/w1_ds250x.c if (w1_calc_crc8(&data->eprom[pgoff], W1_PAGE_SIZE) != crc8) crc8 99 include/linux/crc8.h u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc); crc8 82 lib/crc8.c EXPORT_SYMBOL(crc8); crc8 105 net/can/gw.c struct cgw_csum_crc8 crc8; crc8 110 net/can/gw.c void (*crc8)(struct canfd_frame *cf, crc8 111 net/can/gw.c struct cgw_csum_crc8 *crc8); crc8 304 net/can/gw.c struct cgw_csum_crc8 *crc8) crc8 306 net/can/gw.c int from = calc_idx(crc8->from_idx, cf->len); crc8 307 net/can/gw.c int to = calc_idx(crc8->to_idx, cf->len); crc8 308 net/can/gw.c int res = calc_idx(crc8->result_idx, cf->len); crc8 309 net/can/gw.c u8 crc = crc8->init_crc_val; crc8 316 net/can/gw.c for (i = crc8->from_idx; i <= crc8->to_idx; i++) crc8 317 net/can/gw.c crc = crc8->crctab[crc ^ cf->data[i]]; crc8 319 net/can/gw.c for (i = crc8->from_idx; i >= crc8->to_idx; i--) crc8 320 net/can/gw.c crc = crc8->crctab[crc ^ cf->data[i]]; crc8 323 net/can/gw.c switch (crc8->profile) { crc8 325 net/can/gw.c crc = crc8->crctab[crc ^ crc8->profile_data[0]]; crc8 329 net/can/gw.c crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]]; crc8 333 net/can/gw.c crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^ crc8 338 net/can/gw.c cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val; crc8 342 net/can/gw.c struct cgw_csum_crc8 *crc8) crc8 344 net/can/gw.c u8 crc = crc8->init_crc_val; crc8 347 net/can/gw.c for (i = crc8->from_idx; i <= crc8->to_idx; i++) crc8 348 net/can/gw.c crc = crc8->crctab[crc ^ cf->data[i]]; crc8 350 net/can/gw.c switch (crc8->profile) { crc8 352 net/can/gw.c crc = crc8->crctab[crc ^ crc8->profile_data[0]]; crc8 356 net/can/gw.c crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]]; crc8 360 net/can/gw.c crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^ crc8 365 net/can/gw.c cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val; crc8 369 net/can/gw.c struct cgw_csum_crc8 *crc8) crc8 371 net/can/gw.c u8 crc = crc8->init_crc_val; crc8 374 net/can/gw.c for (i = crc8->from_idx; i >= crc8->to_idx; i--) crc8 375 net/can/gw.c crc = crc8->crctab[crc ^ cf->data[i]]; crc8 377 net/can/gw.c switch (crc8->profile) { crc8 379 net/can/gw.c crc = crc8->crctab[crc ^ crc8->profile_data[0]]; crc8 383 net/can/gw.c crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]]; crc8 387 net/can/gw.c crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^ crc8 392 net/can/gw.c cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val; crc8 488 net/can/gw.c if (gwj->mod.csumfunc.crc8) crc8 489 net/can/gw.c (*gwj->mod.csumfunc.crc8)(cf, &gwj->mod.csum.crc8); crc8 652 net/can/gw.c if (gwj->mod.csumfunc.crc8) { crc8 654 net/can/gw.c &gwj->mod.csum.crc8) < 0) crc8 912 net/can/gw.c nla_memcpy(&mod->csum.crc8, tb[CGW_CS_CRC8], crc8 920 net/can/gw.c mod->csumfunc.crc8 = cgw_csum_crc8_rel; crc8 922 net/can/gw.c mod->csumfunc.crc8 = cgw_csum_crc8_pos; crc8 924 net/can/gw.c mod->csumfunc.crc8 = cgw_csum_crc8_neg;