Lines Matching defs:state
520 * interrupt state by reading SX9310_REG_IRQ_SRC.
534 /* Read proximity state on all channels */
600 enum iio_event_direction dir, int state)
606 /* If the state hasn't changed, there's nothing to do. */
607 if (!!(data->chan_event & BIT(chan->channel)) == state)
611 if (state) {
653 static int sx9310_set_trigger_state(struct iio_trigger *trig, bool state)
661 if (state)
668 data->trigger_enabled = state;
836 /* Clear reset interrupt state by reading SX9310_REG_IRQ_SRC. */