Home
last modified time | relevance | path

Searched refs:size (Results 2776 - 2800 of 52414) sorted by relevance

1...<<111112113114115116117118119120>>...2097

/foundation/arkui/napi/test/fuzztest/runbufferscript_fuzzer/
H A Drunbufferscript_fuzzer.cpp61 void RunBufferScriptFuzzTest(const uint8_t* data, size_t size) in RunBufferScriptFuzzTest() argument
63 if (size <= 0) { in RunBufferScriptFuzzTest()
67 if (size > MAXBYTELEN) { in RunBufferScriptFuzzTest()
68 size = MAXBYTELEN; in RunBufferScriptFuzzTest()
70 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in RunBufferScriptFuzzTest()
75 std::vector<uint8_t> vec(size, *data); in RunBufferScriptFuzzTest()
81 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
84 OHOS::RunBufferScriptFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/arkui/napi/test/fuzztest/runscriptpath_fuzzer/
H A Drunscriptpath_fuzzer.cpp61 void RunScriptPathFuzzTest(const uint8_t* data, size_t size) in RunScriptPathFuzzTest() argument
63 if (size <= 0) { in RunScriptPathFuzzTest()
67 if (size > MAXBYTELEN) { in RunScriptPathFuzzTest()
68 size = MAXBYTELEN; in RunScriptPathFuzzTest()
70 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in RunScriptPathFuzzTest()
75 std::string result(reinterpret_cast<const char*>(data), size); in RunScriptPathFuzzTest() local
81 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
84 OHOS::RunScriptPathFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/arkui/napi/test/fuzztest/executejsbin_fuzzer/
H A Dexecutejsbin_fuzzer.cpp61 void ExecuteJsBinFuzzTest(const uint8_t* data, size_t size) in ExecuteJsBinFuzzTest() argument
63 if (size <= 0) { in ExecuteJsBinFuzzTest()
67 if (size > MAXBYTELEN) { in ExecuteJsBinFuzzTest()
68 size = MAXBYTELEN; in ExecuteJsBinFuzzTest()
70 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in ExecuteJsBinFuzzTest()
75 std::string name(reinterpret_cast<const char*>(data), size); in ExecuteJsBinFuzzTest() local
84 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
87 OHOS::ExecuteJsBinFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/zip_fuzzer/
H A Dzip_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
34 std::string srcPath (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local
38 if (size % SIZE_FLAG == 0) { in DoSomethingInterestingWithMyAPI()
43 std::string srcFile (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local
55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
62 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
66 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
67 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
70 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlefileutil_fuzzer/
H A Dbundlefileutil_fuzzer.cpp25 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
28 std::string bundlePath (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local
29 std::string realPath (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local
36 std::string fileName (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local
37 std::string extensionName (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local
41 std::string currentBundlePath (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local
50 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
53 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dcommon_macros.h38 #define UI_ALIGN_UP(size) ALIGN_UP((size), ALIGNMENT_BYTES)
39 #define UI_ALIGN_DOWN(size) ALIGN_DOWN((size), ALIGNMENT_BYTES)
43 #define UI_ALIGN_UP(size) ALIGN_UP((size), 4U)
44 #define UI_ALIGN_DOWN(size) ALIGN_DOWN((size), 4U)
/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeysystemndkfactory_fuzzer/
H A Dmediakeysystemndkfactory_fuzzer.cpp53 bool MediaKeySystemFactoryNdkFuzzer::FuzzTestSystemFactoryNdk(uint8_t *rawData, size_t size) in FuzzTestSystemFactoryNdk() argument
55 if (rawData == nullptr || size < sizeof(int32_t)) { in FuzzTestSystemFactoryNdk()
58 uuid.assign(reinterpret_cast<const char *>(rawData), size); in FuzzTestSystemFactoryNdk() local
60 mimeType.assign(reinterpret_cast<const char *>(rawData), size); in FuzzTestSystemFactoryNdk() local
82 bool FuzzSystemFactoryNdk(uint8_t *data, size_t size) in FuzzSystemFactoryNdk() argument
88 return testMediaSystemFactory.FuzzTestSystemFactoryNdk(data, size); in FuzzSystemFactoryNdk()
93 extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
96 OHOS::FuzzSystemFactoryNdk(data, size); in LLVMFuzzerTestOneInput()
/foundation/multimodalinput/input/test/fuzztest/appendextradata_fuzzer/
H A Dappendextradata_fuzzer.cpp25 template <class T> size_t GetObject(T &object, const uint8_t *data, size_t size) in GetObject() argument
28 if (objectSize > size) { in GetObject()
38 void AppendExtraDataFuzzTest(const uint8_t *data, size_t size) in AppendExtraDataFuzzTest() argument
43 GetObject<int32_t>(random, data + startPos, size - startPos); in AppendExtraDataFuzzTest()
47 GetObject<int32_t>(sourceType, data + startPos, size - startPos); in AppendExtraDataFuzzTest()
50 GetObject<int32_t>(pointerId, data + startPos, size - startPos); in AppendExtraDataFuzzTest()
60 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
63 OHOS::MMI::AppendExtraDataFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/systemabilitymgr/samgr/test/fuzztest/samgr_fuzzer/src/
H A Dunsubscribesystemability_fuzzer.cpp27 void FuzzSubscribeSystemAbility(const uint8_t *data, size_t size) in FuzzSubscribeSystemAbility() argument
35 int32_t systemAbilityId = FuzzTestUtils::BuildInt32FromData(data, size); in FuzzSubscribeSystemAbility()
42 void FuzzUnSubscribeSystemAbility(const uint8_t *data, size_t size) in FuzzUnSubscribeSystemAbility() argument
50 int32_t systemAbilityId = FuzzTestUtils::BuildInt32FromData(data, size); in FuzzUnSubscribeSystemAbility()
59 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
61 if (size < OHOS::Samgr::THRESHOLD) { in LLVMFuzzerTestOneInput()
64 OHOS::Samgr::FuzzSubscribeSystemAbility(data, size); in LLVMFuzzerTestOneInput()
65 OHOS::Samgr::FuzzUnSubscribeSystemAbility(data, size); in LLVMFuzzerTestOneInput()
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyregisterdistributedhardware_fuzzer/
H A Dsourceproxyregisterdistributedhardware_fuzzer.cpp28 void SourceProxyRegisterDistributedHardwareFuzzTest(const uint8_t* data, size_t size) in SourceProxyRegisterDistributedHardwareFuzzTest() argument
34 std::string dhId(reinterpret_cast<const char*>(data), size); in SourceProxyRegisterDistributedHardwareFuzzTest() local
35 std::string devId(reinterpret_cast<const char*>(data), size); in SourceProxyRegisterDistributedHardwareFuzzTest() local
36 std::string reqId(reinterpret_cast<const char*>(data), size); in SourceProxyRegisterDistributedHardwareFuzzTest() local
37 std::string version(reinterpret_cast<const char*>(data), size); in SourceProxyRegisterDistributedHardwareFuzzTest() local
38 std::string attrs(reinterpret_cast<const char*>(data), size); in SourceProxyRegisterDistributedHardwareFuzzTest() local
59 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
62 OHOS::DistributedHardware::SourceProxyRegisterDistributedHardwareFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/callbackonremoterequest_fuzzer/
H A Dcallbackonremoterequest_fuzzer.cpp27 void CallbackOnRemoteRequestFuzzTest(const uint8_t* data, size_t size) in CallbackOnRemoteRequestFuzzTest() argument
29 if ((data == nullptr) || (size < sizeof(uint32_t))) { in CallbackOnRemoteRequestFuzzTest()
38 std::string devId(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
39 std::string dhId(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
40 std::string reqId(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
41 std::string dataStr(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
58 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
61 OHOS::DistributedHardware::CallbackOnRemoteRequestFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_callback/callbackonremoterequest_fuzzer/
H A Dcallbackonremoterequest_fuzzer.cpp32 void CallbackOnRemoteRequestFuzzTest(const uint8_t* data, size_t size) in CallbackOnRemoteRequestFuzzTest() argument
34 if ((size < sizeof(uint32_t)) || (data == nullptr)) { in CallbackOnRemoteRequestFuzzTest()
43 std::string dhId(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
44 std::string devId(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
45 std::string reqId(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
46 std::string dataStr(reinterpret_cast<const char*>(data), size); in CallbackOnRemoteRequestFuzzTest() local
60 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
63 OHOS::DistributedHardware::CallbackOnRemoteRequestFuzzTest(data, size); in LLVMFuzzerTestOneInput()
/kernel/linux/linux-5.10/arch/m68k/kernel/
H A Dbootinfo_proc.c37 size_t size = sizeof(bi->tag); in save_bootinfo() local
40 uint16_t n = be16_to_cpu(bi->size); in save_bootinfo()
41 size += n; in save_bootinfo()
45 if (size > sizeof(bootinfo_tmp)) { in save_bootinfo()
46 pr_err("Cannot save %zu bytes of bootinfo\n", size); in save_bootinfo()
50 pr_info("Saving %zu bytes of bootinfo\n", size); in save_bootinfo()
51 memcpy(bootinfo_tmp, start, size); in save_bootinfo()
52 bootinfo_size = size; in save_bootinfo()
/kernel/linux/linux-5.10/arch/arm64/mm/
H A Ddma-mapping.c16 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
19 __dma_map_area(phys_to_virt(paddr), size, dir); in arch_sync_dma_for_device() local
22 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
25 __dma_unmap_area(phys_to_virt(paddr), size, dir); in arch_sync_dma_for_cpu() local
28 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent() argument
30 __dma_flush_area(page_address(page), size); in arch_dma_prep_coherent() local
40 void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, in arch_setup_dma_ops() argument
53 iommu_setup_dma_ops(dev, dma_base, size); in arch_setup_dma_ops()
/kernel/linux/linux-5.10/arch/alpha/include/uapi/asm/
H A Dioctl.h40 #define _IOC(dir,type,nr,size) \
45 ((size) << _IOC_SIZESHIFT)))
49 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
50 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size))
51 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
/kernel/linux/linux-5.10/arch/nios2/mm/
H A Ddma-mapping.c21 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
29 (unsigned long)(vaddr + size)); in arch_sync_dma_for_device()
38 (unsigned long)(vaddr + size)); in arch_sync_dma_for_device()
45 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
54 (unsigned long)(vaddr + size)); in arch_sync_dma_for_cpu()
63 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent() argument
67 flush_dcache_range(start, start + size); in arch_dma_prep_coherent()
70 void *arch_dma_set_uncached(void *ptr, size_t size) in arch_dma_set_uncached() argument
/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dfacility.h62 static inline unsigned long __stfle_asm(u64 *stfle_fac_list, int size) in __stfle_asm() argument
64 register unsigned long reg0 asm("0") = size - 1; in __stfle_asm()
77 * @size: size of passed in array in double words
79 static inline void __stfle(u64 *stfle_fac_list, int size) in __stfle() argument
90 nr = __stfle_asm(stfle_fac_list, size); in __stfle()
91 nr = min_t(unsigned long, (nr + 1) * 8, size * 8); in __stfle()
93 memset((char *) stfle_fac_list + nr, 0, size * 8 - nr); in __stfle()
96 static inline void stfle(u64 *stfle_fac_list, int size) in stfle() argument
99 __stfle(stfle_fac_list, size); in stfle()
[all...]
/kernel/linux/linux-6.6/arch/arm64/mm/
H A Ddma-mapping.c16 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
21 dcache_clean_poc(start, start + size); in arch_sync_dma_for_device()
24 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
32 dcache_inval_poc(start, start + size); in arch_sync_dma_for_cpu()
35 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent() argument
39 dcache_clean_poc(start, start + size); in arch_dma_prep_coherent()
49 void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, in arch_setup_dma_ops() argument
62 iommu_setup_dma_ops(dev, dma_base, dma_base + size - 1); in arch_setup_dma_ops()
/kernel/linux/linux-6.6/arch/m68k/kernel/
H A Dbootinfo_proc.c37 size_t size = sizeof(bi->tag); in save_bootinfo() local
40 uint16_t n = be16_to_cpu(bi->size); in save_bootinfo()
41 size += n; in save_bootinfo()
45 if (size > sizeof(bootinfo_tmp)) { in save_bootinfo()
46 pr_err("Cannot save %zu bytes of bootinfo\n", size); in save_bootinfo()
50 pr_info("Saving %zu bytes of bootinfo\n", size); in save_bootinfo()
51 memcpy(bootinfo_tmp, start, size); in save_bootinfo()
52 bootinfo_size = size; in save_bootinfo()
/kernel/linux/linux-6.6/arch/alpha/include/uapi/asm/
H A Dioctl.h40 #define _IOC(dir,type,nr,size) \
45 ((size) << _IOC_SIZESHIFT)))
49 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
50 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size))
51 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
/kernel/linux/linux-6.6/arch/nios2/mm/
H A Ddma-mapping.c21 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device() argument
29 (unsigned long)(vaddr + size)); in arch_sync_dma_for_device()
38 (unsigned long)(vaddr + size)); in arch_sync_dma_for_device()
45 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu() argument
54 (unsigned long)(vaddr + size)); in arch_sync_dma_for_cpu()
63 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent() argument
67 flush_dcache_range(start, start + size); in arch_dma_prep_coherent()
70 void *arch_dma_set_uncached(void *ptr, size_t size) in arch_dma_set_uncached() argument
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/
H A Ddelta-mem.c10 int hw_alloc(struct delta_ctx *ctx, u32 size, const char *name, in hw_alloc() argument
18 addr = dma_alloc_attrs(delta->dev, size, &dma_addr, in hw_alloc()
22 "%s hw_alloc:dma_alloc_coherent failed for %s (size=%d)\n", in hw_alloc()
23 ctx->name, name, size); in hw_alloc()
28 buf->size = size; in hw_alloc()
36 ctx->name, size, buf->vaddr, &buf->paddr, buf->name); in hw_alloc()
47 ctx->name, buf->size, buf->vaddr, &buf->paddr, buf->name); in hw_free()
49 dma_free_attrs(delta->dev, buf->size, in hw_free()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf_errno.c39 int libbpf_strerror(int err, char *buf, size_t size) in libbpf_strerror() argument
41 if (!buf || !size) in libbpf_strerror()
49 ret = strerror_r(err, buf, size); in libbpf_strerror()
50 buf[size - 1] = '\0'; in libbpf_strerror()
58 snprintf(buf, size, "%s", msg); in libbpf_strerror()
59 buf[size - 1] = '\0'; in libbpf_strerror()
63 snprintf(buf, size, "Unknown libbpf error %d", err); in libbpf_strerror()
64 buf[size - 1] = '\0'; in libbpf_strerror()
/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/
H A Dhva-mem.c11 int hva_mem_alloc(struct hva_ctx *ctx, u32 size, const char *name, in hva_mem_alloc() argument
25 base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL, in hva_mem_alloc()
28 dev_err(dev, "%s %s : dma_alloc_attrs failed for %s (size=%d)\n", in hva_mem_alloc()
29 ctx->name, __func__, name, size); in hva_mem_alloc()
35 b->size = size; in hva_mem_alloc()
42 ctx->name, size, b->vaddr, &b->paddr, b->name); in hva_mem_alloc()
56 ctx->name, buf->size, buf->vaddr, &buf->paddr, buf->name); in hva_mem_free()
58 dma_free_attrs(dev, buf->size, buf->vaddr, buf->paddr, in hva_mem_free()
/kernel/linux/linux-5.10/include/asm-generic/
H A Dsections.h102 * @size: size of the memory object
104 * Returns: true if the object specified by @virt and @size is entirely
109 size_t size) in memory_contains()
111 return virt >= begin && virt + size <= end; in memory_contains()
120 * @size: size of the memory object
122 * Returns: true if an object's memory region, specified by @virt and @size,
126 size_t size) in memory_intersects()
128 void *vend = virt + size; in memory_intersects()
108 memory_contains(void *begin, void *end, void *virt, size_t size) memory_contains() argument
125 memory_intersects(void *begin, void *end, void *virt, size_t size) memory_intersects() argument
145 init_section_contains(void *virt, size_t size) init_section_contains() argument
159 init_section_intersects(void *virt, size_t size) init_section_intersects() argument
[all...]

Completed in 11 milliseconds

1...<<111112113114115116117118119120>>...2097