Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/device/generic/opengl-transport/host/libs/virglrenderer/GLESv3_dec/
Dgles3.attrib5 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/
Dgles1.attrib6 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/protocols/magma/
Dmagma.attrib10 len device_out sizeof(magma_device_t)
14 len result_buffer_out sizeof(magma_handle_t)
16 len result_out sizeof(uint64_t)
20 len connection_out sizeof(magma_connection_t)
24 len context_id_out sizeof(uint32_t)
28 len size_out sizeof(uint64_t)
30 len buffer_out sizeof(magma_buffer_t)
32 len id_out sizeof(magma_buffer_id_t)
36 len size_out sizeof(uint64_t)
38 len buffer_out sizeof(magma_buffer_t)
[all …]
/device/generic/vulkan-cereal/protocols/gles2/
Dgles2.attrib8 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/protocols/gles1/
Dgles1.attrib8 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/fake-android-guest/androidImpl/
DString8.cpp44 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 …]
DString16.cpp88 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/renderControl/
DrenderControl.attrib10 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/
Dqmi_tlv.c26 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/linaro/dragonboard/qcom/tqftpserv/
Dtqftpserv.c78 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/goldfish-opengl/host/include/libOpenglRender/
DIOStream.h48 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/google/contexthub/contexthubhal/
Dnanohubhal.cpp68 …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 …]
Dsystem_comms.cpp64 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/OpenglSystemCommon/
DVirtioGpuPipeStream.cpp215 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/scripts/print_gfx_logs/
Dprint_gfx_logs_test.py35 return Command(opcode=opcode, original_size=len(data) + 8, data=bytes(data))
44 assert(len(command.data) + 8 == command.original_size)
61 header.data_size = len(data)
75 with mmap.mmap(-1, len(dump)) as mm:
79 self.assertEqual(len(streams), 1)
85 self.assertEqual(len(streams[0].commands), 1)
88 self.assertEqual(len(streams[0].commands[0].data), len(command.data))
100 with mmap.mmap(-1, len(dump)) as mm:
104 self.assertEqual(len(streams), 1)
106 self.assertEqual(len(streams[0].commands), len(commands))
[all …]
/device/generic/goldfish-opengl/system/renderControl_enc/
DrenderControl.attrib7 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/
Dpower_hikey.c109 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/
Dwebsocket_handler.cpp26 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/opengl-transport/host/libs/virglrenderer/renderControl_dec/
DrenderControl.attrib7 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 …]
/device/google/atv/audio_proxy/service/
DRingBufferUtil.cpp24 size_t len = 0; member
50 cp2 = {cp1.dst + cp1.len, srcBuf2, dstLen1 - srcLen1}; in copyRingBuffer()
51 cp3 = {dstBuf2, cp2.src + cp2.len, srcLen1 + srcLen2 - dstLen1}; in copyRingBuffer()
54 cp2 = {cp1.dst + cp1.len, srcBuf2, srcLen2}; in copyRingBuffer()
60 cp2 = {dstBuf2, cp1.src + cp1.len, srcLen1 - dstLen1}; in copyRingBuffer()
61 cp3 = {cp2.dst + cp2.len, srcBuf2, srcLen2}; in copyRingBuffer()
64 if (cp1.len > 0) { in copyRingBuffer()
67 std::memcpy(cp1.dst, cp1.src, cp1.len); in copyRingBuffer()
70 if (cp2.len > 0) { in copyRingBuffer()
73 std::memcpy(cp2.dst, cp2.src, cp2.len); in copyRingBuffer()
[all …]
/device/generic/goldfish-opengl/android-emu/aemu/base/files/
DStreamSerializing.h35 void saveBufferRaw(Stream* stream, char* buffer, uint32_t len);
46 auto len = stream->getBe32(); in loadBuffer() local
47 buffer->resize(len); in loadBuffer()
48 auto ret = static_cast<std::size_t>(stream->read(buffer->data(), len * sizeof(T))); in loadBuffer()
49 return ret == len * sizeof(T); in loadBuffer()
60 auto len = stream->getBe32(); in loadBuffer() local
62 buffer->resize_noinit(len); in loadBuffer()
63 int ret = (int)stream->read(buffer->data(), len * sizeof(T)); in loadBuffer()
64 return ret == len * sizeof(T); in loadBuffer()
83 auto len = stream->getBe32(); in loadBufferPtr() local
[all …]
/device/generic/goldfish-opengl/system/vulkan_enc/
DVulkanStreamGuest.cpp40 size_t len = getBe32(); in loadStringInPlace() local
42 alloc((void**)forOutput, len + 1); in loadStringInPlace()
44 memset(*forOutput, 0x0, len + 1); in loadStringInPlace()
46 if (len > 0) read(*forOutput, len); in loadStringInPlace()
67 uint32_t len; in loadStringInPlaceWithStreamPtr() local
68 memcpy(&len, *streamPtr, sizeof(uint32_t)); in loadStringInPlaceWithStreamPtr()
70 android::base::Stream::fromBe32((uint8_t*)&len); in loadStringInPlaceWithStreamPtr()
72 alloc((void**)forOutput, len + 1); in loadStringInPlaceWithStreamPtr()
74 memset(*forOutput, 0x0, len + 1); in loadStringInPlaceWithStreamPtr()
76 if (len > 0) { in loadStringInPlaceWithStreamPtr()
[all …]
/device/generic/vulkan-cereal/gl-host-common/opengl/
DOpenglEsPipe.cpp319 int len = 0; in onGuestRecv() local
337 if (len > 0) { in onGuestRecv()
338 DD("%s: returning %d bytes", __func__, (int)len); in onGuestRecv()
339 return len; in onGuestRecv()
358 if (len > 0) { in onGuestRecv()
359 DD("%s: returning %d bytes", __func__, (int)len); in onGuestRecv()
360 return len; in onGuestRecv()
379 if (len > 0) { in onGuestRecv()
380 DD("%s: returning %d bytes", __func__, (int)len); in onGuestRecv()
381 return len; in onGuestRecv()
[all …]
/device/google/contexthub/firmware/os/core/
DnanohubCommand.c91 uint8_t len; member
178 static AppSecErr writeCbk(const void *data, uint32_t len) in writeCbk() argument
182 if (osWriteShared((uint8_t*)(mDownloadState->start) + mDownloadState->dstOffset, data, len)) { in writeCbk()
184 mDownloadState->dstOffset += len; in writeCbk()
548 const uint8_t *data = mDownloadState->data + mDownloadState->len - mDownloadState->lenLeft; in firmwareWrite()
549 uint32_t len = mDownloadState->lenLeft, lenLeft, lenRem = 0; in firmwareWrite() local
551 if (len > MAX_APP_SEC_RX_DATA_LEN) { in firmwareWrite()
552 lenRem = len - MAX_APP_SEC_RX_DATA_LEN; in firmwareWrite()
553 len = MAX_APP_SEC_RX_DATA_LEN; in firmwareWrite()
556 mAppSecStatus = appSecRxData(mDownloadState->appSecState, data, len, &lenLeft); in firmwareWrite()
[all …]
/device/generic/vulkan-cereal/stream-servers/vulkan/
DVulkanStream.cpp67 size_t len = getBe32(); in loadStringInPlace() local
69 alloc((void**)forOutput, len + 1); in loadStringInPlace()
71 memset(*forOutput, 0x0, len + 1); in loadStringInPlace()
73 if (len > 0) read(*forOutput, len); in loadStringInPlace()
94 uint32_t len; in loadStringInPlaceWithStreamPtr() local
95 memcpy(&len, *streamPtr, sizeof(uint32_t)); in loadStringInPlaceWithStreamPtr()
97 android::base::Stream::fromBe32((uint8_t*)&len); in loadStringInPlaceWithStreamPtr()
99 if (len == UINT32_MAX) { in loadStringInPlaceWithStreamPtr()
104 alloc((void**)forOutput, len + 1); in loadStringInPlaceWithStreamPtr()
106 if (len > 0) { in loadStringInPlaceWithStreamPtr()
[all …]

12345678910>>...15