Lines Matching refs:adxl380_state
231 struct adxl380_state { struct
268 static int adxl380_set_measure_en(struct adxl380_state *st, bool en) in adxl380_set_measure_en() argument
292 static void adxl380_scale_act_inact_thresholds(struct adxl380_state *st, in adxl380_scale_act_inact_thresholds()
304 static int adxl380_write_act_inact_threshold(struct adxl380_state *st, in adxl380_write_act_inact_threshold()
334 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_set_act_inact_threshold()
353 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_set_tap_threshold_value()
370 static int _adxl380_write_tap_time_us(struct adxl380_state *st, in _adxl380_write_tap_time_us()
395 static int adxl380_write_tap_time_us(struct adxl380_state *st, in adxl380_write_tap_time_us()
417 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_write_tap_dur_us()
433 static int adxl380_read_chn(struct adxl380_state *st, u8 addr) in adxl380_read_chn()
446 static int adxl380_get_odr(struct adxl380_state *st, int *odr) in adxl380_get_odr()
467 static int adxl380_fill_lpf_tbl(struct adxl380_state *st) in adxl380_fill_lpf_tbl()
486 static int adxl380_fill_hpf_tbl(struct adxl380_state *st) in adxl380_fill_hpf_tbl()
509 static int adxl380_set_odr(struct adxl380_state *st, u8 odr) in adxl380_set_odr()
567 static int adxl380_get_lpf(struct adxl380_state *st, int *lpf) in adxl380_get_lpf()
585 static int adxl380_set_lpf(struct adxl380_state *st, u8 lpf) in adxl380_set_lpf()
614 static int adxl380_get_hpf(struct adxl380_state *st, int *hpf_int, int *hpf_frac) in adxl380_get_hpf()
633 static int adxl380_set_hpf(struct adxl380_state *st, u8 hpf) in adxl380_set_hpf()
662 static int _adxl380_set_act_inact_time_ms(struct adxl380_state *st, in _adxl380_set_act_inact_time_ms()
687 static int adxl380_set_act_inact_time_ms(struct adxl380_state *st, in adxl380_set_act_inact_time_ms()
706 static int adxl380_set_range(struct adxl380_state *st, u8 range) in adxl380_set_range()
741 static int adxl380_write_act_inact_en(struct adxl380_state *st, in adxl380_write_act_inact_en()
755 static int adxl380_read_act_inact_int(struct adxl380_state *st, in adxl380_read_act_inact_int()
776 static int adxl380_write_act_inact_int(struct adxl380_state *st, in adxl380_write_act_inact_int()
790 static int adxl380_act_inact_config(struct adxl380_state *st, in adxl380_act_inact_config()
813 static int adxl380_write_tap_axis(struct adxl380_state *st, in adxl380_write_tap_axis()
830 static int adxl380_read_tap_int(struct adxl380_state *st, enum adxl380_tap_type type, bool *en) in adxl380_read_tap_int()
847 static int adxl380_write_tap_int(struct adxl380_state *st, enum adxl380_tap_type type, bool en) in adxl380_write_tap_int()
859 static int adxl380_tap_config(struct adxl380_state *st, in adxl380_tap_config()
883 static int adxl380_set_fifo_samples(struct adxl380_state *st) in adxl380_set_fifo_samples()
899 static int adxl380_get_status(struct adxl380_state *st, u8 *status0, u8 *status1) in adxl380_get_status()
915 static int adxl380_get_fifo_entries(struct adxl380_state *st, u16 *fifo_entries) in adxl380_get_fifo_entries()
959 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_irq_handler()
992 static int adxl380_write_calibbias_value(struct adxl380_state *st, in adxl380_write_calibbias_value()
1011 static int adxl380_read_calibbias_value(struct adxl380_state *st, in adxl380_read_calibbias_value()
1048 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_get_fifo_watermark()
1058 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_get_fifo_enabled()
1087 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_buffer_postenable()
1132 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_buffer_predisable()
1173 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_read_raw()
1249 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_read_avail()
1285 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_write_raw()
1340 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_read_event_config()
1391 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_write_event_config()
1429 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_read_event_value()
1490 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_write_event_value()
1554 struct adxl380_state *st = iio_priv(indio_dev); in in_accel_gesture_tap_maxtomin_time_show()
1569 struct adxl380_state *st = iio_priv(indio_dev); in in_accel_gesture_tap_maxtomin_time_store()
1605 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_reg_access()
1615 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_set_watermark()
1720 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_config_irq()
1768 struct adxl380_state *st = iio_priv(indio_dev); in adxl380_setup()
1852 struct adxl380_state *st; in adxl380_probe()