Lines Matching refs:method

123  * @method:	RT, SW1, SW2
124 * @type: Polling or interrupt based method
133 u16 method;
184 req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1;
468 const struct twl4030_madc_conversion_method *method;
497 /* No pending results for this method, move to next one */
500 method = &twl4030_conversion_methods[r->method];
502 twl4030_madc_read_channels(madc, method->rbase,
521 method = &twl4030_conversion_methods[r->method];
523 twl4030_madc_read_channels(madc, method->rbase,
545 const struct twl4030_madc_conversion_method *method;
551 method = &twl4030_conversion_methods[conv_method];
553 method->ctrl);
556 method->ctrl);
607 const struct twl4030_madc_conversion_method *method;
614 if (req->method < TWL4030_MADC_RT || req->method > TWL4030_MADC_SW2) {
619 if (twl4030_madc->requests[req->method].active) {
623 method = &twl4030_conversion_methods[req->method];
625 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel);
628 "unable to write sel register 0x%X\n", method->sel);
634 method->avg);
638 method->avg);
642 /* With RT method we should not be here anymore */
643 if (req->method == TWL4030_MADC_RT) {
647 ret = twl4030_madc_start_conversion(twl4030_madc, req->method);
650 twl4030_madc->requests[req->method].active = true;
652 ret = twl4030_madc_wait_conversion_ready(twl4030_madc, 5, method->ctrl);
654 twl4030_madc->requests[req->method].active = false;
657 ret = twl4030_madc_read_channels(twl4030_madc, method->rbase,
659 twl4030_madc->requests[req->method].active = false;