Lines Matching refs:adc_tm5_write
246 static int adc_tm5_write(struct adc_tm5_chip *adc_tm, u16 offset, u8 *data, int len) in adc_tm5_write() function
323 ret = adc_tm5_write(chip, ADC_TM_GEN2_STATUS_LOW_CLR, &status_low, sizeof(status_low)); in adc_tm5_gen2_isr()
329 ret = adc_tm5_write(chip, ADC_TM_GEN2_STATUS_HIGH_CLR, &status_high, sizeof(status_high)); in adc_tm5_gen2_isr()
401 ret = adc_tm5_write(chip, ADC_TM_GEN2_EN_CTL1, &data, 1); in adc_tm5_gen2_conv_req()
408 ret = adc_tm5_write(chip, ADC_TM_GEN2_CFG_HS_SET, &data, 1); in adc_tm5_gen2_conv_req()
415 ret = adc_tm5_write(chip, ADC_TM_GEN2_CONV_REQ, &data, 1); in adc_tm5_gen2_conv_req()
465 ret = adc_tm5_write(chip, ADC_TM_GEN2_CH_CTL, &val, 1); in adc_tm5_gen2_disable_channel()
472 ret = adc_tm5_write(chip, ADC_TM_GEN2_MEAS_IRQ_EN, &val, 1); in adc_tm5_gen2_disable_channel()
494 ret = adc_tm5_write(chip, ADC_TM_EN_CTL1, &data, sizeof(data)); in adc_tm5_enable()
501 ret = adc_tm5_write(chip, ADC_TM_CONV_REQ, &data, sizeof(data)); in adc_tm5_enable()
557 ret = adc_tm5_write(chip, reg, buf, sizeof(buf)); in adc_tm5_configure()
627 ret = adc_tm5_write(chip, ADC_TM_GEN2_SID, buf, sizeof(buf)); in adc_tm5_gen2_configure()
713 ret = adc_tm5_write(chip, ADC_TM5_ADC_DIG_PARAM, buf, sizeof(buf)); in adc_tm_hc_init()
746 ret = adc_tm5_write(chip, ADC_TM5_ADC_DIG_PARAM, buf, sizeof(buf)); in adc_tm5_init()