/trusty/user/app/sample/spi/swspi-srv/driver/ |
D | swspi.c | 105 void* rx; member 117 void* rx = args->rx; in spi_req_exec_xfer() local 122 if (rx) { in spi_req_exec_xfer() 124 memcpy(rx, tx, len); in spi_req_exec_xfer() 126 memset(rx, 0, len); in spi_req_exec_xfer() 136 if (rx) { in spi_req_exec_xfer() 137 rand_buf(rx, len, seed); in spi_req_exec_xfer() 141 int spi_req_xfer(struct spi_dev_ctx* dev, void* tx, void* rx, size_t len) { in spi_req_xfer() argument 151 args->rx = rx; in spi_req_xfer()
|
/trusty/user/app/sample/spi/swspi-test/ |
D | swspi-test.c | 118 void* rx = NULL; in exec_xfer() local 131 rc = spi_add_data_xfer_cmd(dev, &tx, &rx, len); in exec_xfer() 150 return memcmp(result, rx, len); in exec_xfer() 176 void* rx = NULL; in TEST_P() local 183 rc = spi_add_data_xfer_cmd(dev, &tx, &rx, 1); in TEST_P() 186 EXPECT_NE(rx, NULL); in TEST_P() 188 rx = NULL; in TEST_P() 195 rc = spi_add_data_xfer_cmd(dev, NULL, &rx, 1); in TEST_P() 197 EXPECT_NE(rx, NULL); in TEST_P() 198 rx = NULL; in TEST_P() [all …]
|
/trusty/user/base/lib/storage/ |
D | storage.c | 284 struct iovec rx[2] = {{&msg, sizeof(msg)}, {&rsp, sizeof(rsp)}}; in storage_open_file() local 286 ssize_t rc = send_reqv(session, tx, 3, rx, 2); in storage_open_file() 304 struct iovec rx[1] = {{&msg, sizeof(msg)}}; in storage_close_file() local 306 ssize_t rc = send_reqv(_to_session(fh), tx, 2, rx, 1); in storage_close_file() 336 struct iovec rx[1] = {{&msg, sizeof(msg)}}; in storage_move_file() local 338 ssize_t rc = send_reqv(session, tx, 4, rx, 1); in storage_move_file() 353 struct iovec rx[1] = {{&msg, sizeof(msg)}}; in storage_delete_file() local 355 ssize_t rc = send_reqv(session, tx, 3, rx, 1); in storage_delete_file() 403 struct iovec rx[2] = {{&msg, sizeof(msg)}, in storage_read_dir_send_message() local 413 rc = send_reqv(session, tx, tx_count, rx, 2); in storage_read_dir_send_message() [all …]
|
/trusty/user/base/lib/spi/srv/batch/include/lib/spi/srv/batch/ |
D | dev.h | 154 int spi_req_xfer(struct spi_dev_ctx* dev, void* tx, void* rx, size_t len);
|
/trusty/user/base/lib/spi/srv/batch/ |
D | batch.c | 40 void* rx; in handle_xfer_args() local 57 rx = (xfer_args_flags & SPI_XFER_FLAGS_RX) ? payload : NULL; in handle_xfer_args() 59 rc = spi_req_xfer(spi, tx, rx, xfer_args_len); in handle_xfer_args()
|
/trusty/user/base/lib/spi/client/include/lib/spi/client/ |
D | spi.h | 124 void** rx,
|
/trusty/user/base/lib/spi/client/ |
D | client.c | 431 void** rx, in spi_add_data_xfer_cmd() argument 444 flags = (tx ? SPI_XFER_FLAGS_TX : 0) | (rx ? SPI_XFER_FLAGS_RX : 0); in spi_add_data_xfer_cmd() 451 if (rx) { in spi_add_data_xfer_cmd() 452 *rx = payload; in spi_add_data_xfer_cmd()
|