Home
last modified time | relevance | path

Searched refs:num_cmds (Results 1 – 9 of 9) sorted by relevance

/trusty/user/app/sample/spi/swspi-srv/driver/
Dswspi.c59 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() argument
185 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()
Dswspi.h63 size_t num_cmds; member
/trusty/user/base/lib/spi/srv/batch/
Dbatch.c173 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()
/trusty/user/base/lib/spi/srv/common/include/lib/spi/srv/common/
Dcommon.h38 size_t num_cmds; member
/trusty/user/base/lib/spi/srv/batch/include/lib/spi/srv/batch/
Ddev.h185 int spi_seq_begin(struct spi_dev_ctx* dev, size_t num_cmds);
/trusty/user/base/lib/spi/client/
Dclient.c211 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()
/trusty/user/base/lib/spi/srv/tipc/
Dtipc.c168 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()
/trusty/user/base/lib/spi/client/include/lib/spi/client/
Dspi.h45 size_t num_cmds; member
/trusty/user/base/interface/spi/include/interface/spi/
Dspi.h147 uint32_t num_cmds; member