Lines Matching defs:st
54 struct adis16260_state *st = iio_dev_get_devdata(indio_dev);
55 st->last_timestamp = time;
56 schedule_work(&st->work_trigger_to_ring);
68 struct adis16260_state *st = iio_dev_get_devdata(indio_dev);
73 mutex_lock(&st->buf_lock);
83 xfers[i].tx_buf = st->tx + 2 * i;
85 st->tx[2 * i]
89 st->tx[2 * i]
92 st->tx[2 * i + 1] = 0;
98 ret = spi_sync(st->us, &msg);
100 dev_err(&st->us->dev, "problem when burst reading");
102 mutex_unlock(&st->buf_lock);
110 struct adis16260_state *st
116 size_t datasize = st->indio_dev
117 ->ring->access.get_bpd(st->indio_dev->ring);
121 dev_err(&st->us->dev, "memory alloc failed in ring bh");
125 if (st->indio_dev->scan_count)
126 if (adis16260_read_ring_data(&st->indio_dev->dev, st->rx) >= 0)
127 for (; i < st->indio_dev->scan_count; i++)
129 (__be16 *)&(st->rx[i*2]));
132 if (st->indio_dev->scan_timestamp)
133 *((s64 *)(data + ((i + 3)/4)*4)) = st->last_timestamp;
135 st->indio_dev->ring->access.store_to(st->indio_dev->ring,
137 st->last_timestamp);
139 iio_trigger_notify_done(st->indio_dev->trig);
154 struct adis16260_state *st = indio_dev->dev_data;
156 INIT_WORK(&st->work_trigger_to_ring, adis16260_trigger_bh_to_ring);