Lines Matching defs:offset
170 /* This is used to not lose precision when dividing to get gain and offset */
192 * struct ab8500_adc_cal_data - Table for storing gain and offset for the
195 * @offset: Offset of the ADC channel
201 s64 offset;
294 gpadc->cal_data[AB8500_CAL_VMAIN].offset) / AB8500_GPADC_CALIB_SCALE;
312 gpadc->cal_data[AB8500_CAL_BTEMP].offset) / AB8500_GPADC_CALIB_SCALE;
326 gpadc->cal_data[AB8500_CAL_VBAT].offset) / AB8500_GPADC_CALIB_SCALE;
370 gpadc->cal_data[AB8500_CAL_IBAT].offset)
762 /* Calculate gain and offset for VMAIN if all reads succeeded*/
775 gpadc->cal_data[AB8500_CAL_VMAIN].offset = AB8500_GPADC_CALIB_SCALE *
793 /* Calculate gain and offset for IBAT if all reads succeeded */
814 * we need to calculate gain and offset to get mA
825 gpadc->cal_data[AB8500_CAL_IBAT].offset =
831 /* Calculate gain and offset for VMAIN if all reads succeeded */
846 gpadc->cal_data[AB8500_CAL_VMAIN].offset = AB8500_GPADC_CALIB_SCALE *
854 /* Calculate gain and offset for BTEMP if all reads succeeded */
865 gpadc->cal_data[AB8500_CAL_BTEMP].offset = AB8500_GPADC_CALIB_SCALE * 1300 -
872 /* Calculate gain and offset for VBAT if all reads succeeded */
882 gpadc->cal_data[AB8500_CAL_VBAT].offset = AB8500_GPADC_CALIB_SCALE * 4700 -