Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 77) sorted by relevance

1234

/system/extras/memory_replay/dumps/
DREADME17 calloc - Allocate memory using the calloc function.
33 <tid>: calloc <ptr> <nmemb> <size>
34 Allocation made by calloc(<nmemb>, <size>. <ptr> is the value returned
35 by calloc.
39 200: calloc 0xb48c1100 32 8
/system/extras/ext4_utils/
Dindirect.c34 u8 *data = calloc(backing_len, 1); in create_backing()
123 u32 *ind_block_data = calloc(info.block_size, 1); in fill_dindirect_block()
153 u32 *dind_block_data = calloc(info.block_size, 1); in fill_tindirect_block()
202 u32 *ind_block_data = calloc(info.block_size, 1); in inode_attach_indirect_blocks()
234 u32 *dind_block_data = calloc(info.block_size, 1); in inode_attach_dindirect_blocks()
266 u32 *tind_block_data = calloc(info.block_size, 1); in inode_attach_tindirect_blocks()
444 u32 *dind_block_data = calloc(info.block_size, 1); in inode_attach_resize()
450 u32 *ind_block_data = calloc(info.block_size, info.bg_desc_reserve_blocks); in inode_attach_resize()
Dext4_utils.c231 aux_info.sb_zero = calloc(1, info.block_size); in ext4_create_fs_aux_info()
240 aux_info.sb_block = calloc(1, info.block_size); in ext4_create_fs_aux_info()
250 aux_info.backup_sb = calloc(aux_info.groups, sizeof(char *)); in ext4_create_fs_aux_info()
255 aux_info.bg_desc = calloc(info.block_size, aux_info.bg_desc_blocks); in ext4_create_fs_aux_info()
366 aux_info.backup_sb[i] = calloc(info.block_size, 1); in ext4_fill_in_sb()
Dextent.c32 u8 *data = calloc(backing_len, 1); in extent_create_backing()
143 u8 *data = calloc(info.block_size, 1); in do_inode_allocate_extents()
/system/core/libsparse/
Dbacked_block.c125 struct backed_block_list *b = calloc(sizeof(struct backed_block_list), 1); in backed_block_list_new()
295 struct backed_block *bb = calloc(1, sizeof(struct backed_block)); in backed_block_add_fill()
313 struct backed_block *bb = calloc(1, sizeof(struct backed_block)); in backed_block_add_data()
331 struct backed_block *bb = calloc(1, sizeof(struct backed_block)); in backed_block_add_file()
350 struct backed_block *bb = calloc(1, sizeof(struct backed_block)); in backed_block_add_fd()
Doutput_file.c553 out->zero_buf = calloc(block_size, 1); in output_file_init()
559 out->fill_buf = calloc(block_size, 1); in output_file_init()
606 struct output_file_gz *outgz = calloc(1, sizeof(struct output_file_gz)); in output_file_new_gz()
619 struct output_file_normal *outn = calloc(1, sizeof(struct output_file_normal)); in output_file_new_normal()
637 outc = calloc(1, sizeof(struct output_file_callback)); in output_file_open_callback()
Dsimg2simg.c79 out_s = calloc(sizeof(struct sparse_file *), files); in main()
/system/sepolicy/tools/sepolicy-analyze/
Dneverallow.c107 id = calloc(1, len + 1); in read_typeset()
244 id = calloc(1, p - start + 1); in read_classperms()
257 node = calloc(1, sizeof *node); in read_classperms()
321 id = calloc(1, p - start + 1); in read_classperms()
399 avrule = calloc(1, sizeof *avrule); in check_neverallows()
/system/extras/pagecache/
Ddumpcache.c53 info = calloc(1, sizeof(*info)); in get_file_info()
88 unsigned char* mincore_data = calloc(1, num_file_pages); in store_num_cached()
/system/bt/osi/src/
Dallocation_tracker.c132 allocation = (allocation_t *)calloc(1, sizeof(allocation_t)); in allocation_tracker_notify_alloc()
195 return calloc(size, 1); in untracked_calloc()
Dallocator.c74 void *ptr = calloc(1, real_size); in osi_calloc()
/system/core/libpackagelistparser/
Dpackagelistparser.c117 pkg_info = calloc(1, sizeof(*pkg_info)); in packagelist_parse()
215 pkg_info->gids.gids = calloc(pkg_info->gids.cnt, sizeof(gid_t)); in packagelist_parse()
/system/core/liblog/
Dlogger_read.c108 transp = calloc(1, sizeof(*transp)); in init_transport_context()
239 logger_list = calloc(1, sizeof(*logger_list)); in android_logger_list_alloc()
260 logger_list = calloc(1, sizeof(*logger_list)); in android_logger_list_alloc_time()
296 logger = calloc(1, sizeof(*logger)); in android_logger_open()
Devent_tag_map.c72 newTagMap = calloc(1, sizeof(EventTagMap)); in android_openEventTagMap()
202 map->tagArray = calloc(1, sizeof(EventTag) * map->numTags); in processFile()
Dlogprint.c80 p_ret = (FilterInfo *)calloc(1, sizeof(FilterInfo)); in filterinfo_new()
199 p_ret = calloc(1, sizeof(AndroidLogFormat)); in android_log_format_new()
1128 list = calloc(1, sizeof(struct conversionList)); in convertMonotonic()
1151 list = calloc(1, sizeof(struct conversionList)); in convertMonotonic()
1157 list = calloc(1, sizeof(struct conversionList)); in convertMonotonic()
1170 list = calloc(1, sizeof(struct conversionList)); in convertMonotonic()
1186 list = calloc(1, sizeof(struct conversionList)); in convertMonotonic()
1194 list = calloc(1, sizeof(struct conversionList)); in convertMonotonic()
/system/core/libmemtrack/
Dmemtrack.c68 return calloc(sizeof(struct memtrack_proc), 1); in memtrack_proc_new()
98 t->records = calloc(sizeof(*t->records), num_records); in memtrack_proc_get_type()
/system/extras/perfprofd/quipper/
Dperf_utils.cc32 event_t* event = reinterpret_cast<event_t*>(calloc(1, size)); in CallocMemoryForEvent()
38 build_id_event* event = reinterpret_cast<build_id_event*>(calloc(1, size)); in CallocMemoryForBuildID()
/system/extras/libpagemap/
Dpm_process.c41 proc = calloc(1, sizeof(*proc)); in pm_process_create()
258 maps = calloc(INITIAL_MAPS, sizeof(pm_map_t*)); in read_maps()
291 maps[maps_count] = map = calloc(1, sizeof(*map)); in read_maps()
/system/core/libusbhost/
Dusbhost.c162 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); in usb_host_init()
359 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new()
430 char* result = (char *)calloc(1, strlen(USB_FS_ID_FORMAT)); in usb_device_get_name_from_unique_id()
628 struct usbdevfs_urb *urb = calloc(1, sizeof(struct usbdevfs_urb)); in usb_request_new()
643 struct usb_request *req = calloc(1, sizeof(struct usb_request)); in usb_request_new()
/system/media/audio_route/
Daudio_route.c285 path->setting[path_index].value.ptr = calloc(setting->num_values, value_sz); in path_add_setting()
329 path->setting[path_index].value.ptr = calloc(num_values, value_sz); in path_add_value()
578 ar->mixer_state = calloc(ar->num_mixer_ctls, sizeof(struct mixer_state)); in alloc_mixer_state()
596 ar->mixer_state[i].old_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
597 ar->mixer_state[i].new_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
598 ar->mixer_state[i].reset_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
856 ar = calloc(1, sizeof(struct audio_route)); in audio_route_init()
/system/core/fastboot/
Dbootimg_utils.cpp54 boot_img_hdr* hdr = reinterpret_cast<boot_img_hdr*>(calloc(*bootimg_size, 1)); in mkbootimg()
/system/extras/librank/
Dlibrank.c103 library = calloc(1, sizeof(*library)); in get_library()
146 mapping = calloc(1, sizeof(*mapping)); in get_mapping()
162 process = calloc(1, sizeof(*process)); in get_process()
/system/extras/procmem/
Dprocmem.c135 mis = (struct map_info **)calloc(num_maps, sizeof(struct map_info *)); in main()
159 mi = (struct map_info *)calloc(1, sizeof(struct map_info)); in main()
/system/extras/f2fs_utils/
Df2fs_ioutils.c121 struct buf_item *bi = calloc(1, sizeof(struct buf_item)); in dev_write_sparse()
/system/core/toolbox/
Dioctl.c136 ioctl_args = calloc(1, length); in ioctl_main()

1234