Lines Matching refs:readval
240 unsigned int readval; in ad7124_spi_write_mask() local
243 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval); in ad7124_spi_write_mask()
247 readval &= ~mask; in ad7124_spi_write_mask()
248 readval |= val; in ad7124_spi_write_mask()
250 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask()
687 unsigned int *readval) in ad7124_reg_access() argument
695 if (readval) in ad7124_reg_access()
697 readval); in ad7124_reg_access()
756 unsigned int readval, timeout; in ad7124_soft_reset() local
766 ret = ad_sd_read_reg(&st->sd, AD7124_STATUS, 1, &readval); in ad7124_soft_reset()
770 if (!(readval & AD7124_STATUS_POR_FLAG_MSK)) in ad7124_soft_reset()
784 unsigned int readval, chip_id, silicon_rev; in ad7124_check_chip_id() local
787 ret = ad_sd_read_reg(&st->sd, AD7124_ID, 1, &readval); in ad7124_check_chip_id()
791 chip_id = AD7124_DEVICE_ID_GET(readval); in ad7124_check_chip_id()
792 silicon_rev = AD7124_SILICON_REV_GET(readval); in ad7124_check_chip_id()