/lk-master/lib/libcpp/ |
A D | new.cpp | 13 return malloc(s); in operator new() 17 return malloc(s); in operator new[]() 21 return malloc(s); in operator new() 25 return malloc(s); in operator new[]()
|
/lk-master/lib/fs/ |
A D | shell.c | 63 char *path = malloc(FS_MAX_PATH_LEN); in cmd_ls() 117 char *path = malloc(FS_MAX_PATH_LEN); in cmd_cd() 146 char *path = malloc(FS_MAX_PATH_LEN); in cmd_mkdir() 164 char *path = malloc(FS_MAX_PATH_LEN); in cmd_mkfile() 188 char *path = malloc(FS_MAX_PATH_LEN); in cmd_rm() 211 char *path = malloc(FS_MAX_PATH_LEN); in cmd_stat() 248 char *path = malloc(FS_MAX_PATH_LEN); in cmd_cat()
|
A D | fs.c | 136 mount = malloc(sizeof(struct fs_mount)); in mount() 226 filehandle *f = malloc(sizeof(*f)); in fs_open_file() 268 filehandle *f = malloc(sizeof(*f)); in fs_create_file() 387 dirhandle *d = malloc(sizeof(*d)); in fs_open_dir()
|
/lk-master/app/tests/ |
A D | benchmarks.c | 25 uint32_t *buf = malloc(BUFSIZE); in bench_set_overhead() 43 void *buf = malloc(BUFSIZE); in bench_memset() 66 type *buf = malloc(BUFSIZE); \ 94 uint32_t *buf = malloc(BUFSIZE); in bench_cset() 124 uint8_t *buf = malloc(BUFSIZE); in bench_memcpy() 146 uint32_t *buf = malloc(BUFSIZE); in arm_bench_cset_stm()
|
/lk-master/external/platform/pico/rp2_common/pico_standard_link/ |
A D | new_delete.cpp | 13 return std::malloc(n); in operator new() 17 return std::malloc(n); in operator new[]()
|
/lk-master/app/inetsrv/ |
A D | inetsrv.c | 30 uint8_t *buf = malloc(CHARGEN_BUFSIZE); in chargen_worker() 93 uint8_t *buf = malloc(DISCARD_BUFSIZE); in discard_worker() 149 uint8_t *buf = malloc(ECHO_BUFSIZE); in echo_worker()
|
/lk-master/lib/norfs/test/ |
A D | norfs_test.c | 74 norfs_test_bank = malloc(8 * FLASH_PAGE_SIZE); in save_bank() 100 unsigned char *char_array_buffer = malloc(sizeof(unsigned char)*6); in test_basic_read_write() 107 iovec_t *iov_in = malloc(iov_in_count*sizeof(iovec_t)); in test_basic_read_write() 114 iovec_t *iov_out = malloc(iov_out_count*sizeof(iovec_t)); in test_basic_read_write() 116 iov_out[0].iov_base = malloc(sizeof(unsigned char)); in test_basic_read_write() 118 iov_out[1].iov_base = malloc(iov_out_count*sizeof(unsigned char)); in test_basic_read_write() 120 iov_out[2].iov_base = malloc(sizeof(unsigned char)); in test_basic_read_write() 499 iovec_t *iov = malloc(sizeof(iovec_t)); in test_thrash_fs()
|
/lk-master/dev/usb/ |
A D | usb.c | 51 uint8_t *ptr = malloc(desc->len + len); in append_desc_data() 86 uint8_t *ptr = malloc(len); in usb_append_interface() 134 uint16_t *strbuf = malloc(len * 2 + 2); in usb_add_string() 176 usb_callback_container_t *c = malloc(sizeof(usb_callback_container_t)); in usb_register_callback()
|
/lk-master/lib/libc/string/ |
A D | strdup.c | 21 copy = malloc(len); in strdup()
|
/lk-master/lib/heap/include/lib/ |
A D | heap.h | 17 void *malloc(size_t size) __MALLOC;
|
/lk-master/lib/fs/fat32/ |
A D | file.c | 67 char *result = malloc(result_len); in fat32_dir_get_filename() 122 uint8_t *dir = malloc(fat->bytes_per_cluster); in fat32_open_file() 172 file = malloc(sizeof(fat_file_t)); in fat32_open_file()
|
A D | fat.c | 44 uint8_t *bs = malloc(512); in fat32_mount() 57 fat_fs_t *fat = malloc(sizeof(fat_fs_t)); in fat32_mount()
|
/lk-master/lib/sysparam/ |
A D | sysparam.c | 102 struct sysparam *param = malloc(sizeof(struct sysparam)); in sysparam_create() 109 param->name = malloc(namelen + 1); in sysparam_create() 121 param->data = malloc(alloclen); in sysparam_create() 165 uint8_t *buf = malloc(len); in sysparam_scan() 559 str = malloc(buflen + 1); in cmd_sysparam() 634 uint8_t *buf = malloc(len); in cmd_sysparam()
|
/lk-master/lib/minip/ |
A D | udp.c | 60 if ((entry = malloc(sizeof(struct udp_listener))) == NULL) { in udp_listen() 83 socket = (udp_socket_t *) malloc(sizeof(udp_socket_t)); in udp_open()
|
/lk-master/lib/bcache/ |
A D | bcache.c | 51 cache = malloc(sizeof(struct bcache)); in bcache_create() 61 cache->blocks = malloc(sizeof(struct bcache_block) * block_count); in bcache_create() 66 cache->blocks[i].ptr = malloc(block_size); in bcache_create()
|
/lk-master/app/lkboot/ |
A D | commands.c | 54 struct lkb_command *cmd = malloc(sizeof(struct lkb_command)); in lkb_register() 308 void *buf = malloc(bdev->block_size); in lkb_handle_command() 344 void *buf = malloc(len); in lkb_handle_command()
|
/lk-master/external/lib/lwip/include/lwip/ |
A D | mem.h | 57 #define mem_malloc malloc
|
/lk-master/lib/text/ |
A D | text.c | 47 struct text_line *line = malloc(sizeof(struct text_line)); in text_draw()
|
/lk-master/lib/fs/spifs/test/ |
A D | spifstest.c | 115 struct dirent *ent = malloc(sizeof(*ent)); in test_double_create_file() 517 uint8_t *rbuf = malloc(buflen); in test_read_write_big() 522 uint8_t *wbuf = malloc(buflen); in test_read_write_big() 592 struct dirent *ent = malloc(sizeof(*ent)); in test_rm_active_dirent() 693 uint8_t *test_buffer = malloc(test_buffer_length); in spifs_bench()
|
/lk-master/lib/dpc/ |
A D | dpc.c | 33 dpc = malloc(sizeof(struct dpc)); in dpc_queue()
|
/lk-master/lib/fs/memfs/ |
A D | memfs.c | 61 memfs_t *mem = malloc(sizeof(*mem)); in memfs_mount() 126 memfs_file_t *file = malloc(sizeof(*file)); in memfs_create() 323 dircookie *dir = malloc(sizeof(*dir)); in memfs_opendir()
|
/lk-master/tools/ |
A D | bootimage.c | 33 if ((img = malloc(sizeof(bootimage))) == NULL) { in bootimage_init() 157 if ((data = malloc(sz)) == NULL) { in load_file()
|
/lk-master/lib/devicetree/ |
A D | devicetreedump.c | 41 if ((data = malloc(end + 1)) == NULL) in loadfile()
|
/lk-master/lib/console/ |
A D | console.c | 579 args = (console_cmd_args *) malloc (MAX_NUM_ARGS * sizeof(console_cmd_args)); in command_loop() 585 outbuf = malloc(outbuflen); in command_loop() 698 con->debug_buffer = malloc(LINE_LEN); in console_create() 754 lineread.buffer = malloc(LINE_LEN); in console_run_script_etc()
|
/lk-master/external/lib/cksum/ |
A D | debug.c | 105 buf = malloc(BUFSIZE); in cmd_cksum_bench()
|