/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/src/ |
H A D | encode_buffer_helper.cpp | 134 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 D | usb_host_raw_api_func_test.cpp | 108 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 D | usb_host_serial_func_test.cpp | 196 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 D | usb_host_raw_api_func_test.cpp | 167 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 D | usb_device_serial_func_test.cpp | 120 int32_t totalSize = 1024; in HWTEST_F() local 123 while (n < totalSize / writeCnt / s.size()) { in HWTEST_F()
|
H A D | usb_host_serial_func_test.cpp | 170 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 D | hcs_blob_if.c | 178 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 D | opcode.h | 35 int32_t totalSize; member
|
H A D | decompile.cpp | 52 << " totalSize: " << header.totalSize; in VerifyDecompileFile() 57 if (header.totalSize < 0) { in VerifyDecompileFile() 59 header.totalSize = -header.totalSize; in VerifyDecompileFile()
|
H A D | bytecode_gen.cpp | 179 .totalSize = static_cast<int32_t>(
|
/drivers/peripheral/codec/test/demo/heif/src/ |
H A D | buffer_helper.cpp | 183 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 D | audio_platform_base.c | 474 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 D | idl_capture.c | 312 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 D | hcs_blob_if.h | 30 int32_t totalSize; member
|
/drivers/liteos/hievent/src/ |
H A D | hievent_driver.c | 254 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 D | alsa_snd_render.c | 625 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 D | audio_hdi_common.cpp | 672 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 D | hdi_service_common.cpp | 718 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 D | cdc_ether.c | 437 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()
|