Lines Matching full:ideal
62 * @gain: slope coefficient for ideal curve
78 * @code1: ideal code for the input at the beginning
79 * @code2: ideal code for at the end of the range
97 * @ideal: pointer to calibration parameters
106 const struct twl6030_ideal_code *ideal; member
412 static int twl6030_gpadc_lookup(const struct twl6030_ideal_code *ideal, in twl6030_gpadc_lookup() argument
418 if (ideal[i].channel == channel) in twl6030_gpadc_lookup()
427 const struct twl6030_ideal_code *ideal = pdata->ideal; in twl6030_channel_calibrated() local
430 i = twl6030_gpadc_lookup(ideal, channel, pdata->nchannels); in twl6030_channel_calibrated()
432 return pdata->ideal[i].code2; in twl6030_channel_calibrated()
438 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_make_correction() local
442 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_make_correction()
478 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_get_processed() local
488 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_get_processed()
552 * ideal corresponding output codes are known: code1, code2.
553 * The difference(d1, d2) between ideal and measured codes stored in trim
564 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_calibrate_channel() local
566 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_calibrate_channel()
569 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / in twl6030_calibrate_channel()
570 (ideal[i].code2 - ideal[i].code1); in twl6030_calibrate_channel()
572 x1 = ideal[i].code1; in twl6030_calibrate_channel()
573 x2 = ideal[i].code2; in twl6030_calibrate_channel()
620 * offsets for the given input from the output on ideal curve. in twl6030_calibration()
837 .ideal = twl6030_ideal,
846 .ideal = twl6032_ideal,