Lines Matching refs:lradc

123 	struct mxs_lradc	*lradc;  member
144 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_read_single() local
164 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_read_single()
397 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_handle_irq() local
401 if (!(reg & mxs_lradc_irq_mask(lradc))) in mxs_lradc_adc_handle_irq()
405 if (reg & lradc->buffer_vchans) { in mxs_lradc_adc_handle_irq()
414 writel(reg & mxs_lradc_irq_mask(lradc), in mxs_lradc_adc_handle_irq()
493 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_buffer_preenable() local
502 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_buffer_preenable()
503 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET, in mxs_lradc_adc_buffer_preenable()
505 writel(lradc->buffer_vchans, in mxs_lradc_adc_buffer_preenable()
531 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_buffer_postdisable() local
536 writel(lradc->buffer_vchans, in mxs_lradc_adc_buffer_postdisable()
538 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_buffer_postdisable()
539 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET, in mxs_lradc_adc_buffer_postdisable()
549 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_validate_scan_mask() local
554 if (lradc->use_touchbutton) in mxs_lradc_adc_validate_scan_mask()
556 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_4WIRE) in mxs_lradc_adc_validate_scan_mask()
558 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_5WIRE) in mxs_lradc_adc_validate_scan_mask()
561 if (lradc->use_touchbutton) in mxs_lradc_adc_validate_scan_mask()
563 if (lradc->touchscreen_wire) in mxs_lradc_adc_validate_scan_mask()
700 struct mxs_lradc *lradc = dev_get_drvdata(dev->parent); in mxs_lradc_adc_probe() local
716 adc->lradc = lradc; in mxs_lradc_adc_probe()
739 if (lradc->soc == IMX23_LRADC) { in mxs_lradc_adc_probe()
778 adc->vref_mv = mxs_lradc_adc_vref_mv[lradc->soc]; in mxs_lradc_adc_probe()