Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/device/google/marlin/dataservices/datatop/src/
Ddatatop_dual_line_poll.c76 int *line_len = malloc(sizeof(int) * in dtop_dual_line_poll()
79 int *line_len2 = malloc(sizeof(int) * in dtop_dual_line_poll()
84 struct dt_procdict *dict = malloc(sizeof(struct dt_procdict) in dtop_dual_line_poll()
87 struct dt_procdict *prefix_dict = malloc(sizeof(struct dt_procdict) in dtop_dual_line_poll()
196 struct dtop_data_point_gatherer *dpg = malloc in construct_dual_line_file_dpg()
222 int *line_len = malloc(sizeof(int) * storage->line_count); in dtop_dual_line_search()
223 int *line_len2 = malloc(sizeof(int) * storage->line_count); in dtop_dual_line_search()
229 storage->line = malloc(storage->line_count * sizeof(*storage->line)); in dtop_dual_line_search()
230 storage->line2 = malloc(storage->line_count * sizeof(*storage->line2)); in dtop_dual_line_search()
232 storage->line[i] = malloc(sizeof(char) * DTOP_DUAL_LINE); in dtop_dual_line_search()
[all …]
Ddatatop_stat_poll.c119 int *line_len = malloc(sizeof(int) * in dtop_stat_poll()
199 struct dtop_data_point_gatherer *dpg = malloc in construct_stat_file_dpg()
224 int *line_len = malloc(sizeof(int) * storage->line_count); in dtop_stat_search()
233 storage->line = malloc(storage->line_count * sizeof(*storage->line)); in dtop_stat_search()
236 storage->line[i] = malloc(sizeof(char) * DTOP_STAT_LINE); in dtop_stat_search()
252 dp_per_line = malloc(sizeof(int) * (storage->line_count)); in dtop_stat_search()
262 data_points = malloc(dp_count * sizeof(struct dtop_data_point)); in dtop_stat_search()
269 char *newname = malloc(dk_len); in dtop_stat_search()
272 data_points[count].name = malloc(dp_len); in dtop_stat_search()
277 char *add = malloc(15 * sizeof(char)); in dtop_stat_search()
[all …]
Ddatatop_cpu_stats_poll.c112 char *file = malloc(strlen(name) + 1); in construct_cpu_stat_dpg()
114 malloc(sizeof(struct dtop_data_point)); in construct_cpu_stat_dpg()
115 struct dtop_data_point_gatherer *dpg = malloc in construct_cpu_stat_dpg()
121 dp[0].name = malloc(5); in construct_cpu_stat_dpg()
154 char *cpu_num = malloc(5); in cpu_poll_helper()
159 newfile = malloc(nf_len); in cpu_poll_helper()
Ddatatop_gen_poll.c159 char *both = malloc(both_len); in dpg_construction()
161 struct dtop_data_point_gatherer *dpg = malloc in dpg_construction()
165 maindir = malloc(strlen(dir) + 1); in dpg_construction()
175 struct dtop_data_point *dp = malloc in dpg_construction()
179 dp[i].name = malloc(strlen(name) + 1); in dpg_construction()
182 char *add = malloc(7 * sizeof(char)); in dpg_construction()
187 newname = malloc(nn_len); in dpg_construction()
191 dp[i].name = malloc(dpn_len); in dpg_construction()
258 char *newdir = malloc(nd_len); in dtop_search()
Ddatatop_single_line_poll.c73 int *line_len = malloc(sizeof(int) * in dtop_single_line_poll()
152 struct dtop_data_point_gatherer *dpg = malloc in construct_single_line_file_dpg()
178 int *line_len = malloc(sizeof(int) * storage->line_count); in dtop_single_line_search()
183 storage->line = malloc(storage->line_count * sizeof(*storage->line)); in dtop_single_line_search()
186 storage->line[i] = malloc(sizeof(char) * DTOP_SINGLE_LINE); in dtop_single_line_search()
207 data_points = malloc in dtop_single_line_search()
239 struct dtop_single_line_vars *storage = malloc in dtop_single_line_init()
Ddatatop_dev_poll.c112 int *line_len = malloc(sizeof(int) * in dtop_dev_poll()
116 struct dt_procdict *dict = malloc(sizeof(struct dt_procdict) in dtop_dev_poll()
208 struct dtop_data_point_gatherer *dpg = malloc in construct_dev_file_dpg()
235 int *line_len = malloc(sizeof(int) * storage->line_count); in dtop_dev_search()
239 struct dtop_data_point *data_points = malloc in dtop_dev_search()
245 storage->line = malloc(storage->line_count * sizeof(*storage->line)); in dtop_dev_search()
248 storage->line[i] = malloc(sizeof(char) * DTOP_DEV_LINE); in dtop_dev_search()
290 char *pref = malloc(30 * sizeof(char)); in dtop_dev_search()
316 struct dtop_dev_vars *storage = malloc in dtop_dev_init()
Ddatatop_value_only_poll.c121 struct dtop_data_point_gatherer *dpg = malloc in construct_value_only_dpg()
165 data_points = malloc(dict.max * sizeof(struct dtop_data_point)); in dtop_value_only_search()
169 char *newname = malloc(sizeof(10)); in dtop_value_only_search()
174 data_points[i].name = malloc(sizeof(10)); in dtop_value_only_search()
198 char *file = malloc(strlen(name) + 1); in dtop_value_only_init()
Ddatatop_meminfo_file_poll.c112 int *line_len = malloc(sizeof(int) * in dtop_meminfo_poll()
198 struct dtop_data_point_gatherer *dpg = malloc in construct_meminfo_file_dpg()
223 int *line_len = malloc(sizeof(int) * storage->line_count); in dtop_meminfo_search()
228 storage->line = malloc(storage->line_count * sizeof(*storage->line)); in dtop_meminfo_search()
231 storage->line[i] = malloc(sizeof(char) * DTOP_MEM_LINE); in dtop_meminfo_search()
252 data_points = malloc in dtop_meminfo_search()
278 struct dtop_meminfo_vars *storage = malloc in dtop_meminfo_init()
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/
Dopendir.c91 if ((dirp = (DIR *)malloc(sizeof(DIR))) == NULL) in __opendir2()
104 dirp->dd_buf = malloc((size_t)dirp->dd_len); in __opendir2()
119 if ((dirp->dd_lock = malloc(sizeof(mutex_t))) == NULL) in __opendir2()
/device/google/dragon/audio/hal/dsp/tests/
Draw.c35 buf = (int16_t *)malloc(n); in read_raw()
44 data = (float *)malloc(sizeof(float) * f * 2); in read_raw()
73 buf = (int16_t *)malloc(n); in write_raw()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ProcessDsc/
DDscFile.c196 NewDscFileName = malloc (sizeof (DSC_FILE_NAME)); in DSCParseInclude()
203 NewDscFileName->FileName = (INT8 *) malloc (strlen (FileName) + 1); in DSCParseInclude()
264 NewLine = (SECTION_LINE *) malloc (sizeof (SECTION_LINE)); in DSCParseInclude()
274 NewLine->Line = (char *) malloc (strlen (Line) + 1); in DSCParseInclude()
334 NewSect = (SECTION *) malloc (sizeof (SECTION)); in DSCParseInclude()
343 NewSect->Name = (char *) malloc (strlen (ThisSectionName) + 1); in DSCParseInclude()
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
Dwcsftime.c74 if ((sformat = malloc(sflen + 1)) == NULL) in wcsftime()
89 dst = malloc(maxsize * MB_CUR_MAX); in wcsftime()
Dctypeio.c90 if ((new_ctype = malloc(sizeof(UINT16) * (1 + len))) == NULL) in __loadctype()
97 if ((new_toupper = malloc(sizeof(UINT8) * (1 + len))) == NULL) in __loadctype()
104 if ((new_tolower = malloc(sizeof(UINT8) * (1 + len))) == NULL) in __loadctype()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/
Dautomata.c63 dfa_model_node = (dfa_node*) malloc(sizeof(dfa_node)
95 dfa_array=(dfa_node **) malloc(sizeof(dfa_node*)*
105 t = (dfa_node*) malloc(sizeof(nfa_node)+sizeof(int)*class_no);
138 reach_list = (unsigned *) malloc((2+nfa_allocated)*sizeof(unsigned));
243 p = (hash_list*)malloc(sizeof(hash_list));
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
DMalloc.c84 malloc(size_t Size) in malloc() function
147 RetVal = malloc(NumSize); in calloc()
259 RetVal = malloc(NewSize); // Get the NEW memory region in realloc()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/MakeDeps/
DMakeDeps.c499 ListPtr = malloc (sizeof (STRING_LIST)); in ProcessFile()
500 ListPtr->Str = malloc (strlen (FileNameCopy) + 1); in ProcessFile()
814 ListPtr = malloc (sizeof (STRING_LIST)); in ProcessClOutput()
815 ListPtr->Str = malloc (strlen (IncludeFileName) + 1); in ProcessClOutput()
1114 NewList = malloc (sizeof (STRING_LIST)); in ProcessArgs()
1121 NewList->Str = malloc (strlen (Argv[1]) + 2); in ProcessArgs()
1162 NewList = malloc (sizeof (STRING_LIST)); in ProcessArgs()
1172 NewList->Str = malloc (strlen (Argv[1]) + 5); in ProcessArgs()
1206 NewList = malloc (sizeof (STRING_LIST)); in ProcessArgs()
1212 NewList->Str = malloc (strlen (Argv[1]) + 2); in ProcessArgs()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Ddynload_aix.c48 if ((ldibuf = malloc(bufsize)) == NULL) { in aix_getoldmodules()
56 if ((ldibuf = malloc(bufsize)) == NULL) { in aix_getoldmodules()
83 if ((modptr = (ModulePtr)malloc(sizeof(Module))) == NULL) { in aix_getoldmodules()
Dthread_solaris.h47 funcarg = (struct func_arg *) malloc(sizeof(struct func_arg)); in PyThread_start_new_thread()
88 lock = (mutex_t *) malloc(sizeof(mutex_t)); in PyThread_allocate_lock()
Dthread_lwp.h64 extern char *malloc(size_t); in PyThread_allocate_lock()
70 lock = (struct lock *) malloc(sizeof(struct lock)); in PyThread_allocate_lock()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DPosixFileSystem.c126 PrivateFile = malloc (sizeof (EMU_EFI_FILE_PRIVATE)); in PosixOpenVolume()
131 PrivateFile->FileName = malloc (AsciiStrSize (Private->FilePath)); in PosixOpenVolume()
413 NewPrivateFile = malloc (sizeof (EMU_EFI_FILE_PRIVATE)); in PosixFileOpen()
420 …NewPrivateFile->FileName = malloc (AsciiStrSize (PrivateFile->FileName) + 1 + StrLen (FileName) + … in PosixFileOpen()
605 Info = malloc (InfoSize); in PosixFileOpen()
806 FullFileName = malloc (AsciiStrLen(PrivateFile->FileName) + 1 + NameSize); in PosixFileRead()
1113 PrivateRoot->VolumeLabel = malloc (StrSize (NewFileSystemInfo->VolumeLabel)); in PosixFileSetInfo()
1176 OldFileInfo = malloc (OldInfoSize); in PosixFileSetInfo()
1186 OldFileName = malloc (AsciiStrSize (PrivateFile->FileName)); in PosixFileSetInfo()
1197 …NewFileName = malloc (AsciiStrLen (PrivateRoot->FilePath) + 1 + StrLen (NewFileInfo->FileName) + 1… in PosixFileSetInfo()
[all …]
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c80 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
95 str = (char *)malloc(count + 1); in addExifEntry()
108 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry()
123 uint32_t *values = (uint32_t *)malloc(count * sizeof(uint32_t)); in addExifEntry()
138 rat_t *values = (rat_t *)malloc(count * sizeof(rat_t)); in addExifEntry()
152 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
164 int32_t *values = (int32_t *)malloc(count * sizeof(int32_t)); in addExifEntry()
179 srat_t *values = (srat_t *)malloc(count * sizeof(srat_t)); in addExifEntry()
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c80 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
95 str = (char *)malloc(count + 1); in addExifEntry()
108 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry()
123 uint32_t *values = (uint32_t *)malloc(count * sizeof(uint32_t)); in addExifEntry()
138 rat_t *values = (rat_t *)malloc(count * sizeof(rat_t)); in addExifEntry()
152 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
164 int32_t *values = (int32_t *)malloc(count * sizeof(int32_t)); in addExifEntry()
179 srat_t *values = (srat_t *)malloc(count * sizeof(srat_t)); in addExifEntry()
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c83 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
98 str = (char *)malloc(count + 1); in addExifEntry()
111 uint16_t *values = (uint16_t *)malloc(count * sizeof(uint16_t)); in addExifEntry()
126 uint32_t *values = (uint32_t *)malloc(count * sizeof(uint32_t)); in addExifEntry()
141 rat_t *values = (rat_t *)malloc(count * sizeof(rat_t)); in addExifEntry()
155 uint8_t *values = (uint8_t *)malloc(count); in addExifEntry()
167 int32_t *values = (int32_t *)malloc(count * sizeof(int32_t)); in addExifEntry()
182 srat_t *values = (srat_t *)malloc(count * sizeof(srat_t)); in addExifEntry()
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/
DAlloc.c29 void *p = malloc(size); in MyAlloc()
34 return malloc(size); in MyAlloc()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DStringFuncs.c45 NewString = malloc (strlen (String) + 1); in CloneString()
306 return malloc (OFFSET_OF(STRING_LIST, Strings[StringCount + 1])); in AllocateStringListStruct()
370 NewString = malloc (Length + 1); in StringListToString()

12345678910>>...15