Home
last modified time | relevance | path

Searched refs:size (Results 2251 - 2275 of 57195) sorted by relevance

1...<<919293949596979899100>>...2288

/kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/secure/
H A Dlos_secure_heap.c44 UINT32 size : 24; member
56 ((struct OsSecureHeapNode *)((UINT8 *)(node) + (node)->size))
88 if (tmpNode->size >= allocSize) { in OsSecureHeapFindSuitableFreeBlock()
99 node->size = 0; in OsSecureHeapClearNode()
109 node->preNode->size += node->size; in OsSecureHeapMergeNode()
110 nextNode = (struct OsSecureHeapNode *)((UINTPTR)node + node->size); in OsSecureHeapMergeNode()
122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
124 allocNode->size in OsSecureHeapSplitNode()
163 OsSecureHeapAllocNode(UINT32 size) OsSecureHeapAllocNode() argument
201 HalSecureMalloc(UINT32 size) HalSecureMalloc() argument
[all...]
/kernel/liteos_m/arch/arm/cortex-m55/gcc/TZ/secure/
H A Dlos_secure_heap.c43 UINT32 size : 24; member
55 ((struct OsSecureHeapNode *)((UINT8 *)(node) + (node)->size))
87 if (tmpNode->size >= allocSize) { in OsSecureHeapFindSuitableFreeBlock()
98 node->size = 0; in OsSecureHeapClearNode()
108 node->preNode->size += node->size; in OsSecureHeapMergeNode()
109 nextNode = (struct OsSecureHeapNode *)((UINTPTR)node + node->size); in OsSecureHeapMergeNode()
121 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
123 allocNode->size in OsSecureHeapSplitNode()
162 OsSecureHeapAllocNode(UINT32 size) OsSecureHeapAllocNode() argument
200 HalSecureMalloc(UINT32 size) HalSecureMalloc() argument
[all...]
/kernel/liteos_m/arch/arm/cortex-m55/iar/TZ/secure/
H A Dlos_secure_heap.c44 UINT32 size : 24; member
56 ((struct OsSecureHeapNode *)((UINT8 *)(node) + (node)->size))
88 if (tmpNode->size >= allocSize) { in OsSecureHeapFindSuitableFreeBlock()
99 node->size = 0; in OsSecureHeapClearNode()
109 node->preNode->size += node->size; in OsSecureHeapMergeNode()
110 nextNode = (struct OsSecureHeapNode *)((UINTPTR)node + node->size); in OsSecureHeapMergeNode()
122 newFreeNode->size = allocNode->size - allocSize; in OsSecureHeapSplitNode()
124 allocNode->size in OsSecureHeapSplitNode()
163 OsSecureHeapAllocNode(UINT32 size) OsSecureHeapAllocNode() argument
201 HalSecureMalloc(UINT32 size) HalSecureMalloc() argument
[all...]
/third_party/ffmpeg/tools/
H A Dtarget_dem_fuzzer.c35 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
53 int size = FFMIN(buf_size, c->fuzz_size); in io_read() local
59 if (c->pos > INT64_MAX - size) in io_read()
62 memcpy(buf, c->fuzz, size); in io_read()
63 c->fuzz += size; in io_read()
64 c->fuzz_size -= size; in io_read()
65 c->pos += size; in io_read()
68 return size; in io_read()
102 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput() argument
111 int64_t filesize = size; in LLVMFuzzerTestOneInput()
[all...]
/third_party/musl/porting/liteos_m/kernel/src/stdio/
H A Dvfscanf.c22 static void store_int(void *dest, int size, unsigned long long i) in store_int() argument
25 switch (size) { in store_int()
59 int size; in vfscanf() local
130 size = SIZE_def; in vfscanf()
133 if (*p == 'h') p++, size = SIZE_hh; in vfscanf()
134 else size = SIZE_h; in vfscanf()
137 if (*p == 'l') p++, size = SIZE_ll; in vfscanf()
138 else size = SIZE_l; in vfscanf()
141 size = SIZE_ll; in vfscanf()
145 size in vfscanf()
[all...]
/third_party/musl/porting/uniproton/kernel/src/stdio/
H A Dvfscanf.c22 static void store_int(void *dest, int size, unsigned long long i) in store_int() argument
25 switch (size) { in store_int()
59 int size; in vfscanf() local
130 size = SIZE_def; in vfscanf()
133 if (*p == 'h') p++, size = SIZE_hh; in vfscanf()
134 else size = SIZE_h; in vfscanf()
137 if (*p == 'l') p++, size = SIZE_ll; in vfscanf()
138 else size = SIZE_l; in vfscanf()
141 size = SIZE_ll; in vfscanf()
145 size in vfscanf()
[all...]
/third_party/node/deps/npm/node_modules/cacache/lib/
H A Dget.js12 const { integrity, memoize, size } = opts
19 size: memoized.entry.size,
27 const data = await read(cache, entry.integrity, { integrity, size })
35 size: entry.size,
42 const { integrity, memoize, size } = opts
48 const res = await read(cache, key, { integrity, size })
61 ev === 'size' && cb(memoized.entry.size)
[all...]
/third_party/ltp/testcases/kernel/fs/mongo/
H A Dreiser_fract_tree.c22 in size randomly according to a distribution function which seems to model real in print_usage()
23 file systems. This distribution function has a median size of median_file_size in print_usage()
24 (Median file size is hypothesized to be proportional to the average per file in print_usage()
26 file size usage patterns will in the long term move to a lower median file in print_usage()
27 size), and a maximum size of max_file_size. Directories vary in size according in print_usage()
29 and maximum size for the number of files within them, and the number of in print_usage()
41 particular file or directory size ranges, try setting their median size an in print_usage()
99 double size, double_nr_random; determine_size() local
143 make_file(int size) make_file() argument
279 long size; fill_this_directory() local
[all...]
/third_party/python/Lib/
H A Dbz2.py157 def read(self, size=-1):
158 """Read up to size uncompressed bytes from the file.
160 If size is negative or omitted, read until EOF is reached.
164 return self._buffer.read(size)
166 def read1(self, size=-1):
167 """Read up to size uncompressed bytes, while trying to avoid
169 buffer's worth of data if size is negative.
174 if size < 0:
175 size = io.DEFAULT_BUFFER_SIZE
176 return self._buffer.read1(size)
[all...]
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_fault_stack.cpp62 uintptr_t FaultStack::AdjustAndCreateMemoryBlock(size_t index, uintptr_t prevSp, uintptr_t prevEndAddr, uintptr_t size) in AdjustAndCreateMemoryBlock() argument
69 size += lowAddrLength; in AdjustAndCreateMemoryBlock()
72 if (size == 0 || index == 0) { in AdjustAndCreateMemoryBlock()
77 auto block = CreateMemoryBlock(startAddr, prevSp, size, name); in AdjustAndCreateMemoryBlock()
79 return startAddr + size * STEP; in AdjustAndCreateMemoryBlock()
91 uintptr_t size = 0; in CollectStackInfo() local
102 for (index = 1; index < frames.size(); index++) { in CollectStackInfo()
110 size = 0; in CollectStackInfo()
112 size = std::min(highAddrLength, static_cast<uintptr_t>(((curSp - prevSp) / STEP) - 1)); in CollectStackInfo()
117 prevEndAddr = AdjustAndCreateMemoryBlock(index, prevSp, prevEndAddr, size); in CollectStackInfo()
131 CreateBlockForCorruptedStack(const std::vector<DfxFrame>& frames, uintptr_t prevEndAddr, uintptr_t size) CreateBlockForCorruptedStack() argument
187 CreateMemoryBlock( uintptr_t addr, uintptr_t offset, uintptr_t size, const std::string& name) const CreateMemoryBlock() argument
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
H A Dcm_ipc_service_serialization.c30 if ((*destOffset > destBlob->size) || ((destBlob->size - *destOffset) < sizeof(value))) { in CopyUint32ToBuffer()
34 if (memcpy_s(destBlob->data + *destOffset, destBlob->size - *destOffset, &value, sizeof(value)) != EOK) { in CopyUint32ToBuffer()
46 if ((*destOffset > destBlob->size) || in CopyBlobToBuffer()
47 ((destBlob->size - *destOffset) < (sizeof(blob->size) + ALIGN_SIZE(blob->size)))) { in CopyBlobToBuffer()
51 if (memcpy_s(destBlob->data + *destOffset, destBlob->size - *destOffset, in CopyBlobToBuffer()
52 &(blob->size), sizeof(blob->size)) ! in CopyBlobToBuffer()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_gauge_ffi.cpp29 VectorColorStops FFICJCreateVectorColorStop(int64_t size) in FFICJCreateVectorColorStop() argument
32 return new std::vector<ColorStop>(size); in FFICJCreateVectorColorStop()
49 VecLinearGradientHandle FFICJCreateVectorGaugeLinearGradient(int64_t size) in FFICJCreateVectorGaugeLinearGradient() argument
52 return new std::vector<VectorColorStops>(size); in FFICJCreateVectorGaugeLinearGradient()
122 if (vecColor.size() != vecWeight.size()) { in FfiOHOSAceFrameworkGaugeSetColors()
127 for (size_t i = 0; i < vecColor.size(); ++i) { in FfiOHOSAceFrameworkGaugeSetColors()
140 if (vecColor.size() != vecWeight.size()) { in FfiOHOSAceFrameworkGaugeSetColorsV2()
144 if (vecColor.size() < in FfiOHOSAceFrameworkGaugeSetColorsV2()
237 FfiOHOSAceFrameworkGaugeSetIndicator(const char* icon, double size) FfiOHOSAceFrameworkGaugeSetIndicator() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dpng_exif_metadata_accessor.cpp106 IMAGE_LOGE("Failed to read chunk data. Expected size: %{public}zu", chunkData.Size()); in ProcessExifData()
135 IMAGE_LOGE("Failed to read chunk head. Expected size: %{public}zu", chunkHead.Size()); in ReadBlob()
140 IMAGE_LOGE("Chunk length is larger than the remaining image size"); in ReadBlob()
188 bool PngExifMetadataAccessor::GetExifEncodedBlob(uint8_t **dataBlob, uint32_t &size) in GetExifEncodedBlob() argument
196 TiffParser::Encode(dataBlob, size, exifData); in GetExifEncodedBlob()
202 DataBuf blobBuf(*dataBlob, size); in GetExifEncodedBlob()
208 return ((size > 0) && (size <= PNG_CHUNK_DATA_MAX)); in GetExifEncodedBlob()
211 bool PngExifMetadataAccessor::WriteData(BufferMetadataStream &bufStream, uint8_t *data, uint32_t size) in WriteData() argument
213 if (bufStream.Write(data, size) ! in WriteData()
220 WriteExifData(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size, DataBuf &chunkBuf, std::string chunkType) WriteExifData() argument
258 UpdateExifMetadata(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size) UpdateExifMetadata() argument
306 UpdateData(uint8_t *dataBlob, uint32_t size) UpdateData() argument
330 uint32_t size = 0; Write() local
360 uint32_t size = 0; WriteBlob() local
[all...]
/foundation/distributeddatamgr/data_share/test/native/unittest/mediadatashare_test/src/
H A Dabnormal_branch_test.cpp109 size_t size = 0; in HWTEST_F() local
111 AppDataFwk::SharedBlock temp(name, nullptr, size, readOnly); in HWTEST_F()
128 result = temp.SetRawData(nullptr, size); in HWTEST_F()
156 EXPECT_EQ(results.size(), uris.size()); in HWTEST_F()
170 EXPECT_EQ(results.size(), uris.size()); in HWTEST_F()
183 EXPECT_EQ(results.size(), uris.size()); in HWTEST_F()
185 EXPECT_EQ(results.size(), uri in HWTEST_F()
[all...]
/kernel/linux/linux-5.10/arch/arm/plat-orion/
H A Dpcie.c126 u32 size; in orion_pcie_setup_wins() local
151 * Setup windows for DDR banks. Count total DDR size on the fly. in orion_pcie_setup_wins()
153 size = 0; in orion_pcie_setup_wins()
159 writel(((cs->size - 1) & 0xffff0000) | in orion_pcie_setup_wins()
164 size += cs->size; in orion_pcie_setup_wins()
168 * Round up 'size' to the nearest power of two. in orion_pcie_setup_wins()
170 if ((size & (size - 1)) != 0) in orion_pcie_setup_wins()
171 size in orion_pcie_setup_wins()
208 orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf() argument
227 orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_tlp() argument
250 orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_wa() argument
266 orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 val) orion_pcie_wr_conf() argument
[all...]
/kernel/linux/linux-6.6/arch/arm/plat-orion/
H A Dpcie.c126 u32 size; in orion_pcie_setup_wins() local
151 * Setup windows for DDR banks. Count total DDR size on the fly. in orion_pcie_setup_wins()
153 size = 0; in orion_pcie_setup_wins()
159 writel(((cs->size - 1) & 0xffff0000) | in orion_pcie_setup_wins()
164 size += cs->size; in orion_pcie_setup_wins()
168 * Round up 'size' to the nearest power of two. in orion_pcie_setup_wins()
170 if ((size & (size - 1)) != 0) in orion_pcie_setup_wins()
171 size in orion_pcie_setup_wins()
208 orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf() argument
227 orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_tlp() argument
250 orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) orion_pcie_rd_conf_wa() argument
266 orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, u32 devfn, int where, int size, u32 val) orion_pcie_wr_conf() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_gem_cma_helper.c39 * @size: size of the object to allocate
41 * This function creates and initializes a GEM CMA object of the given size,
49 __drm_gem_cma_create(struct drm_device *drm, size_t size) in __drm_gem_cma_create() argument
56 gem_obj = drm->driver->gem_create_object(drm, size); in __drm_gem_cma_create()
63 ret = drm_gem_object_init(drm, gem_obj, size); in __drm_gem_cma_create()
81 * drm_gem_cma_create - allocate an object with the given size
83 * @size: size of the object to allocate
94 size_t size) in drm_gem_cma_create()
93 drm_gem_cma_create(struct drm_device *drm, size_t size) drm_gem_cma_create() argument
139 drm_gem_cma_create_with_handle(struct drm_file *file_priv, struct drm_device *drm, size_t size, uint32_t *handle) drm_gem_cma_create_with_handle() argument
579 drm_gem_cma_create_object_default_funcs(struct drm_device *dev, size_t size) drm_gem_cma_create_object_default_funcs() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/
H A Ddso-data.c18 static char *test_file(int size) in test_file() argument
35 buf = malloc(size); in test_file()
41 for (i = 0; i < size; i++) in test_file()
44 if (size != write(fd, buf, size)) in test_file()
57 int size; member
65 .size = 10,
71 .size = 10,
77 .size = 10,
83 .size
135 ssize_t size; test__dso_data() local
148 ssize_t size; test__dso_data() local
204 dsos__create(int cnt, int size) dsos__create() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ipa/data/
H A Dipa_data-v4.5.c277 .size = 0x0080,
283 .size = 0x0200,
289 .size = 0x0078,
295 .size = 0x0078,
301 .size = 0x0078,
307 .size = 0x0078,
313 .size = 0x0078,
319 .size = 0x0078,
325 .size = 0x0078,
331 .size
[all...]
H A Dipa_data-v4.9.c275 .size = 0x0080,
281 .size = 0x0200,
287 .size = 0x0078,
293 .size = 0x0078,
299 .size = 0x0078,
305 .size = 0x0078,
311 .size = 0x0078,
317 .size = 0x0078,
323 .size = 0x0078,
329 .size
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Ddso-data.c18 static char *test_file(int size) in test_file() argument
35 buf = malloc(size); in test_file()
41 for (i = 0; i < size; i++) in test_file()
44 if (size != write(fd, buf, size)) in test_file()
57 int size; member
65 .size = 10,
71 .size = 10,
77 .size = 10,
83 .size
135 ssize_t size; test__dso_data() local
148 ssize_t size; test__dso_data() local
204 dsos__create(int cnt, int size) dsos__create() argument
[all...]
/test/xts/hats/hdf/audio/idl/common/manager/src/
H A Daudio_manager_common_test.cpp128 uint32_t size = 0; in HWTEST_F() local
130 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, g_manager->GetAllAdapters(nullptr, &descs, &size)); in HWTEST_F()
135 uint32_t size = 0; in HWTEST_F() local
136 EXPECT_EQ(HDF_ERR_INVALID_PARAM, g_manager->GetAllAdapters(g_manager, nullptr, &size)); in HWTEST_F()
141 uint32_t size = 0; in HWTEST_F() local
143 EXPECT_EQ(HDF_ERR_INVALID_PARAM, g_manager->GetAllAdapters(g_manager, &descs, &size)); in HWTEST_F()
148 uint32_t size = UINT_MAX; in HWTEST_F() local
150 EXPECT_EQ(HDF_ERR_INVALID_PARAM, g_manager->GetAllAdapters(g_manager, &descs, &size)); in HWTEST_F()
155 uint32_t size = g_audioAdapterNumMax; in HWTEST_F() local
159 ASSERT_EQ(HDF_SUCCESS, g_manager->GetAllAdapters(g_manager, descs, &size)); in HWTEST_F()
166 uint32_t size = g_audioAdapterNumMax; HWTEST_F() local
207 uint32_t size = g_audioAdapterNumMax; HWTEST_F() local
227 uint32_t size = g_audioAdapterNumMax; HWTEST_F() local
[all...]
/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerMerge.cpp43 // STARTED 0 123 # FileID, file size
88 assert(ExpectedStartMarker < Files.size()); in Parse()
118 assert(NumFilesInFirstCorpus <= Files.size()); in Merge()
126 size_t InitialNumFeatures = AllFeatures.size(); in Merge()
129 for (size_t i = NumFilesInFirstCorpus; i < Files.size(); i++) { in Merge()
144 return a.Features.size() > b.Features.size(); in Merge()
149 for (size_t i = NumFilesInFirstCorpus; i < Files.size(); i++) { in Merge()
152 // Files[i].Size, Cur.size()); in Merge()
153 size_t OldSize = AllFeatures.size(); in Merge()
[all...]
/third_party/node/deps/v8/src/base/platform/
H A Dplatform-cygwin.cc50 uint8_t* RandomizedVirtualAlloc(size_t size, DWORD flags, DWORD protect, in RandomizedVirtualAlloc() argument
56 base = VirtualAlloc(hint, size, flags, protect); in RandomizedVirtualAlloc()
61 base = VirtualAlloc(nullptr, size, flags, protect); in RandomizedVirtualAlloc()
99 void* OS::Allocate(void* hint, size_t size, size_t alignment, in Allocate() argument
102 DCHECK_EQ(0, size % page_size); in Allocate()
112 // First, try an exact size aligned allocation. in Allocate()
113 uint8_t* base = RandomizedVirtualAlloc(size, flags, protect, hint); in Allocate()
121 Free(base, size); in Allocate()
128 size_t padded_size = size + (alignment - page_size); in Allocate()
140 VirtualAlloc(aligned_base, size, flag in Allocate()
150 Free(void* address, const size_t size) Free() argument
158 Release(void* address, size_t size) Release() argument
165 SetPermissions(void* address, size_t size, MemoryPermission access) SetPermissions() argument
176 DiscardSystemPages(void* address, size_t size) DiscardSystemPages() argument
[all...]
/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dstruct_layout.rs31 /// Returns a size aligned to a given value.
32 pub fn align_to(size: usize, align: usize) -> usize { in align_to()
34 return size; in align_to()
37 let rem = size % align; in align_to()
39 return size; in align_to()
42 size + align - rem in align_to()
134 self.latest_offset += self.padding_bytes(layout) + layout.size; in saw_base()
145 self.latest_offset += layout.size; in saw_bitfield_unit()
149 self.latest_offset - layout.size, in saw_bitfield_unit()
183 field_layout.size in saw_field()
[all...]

Completed in 15 milliseconds

1...<<919293949596979899100>>...2288