Home
last modified time | relevance | path

Searched refs:totalSize (Results 1 - 19 of 19) sorted by relevance

/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/src/
H A Dencode_buffer_helper.cpp134 uint8_t totalSize = *data; in CreateSharedBuffer() local
135 data += sizeof(totalSize); in CreateSharedBuffer()
136 size -= sizeof(totalSize); in CreateSharedBuffer()
137 int fd = AshmemCreate("ForMetaData", (size_t)totalSize); in CreateSharedBuffer()
139 void *addr = mmap(nullptr, (size_t)totalSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in CreateSharedBuffer()
145 if (dataEnd < data + totalSize) { in CreateSharedBuffer()
150 ret = memcpy_s(reinterpret_cast<char*>(addr), totalSize, data, totalSize); in CreateSharedBuffer()
155 data += totalSize; in CreateSharedBuffer()
156 size -= totalSize; in CreateSharedBuffer()
[all...]
/drivers/peripheral/usb/test/moduletest/common/
H A Dusb_host_raw_api_func_test.cpp108 int32_t totalSize = 1024; in HWTEST_F() local
111 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
195 int32_t totalSize = 1024; in HWTEST_F() local
198 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
H A Dusb_host_serial_func_test.cpp196 int32_t totalSize = 1024; in HWTEST_F() local
199 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
277 int32_t totalSize = 1024; in HWTEST_F() local
280 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
/drivers/peripheral/usb/test/moduletest/common/liteos/
H A Dusb_host_raw_api_func_test.cpp167 unsigned int totalSize = 1024; in HWTEST_F() local
170 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
317 int32_t totalSize = 1024; in HWTEST_F() local
320 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
H A Dusb_device_serial_func_test.cpp120 int32_t totalSize = 1024; in HWTEST_F() local
123 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
H A Dusb_host_serial_func_test.cpp170 int32_t totalSize = 1024; in HWTEST_F() local
173 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
321 unsigned int totalSize = 1024; in HWTEST_F() local
324 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_blob_if.c178 if (header->totalSize >= 0) { in CheckHcsBlobLength()
179 blobLength = (uint32_t)(HBC_HEADER_LENGTH + header->totalSize); in CheckHcsBlobLength()
183 blobLength = (uint32_t)(HBC_HEADER_LENGTH - header->totalSize); in CheckHcsBlobLength()
/drivers/hdf_core/framework/tools/hc-gen/src/
H A Dopcode.h35 int32_t totalSize; member
H A Ddecompile.cpp52 << " totalSize: " << header.totalSize; in VerifyDecompileFile()
57 if (header.totalSize < 0) { in VerifyDecompileFile()
59 header.totalSize = -header.totalSize; in VerifyDecompileFile()
H A Dbytecode_gen.cpp179 .totalSize = static_cast<int32_t>(
/drivers/peripheral/codec/test/demo/heif/src/
H A Dbuffer_helper.cpp183 size_t totalSize = GetFileSizeInBytes(ifs); in CreateSharedBuffer() local
184 int fd = AshmemCreate("ForMetaData", totalSize); in CreateSharedBuffer()
186 void *addr = mmap(nullptr, totalSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in CreateSharedBuffer()
192 ifs.read(reinterpret_cast<char*>(addr), totalSize); in CreateSharedBuffer()
193 if (munmap(addr, totalSize) != 0) { in CreateSharedBuffer()
197 buffer.filledLen = static_cast<uint32_t>(totalSize); in CreateSharedBuffer()
/drivers/hdf_core/framework/model/audio/common/src/
H A Daudio_platform_base.c474 static int32_t AudioRenderPlatformDataInit(struct PlatformData *data, uint32_t *totalSize, uint32_t *lastBuffSize, in AudioRenderPlatformDataInit() argument
490 *totalSize = (uint32_t)data->mmapData.totalBufferFrames * data->renderPcmInfo.frameSize; in AudioRenderPlatformDataInit()
491 *lastBuffSize = ((*totalSize % MIN_PERIOD_SIZE) == 0) ? MIN_PERIOD_SIZE : (*totalSize % MIN_PERIOD_SIZE); in AudioRenderPlatformDataInit()
493 (*totalSize / MIN_PERIOD_SIZE) : (*totalSize / MIN_PERIOD_SIZE + 1); in AudioRenderPlatformDataInit()
501 uint32_t totalSize; in AudioMmapWriteTransfer() local
507 if (AudioRenderPlatformDataInit(data, &totalSize, &lastBuffSize, &loopTimes) == HDF_FAILURE) { in AudioMmapWriteTransfer()
631 uint32_t *totalSize) in AudioCapturePlatformDataInit()
645 *totalSize in AudioCapturePlatformDataInit()
630 AudioCapturePlatformDataInit(struct PlatformData *data, const struct AudioMmapData *rxMmapData, uint32_t *totalSize) AudioCapturePlatformDataInit() argument
655 uint32_t totalSize; AudioMmapReadTransfer() local
[all...]
/drivers/peripheral/audio/test/sample/
H A Didl_capture.c312 static int32_t WriteDataToFile(FILE *file, char *buffer, uint64_t replyBytes, uint32_t *failCount, uint64_t *totalSize) in WriteDataToFile() argument
314 if (file == NULL || buffer == NULL || failCount == NULL || totalSize == NULL) { in WriteDataToFile()
322 *totalSize += (replyBytes / BUFFER_SIZE_BASE); // 1024 = 1Kb in WriteDataToFile()
323 if (*totalSize % AUDIO_RECORD_INTERVAL_512KB < 24) { // 512KB in WriteDataToFile()
324 printf("\nRecording,the audio file size is %" PRIu64 "Kb\n", *totalSize); in WriteDataToFile()
341 uint64_t totalSize = 0; in FrameStartCapture() local
368 if (WriteDataToFile(param->file, frame, bufferSize, &failCount, &totalSize) < 0) { in FrameStartCapture()
372 } while ((totalSize <= AUDIO_TOTALSIZE_15M) && (!g_closeEnd)); // 15 * 1024 = 15M in FrameStartCapture()
/drivers/hdf_core/framework/utils/include/
H A Dhcs_blob_if.h30 int32_t totalSize; member
/drivers/liteos/hievent/src/
H A Dhievent_driver.c254 size_t totalSize = bufLen + sizeof(struct HieventEntry); in HieventCoverOldLog() local
256 while (totalSize + g_hieventDev.size > HIEVENT_LOG_BUFFER) { in HieventCoverOldLog()
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/
H A Dalsa_snd_render.c625 uint32_t totalSize = (uint32_t)mmapBufDesc->totalBufferFrames * frameSize; in RenderWriteiMmap() local
626 uint32_t lastBuffSize = ((totalSize % MIN_PERIOD_SIZE) == 0) ? MIN_PERIOD_SIZE : (totalSize % MIN_PERIOD_SIZE); in RenderWriteiMmap()
628 (totalSize / MIN_PERIOD_SIZE) : (totalSize / MIN_PERIOD_SIZE + 1); in RenderWriteiMmap()
/drivers/peripheral/audio/test/systemtest/common/hdi_common/src/
H A Daudio_hdi_common.cpp672 uint64_t totalSize = 0; in StartRecord() local
710 totalSize += replyBytes; in StartRecord()
712 totalSize += 0; in StartRecord()
714 } while (totalSize <= filesize * MEGABYTE); in StartRecord()
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/src/
H A Dhdi_service_common.cpp718 uint64_t totalSize = 0; in StartRecord() local
746 totalSize += replyBytes; in StartRecord()
748 totalSize += 0; in StartRecord()
750 } while (totalSize <= filesize * MEGABYTE); in StartRecord()
/drivers/peripheral/usb/net/src/
H A Dcdc_ether.c437 uint32_t totalSize = 0; in EcmWrite() local
447 if (!HdfSbufReadBuffer(data, (const void **)&tmp, &totalSize)) { in EcmWrite()
450 size = totalSize; in EcmWrite()
484 return totalSize; in EcmWrite()

Completed in 16 milliseconds