Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 38) sorted by relevance

12

/device/google/contexthub/firmware/os/platform/stm32/
DeeData.c37 uint32_t sz = info / (EE_DATA_NAME_MAX + 1); in eeFind() local
41 p += (sz + 3) / 4; in eeFind()
45 *szP = sz; in eeFind()
70 uint32_t sz = 0; in eeDataGetEx() local
77 data = eeFind(name, offsetP, first, &sz); in eeDataGetEx()
82 if (sz > *szP) in eeDataGetEx()
83 sz = *szP; in eeDataGetEx()
84 *szP = sz; in eeDataGetEx()
85 memcpy(buf, data, sz); in eeDataGetEx()
88 *szP = sz; in eeDataGetEx()
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
Dgoldfish_dma.cpp56 int goldfish_dma_create_region(uint32_t sz, struct goldfish_dma_context* res) { in goldfish_dma_create_region() argument
65 info.size = sz; in goldfish_dma_create_region()
76 res->size = sz; in goldfish_dma_create_region()
78 __FUNCTION__, sz, res, res->fd); in goldfish_dma_create_region()
111 uint32_t sz) { in goldfish_dma_write() argument
113 __FUNCTION__, cxt, cxt->mapped_addr, to_write, sz); in goldfish_dma_write()
114 memcpy(reinterpret_cast<void *>(cxt->mapped_addr), to_write, sz); in goldfish_dma_write()
Dgoldfish_dma_host.cpp16 int goldfish_dma_create_region(uint32_t sz, struct goldfish_dma_context* res) { in goldfish_dma_create_region() argument
30 uint32_t sz) { in goldfish_dma_write() argument
Dgoldfish_dma.h27 int goldfish_dma_create_region(uint32_t sz, struct goldfish_dma_context* res);
34 uint32_t sz);
/device/google/contexthub/firmware/lib/libc/
Dnew.cpp25 void* operator new(size_t sz) in operator new() argument
27 return eOsHeapAlloc(sz); in operator new()
30 void* operator new[](size_t sz) in operator new[]() argument
32 return eOsHeapAlloc(sz); in operator new[]()
/device/google/contexthub/firmware/os/core/
Dheap.c115 void* heapAlloc(uint32_t sz) in heapAlloc() argument
126 sz = (sz + 3) &~ 3; in heapAlloc()
130 if (!node->used && node->size >= sz && (!best || best->size > node->size)) { in heapAlloc()
132 if (best->size == sz) in heapAlloc()
142 if (best->size - sz > sizeof(struct HeapNode)) { //there is a point to split up the chunk in heapAlloc()
144 node = (struct HeapNode*)(best->data + sz); in heapAlloc()
148 node->size = best->size - sz - sizeof(struct HeapNode); in heapAlloc()
156 best->size = sz; in heapAlloc()
DsimpleQ.c51 …uint32_t i, sz = sizeof(struct SimpleQueue) + (sizeof(struct SimpleQueueEntry) + entrySz) * numEnt… in simpleQueueAlloc() local
57 sq = heapAlloc(sz); in simpleQueueAlloc()
61 memset(sq, 0, sz); in simpleQueueAlloc()
/device/generic/goldfish/audio/
Ddevice_port_source.cpp157 const size_t sz = doRead(readBuf.data(), readBuf.size()); in producerThread() local
158 if (sz > 0) { in producerThread()
159 LOG_ALWAYS_FATAL_IF(mRingBuffer.produce(readBuf.data(), sz) < sz); in producerThread()
162 const size_t sz = doRead(produceChunk.data, readBuf.size()); in producerThread() local
163 if (sz > 0) { in producerThread()
164 LOG_ALWAYS_FATAL_IF(mRingBuffer.produce(readBuf.size()) < sz); in producerThread()
170 size_t doRead(void *dst, size_t sz) { in doRead()
171 const int res = ::pcm_read(mPcm.get(), dst, sz); in doRead()
178 return sz; in doRead()
306 const size_t sz = sampleRateHz / 20; in BusySignalGenerator() local
[all …]
Dstream_in.cpp166 size_t operator()(const void *dst, size_t sz) override { in doRead()
167 if (dataMQ.write(static_cast<const uint8_t *>(dst), sz)) { in doRead()
168 totalWritten += sz; in doRead()
169 return sz; in doRead()
Dstream_out.cpp172 size_t operator()(void *dst, size_t sz) override { in doWrite()
173 if (dataMQ.read(static_cast<uint8_t *>(dst), sz)) { in doWrite()
174 totalRead += sz; in doWrite()
175 return sz; in doWrite()
/device/linaro/dragonboard/qcom/qrtr/
Dqrtr.py73 def recv(self, sz=65536): argument
74 buf = ctypes.create_string_buffer(sz)
75 n = _qrtr.qrtr_recv(self.sock, c_char_p(ctypes.addressof(buf)), sz)
80 def recvfrom(self, sz=65536): argument
83 buf = ctypes.create_string_buffer(sz)
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/
Darch_hifi330.h115 #define ENTRY(sz) entry sp, sz
117 #define RET(sz) retw
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp197 sz(INITIAL_DMA_REGION_SIZE), in gralloc_dmaregion_t()
204 host_memory_allocator.hostMalloc(&address_space_block, sz); in gralloc_dmaregion_t()
206 goldfish_dma_create_region(sz, &goldfish_dma); in gralloc_dmaregion_t()
213 uint32_t sz; member
257 grdma->sz = new_sz; in resize_gralloc_dmaregion_locked()
272 static bool put_gralloc_region_dma_locked(gralloc_dmaregion_t* grdma, uint32_t sz) { in put_gralloc_region_dma_locked() argument
275 if (sz > MAX_DMA_SIZE && grdma->bigbufCount) { in put_gralloc_region_dma_locked()
288 static bool put_gralloc_region(ExtendedRCEncoderContext *rcEnc, uint32_t sz) { in put_gralloc_region() argument
294 shouldDelete = put_gralloc_region_direct_mem_locked(grdma, sz); in put_gralloc_region()
296 shouldDelete = put_gralloc_region_dma_locked(grdma, sz); in put_gralloc_region()
[all …]
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c133 int32_t sz = encr.dataLen - (i * sizeof(uint32_t)); in handleEncrypt() local
134 sz = sz > AES_BLOCK_SIZE ? AES_BLOCK_SIZE : sz; in handleEncrypt()
135 if (sz > 0) { in handleEncrypt()
136 sha2processBytes(&shaState, data + i, sz); in handleEncrypt()
/device/generic/goldfish/camera/
DEmulatedFakeRotatingCameraDevice.cpp208 float sz = fx * upY - fy * upX; in gluLookAt() local
209 float slf = 1.0f / sqrt(sx * sx + sy * sy + sz * sz); in gluLookAt()
212 sz *= slf; in gluLookAt()
215 float ux = sy * fz - sz * fy; in gluLookAt()
216 float uy = sz * fx - sx * fz; in gluLookAt()
234 m[8] = sz; in gluLookAt()
/device/google/cuttlefish/tools/play_audio/
Dplay_audio.cpp73 auto sz = audio.size() * sizeof audio[0]; in PlayDecodedAudio() local
74 auto ret = audio_device->QueueAudio(audio.data(), sz); in PlayDecodedAudio()
/device/linaro/hikey/hifi/xaf/host-apf/playback/
Dxa_playback.c60 uint32_t sz;
128 if (chunk_header.sz > sizeof(chunk_fmt))
129 fseek(file, chunk_header.sz - sizeof(chunk_fmt), SEEK_CUR);
137 fseek(file, chunk_header.sz, SEEK_CUR);
/device/google/contexthub/firmware/os/inc/
Dheap.h28 void* heapAlloc(uint32_t sz);
/device/generic/opengl-transport/host/commands/emugen/tests/t.001/expected/encoder/
Dfoo_enc.h21 virtual uint64_t lockAndWriteDma(void* data, uint32_t sz) { return 0; } in lockAndWriteDma()
/device/google/cuttlefish/host/frontend/vnc_server/
Dvnc_client_connection.cpp298 auto sz = static_cast<std::uint32_t>(jpeg_size); in AppendJpegSize() local
300 static_cast<std::uint8_t>((sz & 0x7F) | 0x80), in AppendJpegSize()
301 static_cast<std::uint8_t>((sz >> 7) & 0xFF)); in AppendJpegSize()
307 const auto sz = static_cast<std::uint32_t>(jpeg_size); in AppendJpegSize() local
309 static_cast<std::uint8_t>((sz & 0x7F) | 0x80), in AppendJpegSize()
310 static_cast<std::uint8_t>(((sz >> 7) & 0x7F) | 0x80), in AppendJpegSize()
311 static_cast<std::uint8_t>((sz >> 14) & 0xFF)); in AppendJpegSize()
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.cpp58 uint32_t sz = yStride * height + 2 * (uvHeight * uvStride); in get_yv12_offsets() local
62 if (totalSz_out) *totalSz_out = sz; in get_yv12_offsets()
73 uint32_t sz = yStride * height + 2 * (uvHeight * uvStride); in get_yuv420p_offsets() local
77 if (totalSz_out) *totalSz_out = sz; in get_yuv420p_offsets()
/device/linaro/dragonboard/qcom/qrtr/lib/
Dqrtr.c79 int qrtr_sendto(int sock, uint32_t node, uint32_t port, const void *data, unsigned int sz) in qrtr_sendto() argument
88 rc = sendto(sock, data, sz, 0, (void *)&sq, sizeof(sq)); in qrtr_sendto()
/device/google/crosshatch/sdm845/original-kernel-headers/linux/
Dmsm_vidc_enc.h590 size_t sz; member
599 unsigned long sz; member
/device/google/crosshatch/sdm845/kernel-headers/linux/
Dmsm_vidc_enc.h252 size_t sz; member
260 unsigned long sz; member
/device/google/bonito/sdm710/original-kernel-headers/linux/
Dmsm_vidc_enc.h590 size_t sz; member
599 unsigned long sz; member

12