Lines Matching full:ideal
75 * @gain: slope coefficient for ideal curve
91 * @code1: ideal code for the input at the beginning
92 * @code2: ideal code for at the end of the range
110 * @ideal: pointer to calibration parameters
119 const struct twl6030_ideal_code *ideal; member
425 static int twl6030_gpadc_lookup(const struct twl6030_ideal_code *ideal, in twl6030_gpadc_lookup() argument
431 if (ideal[i].channel == channel) in twl6030_gpadc_lookup()
440 const struct twl6030_ideal_code *ideal = pdata->ideal; in twl6030_channel_calibrated() local
443 i = twl6030_gpadc_lookup(ideal, channel, pdata->nchannels); in twl6030_channel_calibrated()
445 return pdata->ideal[i].code2; in twl6030_channel_calibrated()
451 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_make_correction() local
455 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_make_correction()
491 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_get_processed() local
501 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_get_processed()
565 * ideal corresponding output codes are known: code1, code2.
566 * The difference(d1, d2) between ideal and measured codes stored in trim
577 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_calibrate_channel() local
579 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_calibrate_channel()
582 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / in twl6030_calibrate_channel()
583 (ideal[i].code2 - ideal[i].code1); in twl6030_calibrate_channel()
585 x1 = ideal[i].code1; in twl6030_calibrate_channel()
586 x2 = ideal[i].code2; in twl6030_calibrate_channel()
633 * offsets for the given input from the output on ideal curve. in twl6030_calibration()
850 .ideal = twl6030_ideal,
859 .ideal = twl6032_ideal,