Home
last modified time | relevance | path

Searched refs:iio_dev (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/linux-6.3-rc2/include/linux/iio/
A Diio.h36 struct iio_dev;
82 ssize_t iio_enum_read(struct iio_dev *indio_dev,
454 int (*read_raw)(struct iio_dev *indio_dev,
467 int (*read_avail)(struct iio_dev *indio_dev,
474 int (*write_raw)(struct iio_dev *indio_dev,
536 int (*preenable)(struct iio_dev *);
537 int (*postenable)(struct iio_dev *);
538 int (*predisable)(struct iio_dev *);
539 int (*postdisable)(struct iio_dev *);
574 struct iio_dev { struct
[all …]
A Dbuffer.h19 int iio_push_to_buffers(struct iio_dev *indio_dev, const void *data);
37 static inline int iio_push_to_buffers_with_timestamp(struct iio_dev *indio_dev, in iio_push_to_buffers_with_timestamp()
48 int iio_push_to_buffers_with_ts_unaligned(struct iio_dev *indio_dev,
52 bool iio_validate_scan_mask_onehot(struct iio_dev *indio_dev,
55 int iio_device_attach_buffer(struct iio_dev *indio_dev,
/linux-6.3-rc2/drivers/iio/light/
A Dst_uvis25_core.c114 static int st_uvis25_read_raw(struct iio_dev *iio_dev, in st_uvis25_read_raw() argument
169 static int st_uvis25_allocate_trigger(struct iio_dev *iio_dev) in st_uvis25_allocate_trigger() argument
208 iio_dev->name); in st_uvis25_allocate_trigger()
217 static int st_uvis25_buffer_preenable(struct iio_dev *iio_dev) in st_uvis25_buffer_preenable() argument
222 static int st_uvis25_buffer_postdisable(struct iio_dev *iio_dev) in st_uvis25_buffer_postdisable() argument
235 struct iio_dev *iio_dev = pf->indio_dev; in st_uvis25_buffer_handler_thread() local
255 static int st_uvis25_allocate_buffer(struct iio_dev *iio_dev) in st_uvis25_allocate_buffer() argument
287 struct iio_dev *iio_dev; in st_uvis25_probe() local
291 if (!iio_dev) in st_uvis25_probe()
330 struct iio_dev *iio_dev = dev_get_drvdata(dev); in st_uvis25_suspend() local
[all …]
A Dsi1133.c643 struct iio_dev *iio_dev = private; in si1133_threaded_irq_handler() local
747 static int si1133_read_raw(struct iio_dev *iio_dev, in si1133_read_raw() argument
821 static int si1133_write_raw(struct iio_dev *iio_dev, in si1133_write_raw() argument
961 static int si1133_validate_ids(struct iio_dev *iio_dev) in si1133_validate_ids() argument
980 dev_info(&iio_dev->dev, in si1133_validate_ids()
984 dev_err(&iio_dev->dev, in si1133_validate_ids()
997 struct iio_dev *iio_dev; in si1133_probe() local
1001 if (!iio_dev) in si1133_probe()
1004 data = iio_priv(iio_dev); in si1133_probe()
1018 iio_dev->name = id->name; in si1133_probe()
[all …]
/linux-6.3-rc2/drivers/iio/humidity/
A Dhts221_buffer.c41 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()
76 int hts221_allocate_trigger(struct iio_dev *iio_dev) in hts221_allocate_trigger() argument
78 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_allocate_trigger()
133 iio_dev->name); in hts221_allocate_trigger()
147 static int hts221_buffer_preenable(struct iio_dev *iio_dev) in hts221_buffer_preenable() argument
152 static int hts221_buffer_postdisable(struct iio_dev *iio_dev) in hts221_buffer_postdisable() argument
165 struct iio_dev *iio_dev = pf->indio_dev; in hts221_buffer_handler_thread() local
166 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_buffer_handler_thread()
187 iio_get_time_ns(iio_dev)); in hts221_buffer_handler_thread()
[all …]
A Dhts221_core.c421 static int hts221_read_raw(struct iio_dev *iio_dev, in hts221_read_raw() argument
479 static int hts221_write_raw(struct iio_dev *iio_dev, in hts221_write_raw() argument
517 static int hts221_validate_trigger(struct iio_dev *iio_dev, in hts221_validate_trigger() argument
567 struct iio_dev *iio_dev; in hts221_probe() local
573 if (!iio_dev) in hts221_probe()
578 hw = iio_priv(iio_dev); in hts221_probe()
592 iio_dev->modes = INDIO_DIRECT_MODE; in hts221_probe()
596 iio_dev->name = HTS221_DEV_NAME; in hts221_probe()
597 iio_dev->info = &hts221_info; in hts221_probe()
656 struct iio_dev *iio_dev = dev_get_drvdata(dev); in hts221_suspend() local
[all …]
/linux-6.3-rc2/drivers/iio/
A Diio_core.h17 struct iio_dev;
22 struct iio_dev *indio_dev;
29 long (*ioctl)(struct iio_dev *indio_dev, struct file *filp,
33 long iio_device_ioctl(struct iio_dev *indio_dev, struct file *filp,
36 void iio_device_ioctl_handler_register(struct iio_dev *indio_dev,
56 int iio_device_register_sysfs_group(struct iio_dev *indio_dev,
81 void iio_disable_all_buffers(struct iio_dev *indio_dev);
82 void iio_buffer_wakeup_poll(struct iio_dev *indio_dev);
83 void iio_device_detach_buffers(struct iio_dev *indio_dev);
104 int iio_device_register_eventset(struct iio_dev *indio_dev);
[all …]
A Dindustrialio-core.c188 int iio_device_id(struct iio_dev *indio_dev) in iio_device_id()
356 struct iio_dev *indio_dev = file->private_data; in iio_debugfs_read_reg()
386 struct iio_dev *indio_dev = file->private_data; in iio_debugfs_write_reg()
1628 struct iio_dev *indio_dev; in iio_device_alloc()
1681 void iio_device_free(struct iio_dev *dev) in iio_device_free()
1690 iio_device_free(iio_dev); in devm_iio_device_release()
1706 struct iio_dev *iio_dev; in devm_iio_device_alloc() local
1710 if (!iio_dev) in devm_iio_device_alloc()
1714 iio_dev); in devm_iio_device_alloc()
1718 return iio_dev; in devm_iio_device_alloc()
[all …]
/linux-6.3-rc2/drivers/iio/dummy/
A Diio_simple_dummy.h52 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 …]
A Diio_simple_dummy_events.c30 int iio_simple_dummy_read_event_config(struct iio_dev *indio_dev, in iio_simple_dummy_read_event_config()
52 int iio_simple_dummy_write_event_config(struct iio_dev *indio_dev, in iio_simple_dummy_write_event_config()
118 int iio_simple_dummy_read_event_value(struct iio_dev *indio_dev, in iio_simple_dummy_read_event_value()
142 int iio_simple_dummy_write_event_value(struct iio_dev *indio_dev, in iio_simple_dummy_write_event_value()
158 struct iio_dev *indio_dev = private; in iio_simple_dummy_get_timestamp()
177 struct iio_dev *indio_dev = private; in iio_simple_dummy_event_handler()
236 int iio_simple_dummy_events_register(struct iio_dev *indio_dev) in iio_simple_dummy_events_register()
269 void iio_simple_dummy_events_unregister(struct iio_dev *indio_dev) in iio_simple_dummy_events_unregister()
/linux-6.3-rc2/drivers/iio/adc/
A Dad7091r-base.c98 static int ad7091r_read_one(struct iio_dev *iio_dev, in ad7091r_read_one() argument
121 static int ad7091r_read_raw(struct iio_dev *iio_dev, in ad7091r_read_raw() argument
178 struct iio_dev *iio_dev = dev_get_drvdata(st->dev); in ad7091r_event_handler() local
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
219 if (!iio_dev) in ad7091r_probe()
222 st = iio_priv(iio_dev); in ad7091r_probe()
227 iio_dev->name = name; in ad7091r_probe()
228 iio_dev->info = &ad7091r_info; in ad7091r_probe()
[all …]
A Dingenic-adc.c237 static int ingenic_adc_write_raw(struct iio_dev *iio_dev, in ingenic_adc_write_raw() argument
606 static int ingenic_adc_read_avail(struct iio_dev *iio_dev, in ingenic_adc_read_avail() argument
631 static int ingenic_adc_read_chan_info_raw(struct iio_dev *iio_dev, in ingenic_adc_read_chan_info_raw() argument
686 static int ingenic_adc_read_raw(struct iio_dev *iio_dev, in ingenic_adc_read_raw() argument
722 static int ingenic_adc_fwnode_xlate(struct iio_dev *iio_dev, in ingenic_adc_fwnode_xlate() argument
744 static int ingenic_adc_buffer_enable(struct iio_dev *iio_dev) in ingenic_adc_buffer_enable() argument
769 ingenic_adc_set_adcmd(iio_dev, iio_dev->active_scan_mask[0]); in ingenic_adc_buffer_enable()
776 static int ingenic_adc_buffer_disable(struct iio_dev *iio_dev) in ingenic_adc_buffer_disable() argument
801 struct iio_dev *iio_dev = data; in ingenic_adc_irq() local
823 struct iio_dev *iio_dev; in ingenic_adc_probe() local
[all …]
A Drn5t618-adc.c103 static int rn5t618_adc_read(struct iio_dev *iio_dev, in rn5t618_adc_read() argument
107 struct rn5t618_adc_data *adc = iio_priv(iio_dev); in rn5t618_adc_read()
198 struct iio_dev *iio_dev; in rn5t618_adc_probe() local
203 if (!iio_dev) { in rn5t618_adc_probe()
208 adc = iio_priv(iio_dev); in rn5t618_adc_probe()
223 iio_dev->name = dev_name(&pdev->dev); in rn5t618_adc_probe()
224 iio_dev->info = &rn5t618_adc_iio_info; in rn5t618_adc_probe()
225 iio_dev->modes = INDIO_DIRECT_MODE; in rn5t618_adc_probe()
226 iio_dev->channels = rn5t618_adc_iio_channels; in rn5t618_adc_probe()
234 platform_set_drvdata(pdev, iio_dev); in rn5t618_adc_probe()
[all …]
A Dmxs-lradc-adc.c131 static int mxs_lradc_adc_read_single(struct iio_dev *iio_dev, int chan, in mxs_lradc_adc_read_single() argument
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
217 static int mxs_lradc_adc_read_raw(struct iio_dev *iio_dev, in mxs_lradc_adc_read_raw() argument
269 static int mxs_lradc_adc_write_raw(struct iio_dev *iio_dev, in mxs_lradc_adc_write_raw() argument
303 iio_device_release_direct_mode(iio_dev); in mxs_lradc_adc_write_raw()
308 static int mxs_lradc_adc_write_raw_get_fmt(struct iio_dev *iio_dev, in mxs_lradc_adc_write_raw_get_fmt() argument
319 struct iio_dev *iio = dev_to_iio_dev(dev); in mxs_lradc_adc_show_scale_avail()
386 struct iio_dev *iio = data; in mxs_lradc_adc_handle_irq()
416 struct iio_dev *iio = pf->indio_dev; in mxs_lradc_adc_trigger_handler()
[all …]
/linux-6.3-rc2/drivers/iio/dac/
A Dti-dac7612.c75 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
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()
151 iio_dev->modes = INDIO_DIRECT_MODE; in dac7612_probe()
[all …]
A Dad5592r-base.c297 static int ad5592r_write_raw(struct iio_dev *iio_dev, in ad5592r_write_raw() argument
370 static int ad5592r_read_raw(struct iio_dev *iio_dev, in ad5592r_read_raw() argument
470 static ssize_t ad5592r_show_scale_available(struct iio_dev *iio_dev, in ad5592r_show_scale_available() argument
491 static void ad5592r_setup_channel(struct iio_dev *iio_dev, in ad5592r_setup_channel() argument
506 static int ad5592r_alloc_channels(struct iio_dev *iio_dev) in ad5592r_alloc_channels() argument
572 iio_dev->channels = channels; in ad5592r_alloc_channels()
590 struct iio_dev *iio_dev; in ad5592r_probe() local
595 if (!iio_dev) in ad5592r_probe()
598 st = iio_priv(iio_dev); in ad5592r_probe()
616 iio_dev->name = name; in ad5592r_probe()
[all …]
A Dad5761.c349 struct iio_dev *iio_dev; in ad5761_probe() local
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()
380 iio_dev->modes = INDIO_DIRECT_MODE; in ad5761_probe()
381 iio_dev->channels = &chip_info->channel; in ad5761_probe()
382 iio_dev->num_channels = 1; in ad5761_probe()
384 ret = iio_device_register(iio_dev); in ad5761_probe()
399 struct iio_dev *iio_dev = spi_get_drvdata(spi); in ad5761_remove() local
[all …]
/linux-6.3-rc2/drivers/iio/common/scmi_sensors/
A Dscmi_iio.c30 struct iio_dev *indio_dev;
87 static int scmi_iio_buffer_preenable(struct iio_dev *iio_dev) in scmi_iio_buffer_preenable() argument
109 static int scmi_iio_buffer_postdisable(struct iio_dev *iio_dev) in scmi_iio_buffer_postdisable() argument
121 dev_err(&iio_dev->dev, in scmi_iio_buffer_postdisable()
134 static int scmi_iio_set_odr_val(struct iio_dev *iio_dev, int val, int val2) in scmi_iio_set_odr_val() argument
200 static int scmi_iio_write_raw(struct iio_dev *iio_dev, in scmi_iio_write_raw() argument
218 static int scmi_iio_read_avail(struct iio_dev *iio_dev, in scmi_iio_read_avail() argument
286 static int scmi_iio_read_channel_data(struct iio_dev *iio_dev, in scmi_iio_read_channel_data() argument
332 static int scmi_iio_read_raw(struct iio_dev *iio_dev, in scmi_iio_read_raw() argument
372 static ssize_t scmi_iio_get_raw_available(struct iio_dev *iio_dev, in scmi_iio_get_raw_available() argument
[all …]
/linux-6.3-rc2/include/linux/iio/gyro/
A Ditg3200.h117 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-6.3-rc2/include/linux/iio/common/
A Dst_sensors.h270 int st_sensors_allocate_trigger(struct iio_dev *indio_dev,
274 struct iio_dev *indio_dev);
284 int st_sensors_init_sensor(struct iio_dev *indio_dev,
291 int st_sensors_power_enable(struct iio_dev *indio_dev);
293 int st_sensors_debugfs_reg_access(struct iio_dev *indio_dev,
303 int st_sensors_read_info_raw(struct iio_dev *indio_dev,
310 int st_sensors_verify_id(struct iio_dev *indio_dev);
322 int st_accel_common_probe(struct iio_dev *indio_dev);
326 int st_gyro_common_probe(struct iio_dev *indio_dev);
330 int st_magn_common_probe(struct iio_dev *indio_dev);
[all …]
A Dcros_ec_sensors_core.h80 int (*read_ec_sensors_data)(struct iio_dev *indio_dev,
87 int cros_ec_sensors_read_lpc(struct iio_dev *indio_dev, unsigned long scan_mask,
90 int cros_ec_sensors_read_cmd(struct iio_dev *indio_dev, unsigned long scan_mask,
95 struct iio_dev *indio_dev, bool physical_device,
99 struct iio_dev *indio_dev,
103 int cros_ec_sensors_push_data(struct iio_dev *indio_dev,
114 int cros_ec_sensors_core_read_avail(struct iio_dev *indio_dev,
/linux-6.3-rc2/drivers/iio/pressure/
A Dzpa2326.c244 static int zpa2326_sleep(const struct iio_dev *indio_dev) in zpa2326_sleep()
663 static int zpa2326_resume(const struct iio_dev *indio_dev) in zpa2326_resume()
694 static void zpa2326_suspend(struct iio_dev *indio_dev) in zpa2326_suspend()
728 static void zpa2326_suspend(struct iio_dev *indio_dev) in zpa2326_suspend()
749 struct iio_dev *indio_dev = data; in zpa2326_handle_irq()
788 struct iio_dev *indio_dev = data; in zpa2326_handle_threaded_irq()
892 struct iio_dev *indio_dev, in zpa2326_init_managed_irq()
1400 struct iio_dev *indio_dev, in zpa2326_init_managed_trigger()
1589 struct iio_dev *indio_dev; in zpa2326_create_managed_iiodev()
1613 struct iio_dev *indio_dev; in zpa2326_probe()
[all …]
/linux-6.3-rc2/drivers/staging/iio/addac/
A Dadt7316.c225 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()
1732 struct iio_dev *indio_dev = private; in adt7316_event_handler()
[all …]
/linux-6.3-rc2/drivers/iio/chemical/
A Dsunrise_co2.c395 static int sunrise_read_raw(struct iio_dev *iio_dev, in sunrise_read_raw() argument
399 struct sunrise_dev *sunrise = iio_priv(iio_dev); in sunrise_read_raw()
477 struct iio_dev *iio_dev; in sunrise_probe() local
487 if (!iio_dev) in sunrise_probe()
490 sunrise = iio_priv(iio_dev); in sunrise_probe()
511 iio_dev->info = &sunrise_info; in sunrise_probe()
512 iio_dev->name = DRIVER_NAME; in sunrise_probe()
513 iio_dev->channels = sunrise_channels; in sunrise_probe()
514 iio_dev->num_channels = ARRAY_SIZE(sunrise_channels); in sunrise_probe()
515 iio_dev->modes = INDIO_DIRECT_MODE; in sunrise_probe()
[all …]
/linux-6.3-rc2/drivers/iio/imu/bno055/
A Dbno055.c958 static int _bno055_write_raw(struct iio_dev *iio_dev, in _bno055_write_raw() argument
1006 static int bno055_write_raw(struct iio_dev *iio_dev, in bno055_write_raw() argument
1261 static int bno055_debugfs_reg_access(struct iio_dev *iio_dev, unsigned int reg, in bno055_debugfs_reg_access() argument
1313 static void bno055_debugfs_init(struct iio_dev *iio_dev) in bno055_debugfs_init() argument
1441 struct iio_dev *iio_dev = pf->indio_dev; in bno055_trigger_handler() local
1556 struct iio_dev *iio_dev; in bno055_probe() local
1563 if (!iio_dev) in bno055_probe()
1566 iio_dev->name = "bno055"; in bno055_probe()
1567 priv = iio_priv(iio_dev); in bno055_probe()
1663 iio_dev->info = &bno055_info; in bno055_probe()
[all …]

Completed in 72 milliseconds

12345678910>>...21