Lines Matching defs:state
88 /* state exposed to application */
367 unsigned int *state)
370 dev_err(&hi->cl->device, "HSI %s error, msg %d, state %u\n",
371 info, msg->status, *state);
379 static inline void __cs_hsi_error_read_bits(unsigned int *state)
381 *state |= SSI_CHANNEL_STATE_ERROR;
382 *state &= ~(SSI_CHANNEL_STATE_READING | SSI_CHANNEL_STATE_POLL);
385 static inline void __cs_hsi_error_write_bits(unsigned int *state)
387 *state |= SSI_CHANNEL_STATE_ERROR;
388 *state &= ~SSI_CHANNEL_STATE_WRITING;
611 dev_err(&hi->cl->device, "Data received in invalid state\n");
634 * SSI_CHANNEL_STATE_POLL state.
636 static inline int cs_state_xfer_active(unsigned int state)
638 return (state & SSI_CHANNEL_STATE_WRITING) ||
639 (state & SSI_CHANNEL_STATE_READING);
645 static inline int cs_state_idle(unsigned int state)
647 return !(state & ~SSI_CHANNEL_STATE_ERROR);
1207 unsigned int state;
1209 state = cs_hsi_get_state(csdata->hi);
1210 if (copy_to_user((void __user *)arg, &state, sizeof(state)))
1216 unsigned int state;
1218 if (copy_from_user(&state, (void __user *)arg, sizeof(state))) {
1223 if (state > 1) {
1228 cs_hsi_set_wakeline(csdata->hi, !!state);