Lines Matching refs:event0

124 	struct palmas_adc_event		event0;  member
135 if (adc_chan == adc->event0.channel && dir == adc->event0.direction) in palmas_gpadc_get_event()
136 return &adc->event0; in palmas_gpadc_get_event()
227 ev = (irq == adc->irq_auto_0) ? &adc->event0 : &adc->event1; in palmas_gpadc_irq_auto()
388 int event = (adc_chan == adc->event0.channel) ? 0 : 1; in palmas_gpadc_start_conversion()
614 return (adc->event0.enabled || adc->event1.enabled) ? in palmas_gpadc_reconfigure_event_channels()
630 if (adc->event0.channel == -1) { in palmas_gpadc_enable_event_config()
631 ev = &adc->event0; in palmas_gpadc_enable_event_config()
634 if (adc_chan < adc->event0.channel) { in palmas_gpadc_enable_event_config()
635 adc->event1 = adc->event0; in palmas_gpadc_enable_event_config()
636 ev = &adc->event0; in palmas_gpadc_enable_event_config()
642 adc->event0.channel, adc->event1.channel); in palmas_gpadc_enable_event_config()
663 if (ev == &adc->event0) { in palmas_gpadc_disable_event_config()
664 adc->event0 = adc->event1; in palmas_gpadc_disable_event_config()
862 if (adc->event0.enabled || adc->event1.enabled) in palmas_gpadc_reset()
940 adc->event0.enabled = false; in palmas_gpadc_probe()
941 adc->event0.channel = -1; in palmas_gpadc_probe()
942 adc->event0.direction = IIO_EV_DIR_NONE; in palmas_gpadc_probe()
1019 if (adc->event0.enabled) { in palmas_adc_configure_events()
1020 struct palmas_adc_event *ev = &adc->event0; in palmas_adc_configure_events()
1136 if (adc->event0.enabled) in palmas_gpadc_suspend()
1153 if (adc->event0.enabled) in palmas_gpadc_resume()