Lines Matching defs:state
153 * struct sca3000_state - device instance state information
159 * and the underlying device state.
559 * @st: Private driver specific device instance specific state.
593 * @st: Private driver specific device instance specific state.
627 * @st: Private driver specific device instance specific state.
1153 static int sca3000_freefall_set_state(struct iio_dev *indio_dev, int state)
1164 if (state && !(st->rx[0] & SCA3000_REG_MODE_FREE_FALL_DETECT))
1168 else if (!state && (st->rx[0] & SCA3000_REG_MODE_FREE_FALL_DETECT))
1176 int state)
1190 if (state && !(ctrlval & sca3000_addresses[axis][2])) {
1198 } else if (!state && (ctrlval & sca3000_addresses[axis][2])) {
1236 * @state: Desired state of event being configured.
1248 int state)
1256 ret = sca3000_freefall_set_state(indio_dev, state);
1264 state);
1290 int __sca3000_hw_ring_state_set(struct iio_dev *indio_dev, bool state)
1299 if (state) {
1317 * specific state can be accessed via iio_priv(indio_dev).
1379 * sca3000_clean_setup() - get the device into a predictable state