Lines Matching defs:ideal
74 * @gain: slope coefficient for ideal curve
90 * @code1: ideal code for the input at the beginning
91 * @code2: ideal code for at the end of the range
109 * @ideal: pointer to calibration parameters
118 const struct twl6030_ideal_code *ideal;
424 static int twl6030_gpadc_lookup(const struct twl6030_ideal_code *ideal,
430 if (ideal[i].channel == channel)
439 const struct twl6030_ideal_code *ideal = pdata->ideal;
442 i = twl6030_gpadc_lookup(ideal, channel, pdata->nchannels);
444 return pdata->ideal[i].code2;
450 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal;
454 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels);
490 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal;
500 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels);
564 * ideal corresponding output codes are known: code1, code2.
565 * The difference(d1, d2) between ideal and measured codes stored in trim
576 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal;
578 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels);
581 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) /
582 (ideal[i].code2 - ideal[i].code1);
584 x1 = ideal[i].code1;
585 x2 = ideal[i].code2;
632 * offsets for the given input from the output on ideal curve.
849 .ideal = twl6030_ideal,
858 .ideal = twl6032_ideal,