Lines Matching full:method
121 * @method: RT, SW1, SW2
122 * @type: Polling or interrupt based method
131 u16 method; member
182 req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1; in twl4030_madc_read()
473 const struct twl4030_madc_conversion_method *method; in twl4030_madc_threaded_irq_handler() local
502 /* No pending results for this method, move to next one */ in twl4030_madc_threaded_irq_handler()
505 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
507 twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
526 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
528 twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
550 const struct twl4030_madc_conversion_method *method; in twl4030_madc_start_conversion() local
556 method = &twl4030_conversion_methods[conv_method]; in twl4030_madc_start_conversion()
558 method->ctrl); in twl4030_madc_start_conversion()
561 method->ctrl); in twl4030_madc_start_conversion()
612 const struct twl4030_madc_conversion_method *method; in twl4030_madc_conversion() local
619 if (req->method < TWL4030_MADC_RT || req->method > TWL4030_MADC_SW2) { in twl4030_madc_conversion()
624 if (twl4030_madc->requests[req->method].active) { in twl4030_madc_conversion()
628 method = &twl4030_conversion_methods[req->method]; in twl4030_madc_conversion()
630 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel); in twl4030_madc_conversion()
633 "unable to write sel register 0x%X\n", method->sel); in twl4030_madc_conversion()
639 method->avg); in twl4030_madc_conversion()
643 method->avg); in twl4030_madc_conversion()
647 /* With RT method we should not be here anymore */ in twl4030_madc_conversion()
648 if (req->method == TWL4030_MADC_RT) { in twl4030_madc_conversion()
652 ret = twl4030_madc_start_conversion(twl4030_madc, req->method); in twl4030_madc_conversion()
655 twl4030_madc->requests[req->method].active = true; in twl4030_madc_conversion()
657 ret = twl4030_madc_wait_conversion_ready(twl4030_madc, 5, method->ctrl); in twl4030_madc_conversion()
659 twl4030_madc->requests[req->method].active = false; in twl4030_madc_conversion()
662 ret = twl4030_madc_read_channels(twl4030_madc, method->rbase, in twl4030_madc_conversion()
664 twl4030_madc->requests[req->method].active = false; in twl4030_madc_conversion()