Home
last modified time | relevance | path

Searched refs:indio_dev (Results 1 – 25 of 129) sorted by relevance

123456

/drivers/staging/iio/
Dindustrialio-buffer.c43 struct iio_dev *indio_dev = filp->private_data; in iio_buffer_read_first_n_outer() local
44 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_read_first_n_outer()
57 struct iio_dev *indio_dev = filp->private_data; in iio_buffer_poll() local
58 struct iio_buffer *rb = indio_dev->buffer; in iio_buffer_poll()
108 struct iio_dev *indio_dev = dev_get_drvdata(dev); in iio_scan_el_show() local
111 indio_dev->buffer->scan_mask); in iio_scan_el_show()
129 struct iio_dev *indio_dev = dev_get_drvdata(dev); in iio_scan_el_store() local
130 struct iio_buffer *buffer = indio_dev->buffer; in iio_scan_el_store()
134 mutex_lock(&indio_dev->mlock); in iio_scan_el_store()
135 if (iio_buffer_enabled(indio_dev)) { in iio_scan_el_store()
[all …]
Dindustrialio-core.c96 *iio_find_channel_from_si(struct iio_dev *indio_dev, int si) in iio_find_channel_from_si() argument
100 for (i = 0; i < indio_dev->num_channels; i++) in iio_find_channel_from_si()
101 if (indio_dev->channels[i].scan_index == si) in iio_find_channel_from_si()
102 return &indio_dev->channels[i]; in iio_find_channel_from_si()
165 struct iio_dev *indio_dev = file->private_data; in iio_debugfs_read_reg() local
171 ret = indio_dev->info->debugfs_reg_access(indio_dev, in iio_debugfs_read_reg()
172 indio_dev->cached_reg_addr, in iio_debugfs_read_reg()
175 dev_err(indio_dev->dev.parent, "%s: read failed\n", __func__); in iio_debugfs_read_reg()
185 struct iio_dev *indio_dev = file->private_data; in iio_debugfs_write_reg() local
200 indio_dev->cached_reg_addr = reg; in iio_debugfs_write_reg()
[all …]
Dindustrialio-event.c46 int iio_push_event(struct iio_dev *indio_dev, u64 ev_code, s64 timestamp) in iio_push_event() argument
48 struct iio_event_interface *ev_int = indio_dev->event_interface; in iio_push_event()
149 int iio_event_getfd(struct iio_dev *indio_dev) in iio_event_getfd() argument
151 struct iio_event_interface *ev_int = indio_dev->event_interface; in iio_event_getfd()
192 struct iio_dev *indio_dev = dev_get_drvdata(dev); in iio_ev_state_store() local
201 ret = indio_dev->info->write_event_config(indio_dev, in iio_ev_state_store()
211 struct iio_dev *indio_dev = dev_get_drvdata(dev); in iio_ev_state_show() local
213 int val = indio_dev->info->read_event_config(indio_dev, in iio_ev_state_show()
226 struct iio_dev *indio_dev = dev_get_drvdata(dev); in iio_ev_value_show() local
230 ret = indio_dev->info->read_event_value(indio_dev, in iio_ev_value_show()
[all …]
/drivers/staging/iio/gyro/
Dadis16260_core.c29 static int adis16260_check_status(struct iio_dev *indio_dev);
37 static int adis16260_spi_write_reg_8(struct iio_dev *indio_dev, in adis16260_spi_write_reg_8() argument
42 struct adis16260_state *st = iio_priv(indio_dev); in adis16260_spi_write_reg_8()
61 static int adis16260_spi_write_reg_16(struct iio_dev *indio_dev, in adis16260_spi_write_reg_16() argument
67 struct adis16260_state *st = iio_priv(indio_dev); in adis16260_spi_write_reg_16()
105 static int adis16260_spi_read_reg_16(struct iio_dev *indio_dev, in adis16260_spi_read_reg_16() argument
110 struct adis16260_state *st = iio_priv(indio_dev); in adis16260_spi_read_reg_16()
152 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16260_read_frequency_available() local
153 struct adis16260_state *st = iio_priv(indio_dev); in adis16260_read_frequency_available()
164 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16260_read_frequency() local
[all …]
/drivers/staging/iio/accel/
Dadis16203_core.c32 static int adis16203_spi_write_reg_8(struct iio_dev *indio_dev, in adis16203_spi_write_reg_8() argument
37 struct adis16203_state *st = iio_priv(indio_dev); in adis16203_spi_write_reg_8()
56 static int adis16203_spi_write_reg_16(struct iio_dev *indio_dev, in adis16203_spi_write_reg_16() argument
62 struct adis16203_state *st = iio_priv(indio_dev); in adis16203_spi_write_reg_16()
98 static int adis16203_spi_read_reg_16(struct iio_dev *indio_dev, in adis16203_spi_read_reg_16() argument
103 struct adis16203_state *st = iio_priv(indio_dev); in adis16203_spi_read_reg_16()
140 static int adis16203_check_status(struct iio_dev *indio_dev) in adis16203_check_status() argument
145 ret = adis16203_spi_read_reg_16(indio_dev, in adis16203_check_status()
149 dev_err(&indio_dev->dev, "Reading status failed\n"); in adis16203_check_status()
155 dev_err(&indio_dev->dev, "Self test failure\n"); in adis16203_check_status()
[all …]
Dlis3l02dq_core.c51 int lis3l02dq_spi_read_reg_8(struct iio_dev *indio_dev, in lis3l02dq_spi_read_reg_8() argument
54 struct lis3l02dq_state *st = iio_priv(indio_dev); in lis3l02dq_spi_read_reg_8()
83 int lis3l02dq_spi_write_reg_8(struct iio_dev *indio_dev, in lis3l02dq_spi_write_reg_8() argument
88 struct lis3l02dq_state *st = iio_priv(indio_dev); in lis3l02dq_spi_write_reg_8()
106 static int lis3l02dq_spi_write_reg_s16(struct iio_dev *indio_dev, in lis3l02dq_spi_write_reg_s16() argument
112 struct lis3l02dq_state *st = iio_priv(indio_dev); in lis3l02dq_spi_write_reg_s16()
140 static int lis3l02dq_read_reg_s16(struct iio_dev *indio_dev, in lis3l02dq_read_reg_s16() argument
144 struct lis3l02dq_state *st = iio_priv(indio_dev); in lis3l02dq_read_reg_s16()
203 static int lis3l02dq_read_thresh(struct iio_dev *indio_dev, in lis3l02dq_read_thresh() argument
207 return lis3l02dq_read_reg_s16(indio_dev, LIS3L02DQ_REG_THS_L_ADDR, val); in lis3l02dq_read_thresh()
[all …]
Dadis16204_core.c35 static int adis16204_spi_write_reg_8(struct iio_dev *indio_dev, in adis16204_spi_write_reg_8() argument
40 struct adis16204_state *st = iio_priv(indio_dev); in adis16204_spi_write_reg_8()
59 static int adis16204_spi_write_reg_16(struct iio_dev *indio_dev, in adis16204_spi_write_reg_16() argument
65 struct adis16204_state *st = iio_priv(indio_dev); in adis16204_spi_write_reg_16()
102 static int adis16204_spi_read_reg_16(struct iio_dev *indio_dev, in adis16204_spi_read_reg_16() argument
107 struct adis16204_state *st = iio_priv(indio_dev); in adis16204_spi_read_reg_16()
144 static int adis16204_check_status(struct iio_dev *indio_dev) in adis16204_check_status() argument
149 ret = adis16204_spi_read_reg_16(indio_dev, in adis16204_check_status()
152 dev_err(&indio_dev->dev, "Reading status failed\n"); in adis16204_check_status()
158 dev_err(&indio_dev->dev, "Self test failure\n"); in adis16204_check_status()
[all …]
Dadis16209_core.c33 static int adis16209_spi_write_reg_8(struct iio_dev *indio_dev, in adis16209_spi_write_reg_8() argument
38 struct adis16209_state *st = iio_priv(indio_dev); in adis16209_spi_write_reg_8()
57 static int adis16209_spi_write_reg_16(struct iio_dev *indio_dev, in adis16209_spi_write_reg_16() argument
63 struct adis16209_state *st = iio_priv(indio_dev); in adis16209_spi_write_reg_16()
101 static int adis16209_spi_read_reg_16(struct iio_dev *indio_dev, in adis16209_spi_read_reg_16() argument
106 struct adis16209_state *st = iio_priv(indio_dev); in adis16209_spi_read_reg_16()
144 static int adis16209_reset(struct iio_dev *indio_dev) in adis16209_reset() argument
147 ret = adis16209_spi_write_reg_8(indio_dev, in adis16209_reset()
151 dev_err(&indio_dev->dev, "problem resetting device"); in adis16209_reset()
160 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16209_write_reset() local
[all …]
Dlis3l02dq_ring.c31 struct iio_dev *indio_dev = private; in lis3l02dq_data_rdy_trig_poll() local
32 struct lis3l02dq_state *st = iio_priv(indio_dev); in lis3l02dq_data_rdy_trig_poll()
56 static int lis3l02dq_read_all(struct iio_dev *indio_dev, u8 *rx_array) in lis3l02dq_read_all() argument
58 struct lis3l02dq_state *st = iio_priv(indio_dev); in lis3l02dq_read_all()
63 xfers = kcalloc(bitmap_weight(indio_dev->active_scan_mask, in lis3l02dq_read_all()
64 indio_dev->masklength) * 2, in lis3l02dq_read_all()
72 if (test_bit(i, indio_dev->active_scan_mask)) { in lis3l02dq_read_all()
100 for (j = 0; j < bitmap_weight(indio_dev->active_scan_mask, in lis3l02dq_read_all()
101 indio_dev->masklength) * 2; j++) in lis3l02dq_read_all()
111 static int lis3l02dq_get_buffer_element(struct iio_dev *indio_dev, in lis3l02dq_get_buffer_element() argument
[all …]
Dadis16240_core.c30 static int adis16240_check_status(struct iio_dev *indio_dev);
38 static int adis16240_spi_write_reg_8(struct iio_dev *indio_dev, in adis16240_spi_write_reg_8() argument
43 struct adis16240_state *st = iio_priv(indio_dev); in adis16240_spi_write_reg_8()
62 static int adis16240_spi_write_reg_16(struct iio_dev *indio_dev, in adis16240_spi_write_reg_16() argument
68 struct adis16240_state *st = iio_priv(indio_dev); in adis16240_spi_write_reg_16()
106 static int adis16240_spi_read_reg_16(struct iio_dev *indio_dev, in adis16240_spi_read_reg_16() argument
111 struct adis16240_state *st = iio_priv(indio_dev); in adis16240_spi_read_reg_16()
157 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16240_spi_read_signed() local
163 ret = adis16240_spi_read_reg_16(indio_dev, in adis16240_spi_read_signed()
169 adis16240_check_status(indio_dev); in adis16240_spi_read_signed()
[all …]
Dadis16201_core.c40 static int adis16201_spi_write_reg_8(struct iio_dev *indio_dev, in adis16201_spi_write_reg_8() argument
45 struct adis16201_state *st = iio_priv(indio_dev); in adis16201_spi_write_reg_8()
64 static int adis16201_spi_write_reg_16(struct iio_dev *indio_dev, in adis16201_spi_write_reg_16() argument
70 struct adis16201_state *st = iio_priv(indio_dev); in adis16201_spi_write_reg_16()
106 static int adis16201_spi_read_reg_16(struct iio_dev *indio_dev, in adis16201_spi_read_reg_16() argument
111 struct adis16201_state *st = iio_priv(indio_dev); in adis16201_spi_read_reg_16()
148 static int adis16201_reset(struct iio_dev *indio_dev) in adis16201_reset() argument
151 struct adis16201_state *st = iio_priv(indio_dev); in adis16201_reset()
153 ret = adis16201_spi_write_reg_8(indio_dev, in adis16201_reset()
177 int adis16201_set_irq(struct iio_dev *indio_dev, bool enable) in adis16201_set_irq() argument
[all …]
Dadis16220_core.c31 static int adis16220_spi_write_reg_8(struct iio_dev *indio_dev, in adis16220_spi_write_reg_8() argument
36 struct adis16220_state *st = iio_priv(indio_dev); in adis16220_spi_write_reg_8()
55 static int adis16220_spi_write_reg_16(struct iio_dev *indio_dev, in adis16220_spi_write_reg_16() argument
61 struct adis16220_state *st = iio_priv(indio_dev); in adis16220_spi_write_reg_16()
99 static int adis16220_spi_read_reg_16(struct iio_dev *indio_dev, in adis16220_spi_read_reg_16() argument
104 struct adis16220_state *st = iio_priv(indio_dev); in adis16220_spi_read_reg_16()
148 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16220_read_16bit() local
153 mutex_lock(&indio_dev->mlock); in adis16220_read_16bit()
154 ret = adis16220_spi_read_reg_16(indio_dev, this_attr->address, in adis16220_read_16bit()
156 mutex_unlock(&indio_dev->mlock); in adis16220_read_16bit()
[all …]
Dadis16209_ring.c21 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16209_read_ring_data() local
22 struct adis16209_state *st = iio_priv(indio_dev); in adis16209_read_ring_data()
61 struct iio_dev *indio_dev = pf->indio_dev; in adis16209_trigger_handler() local
62 struct adis16209_state *st = iio_priv(indio_dev); in adis16209_trigger_handler()
63 struct iio_buffer *ring = indio_dev->buffer; in adis16209_trigger_handler()
75 if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength) && in adis16209_trigger_handler()
76 adis16209_read_ring_data(&indio_dev->dev, st->rx) >= 0) in adis16209_trigger_handler()
77 for (; i < bitmap_weight(indio_dev->active_scan_mask, in adis16209_trigger_handler()
78 indio_dev->masklength); i++) in adis16209_trigger_handler()
87 iio_trigger_notify_done(indio_dev->trig); in adis16209_trigger_handler()
[all …]
Dadis16204_ring.c21 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16204_read_ring_data() local
22 struct adis16204_state *st = iio_priv(indio_dev); in adis16204_read_ring_data()
61 struct iio_dev *indio_dev = pf->indio_dev; in adis16204_trigger_handler() local
62 struct adis16204_state *st = iio_priv(indio_dev); in adis16204_trigger_handler()
63 struct iio_buffer *ring = indio_dev->buffer; in adis16204_trigger_handler()
74 if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength) && in adis16204_trigger_handler()
75 adis16204_read_ring_data(&indio_dev->dev, st->rx) >= 0) in adis16204_trigger_handler()
76 for (; i < bitmap_weight(indio_dev->active_scan_mask, in adis16204_trigger_handler()
77 indio_dev->masklength); i++) in adis16204_trigger_handler()
86 iio_trigger_notify_done(indio_dev->trig); in adis16204_trigger_handler()
[all …]
/drivers/staging/iio/adc/
Dad799x_ring.c33 static int ad799x_ring_preenable(struct iio_dev *indio_dev) in ad799x_ring_preenable() argument
35 struct iio_buffer *ring = indio_dev->buffer; in ad799x_ring_preenable()
36 struct ad799x_state *st = iio_priv(indio_dev); in ad799x_ring_preenable()
44 ad7997_8_set_scan_mode(st, *indio_dev->active_scan_mask); in ad799x_ring_preenable()
46 st->d_size = bitmap_weight(indio_dev->active_scan_mask, in ad799x_ring_preenable()
47 indio_dev->masklength) * 2; in ad799x_ring_preenable()
56 if (indio_dev->buffer->access->set_bytes_per_datum) in ad799x_ring_preenable()
57 indio_dev->buffer->access-> in ad799x_ring_preenable()
58 set_bytes_per_datum(indio_dev->buffer, st->d_size); in ad799x_ring_preenable()
73 struct iio_dev *indio_dev = pf->indio_dev; in ad799x_trigger_handler() local
[all …]
Dad7887_ring.c29 static int ad7887_ring_preenable(struct iio_dev *indio_dev) in ad7887_ring_preenable() argument
31 struct ad7887_state *st = iio_priv(indio_dev); in ad7887_ring_preenable()
32 struct iio_buffer *ring = indio_dev->buffer; in ad7887_ring_preenable()
34 st->d_size = bitmap_weight(indio_dev->active_scan_mask, in ad7887_ring_preenable()
35 indio_dev->masklength) * in ad7887_ring_preenable()
45 if (indio_dev->buffer->access->set_bytes_per_datum) in ad7887_ring_preenable()
46 indio_dev->buffer->access-> in ad7887_ring_preenable()
47 set_bytes_per_datum(indio_dev->buffer, st->d_size); in ad7887_ring_preenable()
50 switch (*indio_dev->active_scan_mask) { in ad7887_ring_preenable()
67 static int ad7887_ring_postdisable(struct iio_dev *indio_dev) in ad7887_ring_postdisable() argument
[all …]
Dad7476_ring.c30 static int ad7476_ring_preenable(struct iio_dev *indio_dev) in ad7476_ring_preenable() argument
32 struct ad7476_state *st = iio_priv(indio_dev); in ad7476_ring_preenable()
33 struct iio_buffer *ring = indio_dev->buffer; in ad7476_ring_preenable()
35 st->d_size = bitmap_weight(indio_dev->active_scan_mask, in ad7476_ring_preenable()
36 indio_dev->masklength) * in ad7476_ring_preenable()
46 if (indio_dev->buffer->access->set_bytes_per_datum) in ad7476_ring_preenable()
47 indio_dev->buffer->access-> in ad7476_ring_preenable()
48 set_bytes_per_datum(indio_dev->buffer, st->d_size); in ad7476_ring_preenable()
56 struct iio_dev *indio_dev = pf->indio_dev; in ad7476_trigger_handler() local
57 struct ad7476_state *st = iio_priv(indio_dev); in ad7476_trigger_handler()
[all …]
Dad7793.c319 static int ad7793_ring_preenable(struct iio_dev *indio_dev) in ad7793_ring_preenable() argument
321 struct ad7793_state *st = iio_priv(indio_dev); in ad7793_ring_preenable()
322 struct iio_buffer *ring = indio_dev->buffer; in ad7793_ring_preenable()
326 if (bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength)) in ad7793_ring_preenable()
329 channel = find_first_bit(indio_dev->active_scan_mask, in ad7793_ring_preenable()
330 indio_dev->masklength); in ad7793_ring_preenable()
332 d_size = bitmap_weight(indio_dev->active_scan_mask, in ad7793_ring_preenable()
333 indio_dev->masklength) * in ad7793_ring_preenable()
334 indio_dev->channels[0].scan_type.storagebits / 8; in ad7793_ring_preenable()
343 if (indio_dev->buffer->access->set_bytes_per_datum) in ad7793_ring_preenable()
[all …]
Dad7192.c353 struct iio_dev *indio_dev = spi_get_drvdata(st->spi); in ad7192_setup() local
442 >> (indio_dev->channels[0].scan_type.realbits - in ad7192_setup()
456 static int ad7192_ring_preenable(struct iio_dev *indio_dev) in ad7192_ring_preenable() argument
458 struct ad7192_state *st = iio_priv(indio_dev); in ad7192_ring_preenable()
459 struct iio_buffer *ring = indio_dev->buffer; in ad7192_ring_preenable()
463 if (bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength)) in ad7192_ring_preenable()
466 channel = find_first_bit(indio_dev->active_scan_mask, in ad7192_ring_preenable()
467 indio_dev->masklength); in ad7192_ring_preenable()
469 d_size = bitmap_weight(indio_dev->active_scan_mask, in ad7192_ring_preenable()
470 indio_dev->masklength) * in ad7192_ring_preenable()
[all …]
Dad7298_ring.c28 static int ad7298_ring_preenable(struct iio_dev *indio_dev) in ad7298_ring_preenable() argument
30 struct ad7298_state *st = iio_priv(indio_dev); in ad7298_ring_preenable()
31 struct iio_buffer *ring = indio_dev->buffer; in ad7298_ring_preenable()
35 int scan_count = bitmap_weight(indio_dev->active_scan_mask, in ad7298_ring_preenable()
36 indio_dev->masklength); in ad7298_ring_preenable()
54 if (test_bit(i, indio_dev->active_scan_mask)) in ad7298_ring_preenable()
92 struct iio_dev *indio_dev = pf->indio_dev; in ad7298_trigger_handler() local
93 struct ad7298_state *st = iio_priv(indio_dev); in ad7298_trigger_handler()
94 struct iio_buffer *ring = indio_dev->buffer; in ad7298_trigger_handler()
109 for (i = 0; i < bitmap_weight(indio_dev->active_scan_mask, in ad7298_trigger_handler()
[all …]
Dmax1363_ring.c24 int max1363_update_scan_mode(struct iio_dev *indio_dev, in max1363_update_scan_mode() argument
27 struct max1363_state *st = iio_priv(indio_dev); in max1363_update_scan_mode()
43 struct iio_dev *indio_dev = pf->indio_dev; in max1363_trigger_handler() local
44 struct max1363_state *st = iio_priv(indio_dev); in max1363_trigger_handler()
57 if (indio_dev->buffer->scan_timestamp) { in max1363_trigger_handler()
81 if (indio_dev->buffer->scan_timestamp) in max1363_trigger_handler()
83 iio_push_to_buffer(indio_dev->buffer, rxbuf, time_ns); in max1363_trigger_handler()
86 iio_trigger_notify_done(indio_dev->trig); in max1363_trigger_handler()
98 int max1363_register_ring_funcs_and_init(struct iio_dev *indio_dev) in max1363_register_ring_funcs_and_init() argument
100 struct max1363_state *st = iio_priv(indio_dev); in max1363_register_ring_funcs_and_init()
[all …]
/drivers/staging/iio/dac/
Dad5421.c105 static int ad5421_write_unlocked(struct iio_dev *indio_dev, in ad5421_write_unlocked() argument
108 struct ad5421_state *st = iio_priv(indio_dev); in ad5421_write_unlocked()
115 static int ad5421_write(struct iio_dev *indio_dev, unsigned int reg, in ad5421_write() argument
120 mutex_lock(&indio_dev->mlock); in ad5421_write()
121 ret = ad5421_write_unlocked(indio_dev, reg, val); in ad5421_write()
122 mutex_unlock(&indio_dev->mlock); in ad5421_write()
127 static int ad5421_read(struct iio_dev *indio_dev, unsigned int reg) in ad5421_read() argument
129 struct ad5421_state *st = iio_priv(indio_dev); in ad5421_read()
147 mutex_lock(&indio_dev->mlock); in ad5421_read()
155 mutex_unlock(&indio_dev->mlock); in ad5421_read()
[all …]
/drivers/staging/iio/meter/
Dade7758_ring.c26 struct iio_dev *indio_dev = dev_get_drvdata(dev); in ade7758_spi_read_burst() local
27 struct ade7758_state *st = iio_priv(indio_dev); in ade7758_spi_read_burst()
64 struct iio_dev *indio_dev = pf->indio_dev; in ade7758_trigger_handler() local
65 struct iio_buffer *ring = indio_dev->buffer; in ade7758_trigger_handler()
66 struct ade7758_state *st = iio_priv(indio_dev); in ade7758_trigger_handler()
70 if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength)) in ade7758_trigger_handler()
71 if (ade7758_spi_read_burst(&indio_dev->dev) >= 0) in ade7758_trigger_handler()
80 iio_trigger_notify_done(indio_dev->trig); in ade7758_trigger_handler()
92 static int ade7758_ring_preenable(struct iio_dev *indio_dev) in ade7758_ring_preenable() argument
94 struct ade7758_state *st = iio_priv(indio_dev); in ade7758_ring_preenable()
[all …]
/drivers/staging/iio/impedance-analyzer/
Dad5933.c263 struct iio_dev *indio_dev = dev_get_drvdata(dev); in ad5933_show_frequency() local
264 struct ad5933_state *st = iio_priv(indio_dev); in ad5933_show_frequency()
273 mutex_lock(&indio_dev->mlock); in ad5933_show_frequency()
275 mutex_unlock(&indio_dev->mlock); in ad5933_show_frequency()
292 struct iio_dev *indio_dev = dev_get_drvdata(dev); in ad5933_store_frequency() local
293 struct ad5933_state *st = iio_priv(indio_dev); in ad5933_store_frequency()
305 mutex_lock(&indio_dev->mlock); in ad5933_store_frequency()
307 mutex_unlock(&indio_dev->mlock); in ad5933_store_frequency()
326 struct iio_dev *indio_dev = dev_get_drvdata(dev); in ad5933_show() local
327 struct ad5933_state *st = iio_priv(indio_dev); in ad5933_show()
[all …]
/drivers/staging/iio/imu/
Dadis16400_core.c51 static int adis16400_spi_write_reg_8(struct iio_dev *indio_dev, in adis16400_spi_write_reg_8() argument
56 struct adis16400_state *st = iio_priv(indio_dev); in adis16400_spi_write_reg_8()
78 static int adis16400_spi_write_reg_16(struct iio_dev *indio_dev, in adis16400_spi_write_reg_16() argument
84 struct adis16400_state *st = iio_priv(indio_dev); in adis16400_spi_write_reg_16()
123 static int adis16400_spi_read_reg_16(struct iio_dev *indio_dev, in adis16400_spi_read_reg_16() argument
128 struct adis16400_state *st = iio_priv(indio_dev); in adis16400_spi_read_reg_16()
164 static int adis16400_get_freq(struct iio_dev *indio_dev) in adis16400_get_freq() argument
169 ret = adis16400_spi_read_reg_16(indio_dev, ADIS16400_SMPL_PRD, &t); in adis16400_get_freq()
182 struct iio_dev *indio_dev = dev_get_drvdata(dev); in adis16400_read_frequency() local
184 ret = adis16400_get_freq(indio_dev); in adis16400_read_frequency()
[all …]

123456