/kernel/linux/linux-5.10/drivers/iio/light/ |
D | st_uvis25_core.c | 114 static int st_uvis25_read_raw(struct iio_dev *iio_dev, in st_uvis25_read_raw() argument 120 ret = iio_device_claim_direct_mode(iio_dev); in st_uvis25_read_raw() 126 struct st_uvis25_hw *hw = iio_priv(iio_dev); in st_uvis25_read_raw() 147 iio_device_release_direct_mode(iio_dev); in st_uvis25_read_raw() 169 static int st_uvis25_allocate_trigger(struct iio_dev *iio_dev) in st_uvis25_allocate_trigger() argument 171 struct st_uvis25_hw *hw = iio_priv(iio_dev); in st_uvis25_allocate_trigger() 200 iio_dev->name, hw); in st_uvis25_allocate_trigger() 208 iio_dev->name); in st_uvis25_allocate_trigger() 212 iio_trigger_set_drvdata(hw->trig, iio_dev); in st_uvis25_allocate_trigger() 218 static int st_uvis25_buffer_preenable(struct iio_dev *iio_dev) in st_uvis25_buffer_preenable() argument [all …]
|
D | si1133.c | 643 struct iio_dev *iio_dev = private; in si1133_threaded_irq_handler() local 644 struct si1133_data *data = iio_priv(iio_dev); in si1133_threaded_irq_handler() 650 dev_err_ratelimited(&iio_dev->dev, "Error reading IRQ\n"); in si1133_threaded_irq_handler() 747 static int si1133_read_raw(struct iio_dev *iio_dev, in si1133_read_raw() argument 751 struct si1133_data *data = iio_priv(iio_dev); in si1133_read_raw() 821 static int si1133_write_raw(struct iio_dev *iio_dev, in si1133_write_raw() argument 825 struct si1133_data *data = iio_priv(iio_dev); in si1133_write_raw() 961 static int si1133_validate_ids(struct iio_dev *iio_dev) in si1133_validate_ids() argument 963 struct si1133_data *data = iio_priv(iio_dev); in si1133_validate_ids() 980 dev_info(&iio_dev->dev, in si1133_validate_ids() [all …]
|
/kernel/linux/linux-5.10/include/linux/iio/ |
D | iio.h | 34 struct iio_dev; 47 ssize_t (*read)(struct iio_dev *, uintptr_t private, 49 ssize_t (*write)(struct iio_dev *, uintptr_t private, 74 int (*set)(struct iio_dev *, const struct iio_chan_spec *, unsigned int); 75 int (*get)(struct iio_dev *, const struct iio_chan_spec *); 78 ssize_t iio_enum_available_read(struct iio_dev *indio_dev, 80 ssize_t iio_enum_read(struct iio_dev *indio_dev, 82 ssize_t iio_enum_write(struct iio_dev *indio_dev, 128 ssize_t iio_show_mount_matrix(struct iio_dev *indio_dev, uintptr_t priv, 134 (iio_get_mount_matrix_t)(const struct iio_dev *indio_dev, [all …]
|
/kernel/linux/linux-5.10/drivers/iio/humidity/ |
D | hts221_buffer.c | 40 struct iio_dev *iio_dev = iio_trigger_get_drvdata(trig); in hts221_trig_set_state() local 41 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_trig_set_state() 75 int hts221_allocate_trigger(struct iio_dev *iio_dev) in hts221_allocate_trigger() argument 77 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_allocate_trigger() 132 iio_dev->name); in hts221_allocate_trigger() 136 iio_trigger_set_drvdata(hw->trig, iio_dev); in hts221_allocate_trigger() 139 iio_dev->trig = iio_trigger_get(hw->trig); in hts221_allocate_trigger() 144 static int hts221_buffer_preenable(struct iio_dev *iio_dev) in hts221_buffer_preenable() argument 146 return hts221_set_enable(iio_priv(iio_dev), true); in hts221_buffer_preenable() 149 static int hts221_buffer_postdisable(struct iio_dev *iio_dev) in hts221_buffer_postdisable() argument [all …]
|
D | hts221_core.c | 420 static int hts221_read_raw(struct iio_dev *iio_dev, in hts221_read_raw() argument 424 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_read_raw() 427 ret = iio_device_claim_direct_mode(iio_dev); in hts221_read_raw() 473 iio_device_release_direct_mode(iio_dev); in hts221_read_raw() 478 static int hts221_write_raw(struct iio_dev *iio_dev, in hts221_write_raw() argument 482 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_write_raw() 485 ret = iio_device_claim_direct_mode(iio_dev); in hts221_write_raw() 511 iio_device_release_direct_mode(iio_dev); in hts221_write_raw() 516 static int hts221_validate_trigger(struct iio_dev *iio_dev, in hts221_validate_trigger() argument 519 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_validate_trigger() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/dummy/ |
D | iio_simple_dummy.h | 52 struct iio_dev; 54 int iio_simple_dummy_read_event_config(struct iio_dev *indio_dev, 59 int iio_simple_dummy_write_event_config(struct iio_dev *indio_dev, 65 int iio_simple_dummy_read_event_value(struct iio_dev *indio_dev, 72 int iio_simple_dummy_write_event_value(struct iio_dev *indio_dev, 79 int iio_simple_dummy_events_register(struct iio_dev *indio_dev); 80 void iio_simple_dummy_events_unregister(struct iio_dev *indio_dev); 85 iio_simple_dummy_events_register(struct iio_dev *indio_dev) in iio_simple_dummy_events_register() 91 iio_simple_dummy_events_unregister(struct iio_dev *indio_dev) in iio_simple_dummy_events_unregister() 113 int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev); [all …]
|
/kernel/linux/linux-5.10/drivers/iio/ |
D | iio_core.h | 16 struct iio_dev; 48 int iio_buffer_alloc_sysfs_and_mask(struct iio_dev *indio_dev); 49 void iio_buffer_free_sysfs_and_mask(struct iio_dev *indio_dev); 54 void iio_disable_all_buffers(struct iio_dev *indio_dev); 55 void iio_buffer_wakeup_poll(struct iio_dev *indio_dev); 62 static inline int iio_buffer_alloc_sysfs_and_mask(struct iio_dev *indio_dev) in iio_buffer_alloc_sysfs_and_mask() 67 static inline void iio_buffer_free_sysfs_and_mask(struct iio_dev *indio_dev) {} in iio_buffer_free_sysfs_and_mask() 69 static inline void iio_disable_all_buffers(struct iio_dev *indio_dev) {} in iio_disable_all_buffers() 70 static inline void iio_buffer_wakeup_poll(struct iio_dev *indio_dev) {} in iio_buffer_wakeup_poll() 74 int iio_device_register_eventset(struct iio_dev *indio_dev); [all …]
|
D | industrialio-buffer.c | 44 static int iio_buffer_flush_hwfifo(struct iio_dev *indio_dev, in iio_buffer_flush_hwfifo() 53 static bool iio_buffer_ready(struct iio_dev *indio_dev, struct iio_buffer *buf, in iio_buffer_ready() 107 struct iio_dev *indio_dev = filp->private_data; in iio_buffer_read_outer() 173 struct iio_dev *indio_dev = filp->private_data; in iio_buffer_poll() 192 void iio_buffer_wakeup_poll(struct iio_dev *indio_dev) in iio_buffer_wakeup_poll() 268 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in iio_scan_el_show() 299 static bool iio_validate_scan_mask(struct iio_dev *indio_dev, in iio_validate_scan_mask() 318 static int iio_scan_mask_set(struct iio_dev *indio_dev, in iio_scan_mask_set() 361 static int iio_scan_mask_query(struct iio_dev *indio_dev, in iio_scan_mask_query() 381 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in iio_scan_el_store() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ad7091r-base.c | 98 static int ad7091r_read_one(struct iio_dev *iio_dev, in ad7091r_read_one() argument 101 struct ad7091r_state *st = iio_priv(iio_dev); in ad7091r_read_one() 121 static int ad7091r_read_raw(struct iio_dev *iio_dev, in ad7091r_read_raw() argument 125 struct ad7091r_state *st = iio_priv(iio_dev); in ad7091r_read_raw() 138 ret = ad7091r_read_one(iio_dev, chan->channel, &read_val); in ad7091r_read_raw() 178 struct iio_dev *iio_dev = dev_get_drvdata(st->dev); in ad7091r_event_handler() local 181 s64 timestamp = iio_get_time_ns(iio_dev); in ad7091r_event_handler() 189 iio_push_event(iio_dev, in ad7091r_event_handler() 194 iio_push_event(iio_dev, in ad7091r_event_handler() 214 struct iio_dev *iio_dev; in ad7091r_probe() local [all …]
|
D | ingenic-adc.c | 110 static void ingenic_adc_set_adcmd(struct iio_dev *iio_dev, unsigned long mask) in ingenic_adc_set_adcmd() argument 112 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_set_adcmd() 233 static int ingenic_adc_write_raw(struct iio_dev *iio_dev, in ingenic_adc_write_raw() argument 239 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_write_raw() 240 struct device *dev = iio_dev->dev.parent; in ingenic_adc_write_raw() 543 static int ingenic_adc_read_avail(struct iio_dev *iio_dev, in ingenic_adc_read_avail() argument 550 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_read_avail() 568 static int ingenic_adc_read_chan_info_raw(struct iio_dev *iio_dev, in ingenic_adc_read_chan_info_raw() argument 573 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_read_chan_info_raw() 577 dev_err(iio_dev->dev.parent, "Failed to enable clock: %d\n", in ingenic_adc_read_chan_info_raw() [all …]
|
D | rn5t618-adc.c | 106 static int rn5t618_adc_read(struct iio_dev *iio_dev, in rn5t618_adc_read() argument 110 struct rn5t618_adc_data *adc = iio_priv(iio_dev); in rn5t618_adc_read() 195 struct iio_dev *iio_dev; in rn5t618_adc_probe() local 199 iio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*adc)); in rn5t618_adc_probe() 200 if (!iio_dev) { in rn5t618_adc_probe() 205 adc = iio_priv(iio_dev); in rn5t618_adc_probe() 220 iio_dev->name = dev_name(&pdev->dev); in rn5t618_adc_probe() 221 iio_dev->info = &rn5t618_adc_iio_info; in rn5t618_adc_probe() 222 iio_dev->modes = INDIO_DIRECT_MODE; in rn5t618_adc_probe() 223 iio_dev->channels = rn5t618_adc_iio_channels; in rn5t618_adc_probe() [all …]
|
D | mxs-lradc-adc.c | 131 static int mxs_lradc_adc_read_single(struct iio_dev *iio_dev, int chan, in mxs_lradc_adc_read_single() argument 134 struct mxs_lradc_adc *adc = iio_priv(iio_dev); in mxs_lradc_adc_read_single() 144 ret = iio_device_claim_direct_mode(iio_dev); in mxs_lradc_adc_read_single() 195 iio_device_release_direct_mode(iio_dev); in mxs_lradc_adc_read_single() 200 static int mxs_lradc_adc_read_temp(struct iio_dev *iio_dev, int *val) in mxs_lradc_adc_read_temp() argument 204 ret = mxs_lradc_adc_read_single(iio_dev, 8, &min); in mxs_lradc_adc_read_temp() 208 ret = mxs_lradc_adc_read_single(iio_dev, 9, &max); in mxs_lradc_adc_read_temp() 217 static int mxs_lradc_adc_read_raw(struct iio_dev *iio_dev, in mxs_lradc_adc_read_raw() argument 221 struct mxs_lradc_adc *adc = iio_priv(iio_dev); in mxs_lradc_adc_read_raw() 226 return mxs_lradc_adc_read_temp(iio_dev, val); in mxs_lradc_adc_read_raw() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/dac/ |
D | ti-dac7612.c | 75 static int dac7612_read_raw(struct iio_dev *iio_dev, in dac7612_read_raw() argument 83 priv = iio_priv(iio_dev); in dac7612_read_raw() 96 static int dac7612_write_raw(struct iio_dev *iio_dev, in dac7612_write_raw() argument 100 struct dac7612 *priv = iio_priv(iio_dev); in dac7612_write_raw() 126 struct iio_dev *iio_dev; in dac7612_probe() local 131 iio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*priv)); in dac7612_probe() 132 if (!iio_dev) in dac7612_probe() 135 priv = iio_priv(iio_dev); in dac7612_probe() 149 spi_set_drvdata(spi, iio_dev); in dac7612_probe() 150 iio_dev->info = &dac7612_info; in dac7612_probe() [all …]
|
D | ad5592r-base.c | 298 static int ad5592r_write_raw(struct iio_dev *iio_dev, in ad5592r_write_raw() argument 301 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_write_raw() 371 static int ad5592r_read_raw(struct iio_dev *iio_dev, in ad5592r_read_raw() argument 375 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_read_raw() 451 static int ad5592r_write_raw_get_fmt(struct iio_dev *indio_dev, in ad5592r_write_raw_get_fmt() 471 static ssize_t ad5592r_show_scale_available(struct iio_dev *iio_dev, in ad5592r_show_scale_available() argument 476 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_show_scale_available() 492 static void ad5592r_setup_channel(struct iio_dev *iio_dev, in ad5592r_setup_channel() argument 507 static int ad5592r_alloc_channels(struct iio_dev *iio_dev) in ad5592r_alloc_channels() argument 509 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_alloc_channels() [all …]
|
D | ad5761.c | 124 static int ad5761_spi_write(struct iio_dev *indio_dev, u8 addr, u16 val) in ad5761_spi_write() 163 static int ad5761_spi_read(struct iio_dev *indio_dev, u8 addr, u16 *val) in ad5761_spi_read() 199 static int ad5761_read_raw(struct iio_dev *indio_dev, in ad5761_read_raw() 233 static int ad5761_write_raw(struct iio_dev *indio_dev, in ad5761_write_raw() 349 struct iio_dev *iio_dev; in ad5761_probe() local 357 iio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st)); in ad5761_probe() 358 if (!iio_dev) in ad5761_probe() 361 st = iio_priv(iio_dev); in ad5761_probe() 364 spi_set_drvdata(spi, iio_dev); in ad5761_probe() 379 iio_dev->info = &ad5761_info; in ad5761_probe() [all …]
|
/kernel/linux/linux-5.10/include/linux/iio/gyro/ |
D | itg3200.h | 115 int itg3200_write_reg_8(struct iio_dev *indio_dev, 118 int itg3200_read_reg_8(struct iio_dev *indio_dev, 124 void itg3200_remove_trigger(struct iio_dev *indio_dev); 125 int itg3200_probe_trigger(struct iio_dev *indio_dev); 127 int itg3200_buffer_configure(struct iio_dev *indio_dev); 128 void itg3200_buffer_unconfigure(struct iio_dev *indio_dev); 132 static inline void itg3200_remove_trigger(struct iio_dev *indio_dev) in itg3200_remove_trigger() 136 static inline int itg3200_probe_trigger(struct iio_dev *indio_dev) in itg3200_probe_trigger() 141 static inline int itg3200_buffer_configure(struct iio_dev *indio_dev) in itg3200_buffer_configure() 146 static inline void itg3200_buffer_unconfigure(struct iio_dev *indio_dev) in itg3200_buffer_unconfigure()
|
/kernel/linux/linux-5.10/drivers/iio/magnetometer/ |
D | st_magn.h | 26 int st_magn_common_probe(struct iio_dev *indio_dev); 27 void st_magn_common_remove(struct iio_dev *indio_dev); 30 int st_magn_allocate_ring(struct iio_dev *indio_dev); 31 void st_magn_deallocate_ring(struct iio_dev *indio_dev); 35 static inline int st_magn_probe_trigger(struct iio_dev *indio_dev, int irq) in st_magn_probe_trigger() 39 static inline void st_magn_remove_trigger(struct iio_dev *indio_dev, int irq) in st_magn_remove_trigger() 43 static inline int st_magn_allocate_ring(struct iio_dev *indio_dev) in st_magn_allocate_ring() 47 static inline void st_magn_deallocate_ring(struct iio_dev *indio_dev) in st_magn_deallocate_ring()
|
D | st_magn_buffer.c | 27 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in st_magn_trig_set_state() 32 static int st_magn_buffer_postenable(struct iio_dev *indio_dev) in st_magn_buffer_postenable() 37 static int st_magn_buffer_predisable(struct iio_dev *indio_dev) in st_magn_buffer_predisable() 47 int st_magn_allocate_ring(struct iio_dev *indio_dev) in st_magn_allocate_ring() 53 void st_magn_deallocate_ring(struct iio_dev *indio_dev) in st_magn_deallocate_ring()
|
/kernel/linux/linux-5.10/include/linux/iio/common/ |
D | st_sensors.h | 263 int st_sensors_allocate_trigger(struct iio_dev *indio_dev, 266 void st_sensors_deallocate_trigger(struct iio_dev *indio_dev); 268 struct iio_dev *indio_dev); 270 static inline int st_sensors_allocate_trigger(struct iio_dev *indio_dev, in st_sensors_allocate_trigger() 275 static inline void st_sensors_deallocate_trigger(struct iio_dev *indio_dev) in st_sensors_deallocate_trigger() 282 int st_sensors_init_sensor(struct iio_dev *indio_dev, 285 int st_sensors_set_enable(struct iio_dev *indio_dev, bool enable); 287 int st_sensors_set_axis_enable(struct iio_dev *indio_dev, u8 axis_enable); 289 int st_sensors_power_enable(struct iio_dev *indio_dev); 291 void st_sensors_power_disable(struct iio_dev *indio_dev); [all …]
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | zpa2326.c | 218 static int zpa2326_enable_device(const struct iio_dev *indio_dev) in zpa2326_enable_device() 244 static int zpa2326_sleep(const struct iio_dev *indio_dev) in zpa2326_sleep() 270 static int zpa2326_reset_device(const struct iio_dev *indio_dev) in zpa2326_reset_device() 299 static int zpa2326_start_oneshot(const struct iio_dev *indio_dev) in zpa2326_start_oneshot() 331 static int zpa2326_power_on(const struct iio_dev *indio_dev, in zpa2326_power_on() 376 static void zpa2326_power_off(const struct iio_dev *indio_dev, in zpa2326_power_off() 402 static int zpa2326_config_oneshot(const struct iio_dev *indio_dev, in zpa2326_config_oneshot() 444 static int zpa2326_clear_fifo(const struct iio_dev *indio_dev, in zpa2326_clear_fifo() 512 static int zpa2326_dequeue_pressure(const struct iio_dev *indio_dev, in zpa2326_dequeue_pressure() 579 static int zpa2326_fill_sample_buffer(struct iio_dev *indio_dev, in zpa2326_fill_sample_buffer() [all …]
|
D | st_pressure.h | 45 int st_press_common_probe(struct iio_dev *indio_dev); 46 void st_press_common_remove(struct iio_dev *indio_dev); 49 int st_press_allocate_ring(struct iio_dev *indio_dev); 50 void st_press_deallocate_ring(struct iio_dev *indio_dev); 54 static inline int st_press_allocate_ring(struct iio_dev *indio_dev) in st_press_allocate_ring() 59 static inline void st_press_deallocate_ring(struct iio_dev *indio_dev) in st_press_deallocate_ring()
|
D | st_pressure_buffer.c | 27 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in st_press_trig_set_state() 32 static int st_press_buffer_postenable(struct iio_dev *indio_dev) in st_press_buffer_postenable() 37 static int st_press_buffer_predisable(struct iio_dev *indio_dev) in st_press_buffer_predisable() 47 int st_press_allocate_ring(struct iio_dev *indio_dev) in st_press_allocate_ring() 53 void st_press_deallocate_ring(struct iio_dev *indio_dev) in st_press_deallocate_ring()
|
/kernel/linux/linux-5.10/drivers/iio/gyro/ |
D | st_gyro.h | 36 int st_gyro_common_probe(struct iio_dev *indio_dev); 37 void st_gyro_common_remove(struct iio_dev *indio_dev); 40 int st_gyro_allocate_ring(struct iio_dev *indio_dev); 41 void st_gyro_deallocate_ring(struct iio_dev *indio_dev); 45 static inline int st_gyro_allocate_ring(struct iio_dev *indio_dev) in st_gyro_allocate_ring() 49 static inline void st_gyro_deallocate_ring(struct iio_dev *indio_dev) in st_gyro_deallocate_ring()
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
D | st_accel.h | 74 int st_accel_common_probe(struct iio_dev *indio_dev); 75 void st_accel_common_remove(struct iio_dev *indio_dev); 78 int st_accel_allocate_ring(struct iio_dev *indio_dev); 79 void st_accel_deallocate_ring(struct iio_dev *indio_dev); 83 static inline int st_accel_allocate_ring(struct iio_dev *indio_dev) in st_accel_allocate_ring() 87 static inline void st_accel_deallocate_ring(struct iio_dev *indio_dev) in st_accel_deallocate_ring()
|
/kernel/linux/linux-5.10/drivers/staging/iio/addac/ |
D | adt7316.c | 225 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_show_enabled() 256 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_store_enabled() 280 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_show_select_ex_temp() 294 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_store_select_ex_temp() 324 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_show_mode() 338 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_store_mode() 374 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_show_ad_channel() 413 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_store_ad_channel() 458 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_show_all_ad_channels() 479 struct iio_dev *dev_info = dev_to_iio_dev(dev); in adt7316_show_disable_averaging() [all …]
|