/base/security/huks/test/unittest/huks_common_test/include/ |
H A D | hks_aes_cipher_part_test_c.h | 29 .size = NONCE_SIZE, \ 39 .size = AAD_SIZE, \ 53 .size = AEAD_SIZE, \ 67 .size = AEAD_SIZE, \ 81 .size = AEAD_SIZE, \ 95 .size = AEAD_SIZE, \ 109 .size = AEAD_SIZE, \ 123 .size = AEAD_SIZE, \
|
/base/sensors/miscdevice/test/fuzztest/vibrator/playpattern_fuzzer/ |
H A D | playpattern_fuzzer.cpp | 35 size_t GetObject(const uint8_t *data, size_t size, T &object) in GetObject() argument 38 if (objectSize > size) { in GetObject() 71 bool PlayPatternFuzzTest(const uint8_t *data, size_t size) in PlayPatternFuzzTest() argument 75 startPos += GetObject<int32_t>(data + startPos, size - startPos, vibratorPattern.time); in PlayPatternFuzzTest() 76 startPos += GetObject<int32_t>(data + startPos, size - startPos, vibratorPattern.eventNum); in PlayPatternFuzzTest() 77 GetObject<int32_t>(data + startPos, size - startPos, vibratorPattern.patternDuration); in PlayPatternFuzzTest() 83 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 85 OHOS::PlayPatternFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/base/sensors/sensor/test/fuzztest/services/service/reportactiveinfo_fuzzer/ |
H A D | reportactiveinfo_fuzzer.cpp | 40 size_t GetObject(T &object, const uint8_t *data, size_t size) in GetObject() argument 43 if (objectSize > size) { in GetObject() 77 bool ReportActiveInfoFuzzTest(const uint8_t *data, size_t size) in ReportActiveInfoFuzzTest() argument 82 startPos += GetObject<int32_t>(sensorId, data + startPos, size - startPos); in ReportActiveInfoFuzzTest() 84 startPos += GetObject<int32_t>(pid, data + startPos, size - startPos); in ReportActiveInfoFuzzTest() 91 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 98 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 99 if (size < OHOS::Sensors::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 103 OHOS::Sensors::ReportActiveInfoFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/base/telephony/sms_mms/test/fuzztest/textbasedsmsdelivery_fuzzer/ |
H A D | textbasedsmsdelivery_fuzzer.cpp | 32 void DoSomethingInterestingWithMyAPI(const uint8_t *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 34 if (data == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI() 43 int32_t slotId = static_cast<int32_t>(size % SLOT_NUM); in DoSomethingInterestingWithMyAPI() 50 std::string desAddr(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() local 51 std::string scAddr(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() local 52 std::string text(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() local 90 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 94 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/base/telephony/cellular_data/test/fuzztest/updatedisconnectmachine_fuzzer/ |
H A D | updatedisconnectmachine_fuzzer.cpp | 33 void UpdateDisconnectMachineFuzz(const uint8_t *data, size_t size) in UpdateDisconnectMachineFuzz() argument 39 int32_t slotId = static_cast<int32_t>(size % SIM_COUNT); in UpdateDisconnectMachineFuzz() 56 std::int32_t intValue = static_cast<int32_t>(size); in UpdateDisconnectMachineFuzz() 74 void UpdateActiveMachineWithMyAPI(const uint8_t *data, size_t size) in UpdateActiveMachineWithMyAPI() argument 76 if (data == nullptr || size == 0) { in UpdateActiveMachineWithMyAPI() 80 UpdateDisconnectMachineFuzz(data, size); in UpdateActiveMachineWithMyAPI() 87 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 91 OHOS::UpdateActiveMachineWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/base/telephony/cellular_data/test/fuzztest/updateactivemachine_fuzzer/ |
H A D | updateactivemachine_fuzzer.cpp | 32 void UpdateActiveMachineFuzz(const uint8_t *data, size_t size) in UpdateActiveMachineFuzz() argument 38 int32_t slotId = static_cast<int32_t>(size % SIM_COUNT); in UpdateActiveMachineFuzz() 50 std::int32_t intValue = static_cast<int32_t>(size); in UpdateActiveMachineFuzz() 69 void UpdateActiveMachineWithMyAPI(const uint8_t *data, size_t size) in UpdateActiveMachineWithMyAPI() argument 71 if (data == nullptr || size == 0) { in UpdateActiveMachineWithMyAPI() 76 UpdateActiveMachineFuzz(data, size); in UpdateActiveMachineWithMyAPI() 83 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 87 OHOS::UpdateActiveMachineWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/base/telephony/cellular_data/test/fuzztest/updateinactivemachine_fuzzer/ |
H A D | updateinactivemachine_fuzzer.cpp | 33 void UpdateInActiveMachineFuzz(const uint8_t *data, size_t size) in UpdateInActiveMachineFuzz() argument 39 int32_t slotId = static_cast<int32_t>(size % SIM_COUNT); in UpdateInActiveMachineFuzz() 56 std::int32_t intValue = static_cast<int32_t>(size); in UpdateInActiveMachineFuzz() 72 void UpdateActiveMachineWithMyAPI(const uint8_t *data, size_t size) in UpdateActiveMachineWithMyAPI() argument 74 if (data == nullptr || size == 0) { in UpdateActiveMachineWithMyAPI() 78 UpdateInActiveMachineFuzz(data, size); in UpdateActiveMachineWithMyAPI() 85 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 89 OHOS::UpdateActiveMachineWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/hdf_core/adapter/khdf/liteos/platform/src/ |
H A D | platform_trace.c | 69 int32_t size = PlatformTraceModuleExplainCount(); in TraceMeanPrint() local 70 for (i = 0; i < size; i++) { in TraceMeanPrint() 89 void PlatformTraceAddUintMsg(int module, int moduleFun, const unsigned int infos[], uint8_t size) in PlatformTraceAddUintMsg() argument 92 if ((size == 0) || (size > PLATFORM_TRACE_UINT_PARAM_SIZE_MAX)) { in PlatformTraceAddUintMsg() 93 HDF_LOGE("PlatformTraceAddUintMsg %hhu size illegal", size); in PlatformTraceAddUintMsg() 105 switch (size) { in PlatformTraceAddUintMsg() 131 HDF_LOGE("PlatformTraceAddUintMsg %hhu size illegal", size); in PlatformTraceAddUintMsg() [all...] |
/drivers/peripheral/audio/effect/test/fuzztest/effectmodel_fuzzer/ |
H A D | effectmodel_fuzzer.cpp | 51 void EffectModelFucSwitch(struct IEffectModel *&model, uint32_t cmd, const uint8_t *&rawData, size_t size) in EffectModelFucSwitch() argument 95 bool DoSomethingInterestingWithMyAPI(const uint8_t *rawData, size_t size) in DoSomethingInterestingWithMyAPI() argument 108 EffectModelFucSwitch(model, cmd, rawData, size); in DoSomethingInterestingWithMyAPI() 118 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 120 if (size < OHOS::Audio::THRESHOLD) { in LLVMFuzzerTestOneInput() 128 for (int i = 0; i < size - 1; i++) { in LLVMFuzzerTestOneInput() 134 if (data[size -1] != '\0') { in LLVMFuzzerTestOneInput() 137 OHOS::Audio::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecomx_fuzzer/ |
H A D | codec_fuzzer.cpp | 47 bool CodecFuzzTest(const uint8_t* rawData, size_t size) in CodecFuzzTest() argument 49 if (rawData == nullptr || size < OFFSET) { in CodecFuzzTest() 55 size = size - OFFSET; in CodecFuzzTest() 64 HdfSbufWriteBuffer(data, rawData, size); in CodecFuzzTest() 93 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 95 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 99 OHOS::CodecFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/ |
H A D | cvmx-bootmem.h | 64 uint64_t size; member 82 uint64_t size; member 155 * @size: Size in bytes of block to allocate 161 extern void *cvmx_bootmem_alloc_address(uint64_t size, uint64_t address, 180 * @size: Size in bytes of block to allocate 186 extern void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, 197 * @size: Size in bytes of block to allocate 205 extern void *cvmx_bootmem_alloc_named_range(uint64_t size, uint64_t min_addr, 218 * @param size Size in bytes of block to allocate 230 void *cvmx_bootmem_alloc_named_range_once(uint64_t size, [all...] |
/kernel/linux/linux-5.10/arch/parisc/mm/ |
H A D | ioremap.c | 28 void __iomem *ioremap(unsigned long phys_addr, unsigned long size) in ioremap() argument 36 unsigned long end = phys_addr + size - 1; in ioremap() 43 /* Don't allow wraparound or zero size */ in ioremap() 44 last_addr = phys_addr + size - 1; in ioremap() 45 if (!size || last_addr < phys_addr) in ioremap() 56 t_end = t_addr + (size - 1); in ioremap() 73 size = PAGE_ALIGN(last_addr + 1) - phys_addr; in ioremap() 78 area = get_vm_area(size, VM_IOREMAP); in ioremap() 83 if (ioremap_page_range((unsigned long)addr, (unsigned long)addr + size, in ioremap()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | cmpxchg.c | 10 unsigned long __xchg_small(volatile void *ptr, unsigned long val, unsigned int size) in __xchg_small() argument 17 WARN_ON((unsigned long)ptr & (size - 1)); in __xchg_small() 19 /* Mask value to the correct size. */ in __xchg_small() 20 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 30 shift ^= sizeof(u32) - size; in __xchg_small() 51 unsigned long new, unsigned int size) in __cmpxchg_small() 58 WARN_ON((unsigned long)ptr & (size - 1)); in __cmpxchg_small() 60 /* Mask inputs to the correct size. */ in __cmpxchg_small() 61 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 72 shift ^= sizeof(u32) - size; in __cmpxchg_small() 50 __cmpxchg_small(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) __cmpxchg_small() argument [all...] |
/kernel/linux/linux-5.10/arch/sparc/include/uapi/asm/ |
H A D | ioctl.h | 8 * 14 bits of size as on i386. Here's the layout: 39 #define _IOC(dir,type,nr,size) \ 43 ((size) << _IOC_SIZESHIFT)) 46 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) 47 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 48 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | mem_encrypt.h | 33 unsigned long size); 35 unsigned long size); 45 int __init early_set_memory_decrypted(unsigned long vaddr, unsigned long size); 46 int __init early_set_memory_encrypted(unsigned long vaddr, unsigned long size); 64 unsigned long size) { } in sme_early_encrypt() 66 unsigned long size) { } in sme_early_decrypt() 82 early_set_memory_decrypted(unsigned long vaddr, unsigned long size) { return 0; } in early_set_memory_decrypted() argument 84 early_set_memory_encrypted(unsigned long vaddr, unsigned long size) { return 0; } in early_set_memory_encrypted() argument 63 sme_early_encrypt(resource_size_t paddr, unsigned long size) sme_early_encrypt() argument 65 sme_early_decrypt(resource_size_t paddr, unsigned long size) sme_early_decrypt() argument
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
H A D | randomalloc.c | 18 unsigned long size, in get_entry_num_slots() 33 if (region_end < size) in get_entry_num_slots() 37 last_slot = round_down(region_end - size + 1, align); in get_entry_num_slots() 53 efi_status_t efi_random_alloc(unsigned long size, in efi_random_alloc() argument 70 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc() 77 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc() 107 pages = size / EFI_PAGE_SIZE; in efi_random_alloc() 17 get_entry_num_slots(efi_memory_desc_t *md, unsigned long size, unsigned long align_shift) get_entry_num_slots() argument
|
/kernel/linux/linux-6.6/arch/mips/include/asm/octeon/ |
H A D | cvmx-bootmem.h | 64 uint64_t size; member 82 uint64_t size; member 155 * @size: Size in bytes of block to allocate 161 extern void *cvmx_bootmem_alloc_address(uint64_t size, uint64_t address, 180 * @size: Size in bytes of block to allocate 186 extern void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, 197 * @size: Size in bytes of block to allocate 205 extern void *cvmx_bootmem_alloc_named_range(uint64_t size, uint64_t min_addr, 218 * @param size Size in bytes of block to allocate 230 void *cvmx_bootmem_alloc_named_range_once(uint64_t size, [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | cmpxchg.c | 10 unsigned long __xchg_small(volatile void *ptr, unsigned long val, unsigned int size) in __xchg_small() argument 17 WARN_ON((unsigned long)ptr & (size - 1)); in __xchg_small() 19 /* Mask value to the correct size. */ in __xchg_small() 20 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __xchg_small() 30 shift ^= sizeof(u32) - size; in __xchg_small() 51 unsigned long new, unsigned int size) in __cmpxchg_small() 58 WARN_ON((unsigned long)ptr & (size - 1)); in __cmpxchg_small() 60 /* Mask inputs to the correct size. */ in __cmpxchg_small() 61 mask = GENMASK((size * BITS_PER_BYTE) - 1, 0); in __cmpxchg_small() 72 shift ^= sizeof(u32) - size; in __cmpxchg_small() 50 __cmpxchg_small(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) __cmpxchg_small() argument [all...] |
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | facility.h | 69 static inline unsigned long __stfle_asm(u64 *stfle_fac_list, int size) in __stfle_asm() argument 71 unsigned long reg0 = size - 1; in __stfle_asm() 86 * @size: size of passed in array in double words 88 static inline void __stfle(u64 *stfle_fac_list, int size) in __stfle() argument 101 nr = __stfle_asm(stfle_fac_list, size); in __stfle() 102 nr = min_t(unsigned long, (nr + 1) * 8, size * 8); in __stfle() 104 memset((char *) stfle_fac_list + nr, 0, size * 8 - nr); in __stfle() 107 static inline void stfle(u64 *stfle_fac_list, int size) in stfle() argument 110 __stfle(stfle_fac_list, size); in stfle() [all...] |
/kernel/linux/linux-6.6/arch/sparc/include/uapi/asm/ |
H A D | ioctl.h | 8 * 14 bits of size as on i386. Here's the layout: 39 #define _IOC(dir,type,nr,size) \ 43 ((size) << _IOC_SIZESHIFT)) 46 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) 47 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) 48 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
|
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00firmware.c | 46 if (!fw || !fw->size || !fw->data) { in rt2x00lib_request_firmware() 53 fw->data[fw->size - 4], fw->data[fw->size - 3]); in rt2x00lib_request_firmware() 56 fw->data[fw->size - 4], fw->data[fw->size - 3]); in rt2x00lib_request_firmware() 58 retval = rt2x00dev->ops->lib->check_firmware(rt2x00dev, fw->data, fw->size); in rt2x00lib_request_firmware() 67 fw->size); in rt2x00lib_request_firmware() 102 rt2x00dev->fw->size); in rt2x00lib_load_firmware()
|
/kernel/linux/linux-5.10/security/integrity/platform_certs/ |
H A D | efi_parser.c | 18 * @size: The size of the data blob 39 const void *data, size_t size, in parse_efi_signature_list() 45 pr_devel("-->%s(,%zu)\n", __func__, size); in parse_efi_signature_list() 47 while (size > 0) { in parse_efi_signature_list() 52 if (size < sizeof(list)) in parse_efi_signature_list() 66 if (lsize > size) { in parse_efi_signature_list() 77 pr_devel("- bad size combo @%x\n", offs); in parse_efi_signature_list() 84 size -= lsize; in parse_efi_signature_list() 90 size in parse_efi_signature_list() 37 parse_efi_signature_list( const char *source, const void *data, size_t size, efi_element_handler_t (*get_handler_for_guid)(const efi_guid_t *)) parse_efi_signature_list() argument [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | memneq.c | 66 /* Generic path for arbitrary size */ 68 __crypto_memneq_generic(const void *a, const void *b, size_t size) in __crypto_memneq_generic() argument 73 while (size >= sizeof(unsigned long)) { in __crypto_memneq_generic() 78 size -= sizeof(unsigned long); in __crypto_memneq_generic() 81 while (size > 0) { in __crypto_memneq_generic() 86 size -= 1; in __crypto_memneq_generic() 91 /* Loop-free fast-path for frequently used 16-byte size */ 157 size_t size) in __crypto_memneq() 159 switch (size) { in __crypto_memneq() 163 return __crypto_memneq_generic(a, b, size); in __crypto_memneq() 156 __crypto_memneq(const void *a, const void *b, size_t size) __crypto_memneq() argument [all...] |
H A D | usercopy.c | 50 * @size: Size of buffer. 52 * This is effectively shorthand for "memchr_inv(from, 0, size) == NULL" for 61 int check_zeroed_user(const void __user *from, size_t size) in check_zeroed_user() argument 66 if (unlikely(size == 0)) in check_zeroed_user() 70 size += align; in check_zeroed_user() 72 if (!user_read_access_begin(from, size)) in check_zeroed_user() 79 while (size > sizeof(unsigned long)) { in check_zeroed_user() 84 size -= sizeof(unsigned long); in check_zeroed_user() 89 if (size < sizeof(unsigned long)) in check_zeroed_user() 90 val &= aligned_byte_mask(size); in check_zeroed_user() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_nvif.c | 43 nvkm_client_unmap(void *priv, void __iomem *ptr, u32 size) in nvkm_client_unmap() argument 49 nvkm_client_map(void *priv, u64 handle, u32 size) in nvkm_client_map() argument 51 return ioremap(handle, size); in nvkm_client_map() 55 nvkm_client_ioctl(void *priv, bool super, void *data, u32 size, void **hack) in nvkm_client_ioctl() argument 57 return nvkm_ioctl(priv, super, data, size, hack); in nvkm_client_ioctl() 75 nvkm_client_ntfy(const void *header, u32 length, const void *data, u32 size) in nvkm_client_ntfy() argument 91 return nvif_notify(header, length, data, size); in nvkm_client_ntfy() 93 return usif_notify(header, length, data, size); in nvkm_client_ntfy()
|