Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Dindirect.c30 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, &region_block, &region_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 …]
Dextent.c30 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, &region_block, &region_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, &region_block, &region_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 …]
Dallocate.h32 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 …]
Dallocate.c71 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 …]
Dindirect.h26 struct block_allocation *alloc);
/system/core/libutils/
DSharedBuffer.cpp27 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()
DString16.cpp43 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()
DString8.cpp62 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()
DVectorImpl.cpp90 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()
DLinearAllocator.cpp163 void* LinearAllocator::alloc(size_t size) { in alloc() function in android::LinearAllocator
DBasicHashtable.cpp247 SharedBuffer* sb = SharedBuffer::alloc(bytes); in allocateBuckets()
/system/core/libpixelflinger/codeflinger/tinyutils/
DSharedBuffer.cpp29 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()
DSharedBuffer.h40 static SharedBuffer* alloc(size_t size);
DVectorImpl.cpp93 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/
DLinearAllocator.h52 void* alloc(size_t size);
DSharedBuffer.h39 static SharedBuffer* alloc(size_t size);