Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mfd/
H A Dmt6360-core.c72 #define MT6360_CRC_PREDATA_OFFSET (MT6360_CRC_I2C_ADDR_SIZE + MT6360_CRC_REG_ADDR_SIZE) macro
434 buf + MT6360_CRC_PREDATA_OFFSET); in mt6360_regmap_read()
443 crc = crc8(ddata->crc8_tbl, buf, val_size + MT6360_CRC_PREDATA_OFFSET, 0); in mt6360_regmap_read()
444 if (crc != buf[val_size + MT6360_CRC_PREDATA_OFFSET]) { in mt6360_regmap_read()
450 memcpy(val, buf + MT6360_CRC_PREDATA_OFFSET, val_size); in mt6360_regmap_read()
486 memcpy(buf + MT6360_CRC_PREDATA_OFFSET, val + MT6360_REGMAP_REG_BYTE_SIZE, write_size); in mt6360_regmap_write()
494 buf + MT6360_CRC_PREDATA_OFFSET); in mt6360_regmap_write()