/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | osl.h | 42 #define OSL_PKTTAG_SZ 48 /* standard linux pkttag size is 48 bytes */ 48 typedef unsigned int (*osl_rreg_fn_t)(void *ctx, volatile void *reg, unsigned int size); 49 typedef void (*osl_wreg_fn_t)(void *ctx, volatile void *reg, unsigned int val, unsigned int size); 311 #define SECURE_DMA_MAP(osh, va, size, direction, p, dmah, pcma, offset) ((dmaaddr_t) ((0))) 313 #define SECURE_DMA_MAP(osh, va, size, direction, p, dmah, pcma, offset) \ 316 #define SECURE_DMA_DD_MAP(osh, va, size, direction, p, dmah) 0 318 #define SECURE_DMA_MAP_TXMETA(osh, va, size, direction, p, dmah, pcma) ((dmaaddr_t) ((0))) 320 #define SECURE_DMA_MAP_TXMETA(osh, va, size, direction, p, dmah, pcma) \ 323 #define SECURE_DMA_UNMAP(osh, pa, size, direction, p, dmah, pcma, offset)
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | mock_element_node_iterator.h | 56 strs = strs.substr(pos + 1, strs.size()); in StringSplit() 117 const size_t childCount = child.size(); in DFSVisitJson() 136 for (int index = 0; index < eles.size(); ++index) { in ConstructIteratorByJson() 138 for (int childIndex = index + 1; childIndex < eles.size(); ++childIndex) { in ConstructIteratorByJson() 163 if (currentIndex_ >= elementInfoLists_.size() - 1) { 174 if (currentIndex_ < elementInfoLists_.size()) { 183 return elementInfoLists_.size() == elementToParentIndexMap_.size();
|
/test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
H A D | huks_agree_dh_test.cpp | 181 struct OH_Huks_Blob publicKey01 = {.size = OH_HUKS_DH_KEY_SIZE_4096, .data = nullptr}; in HWTEST_F() 182 struct OH_Huks_Blob publicKey02 = {.size = OH_HUKS_DH_KEY_SIZE_4096, .data = nullptr}; in HWTEST_F() 183 ret = MallocAndCheckBlobData(&publicKey01, publicKey01.size); in HWTEST_F() 185 ret = MallocAndCheckBlobData(&publicKey02, publicKey02.size); in HWTEST_F() 190 struct OH_Huks_Blob outData01 = {.size = DH_COMMON_SIZE, .data = nullptr}; in HWTEST_F() 191 struct OH_Huks_Blob outData02 = {.size = DH_COMMON_SIZE, .data = nullptr}; in HWTEST_F() 192 ret = MallocAndCheckBlobData(&outData01, outData01.size); in HWTEST_F() 194 ret = MallocAndCheckBlobData(&outData02, outData02.size); in HWTEST_F()
|
H A D | huks_agree_x25519_test.cpp | 228 struct OH_Huks_Blob publicKey01 = {.size = OH_HUKS_CURVE25519_KEY_SIZE_256, .data = nullptr}; in HWTEST_F() 229 struct OH_Huks_Blob publicKey02 = {.size = OH_HUKS_CURVE25519_KEY_SIZE_256, .data = nullptr}; in HWTEST_F() 230 EXPECT_EQ(MallocAndCheckBlobData(&publicKey01, publicKey01.size).errorCode, (int32_t)OH_HUKS_SUCCESS) in HWTEST_F() 232 EXPECT_EQ(MallocAndCheckBlobData(&publicKey02, publicKey02.size).errorCode, (int32_t)OH_HUKS_SUCCESS) in HWTEST_F() 237 struct OH_Huks_Blob outData01 = {.size = X25519_COMMON_SIZE, .data = nullptr}; in HWTEST_F() 238 struct OH_Huks_Blob outData02 = {.size = X25519_COMMON_SIZE, .data = nullptr}; in HWTEST_F() 239 EXPECT_EQ(MallocAndCheckBlobData(&outData01, outData01.size).errorCode, (int32_t)OH_HUKS_SUCCESS) in HWTEST_F() 241 EXPECT_EQ(MallocAndCheckBlobData(&outData02, outData02.size).errorCode, (int32_t)OH_HUKS_SUCCESS) in HWTEST_F()
|
/test/xts/hats/hdf/display/composer/common/ |
H A D | display_test_utils.cpp | 65 void SaveFile(const char *fileName, uint8_t *data, int size) in SaveFile() argument 74 int hasWriten = write(fileFd, data, size); in SaveFile() 109 if ((position * PIXEL_BYTES) > handle.size) { in GetPixelValue() 142 if ((position * PIXEL_BYTES) > handle.size) { in CheckPixel() 151 SaveFile("/data/display_test_bitmap_", static_cast<uint8_t *>(handle.virAddr), handle.size); in CheckPixel() 183 if ((position * PIXEL_BYTES) > handle.size) { in SetPixel() 218 const uint32_t ROW_NUM = sqrt(colors.size()); in SplitBuffer() 239 SaveFile("/data/splitbuffer_data_", static_cast<uint8_t *>(handle.virAddr), handle.size); in SplitBuffer()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/kernel/include/ |
H A D | los_memory.h | 88 * @brief Get the size of memory totally used. 92 * <li>This API is used to get the size of memory totally used in memory pool.</li> 102 * @retval #UINT32 The size of the memory pool used. 250 * @brief Get the system memory pool's size. 254 * <li>This API is used to get the system memory pool's size.</li> 257 * @retval #UINT32 The poll size. 268 * @brief Get the memory pool's size. 272 * <li>This API is used to get the memory pool's size.</li> 275 * @retval #UINT32 The memory poll size. 286 * Define a mem size chec [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_regs_history_debugfs.c | 28 *val = h->size; in regs_history_size_get() 67 iters = (h->size > h->count) ? h->count : h->size; in regs_history_show() 70 struct kbase_io_access *io = &h->buf[(h->count - iters + i) % h->size]; in regs_history_show()
|
H A D | mali_kbase_ioctl.h | 32 #define _IOC(dir, type, nr, size) \ 33 ((int)(((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT))) 79 * @size: Size of the buffer 83 * on failure (e.g. @size is too small). If @size is specified as 0 then no 91 * property followed by the value. The size of the value is identified using 103 __u32 size; member 231 * @size: Size of the buffer 238 __u32 size; member 248 * Note that depending on the VA size o 270 __u64 size; global() member 292 __u64 size; global() member [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | dhd_custom_gpio.c | 252 int size, i; in get_customized_country_code() 254 size = ARRAYSIZE(translate_custom_table); in get_customized_country_code() 259 if (size == 0) in get_customized_country_code() 262 for (i = 0; i < size; i++) { in get_customized_country_code()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_regs_history_debugfs.c | 31 *val = h->size; in regs_history_size_get() 75 iters = (h->size > h->count) ? h->count : h->size; in regs_history_show() 80 &h->buf[(h->count - iters + i) % h->size]; in regs_history_show()
|
H A D | mali_kbase_ioctl.h | 35 #define _IOC(dir, type, nr, size) \ 37 ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT))) 86 * @size: Size of the buffer 90 * on failure (e.g. @size is too small). If @size is specified as 0 then no 98 * property followed by the value. The size of the value is identified using 110 __u32 size; member 248 * @size: Size of the buffer 255 __u32 size; member 266 * Note that depending on the VA size o 289 __u64 size; global() member 312 __u64 size; global() member [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_gem.c | 118 * @size: object size 120 * Initialize an already allocated GEM object of the specified size with 124 struct drm_gem_object *obj, size_t size) in drm_gem_object_init() 128 drm_gem_private_object_init(dev, obj, size); in drm_gem_object_init() 130 filp = shmem_file_setup("drm mm object", size, VM_NORESERVE); in drm_gem_object_init() 144 * @size: object size 146 * Initialize an already allocated GEM object of the specified size with 151 struct drm_gem_object *obj, size_t size) in drm_gem_private_object_init() 123 drm_gem_object_init(struct drm_device *dev, struct drm_gem_object *obj, size_t size) drm_gem_object_init() argument 150 drm_gem_private_object_init(struct drm_device *dev, struct drm_gem_object *obj, size_t size) drm_gem_private_object_init() argument 491 drm_gem_create_mmap_offset_size(struct drm_gem_object *obj, size_t size) drm_gem_create_mmap_offset_size() argument [all...] |
/test/xts/dcts/communication/softbus_standard/common/ |
H A D | net_trans_common.c | 317 LOG("[check]sid/size ok[sid:%d,size:%u]", sessionId, dataLen);
in CheckReceiveData() 319 LOG("[check]sid/size fail[sid exp:%d,real:%d][size exp:%u,real:%u]", g_currentSessionId4Data, sessionId,
in CheckReceiveData() 708 int SendData4Data(DataType type, int size)
in SendData4Data() argument 711 if (size > 0) {
in SendData4Data() 712 g_expectDataContent = (char*)calloc(1, size);
in SendData4Data() 717 (void)memset_s(g_expectDataContent, size, g_fillContentChar, size);
in SendData4Data() 719 LOG("[send data]invalid param[size> in SendData4Data() 751 SendData4Message(DataType type, int size) SendData4Message() argument [all...] |
/test/testfwk/arkxtest/testserver/test/fuzztest/createsession_fuzzer/ |
H A D | createsession_fuzzer.cpp | 27 bool DoSomethingInterestingWithMyAPI(const uint8_t *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 39 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 42 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/test/xts/acts/security/huks/huks_napi_BasicTest/include/ |
H A D | huks_mem.h | 27 void *HksMalloc(size_t size); 29 int32_t HksMemCmp(const void *ptr1, const void *ptr2, uint32_t size); 39 (blob).size = 0; \
|
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/unittests/ |
H A D | test_wasm.cpp | 53 if (wasmMap.size() == 0) { in InitWasmMap() 95 size_t size = infile.tellg(); in ReadBinaryFile() local 97 buffer.resize(size); in ReadBinaryFile() 98 infile.read(reinterpret_cast<char *>(&buffer[0]), size); in ReadBinaryFile() local 141 CHECK(buffer.size() > 0); in CompileWasmModule() 143 JSVMTEST_CALL(OH_JSVM_CompileWasmModule(jsvm_env, buffer.data(), buffer.size(), NULL, 0, NULL, &wasmModule)); in CompileWasmModule() 203 status = OH_JSVM_CompileWasmModule(jsvm_env, buffer.data(), buffer.size(), NULL, 0, NULL, &wasmModule); in WebAssemblyDemo() 237 CHECK(cacheBuffer.size() == cacheLength); in WebAssemblyDemo() 241 status = OH_JSVM_CompileWasmModule(jsvm_env, buffer.data(), buffer.size(), cacheBuffer.data(), cacheBuffer.size(), in WebAssemblyDemo() [all...] |
/device/soc/hisilicon/hi3861v100/hi3861_adapter/hals/communication/wifi_lite/wifiservice/source/ |
H A D | wifi_device.c | 142 int size = 0; in DispatchScanStateChangeEvent() local 144 hosEvent->OnWifiScanStateChanged(event, size); in DispatchScanStateChangeEvent() 149 size = hisiEvent->info.wifi_scan_done.bss_num; in DispatchScanStateChangeEvent() 150 hosEvent->OnWifiScanStateChanged(event, size); in DispatchScanStateChangeEvent() 572 WifiErrorCode GetScanInfoList(WifiScanInfo* result, unsigned int* size) in GetScanInfoList() argument 574 if (result == NULL || size == NULL || *size == 0) { in GetScanInfoList() 592 if (*size < num) { in GetScanInfoList() 619 *size = num; in GetScanInfoList() 670 WifiErrorCode GetDeviceConfigs(WifiDeviceConfig* result, unsigned int* size) in GetDeviceConfigs() argument [all...] |
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_1/src/ |
H A D | benchmark_common.cpp | 31 int32_t Test::DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size) in DumpImageFile() argument 60 ret = write(imgFd, buffer, size); in DumpImageFile() 116 if (cameraIds.size() == 0) { in Open() 119 ASSERT_TRUE(cameraIds.size() != 0); in Open() 176 streamInfoPre->v1_0.bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() 177 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 192 streamInfoVideo->v1_0.bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() 193 DumpImageFile(streamIdPreview, "yuv", addr, size); in StartStream() 209 consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() 242 consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) { in StartStream() [all...] |
/test/xts/hats/hdf/camera/cameraMg/v1_0/src/ |
H A D | common.cpp | 31 int32_t Test::DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size)
in DumpImageFile() argument 60 ret = write(imgFd, buffer, size);
in DumpImageFile() 84 if (cameraIds.size() == 0) {
in Init() 131 if (cameraIds.size() == 0) {
in Open() 177 streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() 178 DumpImageFile(streamIdPreview, "yuv", addr, size);
in StartStream() 193 streamInfoVideo->bufferQueue_ = consumer_video->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() 194 DumpImageFile(streamIdPreview, "yuv", addr, size);
in StartStream() 209 streamInfoAnalyze->bufferQueue_ = consumer_analyze->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() 241 streamInfoCapture->bufferQueue_ = consumer_capture->CreateProducerSeq([this](void* addr, uint32_t size) {
in StartStream() [all...] |
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_0/src/ |
H A D | hdf_camera_benchmark_test.cpp | 37 * @tc.size: MediumTest
60 * @tc.size: MediumTest
78 * @tc.size: MediumTest
97 * @tc.size: MediumTest
116 * @tc.size: MediumTest
135 * @tc.size: MediumTest
153 * @tc.size: MediumTest
175 streamInfoPre->bufferQueue_ = consumer_pre->CreateProducerSeq([this](void* addr, uint32_t size) {
in BENCHMARK_F() 176 CAMERA_LOGD("On Buffer Available: size = %{public}u", size);
in BENCHMARK_F() [all...] |
/device/soc/hisilicon/common/platform/mtd/hifmc100/common/ |
H A D | hifmc100.h | 63 #define HIFMC_CFG_BLOCK_SIZE(size) (((size) & 0x3) << 8) 77 #define HIFMC_CFG_PAGE_SIZE(size) (((size) & 0x3) << HIFMC_PAGE_SIZE_SHIFT) 313 void MtdDmaCacheClean(void *addr, size_t size); 315 void MtdDmaCacheInv(void *addr, size_t size);
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/tl/ |
H A D | mali_kbase_tlstream.c | 55 * Note that value of data_size must not including size of the header. 89 atomic_set(&stream->buffer[i].size, PACKET_HEADER_SIZE + PACKET_NUMBER_SIZE); in kbase_tlstream_reset() 91 atomic_set(&stream->buffer[i].size, PACKET_HEADER_SIZE); in kbase_tlstream_reset() 227 wb_size = atomic_read(&stream->buffer[wb_idx].size); 236 atomic_set(&stream->buffer[wb_idx].size, wb_size + msg_size); 269 wb_size = atomic_read(&stream->buffer[wb_idx].size); in kbase_tlstream_flush_stream() 273 atomic_set(&stream->buffer[wb_idx].size, wb_size); in kbase_tlstream_flush_stream()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_pp_job.c | 118 u32 size; in mali_pp_job_create() local 121 size = sizeof(*memory_cookies) * (job->uargs.num_memory_cookies); in mali_pp_job_create() 123 job->memory_cookies = mali_osk_malloc(size); in mali_pp_job_create() 125 MALI_PRINT_ERROR(("Mali PP job: Failed to allocate %d bytes of memory cookies!\n", size)); in mali_pp_job_create() 129 if (0 != _mali_osk_copy_from_user(job->memory_cookies, memory_cookies, size)) { in mali_pp_job_create() 130 MALI_PRINT_ERROR(("Mali PP job: Failed to copy %d bytes of memory cookies from user!\n", size)); in mali_pp_job_create()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_pp_job.c | 106 u32 size; in mali_pp_job_create() local 109 size = sizeof(*memory_cookies) * (job->uargs.num_memory_cookies); in mali_pp_job_create() 111 job->memory_cookies = _mali_osk_malloc(size); in mali_pp_job_create() 113 MALI_PRINT_ERROR(("Mali PP job: Failed to allocate %d bytes of memory cookies!\n", size)); in mali_pp_job_create() 117 if (0 != _mali_osk_copy_from_user(job->memory_cookies, memory_cookies, size)) { in mali_pp_job_create() 118 MALI_PRINT_ERROR(("Mali PP job: Failed to copy %d bytes of memory cookies from user!\n", size)); in mali_pp_job_create()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/ |
H A D | mali_kbase_tlstream.c | 59 * Note that value of data_size must not include size of the header. 96 &stream->buffer[i].size, in kbase_tlstream_reset() 100 atomic_set(&stream->buffer[i].size, PACKET_HEADER_SIZE); in kbase_tlstream_reset() 250 wb_size = atomic_read(&stream->buffer[wb_idx].size); 260 atomic_set(&stream->buffer[wb_idx].size, wb_size + msg_size); 296 wb_size = atomic_read(&stream->buffer[wb_idx].size); in kbase_tlstream_flush_stream() 302 atomic_set(&stream->buffer[wb_idx].size, wb_size); in kbase_tlstream_flush_stream()
|