Home
last modified time | relevance | path

Searched refs:mBuffer (Results 1 – 25 of 35) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/RawIp4Rx/
DRawIp4Rx.c17 UINT8 mBuffer[65536]; variable
104 &mBuffer[0], in RawIp4Rx()
105 sizeof ( mBuffer ), in RawIp4Rx()
123 mBuffer[0], in RawIp4Rx()
124 mBuffer[1], in RawIp4Rx()
125 mBuffer[2], in RawIp4Rx()
126 mBuffer[3], in RawIp4Rx()
127 mBuffer[4], in RawIp4Rx()
128 mBuffer[5], in RawIp4Rx()
129 mBuffer[6], in RawIp4Rx()
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/
DAlignedBuf.h45 if (other.mBuffer) { // could have got moved out in AlignedBuf()
46 std::copy(other.mBuffer, other.mBuffer + other.mSize, mBuffer); in AlignedBuf()
61 mBuffer = other.mBuffer;
64 other.mBuffer = nullptr;
70 ~AlignedBuf() { if (mBuffer) freeImpl(mBuffer); } // account for getting moved out in ~AlignedBuf()
89 T* data() { return mBuffer; } in data()
91 T& operator[](size_t index) { return mBuffer[index]; }
93 const T& operator[](size_t index) const { return mBuffer[index]; }
96 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize));
107 std::vector<T> temp(mBuffer, mBuffer + keepSize); in resizeImpl()
[all …]
/device/generic/goldfish/network/wifi_forwarder/
Dremote_connection.cpp112 size_t start = mBuffer.size(); in receive()
123 mBuffer.resize(newSize); in receive()
127 mBuffer.data() + start, in receive()
128 mBuffer.size() - start); in receive()
136 mBuffer.resize(start); in receive()
141 mBuffer.resize(start); in receive()
146 mBuffer.resize(start + static_cast<size_t>(result)); in receive()
150 while (mBuffer.size() >= sizeof(WifiForwardHeader)) { in receive()
151 auto fwd = reinterpret_cast<WifiForwardHeader*>(mBuffer.data()); in receive()
159 ::memmem(mBuffer.data(), mBuffer.size(), in receive()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/SetHostName/
DSetHostName.c25 char mBuffer[65536]; variable
82 AppStatus = gethostname ( &mBuffer[0], sizeof ( mBuffer )); in main()
87 if ( 0 == mBuffer[0]) { in main()
91 Print ( L"Host name: %a", &mBuffer[0]); in main()
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/OobTx/
DOobTx.c17 UINT8 mBuffer[8192]; variable
145 memset ( &mBuffer[0], 0, sizeof ( mBuffer )); in OobTx()
156 &mBuffer[BytesSent], in OobTx()
157 sizeof ( mBuffer ) - BytesSent, in OobTx()
166 } while ( sizeof ( mBuffer ) > BytesSent ); in OobTx()
206 &mBuffer[BytesSent], in OobTx()
207 sizeof ( mBuffer ) - BytesSent, in OobTx()
216 } while ( sizeof ( mBuffer ) > BytesSent ); in OobTx()
/device/generic/goldfish/camera/jpeg-stub/
DCompressor.cpp40 return mDestManager.mBuffer; in getCompressedData()
184 manager->mBuffer.resize(16 * 1024); in initDestination()
185 manager->next_output_byte = &manager->mBuffer[0]; in initDestination()
186 manager->free_in_buffer = manager->mBuffer.size(); in initDestination()
195 size_t oldSize = manager->mBuffer.size(); in emptyOutputBuffer()
196 manager->mBuffer.resize(oldSize * 2); in emptyOutputBuffer()
197 manager->next_output_byte = &manager->mBuffer[oldSize]; in emptyOutputBuffer()
198 manager->free_in_buffer = manager->mBuffer.size() - oldSize; in emptyOutputBuffer()
207 manager->mBuffer.resize(manager->mBuffer.size() - manager->free_in_buffer); in termDestination()
DCompressor.h57 std::vector<unsigned char> mBuffer; member
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/RawIp4Tx/
DRawIp4Tx.c17 UINT8 mBuffer[1024]; variable
111 memset ( &mBuffer[0], 0, sizeof ( mBuffer )); in RawIp4Tx()
120 &mBuffer[BytesSent], in RawIp4Tx()
121 sizeof ( mBuffer ) - BytesSent, in RawIp4Tx()
132 } while ( sizeof ( mBuffer ) > BytesSent ); in RawIp4Tx()
/device/google/cuttlefish/guest/hals/camera/
DCompressor.cpp41 return mDestManager.mBuffer; in getCompressedData()
209 manager->mBuffer.resize(16 * 1024); in initDestination()
210 manager->next_output_byte = &manager->mBuffer[0]; in initDestination()
211 manager->free_in_buffer = manager->mBuffer.size(); in initDestination()
220 size_t oldSize = manager->mBuffer.size(); in emptyOutputBuffer()
221 manager->mBuffer.resize(oldSize * 2); in emptyOutputBuffer()
222 manager->next_output_byte = &manager->mBuffer[oldSize]; in emptyOutputBuffer()
223 manager->free_in_buffer = manager->mBuffer.size() - oldSize; in emptyOutputBuffer()
232 manager->mBuffer.resize(manager->mBuffer.size() - manager->free_in_buffer); in termDestination()
DCompressor.h57 std::vector<unsigned char> mBuffer; member
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/OobRx/
DOobRx.c17 UINT8 mBuffer[65536]; variable
153 BytesReceived = recv ( a, &mBuffer[0], sizeof ( mBuffer ), MSG_OOB ); in OobRx()
186 BytesReceived = recv ( a, &mBuffer[0], sizeof ( mBuffer ), 0 ); in OobRx()
/device/google/contexthub/sensorhal/
Ddirectchannel.cpp28 return mBuffer != nullptr; in isValid()
37 mBuffer->write(ev, 1); in write()
62 mBuffer = std::unique_ptr<LockfreeBuffer>(new LockfreeBuffer(mBase, mSize)); in AshmemDirectChannel()
63 if (!mBuffer) { in AshmemDirectChannel()
70 mBuffer = nullptr; in ~AshmemDirectChannel()
304 mBuffer = std::make_unique<LockfreeBuffer>(mBase, mSize); in GrallocDirectChannel()
305 if (!mBuffer) { in GrallocDirectChannel()
316 mBuffer = nullptr; in ~GrallocDirectChannel()
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/RecvDgram/
DRecvDgram.c28 UINT8 mBuffer[ 65536 ]; variable
78 &mBuffer[0], in main()
79 sizeof ( mBuffer[0]), in main()
/device/google/cuttlefish/host/frontend/gcastv2/libsource/
DAudioSource.cpp158 mBuffer.push_back(l); in append()
159 mBuffer.push_back(r); in append()
164 const int16_t *data() const { return mBuffer.data(); } in data()
166 size_t numFramesAvailable() const { return mBuffer.size() / 2; } in numFramesAvailable()
171 mBuffer.erase(mBuffer.begin(), mBuffer.begin() + numFrames * 2); in drain()
178 std::vector<int16_t> mBuffer; member
405 mBuffer.push_back(mono); in append()
410 const int16_t *data() const { return mBuffer.data(); } in data()
412 size_t numFramesAvailable() const { return mBuffer.size(); } in numFramesAvailable()
417 mBuffer.erase(mBuffer.begin(), mBuffer.begin() + numFrames); in drain()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/SetSockOpt/
DSetSockOpt.c65 UINT8 mBuffer[ 65536 ]; variable
105 Value.u8 = &mBuffer[0]; in DisplayOption()
312 LengthInBytes = sizeof ( mBuffer ); in main()
316 &mBuffer, in main()
350 &mBuffer, in main()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordSmm/
DOpalPasswordSmm.c59 VOID *mBuffer = NULL; // DMA can not read/write Data to smram, so we pre-allocates … variable
717 mBuffer = NULL; in OpalPasswordSmmInit()
761 mBuffer = (VOID *)(UINTN)Address; in OpalPasswordSmmInit()
762 ZeroMem ((VOID *)(UINTN)mBuffer, SMM_SIZE_ALLOC_BYTES); in OpalPasswordSmmInit()
858 if (mBuffer != NULL) { in OpalPasswordSmmInit()
859 … gBS->FreePages ((EFI_PHYSICAL_ADDRESS)(UINTN) mBuffer, EFI_SIZE_TO_PAGES (SMM_SIZE_ALLOC_BYTES)); in OpalPasswordSmmInit()
907 ZeroMem( mBuffer, HDD_PAYLOAD ); in PerformTrustedIo()
911 CopyMem( mBuffer, Buffer, TransferLength ); in PerformTrustedIo()
923 mBuffer, in PerformTrustedIo()
929 CopyMem( Buffer, mBuffer, TransferLength ); in PerformTrustedIo()
/device/generic/goldfish/audio/
Dstream_in.cpp121 mBuffer.reset(); in threadLoop()
126 mBuffer.reset(new uint8_t[mDataMQ.getQuantumCount()]); in threadLoop()
127 LOG_ALWAYS_FATAL_IF(!mBuffer); in threadLoop()
182 status.retval = doReadImpl(&mBuffer[0], bytesToRead, read); in doRead()
184 if (!mDataMQ.write(&mBuffer[0], read)) { in doRead()
231 std::unique_ptr<uint8_t[]> mBuffer; member
Dstream_out.cpp124 mBuffer.reset(); in threadLoop()
129 mBuffer.reset(new uint8_t[mDataMQ.getQuantumCount()]); in threadLoop()
130 LOG_ALWAYS_FATAL_IF(!mBuffer); in threadLoop()
188 if (mDataMQ.read(&mBuffer[0], availToRead)) { in doWrite()
189 status.retval = doWriteImpl(&mBuffer[0], availToRead, written); in doWrite()
249 std::unique_ptr<uint8_t[]> mBuffer; member
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetServByName/
DGetServByName.c24 char mBuffer[65536]; variable
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetServByPort/
DGetServByPort.c25 char mBuffer[65536]; variable
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetNetByName/
DGetNetByName.c24 char mBuffer[65536]; variable
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetHostByDns/
DGetHostByDns.c26 char mBuffer[65536]; variable
/device/google/cuttlefish/host/frontend/gcastv2/webrtc/
DSDP.cpp167 mBuffer.append(s); in operator <<()
174 auto lines = SplitString(mBuffer, "\r\n"); in commit()
/device/generic/goldfish-opengl/system/hwc2/
DEmuHWC2.h129 FencedBuffer() : mBuffer(nullptr) {} in FencedBuffer()
131 void setBuffer(buffer_handle_t buffer) { mBuffer = buffer; } in setBuffer()
136 buffer_handle_t getBuffer() const { return mBuffer; } in getBuffer()
140 buffer_handle_t mBuffer;
426 FencedBuffer& getLayerBuffer() {return mBuffer; } in getLayerBuffer()
436 FencedBuffer mBuffer; variable
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetNameInfo/
DGetNameInfo.c26 char mBuffer[65536]; variable

12