crc8
crc_nak_buf.pkt.crc = crc8(crc8_table, crc_nak_buf.buf,
timeout_nak_buf.pkt.crc = crc8(crc8_table, timeout_nak_buf.buf,
ack_nak[1] = crc8(crc8_table, ack_nak, 1, 0xff);
return crc8(pfvf_crc8_table, buf, buf_len, CRC8_INIT_VALUE);
val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0);
return crc8(crc8_table, raw_data, count, CRC8_INIT_VALUE);
if (data->crc8 && crc8_check(raw_data, data->meas_size))
data->crc8 = true;
data->crc8 = true;
bool crc8;
crc = crc8(htu31_crc8_table, &t_h_buf[0], 2, HTU31_CRC8_INIT_VAL);
crc = crc8(htu31_crc8_table, &t_h_buf[3], 2, HTU31_CRC8_INIT_VAL);
crc = crc8(htu31_crc8_table, sn_buf, HTU31_SERIAL_NUMBER_LEN, HTU31_CRC8_INIT_VAL);
crc = crc8(pmbus_crc_table, &addr, 1, 0);
crc = crc8(pmbus_crc_table, msgs[0].buf, msgs[0].len, crc);
crc = crc8(pmbus_crc_table, &addr, 1, crc);
crc = crc8(pmbus_crc_table, msgs[1].buf, msgs[1].buf[0] + 1, crc);
*position = crc8(sht3x_crc8_table,
crc = crc8(sht4x_crc8_table, &raw_data[0], SHT4X_WORD_LEN, CRC8_INIT_VALUE);
crc = crc8(sht4x_crc8_table, &raw_data[3], SHT4X_WORD_LEN, CRC8_INIT_VALUE);
crc = crc8((crc ^ p[i]) << 8);
crc = ~crc8(sca3300_crc_table, &sca_data->txbuf[0], 3, CRC8_INIT_VALUE);
crc = ~crc8(sca3300_crc_table, &sca_data->rxbuf[0], 3, CRC8_INIT_VALUE);
return crc8(ad4134_spi_crc_table, buf, ARRAY_SIZE(buf),
st->reg_tx_buf[2] = crc8(ad7779_crc8_table, st->reg_tx_buf,
exp_crc = crc8(ad7779_crc8_table, crc_buf, ARRAY_SIZE(crc_buf), 0);
st->reg_tx_buf[2] = crc8(ad7779_crc8_table, st->reg_tx_buf,
return crc8(ad74115_crc8_table, buf, 3, 0);
return crc8(ad74413r_crc8_table, buf, 3, 0);
crc = crc8(ags02ma_crc8_table, (u8 *)&read_buffer.data,
crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE);
crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE);
crc = crc8(scd4x_crc8_table, buf + i, 2, CRC8_INIT_VALUE);
crc = crc8(scd4x_crc8_table, buf + 2, 2, CRC8_INIT_VALUE);
crc = crc8(scd4x_crc8_table, buf + i, 2, CRC8_INIT_VALUE);
crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN,
u8 crc8;
tg.rht_crc = crc8(sgp40_crc8_table, (u8 *)&tg.rht_ticks, 2, SGP40_CRC8_INIT);
tg.temp_crc = crc8(sgp40_crc8_table, (u8 *)&tg.temp_ticks, 2, SGP40_CRC8_INIT);
crc = crc8(sgp40_crc8_table, (u8 *)&tgres.res_ticks, 2, SGP40_CRC8_INIT);
crc = crc8(sps30_i2c_crc8_table, buf + i, 2, CRC8_INIT_VALUE);
buf[i + 2] = crc8(sps30_i2c_crc8_table, buf + i, 2, CRC8_INIT_VALUE);
calculated_crc = crc8(max22007_crc8_table, ®_byte, 1, 0x00);
calculated_crc = crc8(max22007_crc8_table, rx_buf, 2, calculated_crc);
st->tx_buf[count] = crc8(max22007_crc8_table, st->tx_buf,
crc = crc8(hdc3020_crc8_table, buf, 2, CRC8_INIT_VALUE);
crc = crc8(hdc3020_crc8_table, buf, 2, CRC8_INIT_VALUE);
crc = crc8(hdc3020_crc8_table, buf + 3, 2, CRC8_INIT_VALUE);
buf[4] = crc8(hdc3020_crc8_table, buf + 2, 2, CRC8_INIT_VALUE);
buf[4] = crc8(hdc3020_crc8_table, buf + 2, 2, CRC8_INIT_VALUE);
if (buf->sf_crc != crc8(crc_table, (u8 *)&buf->sf, 0x2, CRC8_INIT_VALUE)) {
if (buf->dp_crc != crc8(crc_table, (u8 *)&buf->dp, 0x2, CRC8_INIT_VALUE)) {
if (buf->tmp_crc != crc8(crc_table, (u8 *)&buf->tmp, 0x2, CRC8_INIT_VALUE)) {
crc = crc8(icp10100_crc8_table, ptr, ICP10100_CRC8_WORD_LENGTH,
calculated_crc = crc8(sdp500_crc8_table, rxbuf,
crc = crc8(ppkb->crc_table, &new_buf[1], PPKB_COLS, CRC8_INIT_VALUE);
crc = crc8(ddata->crc8_tbl, buf, val_size + MT6360_CRC_PREDATA_OFFSET, 0);
buf[val_size] = crc8(ddata->crc8_tbl, buf, val_size, 0);
buf[msg.len - 1] = crc8(tps6594_i2c_crc_table, crc_data, sizeof(crc_data), CRC8_INIT_VALUE);
if (buf_rx[1] != crc8(tps6594_i2c_crc_table, crc_data, sizeof(crc_data), CRC8_INIT_VALUE))
if (tps->use_crc && buf[3] != crc8(tps6594_spi_crc_table, buf, 3, CRC8_INIT_VALUE))
buf[3] = crc8(tps6594_spi_crc_table, buf, count++, CRC8_INIT_VALUE);
return crc8(adin1110_crc_table, data, len, 0);
u16 crc8;
unsigned char crc8,
tbl_offset = (crc8 / 4) * 4; /* Register offset from OMC table base */
reg_offset = crc8 % 4; /* Entry offset within the above reg */
u8 crc8;
crc = crc8(table, (void *)&data_v1, sizeof(data_v1) - 1, 0);
if (crc != data_v1.crc8) {
crc, data_v1.crc8);
hash = crc8(qcom_pcie_crc8_table, (u8 *)&bdf_be, sizeof(bdf_be), 0);
(crc8(stc3117_crc_table, data->ram_data.ram_bytes,
data->ram_data.reg.crc = crc8(stc3117_crc_table,
data->ram_data.reg.crc = crc8(stc3117_crc_table,
(crc8(stc3117_crc_table, data->ram_data.ram_bytes,
data->ram_data.reg.crc = crc8(stc3117_crc_table,
data->ram_data.reg.crc = crc8(stc3117_crc_table,
crc = crc8(priv->crc8_tbls, buf, RT5133_PREDATA_LEN + val_size, 0);
crc = crc8(priv->crc8_tbls, buf, RT5133_I2C_ADDR_LEN + count, 0);
crc = crc8(sdw_crc8_lookup_msb, header, header_size, crc);
crc = crc8(sdw_crc8_lookup_msb, data, data_size, crc);
crc = crc8(sdw_crc8_lookup_msb, header, header_size, crc);
crc = crc8(sdw_crc8_lookup_msb, &b0, 1, crc);
crc = crc8(sdw_crc8_lookup_msb, &b1, 1, crc);
crc = crc8(sdw_crc8_lookup_msb, &b0, 1, crc);
u8 crc8;
crc8 = w1_read_8(sl->master);
if (w1_calc_crc8(buf, 3) != crc8)
crc8 = w1_read_8(sl->master);
if (w1_calc_crc8(&data->eprom[pgoff], W1_PAGE_SIZE) != crc8)
u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc);
EXPORT_SYMBOL(crc8);
nla_memcpy(&mod->csum.crc8, tb[CGW_CS_CRC8],
mod->csumfunc.crc8 = cgw_csum_crc8_rel;
mod->csumfunc.crc8 = cgw_csum_crc8_pos;
mod->csumfunc.crc8 = cgw_csum_crc8_neg;
struct cgw_csum_crc8 crc8;
void (*crc8)(struct canfd_frame *cf,
struct cgw_csum_crc8 *crc8);
struct cgw_csum_crc8 *crc8)
int from = calc_idx(crc8->from_idx, cf->len);
int to = calc_idx(crc8->to_idx, cf->len);
int res = calc_idx(crc8->result_idx, cf->len);
u8 crc = crc8->init_crc_val;
crc = crc8->crctab[crc ^ cf->data[i]];
crc = crc8->crctab[crc ^ cf->data[i]];
switch (crc8->profile) {
crc = crc8->crctab[crc ^ crc8->profile_data[0]];
crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
cf->data[res] = crc ^ crc8->final_xor_val;
struct cgw_csum_crc8 *crc8)
u8 crc = crc8->init_crc_val;
for (i = crc8->from_idx; i <= crc8->to_idx; i++)
crc = crc8->crctab[crc ^ cf->data[i]];
switch (crc8->profile) {
crc = crc8->crctab[crc ^ crc8->profile_data[0]];
crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
struct cgw_csum_crc8 *crc8)
u8 crc = crc8->init_crc_val;
for (i = crc8->from_idx; i >= crc8->to_idx; i--)
crc = crc8->crctab[crc ^ cf->data[i]];
switch (crc8->profile) {
crc = crc8->crctab[crc ^ crc8->profile_data[0]];
crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
if (mod->csumfunc.crc8)
(*mod->csumfunc.crc8)(cf, &mod->csum.crc8);
if (mod->csumfunc.crc8) {
&mod->csum.crc8) < 0)
act_crc8 = crc8(aw_crc8_table, aw_cfg->data + cfg_dde[i].data_offset,
act_crc8 = crc8(aw_crc8_table, aw_cfg->data + cfg_dde[i].data_offset,
crc_chksum += crc8(tasdevice->crc8_lkp_tbl, &nBuf1[i],
ret = crc8(tasdevice->crc8_lkp_tbl, &val, 1, 0);