Searched refs:num_cmds (Results 1 – 9 of 9) sorted by relevance
59 assert(dev->curr_cmd < dev->num_cmds); in spi_req_cs_assert()74 assert(dev->curr_cmd < dev->num_cmds); in spi_req_cs_deassert()143 assert(dev->curr_cmd < dev->num_cmds); in spi_req_xfer()181 int spi_seq_begin(struct spi_dev_ctx* dev, size_t num_cmds) { in spi_seq_begin() argument185 dev->cmds = calloc(num_cmds, sizeof(struct spi_seq_entry)); in spi_seq_begin()191 dev->num_cmds = num_cmds; in spi_seq_begin()196 for (size_t i = 0; i < dev->num_cmds; i++) { in spi_seq_free()204 dev->num_cmds = 0; in spi_seq_free()213 assert(dev->curr_cmd == dev->num_cmds); in spi_seq_commit()216 for (i = 0; i < dev->num_cmds; i++) { in spi_seq_commit()
63 size_t num_cmds; member
173 state->num_cmds); in unpack_shm()176 state->num_cmds++; in unpack_shm()197 rc = spi_seq_begin(spi, batch_req->num_cmds); 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()
38 size_t num_cmds; member
185 int spi_seq_begin(struct spi_dev_ctx* dev, size_t num_cmds);
211 dev->num_cmds = 0; in spi_clear_cmds()222 .num_cmds = dev->num_cmds, in send_batch_req()345 *failed = dev->num_cmds; in spi_exec_cmds()383 if (dev->num_cmds >= dev->max_num_cmds) { in spi_add_cmd()415 dev->num_cmds++; in spi_add_cmd()
168 state.num_cmds = 0; in handle_msg_batch_req()181 .failed = (rc != NO_ERROR) ? (uint32_t)state.num_cmds : 0 in handle_msg_batch_req()274 req.num_cmds = 1; in on_disconnect()277 state.num_cmds = 0; in on_disconnect()
45 size_t num_cmds; member
147 uint32_t num_cmds; member