Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
Dda9052-battery.c326 static unsigned char da9052_determine_vc_tbl_index(unsigned char adc_temp) in da9052_determine_vc_tbl_index() argument
330 if (adc_temp <= vc_tbl_ref[0]) in da9052_determine_vc_tbl_index()
333 if (adc_temp > vc_tbl_ref[DA9052_VC_TBL_REF_SZ - 1]) in da9052_determine_vc_tbl_index()
337 if ((adc_temp > vc_tbl_ref[i]) && in da9052_determine_vc_tbl_index()
338 (adc_temp <= DA9052_MEAN(vc_tbl_ref[i], vc_tbl_ref[i + 1]))) in da9052_determine_vc_tbl_index()
340 if ((adc_temp > DA9052_MEAN(vc_tbl_ref[i], vc_tbl_ref[i + 1])) in da9052_determine_vc_tbl_index()
341 && (adc_temp <= vc_tbl_ref[i])) in da9052_determine_vc_tbl_index()
355 int adc_temp; in da9052_bat_read_capacity() local
370 adc_temp = da9052_adc_read_temp(bat->da9052); in da9052_bat_read_capacity()
371 if (adc_temp < 0) in da9052_bat_read_capacity()
[all …]
Dtosa_battery.c43 int adc_temp; member
74 if (bat->gpio_temp < 0 || bat->adc_temp < 0) in tosa_read_temp()
81 bat->adc_temp); in tosa_read_temp()
266 .adc_temp = WM97XX_AUX_ID2,
288 .adc_temp = WM97XX_AUX_ID2,
307 .adc_temp = -1,
Dcollie_battery.c46 int adc_temp; member
74 if (bat->gpio_temp < 0 || bat->adc_temp < 0) in collie_read_temp()
81 value = ucb1x00_adc_read(ucb, bat->adc_temp, UCB_SYNC); in collie_read_temp()
245 .adc_temp = UCB_ADC_INP_AD0,
275 .adc_temp = -1,
/Linux-v5.10/drivers/iio/pressure/
Dbmp280-core.c287 s32 adc_temp) in bmp280_compensate_temp() argument
292 var1 = (((adc_temp >> 3) - ((s32)calib->T1 << 1)) * in bmp280_compensate_temp()
294 var2 = (((((adc_temp >> 4) - ((s32)calib->T1)) * in bmp280_compensate_temp()
295 ((adc_temp >> 4) - ((s32)calib->T1))) >> 12) * in bmp280_compensate_temp()
340 s32 adc_temp, comp_temp; in bmp280_read_temp() local
348 adc_temp = be32_to_cpu(tmp) >> 12; in bmp280_read_temp()
349 if (adc_temp == BMP280_TEMP_SKIPPED) { in bmp280_read_temp()
354 comp_temp = bmp280_compensate_temp(data, adc_temp); in bmp280_read_temp()
794 static s32 bmp180_compensate_temp(struct bmp280_data *data, s32 adc_temp) in bmp180_compensate_temp() argument
799 x1 = ((adc_temp - calib->AC6) * calib->AC5) >> 15; in bmp180_compensate_temp()
[all …]
/Linux-v5.10/drivers/iio/chemical/
Dbme680_core.c335 s32 adc_temp) in bme680_compensate_temp() argument
345 var1 = (adc_temp >> 3) - (calib->par_t1 << 1); in bme680_compensate_temp()
617 s32 adc_temp; in bme680_read_temp() local
632 adc_temp = be32_to_cpu(tmp) >> 12; in bme680_read_temp()
633 if (adc_temp == BME680_MEAS_SKIPPED) { in bme680_read_temp()
638 comp_temp = bme680_compensate_temp(data, adc_temp); in bme680_read_temp()