Searched refs:crc (Results 1 – 1 of 1) sorted by relevance
170 static uint8 crc7_byte(uint8 crc, uint8 data) in crc7_byte() argument172 return crc7_syndrome_table[(crc << 1) ^ data]; in crc7_byte()175 static uint8 crc7(uint8 crc, const uint8 *buffer, uint32 len) in crc7() argument178 crc = crc7_byte(crc, *buffer++); in crc7()179 return crc; in crc7()587 uint8_t crc[2]; in spi_cmd_complete() local630 crc[0] = rb[rix++]; in spi_cmd_complete()631 crc[1] = rb[rix++]; in spi_cmd_complete()672 if (nmi_spi_read(crc, 2) != M2M_SUCCESS) { in spi_cmd_complete()730 if (nmi_spi_read(crc, 2) != M2M_SUCCESS) { in spi_cmd_complete()[all …]