/device/generic/opengl-transport/host/libs/virglrenderer/GLESv3_dec/ |
D | gles3.attrib | 5 len name (strlen(name) + 1) 8 len data size 12 len data size 16 len data imageSize 22 len data imageSize 28 len buffers (n * sizeof(GLuint)) 32 len framebuffers (n * sizeof(GLuint)) 36 len renderbuffers (n * sizeof(GLuint)) 40 len textures (n * sizeof(GLuint)) 47 len buffers (n * sizeof(GLuint)) [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/GLESv1_dec/ |
D | gles1.attrib | 6 len equation (4 * sizeof(float)) 24 len m (16 * sizeof(GLfloat)) 27 len m (16 * sizeof(GLfloat)) 30 len data size 35 len data size 40 len eqn (4 * sizeof(GLfixed)) 43 len pointer (sizeof(unsigned int)) 47 len data imageSize 51 len data imageSize 55 len buffers (n * sizeof(GLuint)) [all …]
|
/device/generic/vulkan-cereal/base/ |
D | Win32UnicodeString.cpp | 28 Win32UnicodeString::Win32UnicodeString(const char* str, size_t len) in Win32UnicodeString() argument 49 size_t len = str ? wcslen(str) : 0u; in Win32UnicodeString() local 50 resize(len); in Win32UnicodeString() 51 ::memcpy(mStr, str ? str : L"", len * sizeof(wchar_t)); in Win32UnicodeString() 72 size_t len = str ? wcslen(str) : 0u; in operator =() local 73 resize(len); in operator =() 74 ::memcpy(mStr, str ? str : L"", len * sizeof(wchar_t)); in operator =() 92 void Win32UnicodeString::reset(const char* str, size_t len) { in reset() argument 96 const int utf16Len = calcUtf16BufferLength(str, len); in reset() 99 convertFromUtf8(mStr, utf16Len, str, len); in reset() [all …]
|
D | Win32UnicodeString_unittest.cpp | 96 int len = Win32UnicodeString::convertToUtf8(out, sizeof(out), in TEST() local 98 EXPECT_EQ(strlen(kData[n].utf8) + 1U, (size_t)len); in TEST() 101 len = Win32UnicodeString::convertToUtf8(out, sizeof(out), in TEST() 104 EXPECT_EQ((int)strlen(kData[n].utf8), len); in TEST() 105 out[len] = 0; in TEST() 109 len = Win32UnicodeString::convertToUtf8(out, 1, in TEST() 111 EXPECT_EQ(-1, len); in TEST() 114 len = Win32UnicodeString::convertToUtf8(nullptr, 0, in TEST() 116 EXPECT_EQ(-1, len); in TEST() 118 len = Win32UnicodeString::convertToUtf8(nullptr, 0, in TEST() [all …]
|
D | msvc.cpp | 30 int len = strlen(t) + 1; in mkstemp() local 31 errno_t err = _mktemp_s(t, len); in mkstemp() 44 int len; in asprintf() local 53 len = _vscprintf(format, args) // _vscprintf doesn't count in asprintf() 56 if (len <= 0) { in asprintf() 57 return len; in asprintf() 60 *buf = (char*)malloc(len * sizeof(char)); in asprintf() 64 return len; in asprintf() 69 int len; in vasprintf() local 75 len = _vscprintf(format, args) // _vscprintf doesn't count in vasprintf() [all …]
|
/device/generic/vulkan-cereal/protocols/gles2/ |
D | gles2.attrib | 8 len name (strlen(name) + 1) 12 len data size 17 len data size 22 len data imageSize 29 len data imageSize 43 len buffers (n * sizeof(GLuint)) 49 len framebuffers (n * sizeof(GLuint)) 55 len renderbuffers (n * sizeof(GLuint)) 61 len textures (n * sizeof(GLuint)) 92 len buffers (n * sizeof(GLuint)) [all …]
|
/device/generic/vulkan-cereal/fake-android-guest/androidImpl/ |
D | String8.cpp | 44 static char* allocFromUTF8(const char* in, size_t len) in allocFromUTF8() argument 46 if (len > 0) { in allocFromUTF8() 47 if (len == SIZE_MAX) { in allocFromUTF8() 50 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8() 54 memcpy(str, in, len); in allocFromUTF8() 55 str[len] = 0; in allocFromUTF8() 62 static char* allocFromUTF16(const char16_t* in, size_t len) in allocFromUTF16() argument 64 if (len == 0) return getEmptyString(); in allocFromUTF16() 66 const ssize_t resultStrLen = utf16_to_utf8_length(in, len) + 1; in allocFromUTF16() 76 utf16_to_utf8(in, len, resultStr, resultStrLen); in allocFromUTF16() [all …]
|
D | String16.cpp | 88 String16::String16(const String16& o, size_t len, size_t begin) in String16() argument 91 setTo(o, len, begin); in String16() 94 String16::String16(const char16_t* o, size_t len) : mString(allocFromUTF16(o, len)) {} in String16() argument 103 String16::String16(const char* o, size_t len) in String16() argument 104 : mString(allocFromUTF8(o, len)) in String16() 121 status_t String16::setTo(const String16& other, size_t len, size_t begin) in setTo() argument 129 if ((begin+len) > N) len = N-begin; in setTo() 130 if (begin == 0 && len == N) { in setTo() 137 return setTo(other.string()+begin, len); in setTo() 143 status_t String16::setTo(const char16_t* other, size_t len) in setTo() argument [all …]
|
/device/generic/vulkan-cereal/protocols/gles1/ |
D | gles1.attrib | 8 len equation (4 * sizeof(float)) 12 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 17 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 22 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 27 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 32 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 37 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 41 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 45 len params (glUtilsParamSize(pname) * sizeof(GLfloat)) 49 len m (16 * sizeof(GLfloat)) [all …]
|
/device/generic/vulkan-cereal/protocols/renderControl/ |
D | renderControl.attrib | 10 len major sizeof(EGLint) 12 len minor sizeof(EGLint) 16 len buffer bufferSize 20 len buffer bufferSize 24 len numAttribs sizeof(uint32_t) 28 len buffer bufSize 32 len attribs attribs_size 35 len configs configs_size*sizeof(uint32_t) 39 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height) 43 len pixels pixels_size [all …]
|
/device/linaro/dragonboard/qcom/rmtfs/ |
D | qmi_tlv.c | 26 uint16_t len; member 51 struct qmi_tlv *qmi_tlv_decode(void *buf, size_t len, unsigned *txn, unsigned msg_type) in qmi_tlv_decode() argument 63 tlv->size = len; in qmi_tlv_decode() 71 void *qmi_tlv_encode(struct qmi_tlv *tlv, size_t *len) in qmi_tlv_encode() argument 82 *len = tlv->size; in qmi_tlv_encode() 107 offset += sizeof(struct qmi_tlv_item) + item->len; in qmi_tlv_get_item() 112 void *qmi_tlv_get(struct qmi_tlv *tlv, unsigned id, size_t *len) in qmi_tlv_get() argument 120 *len = item->len; in qmi_tlv_get() 124 void *qmi_tlv_get_array(struct qmi_tlv *tlv, unsigned id, unsigned len_size, size_t *len, size_t *s… in qmi_tlv_get_array() argument 147 *len = count; in qmi_tlv_get_array() [all …]
|
/device/generic/vulkan-cereal/base/msvc-posix-compat/src/ |
D | msvc-posix.c | 27 int len = strlen(t) + 1; in mkstemp() local 28 errno_t err = _mktemp_s(t, len); in mkstemp() 41 int len; in asprintf() local 50 len = _vscprintf(format, args) // _vscprintf doesn't count in asprintf() 53 if (len <= 0) { in asprintf() 54 return len; in asprintf() 57 *buf = (char*)malloc(len * sizeof(char)); in asprintf() 61 return len; in asprintf() 66 int len; in vasprintf() local 72 len = _vscprintf(format, args) // _vscprintf doesn't count in vasprintf() [all …]
|
/device/generic/goldfish-opengl/host/include/libOpenglRender/ |
D | IOStream.h | 48 virtual size_t idealAllocSize(size_t len) { in idealAllocSize() argument 49 return m_bufsize < len ? len : m_bufsize; in idealAllocSize() 54 virtual const unsigned char *readFully( void *buf, size_t len) = 0; 55 virtual const unsigned char *commitBufferAndReadFully(size_t size, void *buf, size_t len) = 0; 57 virtual int writeFully(const void* buf, size_t len) = 0; 58 virtual int writeFullyAsync(const void* buf, size_t len) { in writeFullyAsync() argument 59 return writeFully(buf, len); in writeFullyAsync() 67 virtual unsigned char *alloc(size_t len) { in alloc() argument 69 if (m_iostreamBuf && len > m_free) { in alloc() 76 if (!m_iostreamBuf || len > m_bufsize) { in alloc() [all …]
|
/device/linaro/dragonboard/qcom/tqftpserv/ |
D | tqftpserv.c | 78 ssize_t len; in tftp_send_data() local 91 len = pread(client->fd, p, client->blksize, offset); in tftp_send_data() 92 if (len <= 0) { in tftp_send_data() 93 if (len < 0) in tftp_send_data() 96 return len; in tftp_send_data() 99 p += len; in tftp_send_data() 102 len = send(client->sock, buf, p - buf, 0); in tftp_send_data() 106 return len; in tftp_send_data() 180 size_t len; in tftp_send_error() local 184 len = 4 + strlen(msg) + 1; in tftp_send_error() [all …]
|
/device/generic/vulkan-cereal/third-party/angle/src/common/third_party/smhasher/src/ |
D | PMurHash.cpp | 164 #define DOBYTES(cnt, h1, c, n, ptr, len) \ argument 172 len--; \ 187 void PMurHash32_Process(uint32_t *ph1, uint32_t *pcarry, const void *key, int len) in PMurHash32_Process() argument 203 if (i && i <= len) in PMurHash32_Process() 205 DOBYTES(i, h1, c, n, ptr, len); in PMurHash32_Process() 209 end = ptr + len / 4 * 4; in PMurHash32_Process() 221 if (i && i <= len) in PMurHash32_Process() 223 DOBYTES(i, h1, c, n, ptr, len); in PMurHash32_Process() 227 end = ptr + len / 4 * 4; in PMurHash32_Process() 267 len -= len / 4 * 4; in PMurHash32_Process() [all …]
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | VirtioGpuStream.cpp | 260 int VirtioGpuStream::writeFully(const void *buf, size_t len) in writeFully() argument 266 if (len > 0) { in writeFully() 270 __func__, len); in writeFully() 281 len, m_cmdPos, m_flushPos); in writeFully() 285 if (m_flushPos + len > cmd->cmdSize) { in writeFully() 288 __func__, len, m_cmdPos, m_flushPos, cmd->cmdSize); in writeFully() 292 if (len > VIRGL_MAX_CMDBUF_SIZE) { in writeFully() 294 __func__, len); in writeFully() 298 memcpy(&m_buf[m_flushPos], buf, len); in writeFully() 299 commitBuffer(len); in writeFully() [all …]
|
D | VirtioGpuPipeStream.cpp | 215 int VirtioGpuPipeStream::writeFully(const void *buf, size_t len) in writeFully() argument 220 if (len>0) { in writeFully() 224 " lethal error, exiting", len); in writeFully() 230 size_t res = len; in writeFully() 234 ssize_t stat = transferToHost((const char *)(buf) + (len - res), res); in writeFully() 256 const unsigned char *VirtioGpuPipeStream::readFully(void *buf, size_t len) in readFully() argument 262 if (len > 0) { in readFully() 266 " error, exiting.", len); in readFully() 271 size_t res = len; in readFully() 273 ssize_t stat = transferFromHost((char *)(buf) + len - res, res); in readFully() [all …]
|
/device/generic/vulkan-cereal/third-party/angle/src/common/third_party/xxhash/ |
D | xxhash.c | 291 XXH32_finalize(U32 h32, const void* ptr, size_t len, in XXH32_finalize() argument 306 switch(len&15) /* or switch(bEnd - p) */ in XXH32_finalize() 352 XXH32_endian_align(const void* input, size_t len, U32 seed, in XXH32_endian_align() argument 356 const BYTE* bEnd = p + len; in XXH32_endian_align() 361 len=0; in XXH32_endian_align() 366 if (len>=16) { in XXH32_endian_align() 386 h32 += (U32)len; in XXH32_endian_align() 388 return XXH32_finalize(h32, p, len&15, endian, align); in XXH32_endian_align() 392 XXH_PUBLIC_API unsigned int XXH32 (const void* input, size_t len, unsigned int seed) in XXH32() argument 398 XXH32_update(&state, input, len); in XXH32() [all …]
|
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.cpp | 68 …hub_app_name_t &appId, uint32_t evtId, uint16_t endpoint, const void *data, size_t len, int status) in dumpBuffer() argument 72 os << pfx << ": [ID=" << appId << "; SZ=" << std::dec << len; in dumpBuffer() 78 for (size_t i = 0; i < len; ++i) { in dumpBuffer() 87 static int rwrite(int fd, const void *buf, int len) in rwrite() argument 92 ret = write(fd, buf, len); in rwrite() 95 if (ret != len) { in rwrite() 102 static int rread(int fd, void *buf, int len) in rread() argument 107 ret = read(fd, buf, len); in rread() 165 int NanoHub::doSendToDevice(const hub_app_name_t name, const void *data, uint32_t len, uint32_t mes… in doSendToDevice() argument 167 if (len > MAX_RX_PACKET) { in doSendToDevice() [all …]
|
D | system_comms.cpp | 64 uint8_t type, len; in readNanohubMemInfo() local 85 len = buf.readU8(); in readNanohubMemInfo() 86 if (buf.getRoom() >= len) { in readNanohubMemInfo() 89 if (len == sizeof(ramFree)) in readNanohubMemInfo() 92 buf.readRaw(len); in readNanohubMemInfo() 95 if (len == sizeof(mi.ramSz)) in readNanohubMemInfo() 98 buf.readRaw(len); in readNanohubMemInfo() 101 if (len == sizeof(mi.ramSz)) in readNanohubMemInfo() 104 buf.readRaw(len); in readNanohubMemInfo() 107 if (len == sizeof(eeFree)) in readNanohubMemInfo() [all …]
|
/device/generic/goldfish-opengl/system/renderControl_enc/ |
D | renderControl.attrib | 7 len major sizeof(EGLint) 9 len minor sizeof(EGLint) 13 len buffer bufferSize 17 len buffer bufferSize 21 len numAttribs sizeof(uint32_t) 25 len buffer bufSize 29 len attribs attribs_size 32 len configs configs_size*sizeof(uint32_t) 36 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height) 40 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height) [all …]
|
/device/linaro/hikey/power/ |
D | power_hikey.c | 109 int len; in sysfs_write() local 118 len = write(fd, s, strlen(s)); in sysfs_write() 119 if (len < 0) { in sysfs_write() 125 return len; in sysfs_write() 130 int len; in sysfs_read() local 138 len = read(fd, s, slen); in sysfs_read() 139 if (len < 0) { in sysfs_read() 144 return len; in sysfs_read() 191 int len; in interactive_boostpulse() local 206 len = write(hikey->boostpulse_fd, "1", 1); in interactive_boostpulse() [all …]
|
/device/google/cuttlefish/host/libs/websocket/ |
D | websocket_handler.cpp | 26 void AppendData(const char* data, size_t len, std::string& buffer) { in AppendData() argument 28 buffer.reserve(buffer.size() + len); in AppendData() 29 buffer.insert(buffer.end(), ptr, ptr + len); in AppendData() 35 void WebSocketHandler::EnqueueMessage(const uint8_t* data, size_t len, in EnqueueMessage() argument 37 std::vector<uint8_t> buffer(LWS_PRE + len, 0); in EnqueueMessage() 38 std::copy(data, data + len, buffer.begin() + LWS_PRE); in EnqueueMessage() 46 auto len = ws_buffer.data.size() - LWS_PRE; in WriteWsBuffer() local 51 auto res = lws_write(wsi_, &ws_buffer.data[LWS_PRE], len, in WriteWsBuffer() 88 void DynHandler::AppendDataIn(void* data, size_t len) { in AppendDataIn() argument 89 AppendData(reinterpret_cast<char*>(data), len, in_buffer_); in AppendDataIn() [all …]
|
/device/generic/vulkan-cereal/third-party/lz4/ |
D | xxhash.c | 264 FORCE_INLINE U32 XXH32_endian_align(const void* input, size_t len, U32 seed, XXH_endianess endian, … in XXH32_endian_align() argument 267 const BYTE* bEnd = p + len; in XXH32_endian_align() 273 len=0; in XXH32_endian_align() 278 if (len>=16) { in XXH32_endian_align() 297 h32 += (U32) len; in XXH32_endian_align() 321 XXH_PUBLIC_API unsigned int XXH32 (const void* input, size_t len, unsigned int seed) in XXH32() argument 327 XXH32_update(&state, input, len); in XXH32() 335 return XXH32_endian_align(input, len, seed, XXH_littleEndian, XXH_aligned); in XXH32() 337 return XXH32_endian_align(input, len, seed, XXH_bigEndian, XXH_aligned); in XXH32() 341 return XXH32_endian_align(input, len, seed, XXH_littleEndian, XXH_unaligned); in XXH32() [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/renderControl_dec/ |
D | renderControl.attrib | 7 len major sizeof(EGLint) 9 len minor sizeof(EGLint) 14 len buffer bufferSize 19 len buffer bufferSize 23 len numAttribs sizeof(uint32_t) 27 len buffer bufSize 32 len attribs attribs_size 35 len configs configs_size*sizeof(uint32_t) 83 len attribs num_attribs 85 len glsync_out sizeof(uint64_t) [all …]
|