Lines Matching refs:state
109 struct spi_batch_state* state) { in unpack_shm() argument
130 if (state->cs) { in unpack_shm()
138 if (state->cs) { in unpack_shm()
142 state->cs = true; in unpack_shm()
147 if (state->cs) { in unpack_shm()
149 state->cs = false; in unpack_shm()
173 state->num_cmds); in unpack_shm()
176 state->num_cmds++; in unpack_shm()
185 struct spi_batch_state* state) { in spi_srv_handle_batch() argument
195 assert(!state->cs || !spi_is_bus_shared(spi)); in spi_srv_handle_batch()
203 rc = unpack_shm(spi, shm, batch_req->len, state); in spi_srv_handle_batch()
209 if (state->num_cmds != batch_req->num_cmds) { in spi_srv_handle_batch()
212 state->num_cmds, batch_req->num_cmds); in spi_srv_handle_batch()
225 if (state->cs && spi_is_bus_shared(spi)) { in spi_srv_handle_batch()