Lines Matching refs:method

122  * @method:	RT, SW1, SW2
123 * @type: Polling or interrupt based method
132 u16 method;
183 req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1;
467 const struct twl4030_madc_conversion_method *method;
496 /* No pending results for this method, move to next one */
499 method = &twl4030_conversion_methods[r->method];
501 twl4030_madc_read_channels(madc, method->rbase,
520 method = &twl4030_conversion_methods[r->method];
522 twl4030_madc_read_channels(madc, method->rbase,
544 const struct twl4030_madc_conversion_method *method;
550 method = &twl4030_conversion_methods[conv_method];
552 method->ctrl);
555 method->ctrl);
606 const struct twl4030_madc_conversion_method *method;
613 if (req->method < TWL4030_MADC_RT || req->method > TWL4030_MADC_SW2) {
618 if (twl4030_madc->requests[req->method].active) {
622 method = &twl4030_conversion_methods[req->method];
624 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel);
627 "unable to write sel register 0x%X\n", method->sel);
633 method->avg);
637 method->avg);
641 /* With RT method we should not be here anymore */
642 if (req->method == TWL4030_MADC_RT) {
646 ret = twl4030_madc_start_conversion(twl4030_madc, req->method);
649 twl4030_madc->requests[req->method].active = true;
651 ret = twl4030_madc_wait_conversion_ready(twl4030_madc, 5, method->ctrl);
653 twl4030_madc->requests[req->method].active = false;
656 ret = twl4030_madc_read_channels(twl4030_madc, method->rbase,
658 twl4030_madc->requests[req->method].active = false;