| /external/tpm2/ |
| TcpServer.c | 15 BOOL ReadBytes(SOCKET s, char* buffer, int NumBytes); 18 BOOL WriteBytes(SOCKET s, char* buffer, int NumBytes); 316 // This function reads the indicated number of bytes (NumBytes) into buffer from the indicated socket. 322 int NumBytes 327 while(numGot<NumBytes) 329 res = recv(s, buffer+numGot, NumBytes-numGot, 0); 347 // This function will send the indicated number of bytes (NumBytes) to the indicated socket 353 int NumBytes 358 while(numSent<NumBytes) 360 res = send(s, buffer+numSent, NumBytes-numSent, 0) [all...] |
| /device/linaro/bootloader/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/ |
| Fvb.c | 415 to the boundary but not beyond. The output parameter NumBytes
428 @param NumBytes Pointer to a UINTN. At entry, *NumBytes
430 exit, *NumBytes contains the total number of
439 LBA boundary. On output, NumBytes
457 IN OUT UINTN *NumBytes,
471 if ((Offset + *NumBytes) > FvbDevice->BlockSize) {
472 *NumBytes = FvbDevice->BlockSize - Offset;
480 if (*NumBytes > 0) {
481 CopyMem (FvbDataPtr, Buffer, *NumBytes);
[all...] |
| /device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVolBlock/ |
| FwVolBlock.c | 186 @param NumBytes Pointer to a UINT32. At entry, *NumBytes
188 *NumBytes contains the total number of bytes
206 IN OUT UINTN *NumBytes,
231 *NumBytes = 0;
239 *NumBytes = 0;
243 NumOfBytesRead = *NumBytes;
260 if (NumOfBytesRead == *NumBytes) {
264 *NumBytes = NumOfBytesRead;
276 @param NumBytes Pointer to a UINT32. At entry, *NumBytes [all...] |
| /frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
| FwdLockConv.h | 40 size_t numBytes; 73 * @param[in] numBytes The number of bytes to read. 78 typedef ssize_t FwdLockConv_ReadFunc_t(int fileDesc, void *pBuffer, size_t numBytes); 85 * @param[in] numBytes The number of bytes to write. 90 typedef ssize_t FwdLockConv_WriteFunc_t(int fileDesc, const void *pBuffer, size_t numBytes); 178 * @param[in] numBytes The number of bytes to convert. 194 size_t numBytes,
|
| /frameworks/base/cmds/statsd/src/config/ |
| ConfigManager.cpp | 77 const int numBytes = config.ByteSize(); 78 vector<uint8_t> buffer(numBytes); 79 config.SerializeToArray(&buffer[0], numBytes); 99 update_saved_configs_locked(key, buffer, numBytes); 104 update_saved_configs_locked(key, buffer, numBytes); 271 const int numBytes) { 279 StorageManager::writeFile(file_name.c_str(), &buffer[0], numBytes);
|
| /external/llvm/lib/Target/ARM/ |
| Thumb2InstrInfo.cpp | 224 unsigned BaseReg, int NumBytes, 228 if (NumBytes == 0 && DestReg != BaseReg) { 235 bool isSub = NumBytes < 0; 236 if (isSub) NumBytes = -NumBytes; 241 NumBytes >= 4096 && 242 ARM_AM::getT2SOImmVal(NumBytes) == -1) { 244 if (NumBytes < 65536) { 247 .addImm(NumBytes) 250 } else if ((NumBytes & 0xffff) == 0) [all...] |
| /device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/SpiFvbServices/ |
| FwBlockService.c | 433 IN OUT UINTN *NumBytes,
447 NumBytes - Pointer that on input contains the total size of
460 NumBytes contains the total number of bytes returned
465 EFI_INVALID_PARAMETER - Instance not found, or NumBytes, Buffer are NULL
477 if ((NumBytes == NULL) || (Buffer == NULL)) {
481 if (*NumBytes == 0) {
498 // Perform boundary checks and adjust NumBytes
504 if (LbaLength < (*NumBytes + BlockOffset)) {
505 *NumBytes = (UINT32) (LbaLength - BlockOffset);
509 MmioReadBuffer8 (LbaAddress + BlockOffset, (UINTN) *NumBytes, Buffer); [all...] |
| /external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| RuntimeDyldMachOAArch64.h | 38 unsigned NumBytes = 1 << RE.Size; 45 assert((NumBytes == 4 || NumBytes == 8) && "Invalid relocation size."); 52 assert(NumBytes == 4 && "Invalid relocation size."); 63 if (NumBytes == 4) 133 void encodeAddend(uint8_t *LocalAddress, unsigned NumBytes, 140 assert((NumBytes == 4 || NumBytes == 8) && "Invalid relocation size."); 147 assert(NumBytes == 4 && "Invalid relocation size."); 158 if (NumBytes == 4 [all...] |
| /external/libmojo/mojo/public/java/system/src/org/chromium/mojo/system/ |
| DataPipe.java | 242 * will be at least as large as |numBytes|, which must also be a multiple of the element 243 * size (if |allOrNone| is not set, |numBytes| is ignored and the caller must check the 258 public ByteBuffer beginWriteData(int numBytes, WriteFlags flags); 286 * Discards data on the data pie consumer. This method discards up to |numBytes| (which 288 * discarded. if |flags| has |allOrNone|, it will either discard exactly |numBytes| bytes of 291 public int discardData(int numBytes, ReadFlags flags); 309 * set, then the limit will be at least as large as |numBytes|, which must also be a 310 * multiple of the element size (if |allOrNone| is not set, |numBytes| is ignored). |flags| 320 public ByteBuffer beginReadData(int numBytes, ReadFlags flags);
|
| SharedBufferHandle.java | 146 * Map the part (at offset |offset| of length |numBytes|) of the buffer given by this handle 147 * into memory. |offset + numBytes| must be less than or equal to the size of the buffer. On 153 public ByteBuffer map(long offset, long numBytes, MapFlags flags);
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
| StreamRecorder.java | 62 int numBytes = 0; 64 numBytes = AudioRecord.getMinBufferSize(sampleRate, AudioFormat.CHANNEL_IN_STEREO, 66 numBytes *= 2; 68 numBytes = AudioRecord.getMinBufferSize(sampleRate, 72 return numBytes;
|
| /device/google/contexthub/lib/nanohub/ |
| sha2.c | 121 void sha2processBytes(struct Sha2state *state, const void *bytes, uint32_t numBytes) 125 state->msgLen += numBytes; 126 while (numBytes) { 130 bytesToCopy = numBytes; 135 numBytes -= bytesToCopy;
|
| /external/deqp/execserver/ |
| xsWin32TestProcess.hpp | 121 int read (deUint8* dst, int numBytes) { return m_logBuffer.tryRead(numBytes, dst); } 192 virtual int readTestLog (deUint8* dst, int numBytes); 193 virtual int readInfoLog (deUint8* dst, int numBytes) { return m_infoBuffer.tryRead(numBytes, dst); }
|
| xsPosixTestProcess.hpp | 89 virtual int readTestLog (deUint8* dst, int numBytes); 90 virtual int readInfoLog (deUint8* dst, int numBytes) { return m_infoBuffer.tryRead(numBytes, dst); }
|
| /external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/ |
| XmlMessageWrapper.java | 243 * @param numBytes the number of bytes desired 247 private static byte[] readBytes(InputStream stream, int numBytes) 249 byte buffer[] = new byte[numBytes]; 252 while (bytesRead < numBytes) { 253 int inc = stream.read(buffer, bytesRead, numBytes - bytesRead);
|
| /external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
| Thumb2InstrInfo.cpp | 176 unsigned DestReg, unsigned BaseReg, int NumBytes, 179 bool isSub = NumBytes < 0; 180 if (isSub) NumBytes = -NumBytes; 185 NumBytes >= 4096 && 186 ARM_AM::getT2SOImmVal(NumBytes) == -1) { 188 if (NumBytes < 65536) { 191 .addImm(NumBytes) 194 } else if ((NumBytes & 0xffff) == 0) { 198 .addImm(NumBytes >> 16 [all...] |
| Thumb1RegisterInfo.cpp | 93 int NumBytes, bool CanChangeCC, 105 if (NumBytes < 0 && !isHigh && CanChangeCC) { 107 NumBytes = -NumBytes; 115 if (NumBytes <= 255 && NumBytes >= 0) 117 .addImm(NumBytes).setMIFlags(MIFlags); 118 else if (NumBytes < 0 && NumBytes >= -255) { 120 .addImm(NumBytes).setMIFlags(MIFlags) [all...] |
| /device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/FlashFvbDxe/ |
| FlashFvbDxe.c | 459 beyond. The output parameter NumBytes must be set to correctly
469 @param NumBytes Pointer to a UINTN.
470 At entry, *NumBytes contains the total size of the buffer.
471 At exit, *NumBytes contains the total number of bytes read.
480 On output, NumBytes contains the total number of bytes
494 IN OUT UINTN* NumBytes,
525 (*NumBytes > BlockSize) ||
526 ((Offset + *NumBytes) > BlockSize))
528 DEBUG ((EFI_D_ERROR, "[%a]:[%dL] ERROR - EFI_BAD_BUFFER_SIZE: (Offset=0x%x + NumBytes=0x%x) > BlockSize=0x%x\n", __FUNCTION__, __LINE__, Offset, *NumBytes, BlockSize )); [all...] |
| /device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Application/FirmwareUpdate/ |
| FirmwareUpdate.h | 106 IN OUT UINT32 *NumBytes,
115 IN OUT UINT32 *NumBytes,
124 IN UINTN *NumBytes
|
| /external/deqp/framework/common/ |
| tcuResource.cpp | 61 void FileResource::read (deUint8* dst, int numBytes) 63 int numRead = (int)fread(dst, 1, numBytes, m_file); 64 TCU_CHECK(numRead == numBytes);
|
| /external/deqp/framework/delibs/depool/ |
| deMemPool.h | 72 void* deMemPool_alloc (deMemPool* pool, size_t numBytes); 73 void* deMemPool_alignedAlloc (deMemPool* pool, size_t numBytes, deUint32 alignBytes); 74 void* deMemPool_memDup (deMemPool* pool, const void* ptr, size_t numBytes);
|
| /external/llvm/lib/CodeGen/AsmPrinter/ |
| DwarfStringPool.cpp | 28 Entry.Offset = NumBytes; 31 NumBytes += Str.size() + 1; 32 assert(NumBytes > Entry.Offset && "Unexpected overflow");
|
| /external/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| WebAssemblyAsmBackend.cpp | 79 unsigned NumBytes = (Info.TargetSize + 7) / 8; 87 assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!"); 91 for (unsigned i = 0; i != NumBytes; ++i)
|
| /frameworks/av/media/libstagefright/ |
| HTTPBase.cpp | 45 size_t numBytes, int64_t delayUs) { 50 entry.mNumBytes = numBytes; 52 mTotalTransferBytes += numBytes;
|
| /external/clang/lib/Rewrite/ |
| RewriteRope.cpp | 116 /// erase - Remove NumBytes from this node at the specified offset. We are 118 void erase(unsigned Offset, unsigned NumBytes); 218 /// erase - Remove NumBytes from this node at the specified offset. We are 220 void erase(unsigned Offset, unsigned NumBytes); 334 /// erase - Remove NumBytes from this node at the specified offset. We are 336 void RopePieceBTreeLeaf::erase(unsigned Offset, unsigned NumBytes) { 347 // Figure out how many pieces completely cover 'NumBytes'. We want to remove 349 for (; Offset+NumBytes > PieceOffs+getPiece(i).size(); ++i) 353 if (Offset+NumBytes == PieceOffs+getPiece(i).size()) { 370 NumBytes -= CoverBytes [all...] |