Searched refs:alloc (Results 1 - 18 of 18) sorted by last modified time

/system/core/include/utils/
H A DLinearAllocator.h52 void* alloc(size_t size);
H A DSharedBuffer.h39 static SharedBuffer* alloc(size_t size);
/system/core/libion/tests/
H A Ddevice_test.cpp136 void *alloc = malloc(8192 + 1024); local
137 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024);
165 free(alloc);
170 void *alloc = malloc(8192 + 1024); local
171 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024);
199 free(alloc);
204 void *alloc = malloc(8192 + 1024); local
205 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024);
231 free(alloc);
236 void *alloc local
270 void *alloc = malloc(8192 + 1024); local
304 void *alloc = malloc(8192 + 1024); local
338 void *alloc = malloc(8192 + 1024); local
372 void *alloc = malloc(8192 + 1024); local
407 void *alloc = malloc(8192 + 1024); local
441 void *alloc = malloc(8192 + 1024); local
475 void *alloc = malloc(8192 + 1024); local
507 void *alloc = malloc(8192 + 1024); local
[all...]
/system/core/libpixelflinger/codeflinger/tinyutils/
H A DSharedBuffer.cpp29 SharedBuffer* SharedBuffer::alloc(size_t size) function in class:android::tinyutils::SharedBuffer
52 SharedBuffer* sb = alloc(mSize);
71 SharedBuffer* sb = alloc(newSize);
91 SharedBuffer* sb = alloc(new_size);
H A DSharedBuffer.h40 static SharedBuffer* alloc(size_t size);
H A DVectorImpl.cpp93 sb = SharedBuffer::alloc(capacity() * mItemSize);
252 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
296 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
348 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
/system/core/libutils/
H A DBasicHashtable.cpp247 SharedBuffer* sb = SharedBuffer::alloc(bytes);
H A DLinearAllocator.cpp163 void* LinearAllocator::alloc(size_t size) { function in class:android::LinearAllocator
H A DSharedBuffer.cpp27 SharedBuffer* SharedBuffer::alloc(size_t size) function in class:android::SharedBuffer
50 SharedBuffer* sb = alloc(mSize);
69 SharedBuffer* sb = alloc(newSize);
89 SharedBuffer* sb = alloc(new_size);
H A DString16.cpp42 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t));
69 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1));
101 SharedBuffer::alloc(sizeof(char16_t))->data());
121 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t));
135 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t));
H A DString8.cpp62 SharedBuffer* buf = SharedBuffer::alloc(1);
81 SharedBuffer* buf = SharedBuffer::alloc(len+1);
104 SharedBuffer* buf = SharedBuffer::alloc(bytes+1);
126 SharedBuffer* buf = SharedBuffer::alloc(bytes+1);
153 SharedBuffer::alloc(sizeof(char))->data());
H A DVectorImpl.cpp90 sb = SharedBuffer::alloc(capacity() * mItemSize);
334 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
393 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
451 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
/system/extras/ext4_utils/
H A Dallocate.c58 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); local
59 alloc->list.first = NULL;
60 alloc->list.last = NULL;
61 alloc->oob_list.first = NULL;
62 alloc->oob_list.last = NULL;
63 alloc->list.iter = NULL;
64 alloc->list.partial_iter = 0;
65 alloc->oob_list.iter = NULL;
66 alloc->oob_list.partial_iter = 0;
67 alloc
144 print_blocks(FILE* f, struct block_allocation *alloc) argument
157 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument
257 reduce_allocation(struct block_allocation *alloc, u32 len) argument
453 struct block_allocation *alloc = create_allocation(); local
462 block_allocation_num_regions(struct block_allocation *alloc) argument
473 block_allocation_len(struct block_allocation *alloc) argument
485 get_block(struct block_allocation *alloc, u32 block) argument
498 get_oob_block(struct block_allocation *alloc, u32 block) argument
513 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument
520 get_next_region(struct block_allocation *alloc) argument
532 last_region(struct block_allocation *alloc) argument
537 rewind_alloc(struct block_allocation *alloc) argument
543 do_split_allocation(struct block_allocation *alloc, u32 len) argument
580 split_allocation(struct block_allocation *alloc, u32 len) argument
592 reserve_oob_blocks(struct block_allocation *alloc, int blocks) argument
632 advance_blocks(struct block_allocation *alloc, int blocks) argument
637 advance_oob_blocks(struct block_allocation *alloc, int blocks) argument
642 append_oob_allocation(struct block_allocation *alloc, u32 len) argument
762 free_alloc(struct block_allocation *alloc) argument
[all...]
H A Dallocate.h45 int block_allocation_num_regions(struct block_allocation *alloc);
46 int block_allocation_len(struct block_allocation *alloc);
49 void reduce_allocation(struct block_allocation *alloc, u32 len);
50 u32 get_block(struct block_allocation *alloc, u32 block);
51 u32 get_oob_block(struct block_allocation *alloc, u32 block);
52 void get_next_region(struct block_allocation *alloc);
53 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
62 void free_alloc(struct block_allocation *alloc);
63 int reserve_oob_blocks(struct block_allocation *alloc, int blocks);
64 int advance_blocks(struct block_allocation *alloc, in
[all...]
H A Dcontents.c196 struct block_allocation* alloc = inode_allocate_file_extents(inode, len, filename); local
197 if (alloc) {
198 alloc->filename = strdup(filename);
199 alloc->next = saved_allocation_head;
200 saved_allocation_head = alloc;
H A Dextent.c29 static u8 *extent_create_backing(struct block_allocation *alloc, argument
37 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
41 get_region(alloc, &region_block, &region_len);
55 static void extent_create_backing_file(struct block_allocation *alloc, argument
59 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
63 get_region(alloc, &region_block, &region_len);
78 struct block_allocation *alloc = allocate_blocks(block_len + 1); local
84 if (alloc
183 struct block_allocation *alloc; local
208 struct block_allocation *alloc; local
223 struct block_allocation *alloc; local
[all...]
H A Dindirect.c28 static u8 *create_backing(struct block_allocation *alloc, argument
39 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) {
43 get_region(alloc, &region_block, &region_len);
55 static void reserve_indirect_block(struct block_allocation *alloc, int len) argument
57 if (reserve_oob_blocks(alloc, 1)) {
62 if (advance_blocks(alloc, len)) {
68 static void reserve_dindirect_block(struct block_allocation *alloc, int len) argument
70 if (reserve_oob_blocks(alloc, 1)) {
78 reserve_indirect_block(alloc, ind_block_le
85 reserve_tindirect_block(struct block_allocation *alloc, int len) argument
101 fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) argument
109 fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) argument
139 fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) argument
166 inode_attach_direct_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument
189 inode_attach_indirect_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument
221 inode_attach_dindirect_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument
253 inode_attach_tindirect_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument
281 reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) argument
346 do_inode_attach_indirect(struct ext4_inode *inode, struct block_allocation *alloc, u32 block_len) argument
392 struct block_allocation *alloc = allocate_blocks(block_len + indirect_len); local
405 struct block_allocation *alloc; local
428 inode_attach_resize(struct ext4_inode *inode, struct block_allocation *alloc) argument
491 struct block_allocation *alloc; local
[all...]
H A Dindirect.h26 struct block_allocation *alloc);

Completed in 163 milliseconds