/external/pigweed/pw_uart/public/pw_uart/ |
D | uart.h | 55 StatusWithSize ReadAtLeast(ByteSpan rx_buffer, size_t min_bytes) { in ReadAtLeast() argument 56 return DoTryReadFor(rx_buffer, min_bytes, std::nullopt); in ReadAtLeast() 74 StatusWithSize ReadExactly(ByteSpan rx_buffer) { in ReadExactly() argument 75 return DoTryReadFor(rx_buffer, rx_buffer.size(), std::nullopt); in ReadExactly() 96 Status Read(ByteSpan rx_buffer) { in Read() argument 97 return DoTryReadFor(rx_buffer, std::nullopt).status(); in Read() 124 StatusWithSize TryReadAtLeastFor(ByteSpan rx_buffer, in TryReadAtLeastFor() argument 127 return DoTryReadFor(rx_buffer, min_bytes, timeout); in TryReadAtLeastFor() 153 StatusWithSize TryReadExactlyFor(ByteSpan rx_buffer, in TryReadExactlyFor() argument 155 return DoTryReadFor(rx_buffer, rx_buffer.size(), timeout); in TryReadExactlyFor() [all …]
|
D | uart_non_blocking.h | 68 ByteSpan rx_buffer, in ReadExactly() argument 70 return DoRead(rx_buffer, rx_buffer.size(), std::move(callback)); in ReadExactly() 105 ByteSpan rx_buffer, in ReadAtLeast() argument 108 return DoRead(rx_buffer, min_bytes, std::move(callback)); in ReadAtLeast() 256 ByteSpan rx_buffer,
|
D | blocking_adapter.h | 83 ByteSpan rx_buffer,
|
/external/pigweed/pw_i2c/public/pw_i2c/ |
D | initiator.h | 105 ByteSpan rx_buffer, in WriteReadFor() argument 107 return DoWriteReadFor(device_address, tx_buffer, rx_buffer, timeout); in WriteReadFor() 116 void* rx_buffer, in WriteReadFor() argument 122 span(static_cast<std::byte*>(rx_buffer), rx_size_bytes), in WriteReadFor() 218 ByteSpan rx_buffer, in ReadFor() argument 220 return WriteReadFor(device_address, ConstByteSpan(), rx_buffer, timeout); in ReadFor() 225 void* rx_buffer, in ReadFor() argument 229 span(static_cast<std::byte*>(rx_buffer), rx_size_bytes), in ReadFor() 279 ByteSpan rx_buffer,
|
D | device.h | 57 ByteSpan rx_buffer, in WriteReadFor() argument 60 device_address_, tx_buffer, rx_buffer, timeout); in WriteReadFor() 67 void* rx_buffer, in WriteReadFor() argument 73 rx_buffer, in WriteReadFor() 93 Status ReadFor(ByteSpan rx_buffer, chrono::SystemClock::duration timeout) { in ReadFor() argument 94 return initiator_.ReadFor(device_address_, rx_buffer, timeout); in ReadFor() 98 Status ReadFor(void* rx_buffer, in ReadFor() argument 102 device_address_, rx_buffer, rx_size_bytes, timeout); in ReadFor()
|
D | initiator_gmock.h | 30 ByteSpan rx_buffer,
|
/external/pigweed/pw_i2c_linux/ |
D | initiator.cc | 115 ByteSpan rx_buffer, in DoWriteReadFor() argument 121 if (tx_buffer.empty() && rx_buffer.empty()) { in DoWriteReadFor() 132 return DoWriteReadForLocked(address, tx_buffer, rx_buffer, timeout - elapsed); in DoWriteReadFor() 149 ByteSpan rx_buffer, in DoWriteReadForLocked() argument 158 if (!tx_buffer.empty() && rx_buffer.empty()) { in DoWriteReadForLocked() 170 } else if (!rx_buffer.empty() && tx_buffer.empty()) { in DoWriteReadForLocked() 174 .len = static_cast<uint16_t>(rx_buffer.size()), in DoWriteReadForLocked() 175 .buf = reinterpret_cast<uint8_t*>(rx_buffer.data()), in DoWriteReadForLocked() 184 PW_DCHECK(!rx_buffer.empty() && !tx_buffer.empty()); in DoWriteReadForLocked() 195 .len = static_cast<uint16_t>(rx_buffer.size()), in DoWriteReadForLocked() [all …]
|
/external/pigweed/pw_i2c_rp2040/ |
D | initiator.cc | 66 ByteSpan rx_buffer, in DoWriteReadFor() argument 87 if (!tx_buffer.empty() && rx_buffer.empty()) { in DoWriteReadFor() 99 } else if (tx_buffer.empty() && !rx_buffer.empty()) { in DoWriteReadFor() 104 /*src=*/reinterpret_cast<uint8_t*>(rx_buffer.data()), in DoWriteReadFor() 105 /*len=*/rx_buffer.size(), in DoWriteReadFor() 110 } else if (!tx_buffer.empty() && !rx_buffer.empty()) { in DoWriteReadFor() 129 /*src=*/reinterpret_cast<uint8_t*>(rx_buffer.data()), in DoWriteReadFor() 130 /*len=*/rx_buffer.size(), in DoWriteReadFor()
|
/external/pigweed/pw_i2c_mcuxpresso/ |
D | initiator.cc | 104 ByteSpan rx_buffer, in DoWriteReadFor() argument 117 if (!tx_buffer.empty() && rx_buffer.empty()) { in DoWriteReadFor() 126 } else if (tx_buffer.empty() && !rx_buffer.empty()) { in DoWriteReadFor() 132 rx_buffer.data(), in DoWriteReadFor() 133 rx_buffer.size()}; in DoWriteReadFor() 135 } else if (!tx_buffer.empty() && !rx_buffer.empty()) { in DoWriteReadFor() 151 rx_buffer.data(), in DoWriteReadFor() 152 rx_buffer.size()}; in DoWriteReadFor()
|
D | i3c_initiator.cc | 224 pw::ByteSpan rx_buffer, in DoWriteReadFor() argument 242 if (!tx_buffer.empty() && rx_buffer.empty()) { // write only in DoWriteReadFor() 252 } else if (tx_buffer.empty() && !rx_buffer.empty()) { // read only in DoWriteReadFor() 258 transfer.data = rx_buffer.data(); in DoWriteReadFor() 259 transfer.dataSize = rx_buffer.size(); in DoWriteReadFor() 262 } else if (!tx_buffer.empty() && !rx_buffer.empty()) { // write and read in DoWriteReadFor() 281 transfer.data = rx_buffer.data(); in DoWriteReadFor() 282 transfer.dataSize = rx_buffer.size(); in DoWriteReadFor()
|
/external/pigweed/pw_spi/ |
D | initiator_mock.cc | 23 Status MockInitiator::DoWriteRead(ConstByteSpan tx_buffer, ByteSpan rx_buffer) { in DoWriteRead() argument 32 PW_CHECK_INT_EQ(expected_rx_buffer.size(), rx_buffer.size()); in DoWriteRead() 35 expected_rx_buffer.begin(), expected_rx_buffer.end(), rx_buffer.begin()); in DoWriteRead()
|
/external/pigweed/pw_i2c/ |
D | initiator_mock.cc | 24 ByteSpan rx_buffer, in DoWriteReadFor() argument 44 PW_CHECK_INT_EQ(expected_rx_buffer.size(), rx_buffer.size()); in DoWriteReadFor() 47 expected_rx_buffer.begin(), expected_rx_buffer.end(), rx_buffer.begin()); in DoWriteReadFor()
|
/external/pigweed/pw_uart/ |
D | blocking_adapter_test.cc | 57 PW_CHECK_UINT_GE(read->rx_buffer.size(), data.size()); in WaitAndCompleteRead() 58 std::copy(data.begin(), data.end(), read->rx_buffer.begin()); in WaitAndCompleteRead() 106 ByteSpan rx_buffer; member 111 callback(status, rx_buffer.first(num_bytes)); in Complete() 123 Status DoRead(ByteSpan rx_buffer, in DoRead() argument 135 .rx_buffer = rx_buffer, in DoRead()
|
D | blocking_adapter.cc | 33 ByteSpan rx_buffer, in DoTryReadFor() argument 44 rx_buffer, min_bytes, [this](Status xfer_status, ConstByteSpan buffer) { in DoTryReadFor()
|
/external/liburing/test/ |
D | send-zerocopy.c | 69 static char *tx_buffer, *rx_buffer; variable 147 ret = recv(sock_rx, rx_buffer, payload_size, MSG_TRUNC); in test_basic_send() 408 memset(rx_buffer, 0, send_size); in do_test_inet_send() 497 io_uring_prep_recv(sqe, sock_server, rx_buffer, send_size, MSG_WAITALL); in do_test_inet_send() 560 if (buf[i] != rx_buffer[i]) { in do_test_inet_send() 562 "%u vs %u\n", i, buf[i], rx_buffer[i]); in do_test_inet_send() 726 ret = recv(sock_rx, rx_buffer, 1, MSG_TRUNC); in test_async_addr() 925 rx_buffer = aligned_alloc(page_sz, len); in main() 926 if (tx_buffer && rx_buffer) { in main() 932 if (rx_buffer) in main() [all …]
|
/external/pigweed/pw_i2c_linux/public/pw_i2c_linux/ |
D | initiator.h | 79 ByteSpan rx_buffer, 85 ByteSpan rx_buffer,
|
/external/trusty/arm-trusted-firmware/services/std_svc/spm/el3_spmc/ |
D | spmc_main.c | 837 if (mbox->rx_buffer != 0 || mbox->tx_buffer != 0) { in rxtx_map_handler() 839 (void *) mbox->rx_buffer, (void *)mbox->tx_buffer); in rxtx_map_handler() 873 mbox->rx_buffer = (void *) rx_address; in rxtx_map_handler() 910 if (mbox->rx_buffer == 0 || mbox->tx_buffer == 0) { in rxtx_unmap_handler() 917 if (mmap_remove_dynamic_region((uintptr_t) mbox->rx_buffer, in rxtx_unmap_handler() 922 mbox->rx_buffer = 0; in rxtx_unmap_handler() 1091 (struct ffa_partition_info_v1_0 *) mbox->rx_buffer; in partition_info_populate_v1_0() 1187 if (mbox->rx_buffer == NULL) { in partition_info_get_handler() 1199 (void)memset(mbox->rx_buffer, 0, in partition_info_get_handler() 1224 memcpy(mbox->rx_buffer, partitions, in partition_info_get_handler() [all …]
|
/external/pigweed/pw_i2c_rp2040/public/pw_i2c_rp2040/ |
D | initiator.h | 47 ByteSpan rx_buffer,
|
/external/coreboot/src/drivers/spi/tpm/ |
D | tpm.c | 530 uint8_t *rx_buffer; member 563 buffer.rx_buffer + handled_so_far, in fifo_transfer() 679 fifo_buffer.rx_buffer = rsp_body + HEADER_SIZE; in tpm2_process_command()
|
/external/pigweed/pw_uart_mcuxpresso/ |
D | dma_uart_nonblocking.cc | 248 ByteSpan rx_buffer, in DoRead() argument 251 size_t max_bytes = rx_buffer.size(); in DoRead() 358 rx_data_.request.buffer = rx_buffer; in DoRead() 371 auto bb = ByteBuilder{rx_buffer}; in DoRead()
|
D | dma_uart.cc | 464 ByteSpan rx_buffer, in DoTryReadFor() argument 471 size_t length = rx_buffer.size(); in DoTryReadFor() 489 ByteBuilder bb(rx_buffer); in DoTryReadFor()
|
/external/pigweed/pw_i2c_mcuxpresso/public/pw_i2c_mcuxpresso/ |
D | initiator.h | 49 ByteSpan rx_buffer,
|
D | i3c_initiator.h | 72 pw::ByteSpan rx_buffer,
|
/external/trusty/lk/dev/virtio/vsock-rust/src/ |
D | vsock.rs | 151 rx_buffer: Box<[u8]>, // buffers data if the tipc connection blocks field 169 rx_buffer: vec![0u8; rx_buffer_len].into_boxed_slice(), in new() 202 let mut iov = iovec_kern { iov_base: self.rx_buffer.as_mut_ptr() as _, iov_len: length }; in tipc_try_send() 496 .recv(source, destination.port, &mut c.rx_buffer[..length]) in vsock_rx_channel()
|
/external/pigweed/seed/ |
D | 0117.rst | 338 ByteSpan rx_buffer); 342 void* rx_buffer, 364 Status ReadFor(Address device_address, ByteSpan rx_buffer); 366 void* rx_buffer, 458 ByteSpan rx_buffer) = 0; 542 Status WriteReadFor(ConstByteSpan tx_buffer, ByteSpan rx_buffer); 545 void* rx_buffer, 565 Status ReadFor(ByteSpan rx_buffer); 566 Status ReadFor(void* rx_buffer, size_t rx_size_bytes);
|