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