Lines Matching refs:method

132 	u16 method;  member
183 req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1; in twl4030_madc_read()
467 const struct twl4030_madc_conversion_method *method; in twl4030_madc_threaded_irq_handler() local
499 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
501 twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
520 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
522 twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
544 const struct twl4030_madc_conversion_method *method; in twl4030_madc_start_conversion() local
550 method = &twl4030_conversion_methods[conv_method]; in twl4030_madc_start_conversion()
552 method->ctrl); in twl4030_madc_start_conversion()
555 method->ctrl); in twl4030_madc_start_conversion()
606 const struct twl4030_madc_conversion_method *method; in twl4030_madc_conversion() local
613 if (req->method < TWL4030_MADC_RT || req->method > TWL4030_MADC_SW2) { in twl4030_madc_conversion()
618 if (twl4030_madc->requests[req->method].active) { in twl4030_madc_conversion()
622 method = &twl4030_conversion_methods[req->method]; in twl4030_madc_conversion()
624 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel); in twl4030_madc_conversion()
627 "unable to write sel register 0x%X\n", method->sel); in twl4030_madc_conversion()
633 method->avg); in twl4030_madc_conversion()
637 method->avg); in twl4030_madc_conversion()
642 if (req->method == TWL4030_MADC_RT) { in twl4030_madc_conversion()
646 ret = twl4030_madc_start_conversion(twl4030_madc, req->method); in twl4030_madc_conversion()
649 twl4030_madc->requests[req->method].active = true; in twl4030_madc_conversion()
651 ret = twl4030_madc_wait_conversion_ready(twl4030_madc, 5, method->ctrl); in twl4030_madc_conversion()
653 twl4030_madc->requests[req->method].active = false; in twl4030_madc_conversion()
656 ret = twl4030_madc_read_channels(twl4030_madc, method->rbase, in twl4030_madc_conversion()
658 twl4030_madc->requests[req->method].active = false; in twl4030_madc_conversion()