Lines Matching full:ideal
76 * @gain: slope coefficient for ideal curve
92 * @code1: ideal code for the input at the beginning
93 * @code2: ideal code for at the end of the range
120 const struct twl6030_ideal_code *ideal; member
426 static int twl6030_gpadc_lookup(const struct twl6030_ideal_code *ideal, in twl6030_gpadc_lookup() argument
432 if (ideal[i].channel == channel) in twl6030_gpadc_lookup()
441 const struct twl6030_ideal_code *ideal = pdata->ideal; in twl6030_channel_calibrated() local
444 i = twl6030_gpadc_lookup(ideal, channel, pdata->nchannels); in twl6030_channel_calibrated()
446 return pdata->ideal[i].code2; in twl6030_channel_calibrated()
452 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_make_correction() local
456 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_make_correction()
492 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_get_processed() local
502 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_get_processed()
566 * ideal corresponding output codes are known: code1, code2.
567 * The difference(d1, d2) between ideal and measured codes stored in trim
578 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_calibrate_channel() local
580 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_calibrate_channel()
583 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / in twl6030_calibrate_channel()
584 (ideal[i].code2 - ideal[i].code1); in twl6030_calibrate_channel()
586 x1 = ideal[i].code1; in twl6030_calibrate_channel()
587 x2 = ideal[i].code2; in twl6030_calibrate_channel()
634 * offsets for the given input from the output on ideal curve. in twl6030_calibration()
851 .ideal = twl6030_ideal,
860 .ideal = twl6032_ideal,