Home
last modified time | relevance | path

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

/drivers/mfd/
Dmc13xxx-core.c256 u32 adc0, adc1, old_adc0; in mc13xxx_adc_do_conversion() local
280 adc1 = MC13XXX_ADC1_ADEN | MC13XXX_ADC1_ADTRIGIGN | MC13XXX_ADC1_ASC; in mc13xxx_adc_do_conversion()
289 adc1 |= MC13XXX_ADC1_ADSEL; in mc13xxx_adc_do_conversion()
302 adc1 |= 4 << MC13XXX_ADC1_CHAN1_SHIFT; in mc13xxx_adc_do_conversion()
307 adc1 |= (channel & 0x7) << MC13XXX_ADC1_CHAN0_SHIFT; in mc13xxx_adc_do_conversion()
308 adc1 |= MC13XXX_ADC1_RAND; in mc13xxx_adc_do_conversion()
313 adc1 |= 4 << MC13XXX_ADC1_CHAN1_SHIFT; in mc13xxx_adc_do_conversion()
321 adc1 |= ato << MC13783_ADC1_ATO_SHIFT; in mc13xxx_adc_do_conversion()
323 adc1 |= MC13783_ADC1_ATOX; in mc13xxx_adc_do_conversion()
332 mc13xxx_reg_write(mc13xxx, MC13XXX_ADC1, adc1); in mc13xxx_adc_do_conversion()
/drivers/iio/adc/
Dsc27xx_adc.c87 int adc1; member
156 graph->adc1 = sc27xx_adc_get_calib_data(calib_data >> 8, in sc27xx_adc_scale_calibration()
157 calib_graph->adc1); in sc27xx_adc_scale_calibration()
276 tmp = (graph->volt0 - graph->volt1) * (raw_adc - graph->adc1); in sc27xx_adc_to_volt()
277 tmp /= (graph->adc0 - graph->adc1); in sc27xx_adc_to_volt()
/drivers/iio/light/
Dtsl2563.c303 u16 adc0, adc1; in tsl2563_get_adc() local
335 adc1 = ret; in tsl2563_get_adc()
341 chip->data1 = tsl2563_normalize_adc(adc1, chip->gainlevel->gaintime); in tsl2563_get_adc()
416 static unsigned int tsl2563_adc_to_lux(u32 adc0, u32 adc1) in tsl2563_adc_to_lux() argument
419 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux()