Lines Matching refs:meson_saradc_priv
169 struct meson_saradc_priv { struct
181 meson_saradc_get_fifo_count(struct meson_saradc_priv *priv) in meson_saradc_get_fifo_count() argument
190 static int meson_saradc_lock(struct meson_saradc_priv *priv) in meson_saradc_lock()
215 static void meson_saradc_unlock(struct meson_saradc_priv *priv) in meson_saradc_unlock()
222 static void meson_saradc_clear_fifo(struct meson_saradc_priv *priv) in meson_saradc_clear_fifo()
234 static int meson_saradc_calib_val(struct meson_saradc_priv *priv, int val) in meson_saradc_calib_val()
244 static int meson_saradc_wait_busy_clear(struct meson_saradc_priv *priv) in meson_saradc_wait_busy_clear()
264 static int meson_saradc_read_raw_sample(struct meson_saradc_priv *priv, in meson_saradc_read_raw_sample()
295 static void meson_saradc_start_sample_engine(struct meson_saradc_priv *priv) in meson_saradc_start_sample_engine()
310 static void meson_saradc_stop_sample_engine(struct meson_saradc_priv *priv) in meson_saradc_stop_sample_engine()
339 static void meson_saradc_set_averaging(struct meson_saradc_priv *priv, in meson_saradc_set_averaging()
356 static void meson_saradc_enable_channel(struct meson_saradc_priv *priv, in meson_saradc_enable_channel()
392 static int meson_saradc_get_sample(struct meson_saradc_priv *priv, in meson_saradc_get_sample()
426 struct meson_saradc_priv *priv = dev_get_priv(dev); in meson_saradc_channel_data()
445 static void meson_saradc_set_chan7_mux(struct meson_saradc_priv *priv, in meson_saradc_set_chan7_mux()
457 static int meson_saradc_calib(struct meson_saradc_priv *priv) in meson_saradc_calib()
494 static int meson_saradc_init(struct meson_saradc_priv *priv) in meson_saradc_init()
621 struct meson_saradc_priv *priv = dev_get_priv(dev); in meson_saradc_start_channel()
645 struct meson_saradc_priv *priv = dev_get_priv(dev); in meson_saradc_stop()
654 struct meson_saradc_priv *priv = dev_get_priv(dev); in meson_saradc_probe()
679 struct meson_saradc_priv *priv = dev_get_priv(dev); in meson_saradc_ofdata_to_platdata()
722 .priv_auto_alloc_size = sizeof(struct meson_saradc_priv),