Lines Matching refs:lradc

114 	struct mxs_lradc	*lradc;  member
134 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_read_single() local
154 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_read_single()
387 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_handle_irq() local
391 if (!(reg & mxs_lradc_irq_mask(lradc))) in mxs_lradc_adc_handle_irq()
395 if (reg & lradc->buffer_vchans) { in mxs_lradc_adc_handle_irq()
404 writel(reg & mxs_lradc_irq_mask(lradc), in mxs_lradc_adc_handle_irq()
485 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_buffer_preenable() local
494 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_buffer_preenable()
495 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET, in mxs_lradc_adc_buffer_preenable()
497 writel(lradc->buffer_vchans, in mxs_lradc_adc_buffer_preenable()
523 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_buffer_postdisable() local
528 writel(lradc->buffer_vchans, in mxs_lradc_adc_buffer_postdisable()
530 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_buffer_postdisable()
531 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET, in mxs_lradc_adc_buffer_postdisable()
541 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_validate_scan_mask() local
546 if (lradc->use_touchbutton) in mxs_lradc_adc_validate_scan_mask()
548 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_4WIRE) in mxs_lradc_adc_validate_scan_mask()
550 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_5WIRE) in mxs_lradc_adc_validate_scan_mask()
553 if (lradc->use_touchbutton) in mxs_lradc_adc_validate_scan_mask()
555 if (lradc->touchscreen_wire) in mxs_lradc_adc_validate_scan_mask()
692 struct mxs_lradc *lradc = dev_get_drvdata(dev->parent); in mxs_lradc_adc_probe() local
708 adc->lradc = lradc; in mxs_lradc_adc_probe()
731 if (lradc->soc == IMX23_LRADC) { in mxs_lradc_adc_probe()
770 adc->vref_mv = mxs_lradc_adc_vref_mv[lradc->soc]; in mxs_lradc_adc_probe()