Lines Matching refs:at91_adc_writel
140 #define at91_adc_writel(st, reg, val) \ macro
387 at91_adc_writel(st, AT91_ADC_MR, reg); in at91_adc_rl_interrupt()
389 at91_adc_writel(st, AT91_ADC_IDR, AT91RL_ADC_IER_PEN); in at91_adc_rl_interrupt()
390 at91_adc_writel(st, AT91_ADC_IER, AT91RL_ADC_IER_NOPEN in at91_adc_rl_interrupt()
393 at91_adc_writel(st, st->registers->trigger_register, in at91_adc_rl_interrupt()
399 at91_adc_writel(st, AT91_ADC_MR, reg); in at91_adc_rl_interrupt()
400 at91_adc_writel(st, st->registers->trigger_register, in at91_adc_rl_interrupt()
403 at91_adc_writel(st, AT91_ADC_IDR, AT91RL_ADC_IER_NOPEN in at91_adc_rl_interrupt()
405 at91_adc_writel(st, AT91_ADC_IER, AT91RL_ADC_IER_PEN); in at91_adc_rl_interrupt()
451 at91_adc_writel(st, AT91_ADC_IDR, AT91_ADC_IER_PEN); in at91_adc_9x5_interrupt()
452 at91_adc_writel(st, AT91_ADC_IER, AT91_ADC_IER_NOPEN | in at91_adc_9x5_interrupt()
455 at91_adc_writel(st, st->registers->trigger_register, in at91_adc_9x5_interrupt()
459 at91_adc_writel(st, st->registers->trigger_register, 0); in at91_adc_9x5_interrupt()
460 at91_adc_writel(st, AT91_ADC_IDR, AT91_ADC_IER_NOPEN | in at91_adc_9x5_interrupt()
462 at91_adc_writel(st, AT91_ADC_IER, AT91_ADC_IER_PEN); in at91_adc_9x5_interrupt()
588 at91_adc_writel(st, reg->trigger_register, in at91_adc_configure_trigger()
594 at91_adc_writel(st, AT91_ADC_CHER, in at91_adc_configure_trigger()
598 at91_adc_writel(st, AT91_ADC_IER, reg->drdy_mask); in at91_adc_configure_trigger()
601 at91_adc_writel(st, AT91_ADC_IDR, reg->drdy_mask); in at91_adc_configure_trigger()
603 at91_adc_writel(st, reg->trigger_register, in at91_adc_configure_trigger()
609 at91_adc_writel(st, AT91_ADC_CHDR, in at91_adc_configure_trigger()
718 at91_adc_writel(st, AT91_ADC_CHER, in at91_adc_read_raw()
720 at91_adc_writel(st, AT91_ADC_IER, BIT(chan->channel)); in at91_adc_read_raw()
721 at91_adc_writel(st, AT91_ADC_CR, AT91_ADC_START); in at91_adc_read_raw()
730 at91_adc_writel(st, AT91_ADC_CHDR, in at91_adc_read_raw()
732 at91_adc_writel(st, AT91_ADC_IDR, BIT(chan->channel)); in at91_adc_read_raw()
845 at91_adc_writel(st, AT91_ADC_IER, AT91_ADC_IER_PEN); in atmel_ts_open()
847 at91_adc_writel(st, AT91_ADC_IER, AT91RL_ADC_IER_PEN); in atmel_ts_open()
856 at91_adc_writel(st, AT91_ADC_IDR, AT91_ADC_IER_PEN); in atmel_ts_close()
858 at91_adc_writel(st, AT91_ADC_IDR, AT91RL_ADC_IER_PEN); in atmel_ts_close()
887 at91_adc_writel(st, AT91_ADC_MR, reg); in at91_ts_hw_init()
890 at91_adc_writel(st, AT91_ADC_TSR, reg); in at91_ts_hw_init()
919 at91_adc_writel(st, AT91_ADC_TSMR, reg); in at91_ts_hw_init()
926 at91_adc_writel(st, AT91_ADC_ACR, st->caps->ts_pen_detect_sensitivity in at91_ts_hw_init()
1077 at91_adc_writel(st, AT91_ADC_CR, AT91_ADC_SWRST); in at91_adc_probe()
1078 at91_adc_writel(st, AT91_ADC_IDR, 0xFFFFFFFF); in at91_adc_probe()
1158 at91_adc_writel(st, AT91_ADC_MR, reg); in at91_adc_probe()