Lines Matching refs:method

77 	req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1;  in twl4030_madc_read()
401 const struct twl4030_madc_conversion_method *method; in twl4030_madc_threaded_irq_handler() local
433 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
435 len = twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
459 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
461 len = twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
483 p = &madc->requests[req->method]; in twl4030_madc_set_irq()
485 ret = twl4030_madc_enable_irq(madc, req->method); in twl4030_madc_set_irq()
505 const struct twl4030_madc_conversion_method *method; in twl4030_madc_start_conversion() local
511 method = &twl4030_conversion_methods[conv_method]; in twl4030_madc_start_conversion()
513 method->ctrl); in twl4030_madc_start_conversion()
516 method->ctrl); in twl4030_madc_start_conversion()
567 const struct twl4030_madc_conversion_method *method; in twl4030_madc_conversion() local
574 if (req->method < TWL4030_MADC_RT || req->method > TWL4030_MADC_SW2) { in twl4030_madc_conversion()
579 if (twl4030_madc->requests[req->method].active) { in twl4030_madc_conversion()
583 method = &twl4030_conversion_methods[req->method]; in twl4030_madc_conversion()
585 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel); in twl4030_madc_conversion()
588 "unable to write sel register 0x%X\n", method->sel); in twl4030_madc_conversion()
594 method->avg); in twl4030_madc_conversion()
598 method->avg); in twl4030_madc_conversion()
606 ret = twl4030_madc_start_conversion(twl4030_madc, req->method); in twl4030_madc_conversion()
609 twl4030_madc->requests[req->method].active = 1; in twl4030_madc_conversion()
614 if (req->method == TWL4030_MADC_RT) { in twl4030_madc_conversion()
618 ret = twl4030_madc_start_conversion(twl4030_madc, req->method); in twl4030_madc_conversion()
621 twl4030_madc->requests[req->method].active = 1; in twl4030_madc_conversion()
623 ret = twl4030_madc_wait_conversion_ready(twl4030_madc, 5, method->ctrl); in twl4030_madc_conversion()
625 twl4030_madc->requests[req->method].active = 0; in twl4030_madc_conversion()
628 ret = twl4030_madc_read_channels(twl4030_madc, method->rbase, in twl4030_madc_conversion()
630 twl4030_madc->requests[req->method].active = 0; in twl4030_madc_conversion()
646 req.method = TWL4030_MADC_SW2; in twl4030_get_madc_conversion()