Searched refs:crc8 (Results 1 – 8 of 8) sorted by relevance
/linux-4.4.14/net/can/ |
D | gw.c | 107 struct cgw_csum_crc8 crc8; member 111 void (*crc8)(struct can_frame *cf, struct cgw_csum_crc8 *crc8); member 256 static void cgw_csum_crc8_rel(struct can_frame *cf, struct cgw_csum_crc8 *crc8) in cgw_csum_crc8_rel() argument 258 int from = calc_idx(crc8->from_idx, cf->can_dlc); in cgw_csum_crc8_rel() 259 int to = calc_idx(crc8->to_idx, cf->can_dlc); in cgw_csum_crc8_rel() 260 int res = calc_idx(crc8->result_idx, cf->can_dlc); in cgw_csum_crc8_rel() 261 u8 crc = crc8->init_crc_val; in cgw_csum_crc8_rel() 268 for (i = crc8->from_idx; i <= crc8->to_idx; i++) in cgw_csum_crc8_rel() 269 crc = crc8->crctab[crc^cf->data[i]]; in cgw_csum_crc8_rel() 271 for (i = crc8->from_idx; i >= crc8->to_idx; i--) in cgw_csum_crc8_rel() [all …]
|
/linux-4.4.14/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 | 85 obj-$(CONFIG_CRC8) += crc8.o
|
D | Kconfig | 186 algorithm. Module will be called crc8.
|
/linux-4.4.14/include/linux/ |
D | crc8.h | 99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc);
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_type.h | 1497 u16 crc8; member
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
D | mvneta.c | 1984 unsigned char crc8, in mvneta_set_other_mcast_addr() argument 1991 tbl_offset = (crc8 / 4) * 4; /* Register offset from OMC table base */ in mvneta_set_other_mcast_addr() 1992 reg_offset = crc8 % 4; /* Entry offset within the above reg */ in mvneta_set_other_mcast_addr()
|
/linux-4.4.14/drivers/i2c/ |
D | i2c-core.c | 2568 static u8 crc8(u16 data) in crc8() function 2586 crc = crc8((crc ^ p[i]) << 8); in i2c_smbus_pec()
|