Home
last modified time | relevance | path

Searched refs:size (Results 301 - 325 of 51523) sorted by relevance

1...<<11121314151617181920>>...2061

/kernel/linux/linux-5.10/fs/
H A Dxattr.c166 const void *value, size_t size, int flags) in __vfs_setxattr()
175 if (size == 0) in __vfs_setxattr()
177 return handler->set(handler, dentry, inode, name, value, size, flags); in __vfs_setxattr()
188 * @size - size of @value
198 const void *value, size_t size, int flags) in __vfs_setxattr_noperm()
208 error = __vfs_setxattr(dentry, inode, name, value, size, flags); in __vfs_setxattr_noperm()
212 size, flags); in __vfs_setxattr_noperm()
225 size, flags); in __vfs_setxattr_noperm()
241 * @size
165 __vfs_setxattr(struct dentry *dentry, struct inode *inode, const char *name, const void *value, size_t size, int flags) __vfs_setxattr() argument
197 __vfs_setxattr_noperm(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) __vfs_setxattr_noperm() argument
247 __vfs_setxattr_locked(struct dentry *dentry, const char *name, const void *value, size_t size, int flags, struct inode **delegated_inode) __vfs_setxattr_locked() argument
274 vfs_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) vfs_setxattr() argument
297 xattr_getsecurity(struct inode *inode, const char *name, void *value, size_t size) xattr_getsecurity() argument
365 __vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name, void *value, size_t size) __vfs_getxattr() argument
380 vfs_getxattr(struct dentry *dentry, const char *name, void *value, size_t size) vfs_getxattr() argument
411 vfs_listxattr(struct dentry *dentry, char *list, size_t size) vfs_listxattr() argument
511 setxattr(struct dentry *d, const char __user *name, const void __user *value, size_t size, int flags) setxattr() argument
555 path_setxattr(const char __user *pathname, const char __user *name, const void __user *value, size_t size, int flags, unsigned int lookup_flags) path_setxattr() argument
614 getxattr(struct dentry *d, const char __user *name, void __user *value, size_t size) getxattr() argument
653 path_getxattr(const char __user *pathname, const char __user *name, void __user *value, size_t size, unsigned int lookup_flags) path_getxattr() argument
702 listxattr(struct dentry *d, char __user *list, size_t size) listxattr() argument
730 path_listxattr(const char __user *pathname, char __user *list, size_t size, unsigned int lookup_flags) path_listxattr() argument
850 unsigned int size = 0; generic_listxattr() local
907 simple_xattr_alloc(const void *value, size_t size) simple_xattr_alloc() argument
929 simple_xattr_get(struct simple_xattrs *xattrs, const char *name, void *buffer, size_t size) simple_xattr_get() argument
968 simple_xattr_set(struct simple_xattrs *xattrs, const char *name, const void *value, size_t size, int flags, ssize_t *removed_size) simple_xattr_set() argument
1049 simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs, char *buffer, size_t size) simple_xattr_list() argument
[all...]
/third_party/spirv-tools/test/util/
H A Dsmall_vector_test.cpp31 EXPECT_EQ(vec.size(), 0); in TEST()
39 EXPECT_EQ(vec.size(), 4); in TEST()
42 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
51 EXPECT_EQ(vec.size(), 4); in TEST()
54 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
64 EXPECT_EQ(vec.size(), 4); in TEST()
66 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
75 EXPECT_EQ(vec2.size(), 4); in TEST()
78 for (uint32_t i = 0; i < vec2.size(); ++i) { in TEST()
89 EXPECT_EQ(vec2.size(), in TEST()
[all...]
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapiflush_fuzzer/
H A Daudioencoderpreapi_flush_fuzzer.cpp30 bool AudioEncoderAACFlushFuzzTest(const uint8_t *data, size_t size) in AudioEncoderAACFlushFuzzTest() argument
32 if (size < sizeof(int64_t)) { in AudioEncoderAACFlushFuzzTest()
38 bool ret = aDecBufferDemo->RunCaseFlush(data, size); in AudioEncoderAACFlushFuzzTest()
43 bool AudioEncoderOPUSFlushFuzzTest(const uint8_t *data, size_t size) in AudioEncoderOPUSFlushFuzzTest() argument
45 if (size < sizeof(int64_t)) { in AudioEncoderOPUSFlushFuzzTest()
51 bool ret = aDecBufferDemo->RunCaseFlush(data, size); in AudioEncoderOPUSFlushFuzzTest()
56 bool AudioEncoderG711FlushFuzzTest(const uint8_t *data, size_t size) in AudioEncoderG711FlushFuzzTest() argument
58 if (size < sizeof(int64_t)) { in AudioEncoderG711FlushFuzzTest()
64 bool ret = aDecBufferDemo->RunCaseFlush(data, size); in AudioEncoderG711FlushFuzzTest()
69 bool AudioEncoderFLACFlushFuzzTest(const uint8_t *data, size_t size) in AudioEncoderFLACFlushFuzzTest() argument
85 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapisetparameter_fuzzer/
H A Daudioencoderpreapi_setparameter_fuzzer.cpp30 bool AudioEncoderAACSetParameterFuzzTest(const uint8_t *data, size_t size) in AudioEncoderAACSetParameterFuzzTest() argument
32 if (size < sizeof(int64_t)) { in AudioEncoderAACSetParameterFuzzTest()
38 bool ret = aDecBufferDemo->RunCaseSetParameter(data, size); in AudioEncoderAACSetParameterFuzzTest()
43 bool AudioEncoderOPUSSetParameterFuzzTest(const uint8_t *data, size_t size) in AudioEncoderOPUSSetParameterFuzzTest() argument
45 if (size < sizeof(int64_t)) { in AudioEncoderOPUSSetParameterFuzzTest()
51 bool ret = aDecBufferDemo->RunCaseSetParameter(data, size); in AudioEncoderOPUSSetParameterFuzzTest()
56 bool AudioEncoderG711SetParameterFuzzTest(const uint8_t *data, size_t size) in AudioEncoderG711SetParameterFuzzTest() argument
58 if (size < sizeof(int64_t)) { in AudioEncoderG711SetParameterFuzzTest()
64 bool ret = aDecBufferDemo->RunCaseSetParameter(data, size); in AudioEncoderG711SetParameterFuzzTest()
69 bool AudioEncoderFLACSetParameterFuzzTest(const uint8_t *data, size_t size) in AudioEncoderFLACSetParameterFuzzTest() argument
85 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapireset_fuzzer/
H A Daudioencoderpreapi_reset_fuzzer.cpp30 bool AudioEncoderAACResetFuzzTest(const uint8_t *data, size_t size) in AudioEncoderAACResetFuzzTest() argument
32 if (size < sizeof(int64_t)) { in AudioEncoderAACResetFuzzTest()
38 bool ret = aDecBufferDemo->RunCaseReset(data, size); in AudioEncoderAACResetFuzzTest()
43 bool AudioEncoderOPUSResetFuzzTest(const uint8_t *data, size_t size) in AudioEncoderOPUSResetFuzzTest() argument
45 if (size < sizeof(int64_t)) { in AudioEncoderOPUSResetFuzzTest()
51 bool ret = aDecBufferDemo->RunCaseReset(data, size); in AudioEncoderOPUSResetFuzzTest()
56 bool AudioEncoderG711ResetFuzzTest(const uint8_t *data, size_t size) in AudioEncoderG711ResetFuzzTest() argument
58 if (size < sizeof(int64_t)) { in AudioEncoderG711ResetFuzzTest()
64 bool ret = aDecBufferDemo->RunCaseReset(data, size); in AudioEncoderG711ResetFuzzTest()
69 bool AudioEncoderFLACResetFuzzTest(const uint8_t *data, size_t size) in AudioEncoderFLACResetFuzzTest() argument
85 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapidescription_fuzzer/
H A Daudioencoderpreapi_description_fuzzer.cpp30 bool AudioEncoderAACDescriptionFuzzTest(const uint8_t *data, size_t size) in AudioEncoderAACDescriptionFuzzTest() argument
32 if (size < sizeof(int64_t)) { in AudioEncoderAACDescriptionFuzzTest()
38 bool ret = aDecBufferDemo->RunCaseDescription(data, size); in AudioEncoderAACDescriptionFuzzTest()
43 bool AudioEncoderOPUSDescriptionFuzzTest(const uint8_t *data, size_t size) in AudioEncoderOPUSDescriptionFuzzTest() argument
45 if (size < sizeof(int64_t)) { in AudioEncoderOPUSDescriptionFuzzTest()
51 bool ret = aDecBufferDemo->RunCaseDescription(data, size); in AudioEncoderOPUSDescriptionFuzzTest()
56 bool AudioEncoderG711DescriptionFuzzTest(const uint8_t *data, size_t size) in AudioEncoderG711DescriptionFuzzTest() argument
58 if (size < sizeof(int64_t)) { in AudioEncoderG711DescriptionFuzzTest()
64 bool ret = aDecBufferDemo->RunCaseDescription(data, size); in AudioEncoderG711DescriptionFuzzTest()
69 bool AudioEncoderFLACDescriptionFuzzTest(const uint8_t *data, size_t size) in AudioEncoderFLACDescriptionFuzzTest() argument
85 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapi_fuzzer/
H A Daudioencoderpreapi_fuzzer.cpp30 bool AudioEncoderAACFuzzTest(const uint8_t *data, size_t size) in AudioEncoderAACFuzzTest() argument
32 if (size < sizeof(int64_t)) { in AudioEncoderAACFuzzTest()
38 bool ret = aDecBufferDemo->RunCase(data, size); in AudioEncoderAACFuzzTest()
43 bool AudioEncoderOPUSFuzzTest(const uint8_t *data, size_t size) in AudioEncoderOPUSFuzzTest() argument
45 if (size < sizeof(int64_t)) { in AudioEncoderOPUSFuzzTest()
51 bool ret = aDecBufferDemo->RunCase(data, size); in AudioEncoderOPUSFuzzTest()
56 bool AudioEncoderG711FuzzTest(const uint8_t *data, size_t size) in AudioEncoderG711FuzzTest() argument
58 if (size < sizeof(int64_t)) { in AudioEncoderG711FuzzTest()
64 bool ret = aDecBufferDemo->RunCase(data, size); in AudioEncoderG711FuzzTest()
69 bool AudioEncoderFLACFuzzTest(const uint8_t *data, size_t size) in AudioEncoderFLACFuzzTest() argument
85 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/kernel/linux/linux-5.10/arch/s390/lib/
H A Dfind.c17 unsigned long find_first_bit_inv(const unsigned long *addr, unsigned long size) in find_first_bit_inv() argument
23 while (size & ~(BITS_PER_LONG - 1)) { in find_first_bit_inv()
27 size -= BITS_PER_LONG; in find_first_bit_inv()
29 if (!size) in find_first_bit_inv()
31 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); in find_first_bit_inv()
33 return result + size; /* Nope. */ in find_first_bit_inv()
39 unsigned long find_next_bit_inv(const unsigned long *addr, unsigned long size, in find_next_bit_inv() argument
46 if (offset >= size) in find_next_bit_inv()
47 return size; in find_next_bit_inv()
48 size in find_next_bit_inv()
[all...]
/kernel/linux/linux-6.6/arch/s390/lib/
H A Dfind.c17 unsigned long find_first_bit_inv(const unsigned long *addr, unsigned long size) in find_first_bit_inv() argument
23 while (size & ~(BITS_PER_LONG - 1)) { in find_first_bit_inv()
27 size -= BITS_PER_LONG; in find_first_bit_inv()
29 if (!size) in find_first_bit_inv()
31 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); in find_first_bit_inv()
33 return result + size; /* Nope. */ in find_first_bit_inv()
39 unsigned long find_next_bit_inv(const unsigned long *addr, unsigned long size, in find_next_bit_inv() argument
46 if (offset >= size) in find_next_bit_inv()
47 return size; in find_next_bit_inv()
48 size in find_next_bit_inv()
[all...]
/drivers/peripheral/camera/test/fuzztest/camera_host/
H A Dcamera_host_fuzzer.cpp36 void FuncPrelaunch(const uint8_t *rawData, size_t size) in FuncPrelaunch() argument
38 if (size < sizeof(struct HDI::Camera::V1_1::PrelaunchConfig)) { in FuncPrelaunch()
48 void FuncGetCameraAbility(const uint8_t *rawData, size_t size) in FuncGetCameraAbility() argument
54 void FuncOpenCamera(const uint8_t *rawData, size_t size) in FuncOpenCamera() argument
63 void FuncOpenCamera_V1_1(const uint8_t *rawData, size_t size) in FuncOpenCamera_V1_1() argument
72 void FuncSetFlashlight(const uint8_t *rawData, size_t size) in FuncSetFlashlight() argument
78 void FuncSetFlashlightV1_2(const uint8_t *rawData, size_t size) in FuncSetFlashlightV1_2() argument
84 void FuncNotifyDeviceStateChangeInfo(const uint8_t *rawData, size_t size) in FuncNotifyDeviceStateChangeInfo() argument
90 void FuncPreCameraSwitch(const uint8_t *rawData, size_t size) in FuncPreCameraSwitch() argument
96 void FuncPrelaunchWithOpMode(const uint8_t *rawData, size_t size) in FuncPrelaunchWithOpMode() argument
109 FuncOpenSecureCamera(const uint8_t *rawData, size_t size) FuncOpenSecureCamera() argument
118 HostFuncSwitch(uint32_t cmd, const uint8_t *rawData, size_t size) HostFuncSwitch() argument
166 DoSomethingInterestingWithMyApi(const uint8_t *rawData, size_t size) DoSomethingInterestingWithMyApi() argument
192 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/kernel/linux/linux-5.10/arch/mips/mm/
H A Dc-r3k.c30 unsigned long flags, status, dummy, size; in r3k_cache_size() local
45 size = 0; in r3k_cache_size()
47 for (size = 128; size <= 0x40000; size <<= 1) in r3k_cache_size()
48 *(p + size) = 0; in r3k_cache_size()
50 for (size = 128; in r3k_cache_size()
51 (size <= 0x40000) && (*(p + size) == 0); in r3k_cache_size()
52 size << in r3k_cache_size()
105 unsigned long size, i, flags; r3k_flush_icache_range() local
162 unsigned long size, i, flags; r3k_flush_dcache_range() local
272 r3k_flush_kernel_vmap_range(unsigned long vaddr, int size) r3k_flush_kernel_vmap_range() argument
277 r3k_dma_cache_wback_inv(unsigned long start, unsigned long size) r3k_dma_cache_wback_inv() argument
[all...]
/kernel/linux/linux-6.6/arch/mips/mm/
H A Dc-r3k.c30 unsigned long flags, status, dummy, size; in r3k_cache_size() local
45 size = 0; in r3k_cache_size()
47 for (size = 128; size <= 0x40000; size <<= 1) in r3k_cache_size()
48 *(p + size) = 0; in r3k_cache_size()
50 for (size = 128; in r3k_cache_size()
51 (size <= 0x40000) && (*(p + size) == 0); in r3k_cache_size()
52 size << in r3k_cache_size()
105 unsigned long size, i, flags; r3k_flush_icache_range() local
162 unsigned long size, i, flags; r3k_flush_dcache_range() local
268 r3k_flush_kernel_vmap_range(unsigned long vaddr, int size) r3k_flush_kernel_vmap_range() argument
273 r3k_dma_cache_wback_inv(unsigned long start, unsigned long size) r3k_dma_cache_wback_inv() argument
[all...]
/kernel/linux/linux-5.10/lib/
H A Dsort.c20 * is_aligned - is this pointer & size okay for word-wide copying?
22 * @size: size of each element
26 * The size must be a multiple of the alignment, and the base address must
33 static bool is_aligned(const void *base, size_t size, unsigned char align) in is_aligned() argument
35 unsigned char lsbits = (unsigned char)size; in is_aligned()
48 * @n: element size (must be a multiple of 4)
71 * @n: element size (must be a multiple of 8)
107 * @n: element size
133 static void do_swap(void *a, void *b, size_t size, swap_func_ argument
173 parent(size_t i, unsigned int lsbit, size_t size) parent() argument
199 sort_r(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_func_t swap_func, const void *priv) sort_r() argument
266 sort(void *base, size_t num, size_t size, cmp_func_t cmp_func, swap_func_t swap_func) sort() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dgenalloc.h42 * @size: The bitmap size in bits
49 unsigned long size,
102 phys_addr_t phys, size_t size, int nid) in gen_pool_add_virt()
104 return gen_pool_add_owner(pool, addr, phys, size, nid, NULL); in gen_pool_add_virt()
111 * @size: size in bytes of the memory chunk to add to pool
120 size_t size, int nid) in gen_pool_add()
122 return gen_pool_add_virt(pool, addr, -1, size, nid); in gen_pool_add()
125 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size,
101 gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, phys_addr_t phys, size_t size, int nid) gen_pool_add_virt() argument
119 gen_pool_add(struct gen_pool *pool, unsigned long addr, size_t size, int nid) gen_pool_add() argument
128 gen_pool_alloc_owner(struct gen_pool *pool, size_t size, void **owner) gen_pool_alloc_owner() argument
135 gen_pool_alloc_algo(struct gen_pool *pool, size_t size, genpool_algo_t algo, void *data) gen_pool_alloc_algo() argument
151 gen_pool_alloc(struct gen_pool *pool, size_t size) gen_pool_alloc() argument
169 gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) gen_pool_free() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dgenalloc.h42 * @size: The bitmap size in bits
49 unsigned long size,
102 phys_addr_t phys, size_t size, int nid) in gen_pool_add_virt()
104 return gen_pool_add_owner(pool, addr, phys, size, nid, NULL); in gen_pool_add_virt()
111 * @size: size in bytes of the memory chunk to add to pool
120 size_t size, int nid) in gen_pool_add()
122 return gen_pool_add_virt(pool, addr, -1, size, nid); in gen_pool_add()
125 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size,
101 gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, phys_addr_t phys, size_t size, int nid) gen_pool_add_virt() argument
119 gen_pool_add(struct gen_pool *pool, unsigned long addr, size_t size, int nid) gen_pool_add() argument
128 gen_pool_alloc_owner(struct gen_pool *pool, size_t size, void **owner) gen_pool_alloc_owner() argument
135 gen_pool_alloc_algo(struct gen_pool *pool, size_t size, genpool_algo_t algo, void *data) gen_pool_alloc_algo() argument
151 gen_pool_alloc(struct gen_pool *pool, size_t size) gen_pool_alloc() argument
169 gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) gen_pool_free() argument
[all...]
/third_party/elfutils/backends/
H A Driscv_retval.c57 pass_in_gpr_lp64 (const Dwarf_Op **locp, Dwarf_Word size) in pass_in_gpr_lp64() argument
66 return size <= 8 ? 1 : 4; in pass_in_gpr_lp64()
79 pass_in_fpr_lp64f (const Dwarf_Op **locp, Dwarf_Word size) in pass_in_fpr_lp64f() argument
90 return size <= 4 ? 1 : 4; in pass_in_fpr_lp64f()
94 pass_in_fpr_lp64d (const Dwarf_Op **locp, Dwarf_Word size) in pass_in_fpr_lp64d() argument
105 return size <= 8 ? 1 : 4; in pass_in_fpr_lp64d()
119 Dwarf_Word size __attribute__ ((unused)), in pass_by_flattened_arg()
138 Dwarf_Word size = (Dwarf_Word)-1; in riscv_return_value_location_lp64ifd()
148 if (dwarf_aggregate_size (&typedie, &size) < 0) in riscv_return_value_location_lp64ifd()
162 return pass_by_flattened_arg (locp, size, in riscv_return_value_location_lp64ifd()
[all...]
/third_party/mesa3d/src/virtio/vulkan/
H A Dvn_cs.h17 #define VN_CS_ENCODER_INITIALIZER_LOCAL(storage, size) \
22 .buffer_count = 1, .buffer_max = 1, .current_buffer_size = size, \
23 .cur = storage, .end = (const void *)(storage) + (size), \
26 #define VN_CS_ENCODER_INITIALIZER(buf, size) \
30 .buffer_count = 1, .buffer_max = 1, .current_buffer_size = size, \
31 .cur = (buf)->base, .end = (buf)->base + (size), \
34 #define VN_CS_DECODER_INITIALIZER(storage, size) \
37 .cur = storage, .end = (const void *)(storage) + (size), \
159 vn_cs_encoder_reserve_internal(struct vn_cs_encoder *enc, size_t size);
165 vn_cs_encoder_reserve(struct vn_cs_encoder *enc, size_t size) in vn_cs_encoder_reserve() argument
179 vn_cs_encoder_write(struct vn_cs_encoder *enc, size_t size, const void *val, size_t val_size) vn_cs_encoder_write() argument
196 vn_cs_decoder_init(struct vn_cs_decoder *dec, const void *data, size_t size) vn_cs_decoder_init() argument
208 vn_cs_decoder_peek_internal(const struct vn_cs_decoder *dec, size_t size, void *val, size_t val_size) vn_cs_decoder_peek_internal() argument
227 vn_cs_decoder_read(struct vn_cs_decoder *dec, size_t size, void *val, size_t val_size) vn_cs_decoder_read() argument
237 vn_cs_decoder_peek(const struct vn_cs_decoder *dec, size_t size, void *val, size_t val_size) vn_cs_decoder_peek() argument
[all...]
/foundation/window/window_manager/test/fuzztest/dms/screenmanager_fuzzer/
H A Dscreenmanager_fuzzer.cpp59 size_t GetObject(T &object, const uint8_t *data, size_t size) in GetObject() argument
62 if (objectSize > size) { in GetObject()
68 bool ScreenPowerFuzzTest(const uint8_t *data, size_t size) in ScreenPowerFuzzTest() argument
72 if (data == nullptr || size < sizeof(screenPowerState) + sizeof(powerStateChangeReason)) { in ScreenPowerFuzzTest()
82 startPos += GetObject<uint32_t>(screenPowerState, data + startPos, size - startPos); in ScreenPowerFuzzTest()
83 startPos += GetObject<uint32_t>(powerStateChangeReason, data + startPos, size - startPos); in ScreenPowerFuzzTest()
97 bool MakeMirrorWithVirtualScreenFuzzTest(const uint8_t *data, size_t size) in MakeMirrorWithVirtualScreenFuzzTest() argument
99 if (data == nullptr || size < DATA_MIN_SIZE) { in MakeMirrorWithVirtualScreenFuzzTest()
113 startPos += GetObject<uint32_t>(option.width_, data + startPos, size - startPos); in MakeMirrorWithVirtualScreenFuzzTest()
114 startPos += GetObject<uint32_t>(option.height_, data + startPos, size in MakeMirrorWithVirtualScreenFuzzTest()
138 MakeExpandWithVirtualScreenFuzzTest(const uint8_t *data, size_t size) MakeExpandWithVirtualScreenFuzzTest() argument
179 CreateAndDestroyVirtualScreenFuzzTest(const uint8_t *data, size_t size) CreateAndDestroyVirtualScreenFuzzTest() argument
207 SetVirtualScreenSurfaceFuzzTest(const uint8_t *data, size_t size) SetVirtualScreenSurfaceFuzzTest() argument
220 SetScreenRotationLockedFuzzTest(const uint8_t *data, size_t size) SetScreenRotationLockedFuzzTest() argument
234 IsScreenRotationLocked(const uint8_t *data, size_t size) IsScreenRotationLocked() argument
248 RemoveVirtualScreenFromGroupFuzzTest(const uint8_t *data, size_t size) RemoveVirtualScreenFromGroupFuzzTest() argument
262 MakeMirrorFuzzTest(const uint8_t *data, size_t size) MakeMirrorFuzzTest() argument
290 MakeExpandFuzzTest(const uint8_t *data, size_t size) MakeExpandFuzzTest() argument
326 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/kernel/linux/linux-5.10/kernel/dma/
H A Ddirect.c68 static bool dma_coherent_ok(struct device *dev, phys_addr_t phys, size_t size) in dma_coherent_ok() argument
74 return dma_addr + size - 1 <= in dma_coherent_ok()
78 static struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, in __dma_direct_alloc_pages() argument
85 WARN_ON_ONCE(!PAGE_ALIGNED(size)); in __dma_direct_alloc_pages()
89 page = dma_alloc_contiguous(dev, size, gfp); in __dma_direct_alloc_pages()
90 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { in __dma_direct_alloc_pages()
91 dma_free_contiguous(dev, page, size); in __dma_direct_alloc_pages()
96 page = alloc_pages_node(node, gfp, get_order(size)); in __dma_direct_alloc_pages()
97 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { in __dma_direct_alloc_pages()
98 dma_free_contiguous(dev, page, size); in __dma_direct_alloc_pages()
117 dma_direct_alloc_from_pool(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) dma_direct_alloc_from_pool() argument
133 dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) dma_direct_alloc() argument
244 dma_direct_free(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_addr, unsigned long attrs) dma_direct_free() argument
277 dma_direct_alloc_pages(struct device *dev, size_t size, dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) dma_direct_alloc_pages() argument
314 dma_direct_free_pages(struct device *dev, size_t size, struct page *page, dma_addr_t dma_addr, enum dma_data_direction dir) dma_direct_free_pages() argument
413 dma_direct_map_resource(struct device *dev, phys_addr_t paddr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_direct_map_resource() argument
429 dma_direct_get_sgtable(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_direct_get_sgtable() argument
448 dma_direct_mmap(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_direct_mmap() argument
522 dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start, dma_addr_t dma_start, u64 size) dma_direct_set_offset() argument
[all...]
/third_party/vixl/test/
H A Dtest-invalset.cc97 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
102 VIXL_CHECK(set.size() == kNPreallocatedElements); in TEST()
106 VIXL_CHECK(set.size() == kNPreallocatedElements + 2); in TEST()
113 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
127 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
132 VIXL_CHECK(set.size() == kNPreallocatedElements); in TEST()
134 VIXL_CHECK(set.size() == kNPreallocatedElements + 1); in TEST()
137 VIXL_CHECK(set.size() == kNPreallocatedElements + 3); in TEST()
140 VIXL_CHECK(set.empty() && (set.size() == 0)); in TEST()
146 VIXL_CHECK(set.empty() && (set.size() in TEST()
226 size_t size = 0; TEST() local
295 size_t size = 0; TEST() local
[all...]
/kernel/linux/linux-6.6/kernel/dma/
H A Dmapping.c30 size_t size; member
40 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release()
49 WARN_ON(this->size != match->size || in dmam_match()
59 * @size: Size of allocation
65 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent() argument
68 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent()
70 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent()
78 * @size: Size of allocation
89 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_ argument
147 dma_map_page_attrs(struct device *dev, struct page *page, size_t offset, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_page_attrs() argument
171 dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_page_attrs() argument
299 dma_map_resource(struct device *dev, phys_addr_t phys_addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_resource() argument
320 dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_resource() argument
332 dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_cpu() argument
346 dma_sync_single_for_device(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_device() argument
399 dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_get_sgtable_attrs() argument
461 dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_mmap_attrs() argument
497 dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs) dma_alloc_attrs() argument
531 dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) dma_free_attrs() argument
558 __dma_alloc_pages(struct device *dev, size_t size, dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) __dma_alloc_pages() argument
578 dma_alloc_pages(struct device *dev, size_t size, dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) dma_alloc_pages() argument
589 __dma_free_pages(struct device *dev, size_t size, struct page *page, dma_addr_t dma_handle, enum dma_data_direction dir) __dma_free_pages() argument
601 dma_free_pages(struct device *dev, size_t size, struct page *page, dma_addr_t dma_handle, enum dma_data_direction dir) dma_free_pages() argument
609 dma_mmap_pages(struct device *dev, struct vm_area_struct *vma, size_t size, struct page *page) dma_mmap_pages() argument
622 alloc_single_sgt(struct device *dev, size_t size, enum dma_data_direction dir, gfp_t gfp) alloc_single_sgt() argument
646 dma_alloc_noncontiguous(struct device *dev, size_t size, enum dma_data_direction dir, gfp_t gfp, unsigned long attrs) dma_alloc_noncontiguous() argument
670 free_single_sgt(struct device *dev, size_t size, struct sg_table *sgt, enum dma_data_direction dir) free_single_sgt() argument
679 dma_free_noncontiguous(struct device *dev, size_t size, struct sg_table *sgt, enum dma_data_direction dir) dma_free_noncontiguous() argument
692 dma_vmap_noncontiguous(struct device *dev, size_t size, struct sg_table *sgt) dma_vmap_noncontiguous() argument
713 dma_mmap_noncontiguous(struct device *dev, struct vm_area_struct *vma, size_t size, struct sg_table *sgt) dma_mmap_noncontiguous() argument
799 size_t size = SIZE_MAX; dma_max_mapping_size() local
813 size_t size = SIZE_MAX; dma_opt_mapping_size() local
[all...]
/third_party/skia/third_party/externals/angle2/src/common/spirv/
H A Dspirv_instruction_builder_autogen.cpp56 const size_t startSize = blob->size(); in WriteNop()
59 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpNop); in WriteNop()
63 const size_t startSize = blob->size(); in WriteUndef()
67 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpUndef); in WriteUndef()
71 const size_t startSize = blob->size(); in WriteSourceContinued()
74 size_t d = blob->size(); in WriteSourceContinued()
79 (*blob)[startSize] = MakeLengthOp(blob->size() - startSize, spv::OpSourceContinued); in WriteSourceContinued()
87 const size_t startSize = blob->size(); in WriteSource()
98 size_t d = blob->size(); in WriteSource()
104 (*blob)[startSize] = MakeLengthOp(blob->size() in WriteSource()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dhmm-tests.c39 unsigned long size; member
153 munmap(buffer->ptr, buffer->size); in hmm_buffer_free()
161 static int hmm_create_file(unsigned long size) in hmm_create_file() argument
172 r = ftruncate(fd, size); in hmm_create_file()
224 unsigned long size; in TEST_F() local
232 size = npages << self->page_shift; in TEST_F()
238 buffer->size = size; in TEST_F()
239 buffer->mirror = malloc(size); in TEST_F()
242 buffer->ptr = mmap(NULL, size, in TEST_F()
288 unsigned long size; TEST_F() local
347 unsigned long size; TEST_F() local
395 unsigned long size; TEST_F() local
461 unsigned long size; TEST_F() local
539 unsigned long size; TEST_F() local
616 unsigned long size; TEST_F() local
672 unsigned long size; TEST_F() local
731 unsigned long size; TEST_F() local
786 unsigned long size; TEST_F() local
844 unsigned long size; TEST_F() local
892 unsigned long size; TEST_F() local
951 unsigned long size; TEST_F() local
986 unsigned long size; TEST_F() local
1074 unsigned long size; TEST_F() local
1128 unsigned long size; TEST_F() local
1190 unsigned long size; TEST_F() local
1252 unsigned long size; TEST_F() local
1294 unsigned long size; TEST_F() local
1389 unsigned long size; TEST_F() local
1464 unsigned long size; TEST_F() local
[all...]
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/refreshlnn_fuzzer/
H A Drefreshlnn_fuzzer.cpp57 static void GenRanDiscInfo(char* data, size_t size) in GenRanDiscInfo() argument
59 g_sInfo.subscribeId = size; in GenRanDiscInfo()
60 g_sInfo.mode = (size % MAX_SIZE_DISCOVER_MODE) ? DISCOVER_MODE_ACTIVE : DISCOVER_MODE_PASSIVE; in GenRanDiscInfo()
61 g_sInfo.medium = (ExchangeMedium)(size % MAX_SIZE_EXCHANGE_MEDIUM); in GenRanDiscInfo()
62 g_sInfo.freq = (ExchangeFreq)(size % MAX_SIZE_EXCHANGE_FREQ); in GenRanDiscInfo()
63 g_sInfo.isSameAccount = (size % MAX_SIZE_DISCOVER_MODE) ? true : false; in GenRanDiscInfo()
64 g_sInfo.isWakeRemote = (size % MAX_SIZE_DISCOVER_MODE) ? true : false; in GenRanDiscInfo()
65 g_sInfo.capability = g_capabilityMap[(DataBitMap)(size % MAX_SIZE_CAPABILITYMAP)].capability; in GenRanDiscInfo()
67 g_sInfo.dataLen = size; in GenRanDiscInfo()
70 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
100 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/metainfomgr_fuzzer/
H A Dmetainfomgr_fuzzer.cpp28 void SyncMetaInfoFromDBFuzzTest(const uint8_t* data, size_t size) in SyncMetaInfoFromDBFuzzTest() argument
30 if ((data == nullptr) || (size == 0)) { in SyncMetaInfoFromDBFuzzTest()
33 std::string deviceId(reinterpret_cast<const char*>(data), size); in SyncMetaInfoFromDBFuzzTest() local
38 void GetDataByKeyPrefixFuzzTest(const uint8_t* data, size_t size) in GetDataByKeyPrefixFuzzTest() argument
40 if ((data == nullptr) || (size == 0)) { in GetDataByKeyPrefixFuzzTest()
43 std::string keyPrefix(reinterpret_cast<const char*>(data), size); in GetDataByKeyPrefixFuzzTest() local
48 void RemoveMetaInfoByKeyFuzzTest(const uint8_t* data, size_t size) in RemoveMetaInfoByKeyFuzzTest() argument
50 if ((data == nullptr) || (size == 0)) { in RemoveMetaInfoByKeyFuzzTest()
53 std::string key(reinterpret_cast<const char*>(data), size); in RemoveMetaInfoByKeyFuzzTest() local
57 void GetMetaCapInfoFuzzTest(const uint8_t* data, size_t size) in GetMetaCapInfoFuzzTest() argument
62 std::string deviceId(reinterpret_cast<const char*>(data), size); GetMetaCapInfoFuzzTest() local
63 std::string udidHash(reinterpret_cast<const char*>(data), size); GetMetaCapInfoFuzzTest() local
64 std::string dhId(reinterpret_cast<const char*>(data), size); GetMetaCapInfoFuzzTest() local
76 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]

Completed in 19 milliseconds

1...<<11121314151617181920>>...2061