• Home
  • Raw
  • Download

Lines Matching refs:method

83 	req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1;  in twl4030_madc_read()
407 const struct twl4030_madc_conversion_method *method; in twl4030_madc_threaded_irq_handler() local
439 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
441 len = twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
465 method = &twl4030_conversion_methods[r->method]; in twl4030_madc_threaded_irq_handler()
467 len = twl4030_madc_read_channels(madc, method->rbase, in twl4030_madc_threaded_irq_handler()
489 p = &madc->requests[req->method]; in twl4030_madc_set_irq()
491 ret = twl4030_madc_enable_irq(madc, req->method); in twl4030_madc_set_irq()
511 const struct twl4030_madc_conversion_method *method; in twl4030_madc_start_conversion() local
517 method = &twl4030_conversion_methods[conv_method]; in twl4030_madc_start_conversion()
519 method->ctrl); in twl4030_madc_start_conversion()
522 method->ctrl); in twl4030_madc_start_conversion()
573 const struct twl4030_madc_conversion_method *method; in twl4030_madc_conversion() local
580 if (req->method < TWL4030_MADC_RT || req->method > TWL4030_MADC_SW2) { in twl4030_madc_conversion()
585 if (twl4030_madc->requests[req->method].active) { in twl4030_madc_conversion()
589 method = &twl4030_conversion_methods[req->method]; in twl4030_madc_conversion()
591 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel); in twl4030_madc_conversion()
594 "unable to write sel register 0x%X\n", method->sel); in twl4030_madc_conversion()
600 method->avg); in twl4030_madc_conversion()
604 method->avg); in twl4030_madc_conversion()
612 ret = twl4030_madc_start_conversion(twl4030_madc, req->method); in twl4030_madc_conversion()
615 twl4030_madc->requests[req->method].active = 1; in twl4030_madc_conversion()
620 if (req->method == TWL4030_MADC_RT) { in twl4030_madc_conversion()
624 ret = twl4030_madc_start_conversion(twl4030_madc, req->method); in twl4030_madc_conversion()
627 twl4030_madc->requests[req->method].active = 1; in twl4030_madc_conversion()
629 ret = twl4030_madc_wait_conversion_ready(twl4030_madc, 5, method->ctrl); in twl4030_madc_conversion()
631 twl4030_madc->requests[req->method].active = 0; in twl4030_madc_conversion()
634 ret = twl4030_madc_read_channels(twl4030_madc, method->rbase, in twl4030_madc_conversion()
636 twl4030_madc->requests[req->method].active = 0; in twl4030_madc_conversion()
652 req.method = TWL4030_MADC_SW2; in twl4030_get_madc_conversion()