Lines Matching refs:adxl367_state
156 struct adxl367_state { struct
271 static int adxl367_set_measure_en(struct adxl367_state *st, bool en) in adxl367_set_measure_en()
294 static void adxl367_scale_act_thresholds(struct adxl367_state *st, in adxl367_scale_act_thresholds()
306 static int _adxl367_set_act_threshold(struct adxl367_state *st, in _adxl367_set_act_threshold()
336 static int adxl367_set_act_threshold(struct adxl367_state *st, in adxl367_set_act_threshold()
360 static int adxl367_set_act_proc_mode(struct adxl367_state *st, in adxl367_set_act_proc_mode()
369 static int adxl367_set_act_interrupt_en(struct adxl367_state *st, in adxl367_set_act_interrupt_en()
379 static int adxl367_get_act_interrupt_en(struct adxl367_state *st, in adxl367_get_act_interrupt_en()
396 static int adxl367_set_act_en(struct adxl367_state *st, in adxl367_set_act_en()
407 static int adxl367_set_fifo_watermark_interrupt_en(struct adxl367_state *st, in adxl367_set_fifo_watermark_interrupt_en()
415 static int adxl367_get_fifo_mode(struct adxl367_state *st, in adxl367_get_fifo_mode()
430 static int adxl367_set_fifo_mode(struct adxl367_state *st, in adxl367_set_fifo_mode()
439 static int adxl367_set_fifo_format(struct adxl367_state *st, in adxl367_set_fifo_format()
448 static int adxl367_set_fifo_watermark(struct adxl367_state *st, in adxl367_set_fifo_watermark()
485 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_set_range()
532 static int adxl367_time_ms_to_samples(struct adxl367_state *st, unsigned int ms) in adxl367_time_ms_to_samples()
542 static int _adxl367_set_act_time_ms(struct adxl367_state *st, unsigned int ms) in _adxl367_set_act_time_ms()
559 static int _adxl367_set_inact_time_ms(struct adxl367_state *st, unsigned int ms) in _adxl367_set_inact_time_ms()
584 static int adxl367_set_act_time_ms(struct adxl367_state *st, in adxl367_set_act_time_ms()
612 static int _adxl367_set_odr(struct adxl367_state *st, enum adxl367_odr odr) in _adxl367_set_odr()
639 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_set_odr()
666 static int adxl367_set_temp_adc_en(struct adxl367_state *st, unsigned int reg, in adxl367_set_temp_adc_en()
673 static int adxl367_set_temp_adc_reg_en(struct adxl367_state *st, in adxl367_set_temp_adc_reg_en()
698 static int adxl367_set_temp_adc_mask_en(struct adxl367_state *st, in adxl367_set_temp_adc_mask_en()
710 static int adxl367_find_odr(struct adxl367_state *st, int val, int val2, in adxl367_find_odr()
729 static int adxl367_find_range(struct adxl367_state *st, int val, int val2, in adxl367_find_range()
752 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_read_sample()
784 static int adxl367_get_status(struct adxl367_state *st, u8 *status, in adxl367_get_status()
825 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_push_fifo_data()
849 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_irq_handler()
870 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_reg_access()
882 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_read_raw()
932 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_write_raw()
1005 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_read_event_value()
1053 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_write_event_value()
1091 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_read_event_config()
1113 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_write_event_config()
1161 struct adxl367_state *st = iio_priv(dev_to_iio_dev(dev)); in adxl367_get_fifo_enabled()
1176 struct adxl367_state *st = iio_priv(dev_to_iio_dev(dev)); in adxl367_get_fifo_watermark()
1204 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_set_watermark()
1249 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_update_scan_mode()
1281 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_buffer_postenable()
1313 struct adxl367_state *st = iio_priv(indio_dev); in adxl367_buffer_predisable()
1427 static int adxl367_verify_devid(struct adxl367_state *st) in adxl367_verify_devid()
1444 static int adxl367_setup(struct adxl367_state *st) in adxl367_setup()
1482 struct adxl367_state *st; in adxl367_probe()