Lines Matching refs:vcnl4000_data

193 struct vcnl4000_data {  struct
213 int (*init)(struct vcnl4000_data *data); argument
214 int (*measure_light)(struct vcnl4000_data *data, int *val);
215 int (*measure_proximity)(struct vcnl4000_data *data, int *val);
216 int (*set_power_state)(struct vcnl4000_data *data, bool on);
238 static int vcnl4000_set_power_state(struct vcnl4000_data *data, bool on) in vcnl4000_set_power_state()
244 static int vcnl4000_init(struct vcnl4000_data *data) in vcnl4000_init()
274 static ssize_t vcnl4000_write_als_enable(struct vcnl4000_data *data, bool en) in vcnl4000_write_als_enable()
297 static ssize_t vcnl4000_write_ps_enable(struct vcnl4000_data *data, bool en) in vcnl4000_write_ps_enable()
320 static int vcnl4200_set_power_state(struct vcnl4000_data *data, bool on) in vcnl4200_set_power_state()
345 static int vcnl4200_init(struct vcnl4000_data *data) in vcnl4200_init()
399 static int vcnl4000_read_data(struct vcnl4000_data *data, u8 data_reg, int *val) in vcnl4000_read_data()
411 static int vcnl4000_write_data(struct vcnl4000_data *data, u8 data_reg, int val) in vcnl4000_write_data()
420 static int vcnl4000_measure(struct vcnl4000_data *data, u8 req_mask, in vcnl4000_measure()
463 static int vcnl4200_measure(struct vcnl4000_data *data, in vcnl4200_measure()
490 static int vcnl4000_measure_light(struct vcnl4000_data *data, int *val) in vcnl4000_measure_light()
497 static int vcnl4200_measure_light(struct vcnl4000_data *data, int *val) in vcnl4200_measure_light()
502 static int vcnl4000_measure_proximity(struct vcnl4000_data *data, int *val) in vcnl4000_measure_proximity()
509 static int vcnl4200_measure_proximity(struct vcnl4000_data *data, int *val) in vcnl4200_measure_proximity()
514 static int vcnl4010_read_proxy_samp_freq(struct vcnl4000_data *data, int *val, in vcnl4010_read_proxy_samp_freq()
532 static bool vcnl4010_is_in_periodic_mode(struct vcnl4000_data *data) in vcnl4010_is_in_periodic_mode()
543 static int vcnl4000_set_pm_runtime_state(struct vcnl4000_data *data, bool on) in vcnl4000_set_pm_runtime_state()
558 static int vcnl4040_read_als_it(struct vcnl4000_data *data, int *val, int *val2) in vcnl4040_read_als_it()
576 static ssize_t vcnl4040_write_als_it(struct vcnl4000_data *data, int val) in vcnl4040_write_als_it()
612 static int vcnl4040_read_ps_it(struct vcnl4000_data *data, int *val, int *val2) in vcnl4040_read_ps_it()
631 static ssize_t vcnl4040_write_ps_it(struct vcnl4000_data *data, int val) in vcnl4040_write_ps_it()
665 static ssize_t vcnl4040_read_als_period(struct vcnl4000_data *data, int *val, int *val2) in vcnl4040_read_als_period()
689 static ssize_t vcnl4040_write_als_period(struct vcnl4000_data *data, int val, int val2) in vcnl4040_write_als_period()
726 static ssize_t vcnl4040_read_ps_period(struct vcnl4000_data *data, int *val, int *val2) in vcnl4040_read_ps_period()
749 static ssize_t vcnl4040_write_ps_period(struct vcnl4000_data *data, int val, int val2) in vcnl4040_write_ps_period()
788 static ssize_t vcnl4040_read_ps_oversampling_ratio(struct vcnl4000_data *data, int *val) in vcnl4040_read_ps_oversampling_ratio()
805 static ssize_t vcnl4040_write_ps_oversampling_ratio(struct vcnl4000_data *data, int val) in vcnl4040_write_ps_oversampling_ratio()
835 static ssize_t vcnl4040_read_ps_calibbias(struct vcnl4000_data *data, int *val, int *val2) in vcnl4040_read_ps_calibbias()
853 static ssize_t vcnl4040_write_ps_calibbias(struct vcnl4000_data *data, int val) in vcnl4040_write_ps_calibbias()
888 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4000_read_raw()
962 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4040_write_raw()
1000 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4040_read_avail()
1048 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_read_raw()
1098 static int vcnl4010_write_proxy_samp_freq(struct vcnl4000_data *data, int val, in vcnl4010_write_proxy_samp_freq()
1124 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_write_raw()
1164 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_read_event()
1197 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_write_event()
1230 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4040_read_event()
1294 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4040_write_event()
1353 static bool vcnl4010_is_thr_enabled(struct vcnl4000_data *data) in vcnl4010_is_thr_enabled()
1369 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_read_event_config()
1381 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_config_threshold()
1441 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4040_read_event_config()
1474 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4040_write_event_config()
1523 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4040_irq_thread()
1570 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4000_read_near_level()
1578 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_irq_thread()
1624 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_trigger_handler()
1669 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_buffer_postenable()
1688 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_buffer_predisable()
1911 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4010_probe_trigger()
1930 struct vcnl4000_data *data; in vcnl4000_probe()
2039 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4000_remove()
2056 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4000_runtime_suspend()
2064 struct vcnl4000_data *data = iio_priv(indio_dev); in vcnl4000_runtime_resume()