Lines Matching refs:ideal
118 const struct twl6030_ideal_code *ideal; member
424 static int twl6030_gpadc_lookup(const struct twl6030_ideal_code *ideal, in twl6030_gpadc_lookup() argument
430 if (ideal[i].channel == channel) in twl6030_gpadc_lookup()
439 const struct twl6030_ideal_code *ideal = pdata->ideal; in twl6030_channel_calibrated() local
442 i = twl6030_gpadc_lookup(ideal, channel, pdata->nchannels); in twl6030_channel_calibrated()
444 return pdata->ideal[i].code2; in twl6030_channel_calibrated()
450 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_make_correction() local
454 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_make_correction()
490 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_get_processed() local
500 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_get_processed()
576 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_calibrate_channel() local
578 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_calibrate_channel()
581 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / in twl6030_calibrate_channel()
582 (ideal[i].code2 - ideal[i].code1); in twl6030_calibrate_channel()
584 x1 = ideal[i].code1; in twl6030_calibrate_channel()
585 x2 = ideal[i].code2; in twl6030_calibrate_channel()
849 .ideal = twl6030_ideal,
858 .ideal = twl6032_ideal,