Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/chemical/
H A Dsgp30.c29 #define SGP_WORD_LEN 2 macro
36 #define SGP_CMD_LEN SGP_WORD_LEN
37 #define SGP_CMD_MAX_BUF_SIZE (SGP_CMD_LEN + 2 * SGP_WORD_LEN)
206 size_t size = word_count * (SGP_WORD_LEN + SGP_CRC8_LEN); in sgp_verify_buffer()
211 for (i = 0; i < size; i += SGP_WORD_LEN + SGP_CRC8_LEN) { in sgp_verify_buffer()
212 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer()
214 if (crc != data_buf[i + SGP_WORD_LEN]) { in sgp_verify_buffer()
240 size_t size = word_count * (SGP_WORD_LEN + SGP_CRC8_LEN); in sgp_read_cmd()