Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 1510) sorted by relevance

12345678910>>...61

/external/qemu/distrib/ext4_utils/src/
Dindirect.c28 static u8 *create_backing(struct block_allocation *alloc, in create_backing() argument
39 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in create_backing()
43 get_region(alloc, &region_block, &region_len); in create_backing()
55 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block() argument
57 if (reserve_oob_blocks(alloc, 1)) { in reserve_indirect_block()
62 if (advance_blocks(alloc, len)) { in reserve_indirect_block()
68 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block() argument
70 if (reserve_oob_blocks(alloc, 1)) { in reserve_dindirect_block()
78 reserve_indirect_block(alloc, ind_block_len); in reserve_dindirect_block()
85 static void reserve_tindirect_block(struct block_allocation *alloc, int len) in reserve_tindirect_block() argument
[all …]
Dextent.c29 static u8 *extent_create_backing(struct block_allocation *alloc, in extent_create_backing() argument
37 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in extent_create_backing()
41 get_region(alloc, &region_block, &region_len); in extent_create_backing()
55 static void extent_create_backing_file(struct block_allocation *alloc, in extent_create_backing_file() argument
59 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in extent_create_backing_file()
63 get_region(alloc, &region_block, &region_len); in extent_create_backing_file()
78 struct block_allocation *alloc = allocate_blocks(block_len + 1); in do_inode_allocate_extents() local
84 if (alloc == NULL) { in do_inode_allocate_extents()
89 int allocation_len = block_allocation_num_regions(alloc); in do_inode_allocate_extents()
91 reduce_allocation(alloc, 1); in do_inode_allocate_extents()
[all …]
Dallocate.c70 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation() local
71 alloc->list.first = NULL; in create_allocation()
72 alloc->list.last = NULL; in create_allocation()
73 alloc->oob_list.first = NULL; in create_allocation()
74 alloc->oob_list.last = NULL; in create_allocation()
75 alloc->list.iter = NULL; in create_allocation()
76 alloc->list.partial_iter = 0; in create_allocation()
77 alloc->oob_list.iter = NULL; in create_allocation()
78 alloc->oob_list.partial_iter = 0; in create_allocation()
79 return alloc; in create_allocation()
[all …]
Dallocate.h30 int block_allocation_num_regions(struct block_allocation *alloc);
31 int block_allocation_len(struct block_allocation *alloc);
34 void reduce_allocation(struct block_allocation *alloc, u32 len);
35 u32 get_block(struct block_allocation *alloc, u32 block);
36 u32 get_oob_block(struct block_allocation *alloc, u32 block);
37 void get_next_region(struct block_allocation *alloc);
38 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
47 void free_alloc(struct block_allocation *alloc);
48 int reserve_oob_blocks(struct block_allocation *alloc, int blocks);
49 int advance_blocks(struct block_allocation *alloc, int blocks);
[all …]
/external/chromium_org/tools/android/heap_profiler/
Dheap_profiler.c173 Alloc* alloc = NULL; in insert_alloc() local
177 alloc = allocs_freelist; in insert_alloc()
178 allocs_freelist = alloc->next_free; in insert_alloc()
180 alloc = &allocs[stats->max_allocs]; in insert_alloc()
186 alloc->start = start; in insert_alloc()
187 alloc->end = end; in insert_alloc()
188 alloc->st = st; in insert_alloc()
189 alloc->flags = flags; in insert_alloc()
190 alloc->next_free = NULL; in insert_alloc()
191 RB_INSERT(HeapEntriesTree, &allocs_tree, alloc); in insert_alloc()
[all …]
/external/valgrind/main/massif/tests/
Dculling1.stderr.exp24 Massif: alloc S. 1 (t:32, hp:16, ex:16, st:0)
25 Massif: alloc S. 2 (t:64, hp:32, ex:32, st:0)
26 Massif: alloc S. 3 (t:96, hp:48, ex:48, st:0)
27 Massif: alloc S. 4 (t:128, hp:64, ex:64, st:0)
28 Massif: alloc S. 5 (t:160, hp:80, ex:80, st:0)
29 Massif: alloc S. 6 (t:192, hp:96, ex:96, st:0)
30 Massif: alloc S. 7 (t:224, hp:112, ex:112, st:0)
31 Massif: alloc S. 8 (t:256, hp:128, ex:128, st:0)
32 Massif: alloc Sd 9 (t:288, hp:144, ex:144, st:0)
33 Massif: alloc S. 10 (t:320, hp:160, ex:160, st:0)
[all …]
Dculling2.stderr.exp24 Massif: alloc S. 1 (t:16, hp:0, ex:16, st:0)
25 Massif: alloc S. 2 (t:432, hp:400, ex:32, st:0)
26 Massif: alloc S. 3 (t:1248, hp:1200, ex:48, st:0)
27 Massif: alloc S. 4 (t:2464, hp:2400, ex:64, st:0)
28 Massif: alloc S. 5 (t:4080, hp:4000, ex:80, st:0)
29 Massif: alloc S. 6 (t:6096, hp:6000, ex:96, st:0)
30 Massif: alloc S. 7 (t:8512, hp:8400, ex:112, st:0)
31 Massif: alloc S. 8 (t:11328, hp:11200, ex:128, st:0)
32 Massif: alloc Sd 9 (t:14544, hp:14400, ex:144, st:0)
33 Massif: alloc S. 10 (t:18160, hp:18000, ex:160, st:0)
[all …]
Dpeak2.stderr.exp24 Massif: alloc S. 1 (t:1728, hp:1600, ex:128, st:0)
25 Massif: alloc S. 2 (t:1872, hp:1616, ex:256, st:0)
28 Massif: alloc S. 5 (t:3744, hp:3200, ex:256, st:0)
29 Massif: alloc S. 6 (t:3888, hp:3216, ex:384, st:0)
32 Massif: alloc S. 9 (t:5760, hp:4800, ex:384, st:0)
33 Massif: alloc S. 10 (t:5904, hp:4816, ex:512, st:0)
36 Massif: alloc S. 13 (t:7776, hp:6400, ex:512, st:0)
37 Massif: alloc S. 14 (t:7920, hp:6416, ex:640, st:0)
40 Massif: alloc S. 17 (t:9792, hp:8000, ex:640, st:0)
41 Massif: alloc S. 18 (t:9936, hp:8016, ex:768, st:0)
[all …]
Ddeep-D.vgtest2alloc-fn=a1 --alloc-fn=a2 --alloc-fn=a3 --alloc-fn=a4 --alloc-fn=a5 --alloc-fn=a6 --alloc-fn=a7 --
Dalloc-fns-B.vgtest1 prog: alloc-fns
2 …-admin=0 --alloc-fn=a4 --alloc-fn=b4 --alloc-fn=b3 --alloc-fn=c4 --alloc-fn=c3 --alloc-fn=c2 --all…
Ddeep-C.vgtest2 …-unit=B --alloc-fn=a3 --alloc-fn=a4 --alloc-fn=a5 --alloc-fn=a6 --alloc-fn=a7 --alloc-fn=a8 --allo…
Ddeep-B.vgtest2 …es --stacks=no --time-unit=B --alloc-fn=a6 --alloc-fn=a7 --alloc-fn=a8 --alloc-fn=a9 --alloc-fn=a1…
/external/chromium_org/third_party/skia/tests/
DMemsetTest.cpp14 SkChunkAlloc alloc(min); in test_chunkalloc() local
16 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity()); in test_chunkalloc()
17 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed()); in test_chunkalloc()
18 REPORTER_ASSERT(reporter, 0 == alloc.blockCount()); in test_chunkalloc()
19 REPORTER_ASSERT(reporter, !alloc.contains(NULL)); in test_chunkalloc()
20 REPORTER_ASSERT(reporter, !alloc.contains(reporter)); in test_chunkalloc()
22 alloc.reset(); in test_chunkalloc()
23 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity()); in test_chunkalloc()
24 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed()); in test_chunkalloc()
25 REPORTER_ASSERT(reporter, 0 == alloc.blockCount()); in test_chunkalloc()
[all …]
/external/skia/tests/
DMemsetTest.cpp14 SkChunkAlloc alloc(min); in test_chunkalloc() local
16 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity()); in test_chunkalloc()
17 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed()); in test_chunkalloc()
18 REPORTER_ASSERT(reporter, 0 == alloc.blockCount()); in test_chunkalloc()
19 REPORTER_ASSERT(reporter, !alloc.contains(NULL)); in test_chunkalloc()
20 REPORTER_ASSERT(reporter, !alloc.contains(reporter)); in test_chunkalloc()
22 alloc.reset(); in test_chunkalloc()
23 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity()); in test_chunkalloc()
24 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed()); in test_chunkalloc()
25 REPORTER_ASSERT(reporter, 0 == alloc.blockCount()); in test_chunkalloc()
[all …]
/external/chromium_org/third_party/cld/encodings/compact_lang_det/
Dtote.cc72 int alloc = -1; in Add() local
74 alloc = sub0; in Add()
76 alloc = sub1; in Add()
78 alloc = sub2; in Add()
81 alloc = sub0; in Add()
82 if (value_[sub1] < value_[alloc]) {alloc = sub1;} in Add()
83 if (value_[sub2] < value_[alloc]) {alloc = sub2;} in Add()
85 key_[alloc] = ikey; in Add()
86 value_[alloc] = idelta; in Add()
194 int alloc = -1; in Add() local
[all …]
/external/libcxx/test/containers/sequences/vector.bool/
Dconstruct_iter_iter_alloc.pass.cpp38 std::allocator<bool> alloc; in main() local
39 … test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main()
40 …st<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main()
41 …or<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main()
42 …or<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); in main()
43 test<std::vector<bool> >(a, an, alloc); in main()
47 min_allocator<bool> alloc; in main() local
48 …ol, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main()
49 …min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main()
50 …r<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main()
[all …]
/external/libcxx/test/containers/sequences/vector/vector.cons/
Dconstruct_iter_iter_alloc.pass.cpp49 std::allocator<int> alloc; in main() local
50 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main()
51 … test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main()
52 …ector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main()
53 …ector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); in main()
54 test<std::vector<int> >(a, an, alloc); in main()
60 min_allocator<int> alloc; in main() local
61 …r<int, min_allocator<int>> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main()
62 …t, min_allocator<int>> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main()
63 …ator<int>> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main()
[all …]
/external/chromium-trace/trace-viewer/src/tcmalloc/
Dheap.js49 var alloc = allocs[i];
50 var traceNames = alloc.trace.split(' ');
65 heapEntry.currentBytes += alloc.currentBytes;
66 heapEntry.currentAllocs += alloc.currentAllocs;
67 heapEntry.totalBytes += alloc.totalBytes;
68 heapEntry.totalAllocs += alloc.totalAllocs;
74 currentBytes: alloc.currentBytes,
75 currentAllocs: alloc.currentAllocs,
76 totalBytes: alloc.totalBytes,
77 totalAllocs: alloc.totalAllocs
/external/clang/test/SemaObjC/
Dclass-message-protocol-lookup.m7 + (id)alloc; class
15 + (id)alloc; class
21 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return …
23 Class<Test2Protocol> c2 = [c2 alloc]; // ok
25 + (id)alloc { return 0; } class
30 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return …
32 Class<Test2Protocol> c2 = [c2 alloc]; // ok
/external/lzma/C/
D7zBuf2.c19 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc) in DynBuf_Write() argument
26 data = (Byte *)alloc->Alloc(alloc, newSize); in DynBuf_Write()
31 alloc->Free(alloc, p->data); in DynBuf_Write()
39 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc) in DynBuf_Free() argument
41 alloc->Free(alloc, p->data); in DynBuf_Free()
DXzIn.c71 static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAlloc *alloc) in Xz_ReadIndex2() argument
93 Xz_Free(p, alloc); in Xz_ReadIndex2()
98 p->blocks = alloc->Alloc(alloc, sizeof(CXzBlockSizes) * numBlocks); in Xz_ReadIndex2()
116 static SRes Xz_ReadIndex(CXzStream *p, ILookInStream *stream, UInt64 indexSize, ISzAlloc *alloc) in Xz_ReadIndex() argument
126 buf = alloc->Alloc(alloc, size); in Xz_ReadIndex()
131 res = Xz_ReadIndex2(p, buf, size, alloc); in Xz_ReadIndex()
132 alloc->Free(alloc, buf); in Xz_ReadIndex()
141 …atic SRes Xz_ReadBackward(CXzStream *p, ILookInStream *stream, Int64 *startOffset, ISzAlloc *alloc) in Xz_ReadBackward() argument
203 RINOK(Xz_ReadIndex(p, stream, indexSize, alloc)); in Xz_ReadBackward()
235 void Xzs_Free(CXzs *p, ISzAlloc *alloc) in Xzs_Free() argument
[all …]
DXzDec.c66 void BraState_Free(void *pp, ISzAlloc *alloc) in BraState_Free() argument
68 alloc->Free(alloc, pp); in BraState_Free()
71 SRes BraState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in BraState_SetProps() argument
74 alloc = alloc; in BraState_SetProps()
198 SRes BraState_SetFromMethod(IStateCoder *p, UInt64 id, ISzAlloc *alloc) in BraState_SetFromMethod() argument
210 decoder = alloc->Alloc(alloc, sizeof(CBraState)); in BraState_SetFromMethod()
226 static void SbState_Free(void *pp, ISzAlloc *alloc) in SbState_Free() argument
229 SubblockDec_Free(p, alloc); in SbState_Free()
230 alloc->Free(alloc, pp); in SbState_Free()
233 static SRes SbState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in SbState_SetProps() argument
[all …]
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_dense_alloc_test.cc30 Alloc alloc; in TEST() local
32 alloc.InitCache(&cache); in TEST()
37 IndexT idx = alloc.Alloc(&cache); in TEST()
40 int *v = alloc.Map(idx); in TEST()
46 int *v = alloc.Map(idx); in TEST()
48 alloc.Free(&cache, idx); in TEST()
51 alloc.FlushCache(&cache); in TEST()
/external/chromium_org/v8/src/
Dlist-inl.h17 void List<T, P>::Add(const T& element, P alloc) { in Add() argument
21 List<T, P>::ResizeAdd(element, alloc); in Add()
27 void List<T, P>::AddAll(const List<T, P>& other, P alloc) { in AddAll() argument
28 AddAll(other.ToVector(), alloc); in AddAll()
33 void List<T, P>::AddAll(const Vector<T>& other, P alloc) { in AddAll() argument
35 if (capacity_ < result_length) Resize(result_length, alloc); in AddAll()
46 void List<T, P>::ResizeAdd(const T& element, P alloc) { in ResizeAdd() argument
47 ResizeAddInternal(element, alloc); in ResizeAdd()
52 void List<T, P>::ResizeAddInternal(const T& element, P alloc) { in ResizeAddInternal() argument
60 Resize(new_capacity, alloc); in ResizeAddInternal()
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
Dcache.h47 #define ALLOC_GROW(x, nr, alloc) \ argument
49 if ((nr) > alloc) { \
50 if (alloc_nr(alloc) < (nr)) \
51 alloc = (nr); \
53 alloc = alloc_nr(alloc); \
54 x = xrealloc((x), alloc * sizeof(*(x))); \

12345678910>>...61