/system/extras/ext4_utils/ |
H A D | allocate.h | 32 int block_allocation_num_regions(struct block_allocation *alloc); 33 int block_allocation_len(struct block_allocation *alloc); 36 void reduce_allocation(struct block_allocation *alloc, u32 len); 37 u32 get_block(struct block_allocation *alloc, u32 block); 38 u32 get_oob_block(struct block_allocation *alloc, u32 block); 39 void get_next_region(struct block_allocation *alloc); 40 void get_region(struct block_allocation *alloc, u32 *block, u32 *len); 49 void free_alloc(struct block_allocation *alloc); 50 int reserve_oob_blocks(struct block_allocation *alloc, int blocks); 51 int advance_blocks(struct block_allocation *alloc, in [all...] |
H A D | indirect.c | 30 static u8 *create_backing(struct block_allocation *alloc, argument 41 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { 45 get_region(alloc, ®ion_block, ®ion_len); 57 static void reserve_indirect_block(struct block_allocation *alloc, int len) argument 59 if (reserve_oob_blocks(alloc, 1)) { 64 if (advance_blocks(alloc, len)) { 70 static void reserve_dindirect_block(struct block_allocation *alloc, int len) argument 72 if (reserve_oob_blocks(alloc, 1)) { 80 reserve_indirect_block(alloc, ind_block_le 87 reserve_tindirect_block(struct block_allocation *alloc, int len) argument 103 fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) argument 111 fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) argument 141 fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) argument 168 inode_attach_direct_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument 191 inode_attach_indirect_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument 223 inode_attach_dindirect_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument 255 inode_attach_tindirect_blocks(struct ext4_inode *inode, struct block_allocation *alloc, u32 *block_len) argument 283 reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) argument 348 do_inode_attach_indirect(struct ext4_inode *inode, struct block_allocation *alloc, u32 block_len) argument 394 struct block_allocation *alloc = allocate_blocks(block_len + indirect_len); local 407 struct block_allocation *alloc; local 430 inode_attach_resize(struct ext4_inode *inode, struct block_allocation *alloc) argument 493 struct block_allocation *alloc; local [all...] |
H A D | extent.c | 30 static u8 *extent_create_backing(struct block_allocation *alloc, argument 38 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { 42 get_region(alloc, ®ion_block, ®ion_len); 56 static void extent_create_backing_file(struct block_allocation *alloc, argument 60 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { 64 get_region(alloc, ®ion_block, ®ion_len); 79 struct block_allocation *alloc = allocate_blocks(block_len + 1); local 85 if (alloc 184 struct block_allocation *alloc; local 209 struct block_allocation *alloc; local 225 struct block_allocation *alloc; local [all...] |
H A D | indirect.h | 26 struct block_allocation *alloc);
|
H A D | allocate.c | 71 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); local 72 alloc->list.first = NULL; 73 alloc->list.last = NULL; 74 alloc->oob_list.first = NULL; 75 alloc->oob_list.last = NULL; 76 alloc->list.iter = NULL; 77 alloc->list.partial_iter = 0; 78 alloc->oob_list.iter = NULL; 79 alloc->oob_list.partial_iter = 0; 80 return alloc; 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 485 struct block_allocation *alloc = create_allocation(); local 494 block_allocation_num_regions(struct block_allocation *alloc) argument 505 block_allocation_len(struct block_allocation *alloc) argument 517 get_block(struct block_allocation *alloc, u32 block) argument 530 get_oob_block(struct block_allocation *alloc, u32 block) argument 545 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument 552 get_next_region(struct block_allocation *alloc) argument 564 last_region(struct block_allocation *alloc) argument 569 rewind_alloc(struct block_allocation *alloc) argument 575 do_split_allocation(struct block_allocation *alloc, u32 len) argument 612 split_allocation(struct block_allocation *alloc, u32 len) argument 624 reserve_oob_blocks(struct block_allocation *alloc, int blocks) argument 664 advance_blocks(struct block_allocation *alloc, int blocks) argument 669 advance_oob_blocks(struct block_allocation *alloc, int blocks) argument 674 append_oob_allocation(struct block_allocation *alloc, u32 len) argument 794 free_alloc(struct block_allocation *alloc) argument [all...] |
/system/core/libpixelflinger/codeflinger/tinyutils/ |
H A D | SharedBuffer.cpp | 29 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 D | SharedBuffer.h | 40 static SharedBuffer* alloc(size_t size);
|
H A D | VectorImpl.cpp | 93 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 D | SharedBuffer.cpp | 27 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 D | String16.cpp | 43 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); 72 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); 104 SharedBuffer::alloc(sizeof(char16_t))->data()); 124 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); 138 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t));
|
H A D | String8.cpp | 62 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 D | LinearAllocator.cpp | 163 void* LinearAllocator::alloc(size_t size) { function in class:android::LinearAllocator
|
H A D | VectorImpl.cpp | 90 sb = SharedBuffer::alloc(capacity() * mItemSize); 334 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); 389 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); 441 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize);
|
H A D | BasicHashtable.cpp | 247 SharedBuffer* sb = SharedBuffer::alloc(bytes);
|
/system/core/include/utils/ |
H A D | LinearAllocator.h | 52 void* alloc(size_t size);
|
H A D | SharedBuffer.h | 39 static SharedBuffer* alloc(size_t size);
|