Home
last modified time | relevance | path

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

/Linux-v4.19/net/can/
Dgw.c105 struct cgw_csum_crc8 crc8; member
109 void (*crc8)(struct can_frame *cf, struct cgw_csum_crc8 *crc8); member
254 static void cgw_csum_crc8_rel(struct can_frame *cf, struct cgw_csum_crc8 *crc8) in cgw_csum_crc8_rel() argument
256 int from = calc_idx(crc8->from_idx, cf->can_dlc); in cgw_csum_crc8_rel()
257 int to = calc_idx(crc8->to_idx, cf->can_dlc); in cgw_csum_crc8_rel()
258 int res = calc_idx(crc8->result_idx, cf->can_dlc); in cgw_csum_crc8_rel()
259 u8 crc = crc8->init_crc_val; in cgw_csum_crc8_rel()
266 for (i = crc8->from_idx; i <= crc8->to_idx; i++) in cgw_csum_crc8_rel()
267 crc = crc8->crctab[crc^cf->data[i]]; in cgw_csum_crc8_rel()
269 for (i = crc8->from_idx; i >= crc8->to_idx; i--) in cgw_csum_crc8_rel()
[all …]
/Linux-v4.19/lib/
Dcrc8.c74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc) in crc8() function
82 EXPORT_SYMBOL(crc8);
DMakefile112 obj-$(CONFIG_CRC8) += crc8.o
DKconfig213 algorithm. Module will be called crc8.
/Linux-v4.19/include/linux/
Dcrc8.h99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc);
/Linux-v4.19/drivers/i2c/
Di2c-core-smbus.c30 static u8 crc8(u16 data) in crc8() function
48 crc = crc8((crc ^ p[i]) << 8); in i2c_smbus_pec()
/Linux-v4.19/drivers/gpio/
Dgpio-max3191x.c143 val = (status & 0xf8) != crc8(max3191x_crc8, &in, 1, 0); in max3191x_readout_locked()
/Linux-v4.19/drivers/hwmon/
Dsht3x.c379 *position = crc8(sht3x_crc8_table, in limit_store()
/Linux-v4.19/Documentation/core-api/
Dkernel-api.rst121 .. kernel-doc:: lib/crc8.c
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_type.h1445 u16 crc8; member
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c1393 crc = crc8(cdu_crc8_table, in qed_calc_cdu_validation_byte()
/Linux-v4.19/drivers/net/ethernet/marvell/
Dmvneta.c2591 unsigned char crc8, in mvneta_set_other_mcast_addr() argument
2598 tbl_offset = (crc8 / 4) * 4; /* Register offset from OMC table base */ in mvneta_set_other_mcast_addr()
2599 reg_offset = crc8 % 4; /* Entry offset within the above reg */ in mvneta_set_other_mcast_addr()