Home
last modified time | relevance | path

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

12

/system/extras/ext4_utils/
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; in do_inode_allocate_extents() local
85 alloc = allocate_blocks(block_len + 1); in do_inode_allocate_extents()
86 if (alloc == NULL) { in do_inode_allocate_extents()
93 alloc = allocate_blocks(block_len + 1 - prealloc_block_len); in do_inode_allocate_extents()
[all …]
Dallocate.h69 int block_allocation_num_regions(struct block_allocation *alloc);
70 int block_allocation_len(struct block_allocation *alloc);
73 void reduce_allocation(struct block_allocation *alloc, u32 len);
74 u32 get_block(struct block_allocation *alloc, u32 block);
75 u32 get_oob_block(struct block_allocation *alloc, u32 block);
76 void get_next_region(struct block_allocation *alloc);
77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
86 void free_alloc(struct block_allocation *alloc);
87 int reserve_oob_blocks(struct block_allocation *alloc, int blocks);
88 int advance_blocks(struct block_allocation *alloc, int blocks);
[all …]
Dallocate.c33 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation() local
34 alloc->list.first = NULL; in create_allocation()
35 alloc->list.last = NULL; in create_allocation()
36 alloc->oob_list.first = NULL; in create_allocation()
37 alloc->oob_list.last = NULL; in create_allocation()
38 alloc->list.iter = NULL; in create_allocation()
39 alloc->list.partial_iter = 0; in create_allocation()
40 alloc->oob_list.iter = NULL; in create_allocation()
41 alloc->oob_list.partial_iter = 0; in create_allocation()
42 alloc->filename = NULL; in create_allocation()
[all …]
Dindirect.h26 struct block_allocation *alloc);
Dcontents.c196 struct block_allocation* alloc = inode_allocate_file_extents(inode, len, filename); in make_file() local
197 if (alloc) { in make_file()
198 alloc->filename = strdup(filename); in make_file()
199 alloc->next = saved_allocation_head; in make_file()
200 saved_allocation_head = alloc; in make_file()
/system/core/libutils/
DSharedBufferTest.cpp27 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), ""); in TEST()
28 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), ""); in TEST()
33 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1); in TEST()
36 buf = android::SharedBuffer::alloc(0); in TEST()
43 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST()
45 buf = android::SharedBuffer::alloc(10); in TEST()
48 buf = android::SharedBuffer::alloc(10); in TEST()
54 buf = android::SharedBuffer::alloc(10); in TEST()
DSharedBuffer.cpp28 SharedBuffer* SharedBuffer::alloc(size_t size) in alloc() function in android::SharedBuffer
57 SharedBuffer* sb = alloc(mSize); in edit()
81 SharedBuffer* sb = alloc(newSize); in editResize()
101 SharedBuffer* sb = alloc(new_size); in reset()
DString16.cpp43 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); in initialize_string16()
70 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); in allocFromUTF8()
102 SharedBuffer::alloc(sizeof(char16_t))->data()); in String16()
122 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16()
136 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16()
DString8.cpp67 SharedBuffer* buf = SharedBuffer::alloc(1); in initialize_string8()
89 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8()
113 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF16()
135 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF32()
162 SharedBuffer::alloc(sizeof(char))->data()); in String8()
DSharedBuffer.h44 static SharedBuffer* alloc(size_t size);
DVectorImpl.cpp95 editable = SharedBuffer::alloc(sb->size()); in editArrayImpl()
346 SharedBuffer* sb = SharedBuffer::alloc(new_allocation_size); in setCapacity()
424 SharedBuffer* sb = SharedBuffer::alloc(new_alloc_size); in _grow()
491 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _shrink()
/system/core/libion/tests/
Ddevice_test.cpp136 void *alloc = malloc(8192 + 1024); in TEST_F() local
137 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F()
165 free(alloc); in TEST_F()
170 void *alloc = malloc(8192 + 1024); in TEST_F() local
171 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F()
199 free(alloc); in TEST_F()
204 void *alloc = malloc(8192 + 1024); in TEST_F() local
205 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F()
231 free(alloc); in TEST_F()
236 void *alloc = malloc(8192 + 1024); in TEST_F() local
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Ddecoder-oina.c45 OI_UINT8 alloc, in OI_CODEC_SBC_DecoderConfigureRaw() argument
74 if (alloc > SBC_SNR) { in OI_CODEC_SBC_DecoderConfigureRaw()
87 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
Dframing-sbc.c49 printf(" alloc: %s\n", OI_CODEC_SBC_AllocText[frameInfo->alloc]); in OI_CODEC_SBC_DumpConfig()
/system/extras/alloc-stress/
DAndroid.mk5 LOCAL_MODULE := alloc-stress
14 alloc-stress.cpp
/system/bt/osi/src/
Dlist.c25 list_t *list = (list_t *)zeroed_allocator->alloc(sizeof(list_t)); in list_new_internal()
94 list_node_t *node = (list_node_t *)list->allocator->alloc(sizeof(list_node_t)); in list_insert_after()
111 list_node_t *node = (list_node_t *)list->allocator->alloc(sizeof(list_node_t)); in list_prepend()
127 list_node_t *node = (list_node_t *)list->allocator->alloc(sizeof(list_node_t)); in list_append()
Dhash_map.c64 hash_map_t *hash_map = zeroed_allocator->alloc(sizeof(hash_map_t)); in hash_map_new_internal()
75 hash_map->bucket = zeroed_allocator->alloc(sizeof(hash_map_bucket_t) * num_bucket); in hash_map_new_internal()
147 hash_map_entry = hash_map->allocator->alloc(sizeof(hash_map_entry_t)); in hash_map_set()
/system/bt/osi/include/
Dallocator.h29 alloc_fn alloc; member
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc.h141 OI_UINT8 alloc; /**< The bit allocation method. Input parameter. */ member
295 OI_UINT8 alloc,
/system/bt/hci/src/
Dvendor.c65 LOG_INFO(LOG_TAG, "alloc value %p", lib_callbacks.alloc); in vendor_open()
158 return buffer_allocator->alloc(size); in buffer_alloc_cb()
/system/bt/embdrv/sbc/decoder/
DAndroid.mk9 ./srce/alloc.c \
/system/bt/stack/avrc/
Davrc_bld_ct.c425 BOOLEAN alloc = FALSE; in AVRC_BldCommand() local
441 alloc = TRUE; in AVRC_BldCommand()
499 if (alloc && (status != AVRC_STS_NO_ERROR) ) in AVRC_BldCommand()
/system/bt/hci/include/
Dbt_vendor_lib.h343 malloc_cb alloc; member
/system/bt/embdrv/sbc/
DBUILD.gn19 "decoder/srce/alloc.c",

12