Lines Matching defs:st
70 struct adis16300_state *st = iio_dev_get_devdata(indio_dev);
71 st->last_timestamp = time;
72 schedule_work(&st->work_trigger_to_ring);
90 struct adis16300_state *st = iio_dev_get_devdata(indio_dev);
91 u32 old_speed_hz = st->us->max_speed_hz;
96 .tx_buf = st->tx,
108 mutex_lock(&st->buf_lock);
109 st->tx[0] = ADIS16300_READ_REG(ADIS16300_GLOB_CMD);
110 st->tx[1] = 0;
116 st->us->max_speed_hz = ADIS16300_SPI_BURST;
117 spi_setup(st->us);
119 ret = spi_sync(st->us, &msg);
121 dev_err(&st->us->dev, "problem when burst reading");
123 st->us->max_speed_hz = old_speed_hz;
124 spi_setup(st->us);
125 mutex_unlock(&st->buf_lock);
134 struct adis16300_state *st
140 size_t datasize = st->indio_dev
141 ->ring->access.get_bpd(st->indio_dev->ring);
145 dev_err(&st->us->dev, "memory alloc failed in ring bh");
149 if (st->indio_dev->scan_count)
150 if (adis16300_spi_read_burst(&st->indio_dev->dev, st->rx) >= 0)
151 for (; i < st->indio_dev->scan_count; i++)
153 (__be16 *)&(st->rx[i*2]));
156 if (st->indio_dev->scan_timestamp)
157 *((s64 *)(data + ((i + 3)/4)*4)) = st->last_timestamp;
159 st->indio_dev->ring->access.store_to(st->indio_dev->ring,
161 st->last_timestamp);
163 iio_trigger_notify_done(st->indio_dev->trig);
178 struct adis16300_state *st = indio_dev->dev_data;
180 INIT_WORK(&st->work_trigger_to_ring, adis16300_trigger_bh_to_ring);