Lines Matching refs:ideal
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()
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()
837 .ideal = twl6030_ideal,
846 .ideal = twl6032_ideal,