Home
last modified time | relevance | path

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

/drivers/hdf_core/interfaces/inner_api/hdi/base/
Dhdi_smq.h542 auto wOffset = writeOffset_->load(std::memory_order_acquire); in WriteNonBlocking() local
546 if (wOffset + count <= qCount) { in WriteNonBlocking()
547 if (memcpy_s(queueBuffer_ + (wOffset * sizeof(T)), (qCount - wOffset) * sizeof(T), in WriteNonBlocking()
551 newWriteOffset = (wOffset + count) % qCount; in WriteNonBlocking()
553 size_t firstPartSize = qCount - wOffset; in WriteNonBlocking()
555 if (memcpy_s(queueBuffer_ + (wOffset * sizeof(T)), (qCount - wOffset) * sizeof(T), in WriteNonBlocking()
566 if (wOffset < rOffset && newWriteOffset >= rOffset) { in WriteNonBlocking()
617 auto wOffset = writeOffset_->load(std::memory_order_acquire); in GetAvalidReadSize() local
619 …auto size = wOffset >= rOffset ? (wOffset - rOffset) : (wOffset + meta_->GetElementCount() - rOffs… in GetAvalidReadSize()