/system/extras/ext4_utils/ |
D | indirect.c | 30 static u8 *create_backing(struct block_allocation *alloc, in create_backing() argument 41 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in create_backing() 45 get_region(alloc, ®ion_block, ®ion_len); in create_backing() 57 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block() argument 59 if (reserve_oob_blocks(alloc, 1)) { in reserve_indirect_block() 64 if (advance_blocks(alloc, len)) { in reserve_indirect_block() 70 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block() argument 72 if (reserve_oob_blocks(alloc, 1)) { in reserve_dindirect_block() 80 reserve_indirect_block(alloc, ind_block_len); in reserve_dindirect_block() 87 static void reserve_tindirect_block(struct block_allocation *alloc, int len) in reserve_tindirect_block() argument [all …]
|
D | extent.c | 30 static u8 *extent_create_backing(struct block_allocation *alloc, in extent_create_backing() argument 38 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in extent_create_backing() 42 get_region(alloc, ®ion_block, ®ion_len); in extent_create_backing() 56 static void extent_create_backing_file(struct block_allocation *alloc, in extent_create_backing_file() argument 60 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in extent_create_backing_file() 64 get_region(alloc, ®ion_block, ®ion_len); in extent_create_backing_file() 79 struct block_allocation *alloc = allocate_blocks(block_len + 1); in do_inode_allocate_extents() local 85 if (alloc == NULL) { in do_inode_allocate_extents() 90 int allocation_len = block_allocation_num_regions(alloc); in do_inode_allocate_extents() 92 reduce_allocation(alloc, 1); in do_inode_allocate_extents() [all …]
|
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, int blocks); [all …]
|
D | allocate.c | 71 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation() local 72 alloc->list.first = NULL; in create_allocation() 73 alloc->list.last = NULL; in create_allocation() 74 alloc->oob_list.first = NULL; in create_allocation() 75 alloc->oob_list.last = NULL; in create_allocation() 76 alloc->list.iter = NULL; in create_allocation() 77 alloc->list.partial_iter = 0; in create_allocation() 78 alloc->oob_list.iter = NULL; in create_allocation() 79 alloc->oob_list.partial_iter = 0; in create_allocation() 80 return alloc; in create_allocation() [all …]
|
D | indirect.h | 26 struct block_allocation *alloc);
|
/system/core/libutils/ |
D | SharedBuffer.cpp | 27 SharedBuffer* SharedBuffer::alloc(size_t size) in alloc() function in android::SharedBuffer 50 SharedBuffer* sb = alloc(mSize); in edit() 69 SharedBuffer* sb = alloc(newSize); in editResize() 89 SharedBuffer* sb = alloc(new_size); in reset()
|
D | String16.cpp | 43 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); in initialize_string16() 72 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); in allocFromUTF8() 104 SharedBuffer::alloc(sizeof(char16_t))->data()); in String16() 124 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16() 138 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16()
|
D | String8.cpp | 62 SharedBuffer* buf = SharedBuffer::alloc(1); in initialize_string8() 81 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8() 104 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); in allocFromUTF16() 126 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); in allocFromUTF32() 153 SharedBuffer::alloc(sizeof(char))->data()); in String8()
|
D | VectorImpl.cpp | 90 sb = SharedBuffer::alloc(capacity() * mItemSize); in editArrayImpl() 334 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in setCapacity() 389 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _grow() 441 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _shrink()
|
D | LinearAllocator.cpp | 163 void* LinearAllocator::alloc(size_t size) { in alloc() function in android::LinearAllocator
|
D | BasicHashtable.cpp | 247 SharedBuffer* sb = SharedBuffer::alloc(bytes); in allocateBuckets()
|
/system/core/libpixelflinger/codeflinger/tinyutils/ |
D | SharedBuffer.cpp | 29 SharedBuffer* SharedBuffer::alloc(size_t size) in alloc() function in android::tinyutils::SharedBuffer 52 SharedBuffer* sb = alloc(mSize); in edit() 71 SharedBuffer* sb = alloc(newSize); in editResize() 91 SharedBuffer* sb = alloc(new_size); in reset()
|
D | SharedBuffer.h | 40 static SharedBuffer* alloc(size_t size);
|
D | VectorImpl.cpp | 93 sb = SharedBuffer::alloc(capacity() * mItemSize); in editArrayImpl() 252 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in setCapacity() 296 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _grow() 348 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _shrink()
|
/system/core/include/utils/ |
D | LinearAllocator.h | 52 void* alloc(size_t size);
|
D | SharedBuffer.h | 39 static SharedBuffer* alloc(size_t size);
|