/linux-4.19.296/include/linux/iio/ |
D | iio.h | 37 struct iio_dev; 50 ssize_t (*read)(struct iio_dev *, uintptr_t private, 52 ssize_t (*write)(struct iio_dev *, uintptr_t private, 77 int (*set)(struct iio_dev *, const struct iio_chan_spec *, unsigned int); 78 int (*get)(struct iio_dev *, const struct iio_chan_spec *); 81 ssize_t iio_enum_available_read(struct iio_dev *indio_dev, 83 ssize_t iio_enum_read(struct iio_dev *indio_dev, 85 ssize_t iio_enum_write(struct iio_dev *indio_dev, 131 ssize_t iio_show_mount_matrix(struct iio_dev *indio_dev, uintptr_t priv, 137 (iio_get_mount_matrix_t)(const struct iio_dev *indio_dev, [all …]
|
D | triggered_buffer.h | 7 struct iio_dev; 10 int iio_triggered_buffer_setup(struct iio_dev *indio_dev, 14 void iio_triggered_buffer_cleanup(struct iio_dev *indio_dev); 17 struct iio_dev *indio_dev, 22 struct iio_dev *indio_dev);
|
D | trigger_consumer.h | 16 struct iio_dev; 34 struct iio_dev *indio_dev; 48 struct iio_dev *indio_dev, 60 int iio_triggered_buffer_postenable(struct iio_dev *indio_dev); 61 int iio_triggered_buffer_predisable(struct iio_dev *indio_dev);
|
/linux-4.19.296/drivers/iio/light/ |
D | st_uvis25_core.c | 115 static int st_uvis25_read_raw(struct iio_dev *iio_dev, in st_uvis25_read_raw() argument 121 ret = iio_device_claim_direct_mode(iio_dev); in st_uvis25_read_raw() 127 struct st_uvis25_hw *hw = iio_priv(iio_dev); in st_uvis25_read_raw() 148 iio_device_release_direct_mode(iio_dev); in st_uvis25_read_raw() 170 static int st_uvis25_allocate_trigger(struct iio_dev *iio_dev) in st_uvis25_allocate_trigger() argument 172 struct st_uvis25_hw *hw = iio_priv(iio_dev); in st_uvis25_allocate_trigger() 201 iio_dev->name, hw); in st_uvis25_allocate_trigger() 209 iio_dev->name); in st_uvis25_allocate_trigger() 213 iio_trigger_set_drvdata(hw->trig, iio_dev); in st_uvis25_allocate_trigger() 219 static int st_uvis25_buffer_preenable(struct iio_dev *iio_dev) in st_uvis25_buffer_preenable() argument [all …]
|
/linux-4.19.296/drivers/iio/ |
D | iio_core.h | 19 struct iio_dev; 51 int iio_buffer_alloc_sysfs_and_mask(struct iio_dev *indio_dev); 52 void iio_buffer_free_sysfs_and_mask(struct iio_dev *indio_dev); 57 void iio_disable_all_buffers(struct iio_dev *indio_dev); 58 void iio_buffer_wakeup_poll(struct iio_dev *indio_dev); 65 static inline int iio_buffer_alloc_sysfs_and_mask(struct iio_dev *indio_dev) in iio_buffer_alloc_sysfs_and_mask() 70 static inline void iio_buffer_free_sysfs_and_mask(struct iio_dev *indio_dev) {} in iio_buffer_free_sysfs_and_mask() 72 static inline void iio_disable_all_buffers(struct iio_dev *indio_dev) {} in iio_disable_all_buffers() 73 static inline void iio_buffer_wakeup_poll(struct iio_dev *indio_dev) {} in iio_buffer_wakeup_poll() 77 int iio_device_register_eventset(struct iio_dev *indio_dev); [all …]
|
D | industrialio-core.c | 169 *iio_find_channel_from_si(struct iio_dev *indio_dev, int si) in iio_find_channel_from_si() 188 static int iio_device_set_clock(struct iio_dev *indio_dev, clockid_t clock_id) in iio_device_set_clock() 211 s64 iio_get_time_ns(const struct iio_dev *indio_dev) in iio_get_time_ns() 242 unsigned int iio_get_time_res(const struct iio_dev *indio_dev) in iio_get_time_res() 299 struct iio_dev *indio_dev = file->private_data; in iio_debugfs_read_reg() 321 struct iio_dev *indio_dev = file->private_data; in iio_debugfs_write_reg() 361 static void iio_device_unregister_debugfs(struct iio_dev *indio_dev) in iio_device_unregister_debugfs() 366 static int iio_device_register_debugfs(struct iio_dev *indio_dev) in iio_device_register_debugfs() 396 static int iio_device_register_debugfs(struct iio_dev *indio_dev) in iio_device_register_debugfs() 401 static void iio_device_unregister_debugfs(struct iio_dev *indio_dev) in iio_device_unregister_debugfs() [all …]
|
D | iio_core_trigger.h | 16 void iio_device_register_trigger_consumer(struct iio_dev *indio_dev); 22 void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev); 30 static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) in iio_device_register_trigger_consumer() 39 static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) in iio_device_unregister_trigger_consumer()
|
/linux-4.19.296/drivers/iio/dummy/ |
D | iio_simple_dummy.h | 55 struct iio_dev; 57 int iio_simple_dummy_read_event_config(struct iio_dev *indio_dev, 62 int iio_simple_dummy_write_event_config(struct iio_dev *indio_dev, 68 int iio_simple_dummy_read_event_value(struct iio_dev *indio_dev, 75 int iio_simple_dummy_write_event_value(struct iio_dev *indio_dev, 82 int iio_simple_dummy_events_register(struct iio_dev *indio_dev); 83 void iio_simple_dummy_events_unregister(struct iio_dev *indio_dev); 88 iio_simple_dummy_events_register(struct iio_dev *indio_dev) in iio_simple_dummy_events_register() 94 iio_simple_dummy_events_unregister(struct iio_dev *indio_dev) in iio_simple_dummy_events_unregister() 116 int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev); [all …]
|
/linux-4.19.296/drivers/iio/humidity/ |
D | hts221_buffer.c | 41 struct iio_dev *iio_dev = iio_trigger_get_drvdata(trig); in hts221_trig_set_state() local 42 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_trig_set_state() 78 struct iio_dev *iio_dev = iio_priv_to_dev(hw); in hts221_allocate_trigger() local 135 iio_dev->name); in hts221_allocate_trigger() 139 iio_trigger_set_drvdata(hw->trig, iio_dev); in hts221_allocate_trigger() 142 iio_dev->trig = iio_trigger_get(hw->trig); in hts221_allocate_trigger() 147 static int hts221_buffer_preenable(struct iio_dev *iio_dev) in hts221_buffer_preenable() argument 149 return hts221_set_enable(iio_priv(iio_dev), true); in hts221_buffer_preenable() 152 static int hts221_buffer_postdisable(struct iio_dev *iio_dev) in hts221_buffer_postdisable() argument 154 return hts221_set_enable(iio_priv(iio_dev), false); in hts221_buffer_postdisable() [all …]
|
D | hts221_core.c | 428 static int hts221_read_raw(struct iio_dev *iio_dev, in hts221_read_raw() argument 432 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_read_raw() 435 ret = iio_device_claim_direct_mode(iio_dev); in hts221_read_raw() 481 iio_device_release_direct_mode(iio_dev); in hts221_read_raw() 486 static int hts221_write_raw(struct iio_dev *iio_dev, in hts221_write_raw() argument 490 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_write_raw() 493 ret = iio_device_claim_direct_mode(iio_dev); in hts221_write_raw() 519 iio_device_release_direct_mode(iio_dev); in hts221_write_raw() 524 static int hts221_validate_trigger(struct iio_dev *iio_dev, in hts221_validate_trigger() argument 527 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_validate_trigger() [all …]
|
/linux-4.19.296/drivers/iio/dac/ |
D | ad5592r-base.c | 161 struct iio_dev *iio_dev = iio_priv_to_dev(st); in ad5592r_reset() local 171 mutex_lock(&iio_dev->mlock); in ad5592r_reset() 174 mutex_unlock(&iio_dev->mlock); in ad5592r_reset() 202 struct iio_dev *iio_dev = iio_priv_to_dev(st); in ad5592r_set_channel_modes() local 252 mutex_lock(&iio_dev->mlock); in ad5592r_set_channel_modes() 290 mutex_unlock(&iio_dev->mlock); in ad5592r_set_channel_modes() 304 static int ad5592r_write_raw(struct iio_dev *iio_dev, in ad5592r_write_raw() argument 307 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_write_raw() 319 mutex_lock(&iio_dev->mlock); in ad5592r_write_raw() 323 mutex_unlock(&iio_dev->mlock); in ad5592r_write_raw() [all …]
|
D | ad5761.c | 123 static int ad5761_spi_write(struct iio_dev *indio_dev, u8 addr, u16 val) in ad5761_spi_write() 162 static int ad5761_spi_read(struct iio_dev *indio_dev, u8 addr, u16 *val) in ad5761_spi_read() 198 static int ad5761_read_raw(struct iio_dev *indio_dev, in ad5761_read_raw() 232 static int ad5761_write_raw(struct iio_dev *indio_dev, in ad5761_write_raw() 348 struct iio_dev *iio_dev; in ad5761_probe() local 356 iio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); in ad5761_probe() 357 if (!iio_dev) in ad5761_probe() 360 st = iio_priv(iio_dev); in ad5761_probe() 363 spi_set_drvdata(spi, iio_dev); in ad5761_probe() 376 iio_dev->dev.parent = &spi->dev; in ad5761_probe() [all …]
|
/linux-4.19.296/include/linux/iio/gyro/ |
D | itg3200.h | 117 int itg3200_write_reg_8(struct iio_dev *indio_dev, 120 int itg3200_read_reg_8(struct iio_dev *indio_dev, 126 void itg3200_remove_trigger(struct iio_dev *indio_dev); 127 int itg3200_probe_trigger(struct iio_dev *indio_dev); 129 int itg3200_buffer_configure(struct iio_dev *indio_dev); 130 void itg3200_buffer_unconfigure(struct iio_dev *indio_dev); 134 static inline void itg3200_remove_trigger(struct iio_dev *indio_dev) in itg3200_remove_trigger() 138 static inline int itg3200_probe_trigger(struct iio_dev *indio_dev) in itg3200_probe_trigger() 143 static inline int itg3200_buffer_configure(struct iio_dev *indio_dev) in itg3200_buffer_configure() 148 static inline void itg3200_buffer_unconfigure(struct iio_dev *indio_dev) in itg3200_buffer_unconfigure()
|
/linux-4.19.296/drivers/iio/magnetometer/ |
D | st_magn.h | 24 int st_magn_common_probe(struct iio_dev *indio_dev); 25 void st_magn_common_remove(struct iio_dev *indio_dev); 28 int st_magn_allocate_ring(struct iio_dev *indio_dev); 29 void st_magn_deallocate_ring(struct iio_dev *indio_dev); 33 static inline int st_magn_probe_trigger(struct iio_dev *indio_dev, int irq) in st_magn_probe_trigger() 37 static inline void st_magn_remove_trigger(struct iio_dev *indio_dev, int irq) in st_magn_remove_trigger() 41 static inline int st_magn_allocate_ring(struct iio_dev *indio_dev) in st_magn_allocate_ring() 45 static inline void st_magn_deallocate_ring(struct iio_dev *indio_dev) in st_magn_deallocate_ring()
|
/linux-4.19.296/include/linux/iio/common/ |
D | st_sensors.h | 279 unsigned int (*get_irq_data_ready) (struct iio_dev *indio_dev); 294 int st_sensors_allocate_trigger(struct iio_dev *indio_dev, 297 void st_sensors_deallocate_trigger(struct iio_dev *indio_dev); 299 struct iio_dev *indio_dev); 301 static inline int st_sensors_allocate_trigger(struct iio_dev *indio_dev, in st_sensors_allocate_trigger() 306 static inline void st_sensors_deallocate_trigger(struct iio_dev *indio_dev) in st_sensors_deallocate_trigger() 313 int st_sensors_init_sensor(struct iio_dev *indio_dev, 316 int st_sensors_set_enable(struct iio_dev *indio_dev, bool enable); 318 int st_sensors_set_axis_enable(struct iio_dev *indio_dev, u8 axis_enable); 320 int st_sensors_power_enable(struct iio_dev *indio_dev); [all …]
|
/linux-4.19.296/drivers/iio/gyro/ |
D | st_gyro.h | 35 int st_gyro_common_probe(struct iio_dev *indio_dev); 36 void st_gyro_common_remove(struct iio_dev *indio_dev); 39 int st_gyro_allocate_ring(struct iio_dev *indio_dev); 40 void st_gyro_deallocate_ring(struct iio_dev *indio_dev); 44 static inline int st_gyro_allocate_ring(struct iio_dev *indio_dev) in st_gyro_allocate_ring() 48 static inline void st_gyro_deallocate_ring(struct iio_dev *indio_dev) in st_gyro_deallocate_ring()
|
D | st_gyro_buffer.c | 28 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in st_gyro_trig_set_state() 33 static int st_gyro_buffer_preenable(struct iio_dev *indio_dev) in st_gyro_buffer_preenable() 38 static int st_gyro_buffer_postenable(struct iio_dev *indio_dev) in st_gyro_buffer_postenable() 66 static int st_gyro_buffer_predisable(struct iio_dev *indio_dev) in st_gyro_buffer_predisable() 92 int st_gyro_allocate_ring(struct iio_dev *indio_dev) in st_gyro_allocate_ring() 98 void st_gyro_deallocate_ring(struct iio_dev *indio_dev) in st_gyro_deallocate_ring()
|
/linux-4.19.296/drivers/iio/pressure/ |
D | st_pressure.h | 42 int st_press_common_probe(struct iio_dev *indio_dev); 43 void st_press_common_remove(struct iio_dev *indio_dev); 46 int st_press_allocate_ring(struct iio_dev *indio_dev); 47 void st_press_deallocate_ring(struct iio_dev *indio_dev); 51 static inline int st_press_allocate_ring(struct iio_dev *indio_dev) in st_press_allocate_ring() 56 static inline void st_press_deallocate_ring(struct iio_dev *indio_dev) in st_press_deallocate_ring()
|
D | zpa2326.c | 225 static int zpa2326_enable_device(const struct iio_dev *indio_dev) in zpa2326_enable_device() 251 static int zpa2326_sleep(const struct iio_dev *indio_dev) in zpa2326_sleep() 277 static int zpa2326_reset_device(const struct iio_dev *indio_dev) in zpa2326_reset_device() 306 static int zpa2326_start_oneshot(const struct iio_dev *indio_dev) in zpa2326_start_oneshot() 338 static int zpa2326_power_on(const struct iio_dev *indio_dev, in zpa2326_power_on() 383 static void zpa2326_power_off(const struct iio_dev *indio_dev, in zpa2326_power_off() 409 static int zpa2326_config_oneshot(const struct iio_dev *indio_dev, in zpa2326_config_oneshot() 451 static int zpa2326_clear_fifo(const struct iio_dev *indio_dev, in zpa2326_clear_fifo() 519 static int zpa2326_dequeue_pressure(const struct iio_dev *indio_dev, in zpa2326_dequeue_pressure() 586 static int zpa2326_fill_sample_buffer(struct iio_dev *indio_dev, in zpa2326_fill_sample_buffer() [all …]
|
D | st_pressure_buffer.c | 28 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in st_press_trig_set_state() 33 static int st_press_buffer_preenable(struct iio_dev *indio_dev) in st_press_buffer_preenable() 38 static int st_press_buffer_postenable(struct iio_dev *indio_dev) in st_press_buffer_postenable() 61 static int st_press_buffer_predisable(struct iio_dev *indio_dev) in st_press_buffer_predisable() 83 int st_press_allocate_ring(struct iio_dev *indio_dev) in st_press_allocate_ring() 89 void st_press_deallocate_ring(struct iio_dev *indio_dev) in st_press_deallocate_ring()
|
/linux-4.19.296/drivers/iio/accel/ |
D | st_accel.h | 68 int st_accel_common_probe(struct iio_dev *indio_dev); 69 void st_accel_common_remove(struct iio_dev *indio_dev); 72 int st_accel_allocate_ring(struct iio_dev *indio_dev); 73 void st_accel_deallocate_ring(struct iio_dev *indio_dev); 77 static inline int st_accel_allocate_ring(struct iio_dev *indio_dev) in st_accel_allocate_ring() 81 static inline void st_accel_deallocate_ring(struct iio_dev *indio_dev) in st_accel_deallocate_ring()
|
D | st_accel_buffer.c | 28 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in st_accel_trig_set_state() 33 static int st_accel_buffer_preenable(struct iio_dev *indio_dev) in st_accel_buffer_preenable() 38 static int st_accel_buffer_postenable(struct iio_dev *indio_dev) in st_accel_buffer_postenable() 66 static int st_accel_buffer_predisable(struct iio_dev *indio_dev) in st_accel_buffer_predisable() 92 int st_accel_allocate_ring(struct iio_dev *indio_dev) in st_accel_allocate_ring() 98 void st_accel_deallocate_ring(struct iio_dev *indio_dev) in st_accel_deallocate_ring()
|
/linux-4.19.296/drivers/iio/adc/ |
D | mxs-lradc-adc.c | 140 static int mxs_lradc_adc_read_single(struct iio_dev *iio_dev, int chan, in mxs_lradc_adc_read_single() argument 143 struct mxs_lradc_adc *adc = iio_priv(iio_dev); in mxs_lradc_adc_read_single() 153 ret = iio_device_claim_direct_mode(iio_dev); in mxs_lradc_adc_read_single() 204 iio_device_release_direct_mode(iio_dev); in mxs_lradc_adc_read_single() 209 static int mxs_lradc_adc_read_temp(struct iio_dev *iio_dev, int *val) in mxs_lradc_adc_read_temp() argument 213 ret = mxs_lradc_adc_read_single(iio_dev, 8, &min); in mxs_lradc_adc_read_temp() 217 ret = mxs_lradc_adc_read_single(iio_dev, 9, &max); in mxs_lradc_adc_read_temp() 226 static int mxs_lradc_adc_read_raw(struct iio_dev *iio_dev, in mxs_lradc_adc_read_raw() argument 230 struct mxs_lradc_adc *adc = iio_priv(iio_dev); in mxs_lradc_adc_read_raw() 235 return mxs_lradc_adc_read_temp(iio_dev, val); in mxs_lradc_adc_read_raw() [all …]
|
/linux-4.19.296/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_core.c | 486 static int st_lsm6dsx_read_raw(struct iio_dev *iio_dev, in st_lsm6dsx_read_raw() argument 490 struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); in st_lsm6dsx_read_raw() 495 ret = iio_device_claim_direct_mode(iio_dev); in st_lsm6dsx_read_raw() 500 iio_device_release_direct_mode(iio_dev); in st_lsm6dsx_read_raw() 519 static int st_lsm6dsx_write_raw(struct iio_dev *iio_dev, in st_lsm6dsx_write_raw() argument 523 struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); in st_lsm6dsx_write_raw() 526 err = iio_device_claim_direct_mode(iio_dev); in st_lsm6dsx_write_raw() 547 iio_device_release_direct_mode(iio_dev); in st_lsm6dsx_write_raw() 552 static int st_lsm6dsx_set_watermark(struct iio_dev *iio_dev, unsigned int val) in st_lsm6dsx_set_watermark() argument 554 struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); in st_lsm6dsx_set_watermark() [all …]
|
/linux-4.19.296/include/linux/iio/adc/ |
D | stm32-dfsdm-adc.h | 14 int stm32_dfsdm_get_buff_cb(struct iio_dev *iio_dev, 18 int stm32_dfsdm_release_buff_cb(struct iio_dev *iio_dev);
|