| /rk3399_rockchip-uboot/lib/ |
| H A D | abuf.c | 27 bool abuf_realloc(struct abuf *abuf, size_t new_size) in abuf_realloc() argument 31 if (!new_size) { in abuf_realloc() 37 ptr = realloc(abuf->data, new_size); in abuf_realloc() 41 abuf->size = new_size; in abuf_realloc() 43 } else if (new_size <= abuf->size) { in abuf_realloc() 48 abuf->size = new_size; in abuf_realloc() 54 ptr = memdup(abuf->data, new_size); in abuf_realloc() 58 abuf->size = new_size; in abuf_realloc()
|
| /rk3399_rockchip-uboot/scripts/kconfig/ |
| H A D | zconf.l | 51 int new_size = text_size + size + 1; in append_string() local 52 if (new_size > text_asize) { in append_string() 53 new_size += START_STRSIZE - 1; in append_string() 54 new_size &= -START_STRSIZE; in append_string() 55 text = realloc(text, new_size); in append_string() 56 text_asize = new_size; in append_string()
|
| H A D | confdata.c | 196 size_t new_size = slen + 1; in add_byte() local 197 if (new_size > *n) { in add_byte() 198 new_size += LINE_GROWTH - 1; in add_byte() 199 new_size *= 2; in add_byte() 200 nline = realloc(*lineptr, new_size); in add_byte() 205 *n = new_size; in add_byte()
|
| H A D | zconf.lex.c_shipped | 838 int new_size = text_size + size + 1; 839 if (new_size > text_asize) { 840 new_size += START_STRSIZE - 1; 841 new_size &= -START_STRSIZE; 842 text = realloc(text, new_size); 843 text_asize = new_size; 1585 int new_size = b->yy_buf_size * 2; 1587 if ( new_size <= 0 ) 1642 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); 1643 …LVALUE->yy_ch_buf = (char *) zconfrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
|
| /rk3399_rockchip-uboot/lib/libxbc/ |
| H A D | libxbc.c | 65 int32_t new_size = 0; in addBootConfigParameters() local 71 memcpy(&new_size, (void *)end, BOOTCONFIG_SIZE_SIZE); in addBootConfigParameters() 73 new_size = bootconfig_size; in addBootConfigParameters()
|
| /rk3399_rockchip-uboot/fs/ubifs/ |
| H A D | replay.c | 61 loff_t new_size; member 190 min_blk = r->new_size / UBIFS_BLOCK_SIZE; in trun_remove_range() 191 if (r->new_size & (UBIFS_BLOCK_SIZE - 1)) in trun_remove_range() 254 r->new_size); in apply_replay_entry() 353 loff_t new_size) in insert_node() argument 375 r->new_size = new_size; in insert_node() 597 loff_t new_size = le64_to_cpu(ino->size); in replay_bud() local 603 &used, 0, new_size); in replay_bud() 609 loff_t new_size = le32_to_cpu(dn->size) + in replay_bud() local 615 &used, 0, new_size); in replay_bud() [all …]
|
| H A D | recovery.c | 1372 int deletion, loff_t new_size) in ubifs_recover_size_accum() argument 1385 e->i_size = new_size; in ubifs_recover_size_accum() 1388 err = add_ino(c, inum, new_size, 0, 1); in ubifs_recover_size_accum() 1397 if (new_size > e->d_size) in ubifs_recover_size_accum() 1398 e->d_size = new_size; in ubifs_recover_size_accum() 1400 err = add_ino(c, inum, 0, new_size, 0); in ubifs_recover_size_accum() 1408 e->d_size = new_size; in ubifs_recover_size_accum()
|
| H A D | ubifs-media.h | 572 __le64 new_size; member
|
| H A D | ubifs.h | 2153 loff_t old_size, loff_t new_size); 2384 int deletion, loff_t new_size);
|
| H A D | debug.c | 500 (unsigned long long)le64_to_cpu(trun->new_size)); in ubifs_dump_node()
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | fit_image.c | 470 int fit_size, new_size; in fit_extract_data() local 532 new_size = fdt_totalsize(fdt); in fit_extract_data() 533 new_size = FIT_ALIGN(new_size); in fit_extract_data() 536 if (ftruncate(fd, new_size)) { in fit_extract_data() 545 if (params->external_offset < new_size) { in fit_extract_data() 547 params->external_offset, new_size); in fit_extract_data() 551 new_size = params->external_offset; in fit_extract_data() 553 if (lseek(fd, new_size, SEEK_SET) < 0) { in fit_extract_data() 581 int fit_size, new_size, size, data_base; in fit_import_data() local 646 new_size = fdt_totalsize(fdt); in fit_import_data() [all …]
|
| /rk3399_rockchip-uboot/fs/yaffs2/ |
| H A D | yaffs_yaffs2.h | 36 int yaffs2_handle_hole(struct yaffs_obj *obj, loff_t new_size);
|
| H A D | yaffsfs.h | 98 int yaffs_truncate(const YCHAR *path, loff_t new_size); 99 int yaffs_ftruncate(int fd, loff_t new_size);
|
| H A D | yaffsfs.c | 1304 int yaffs_truncate(const YCHAR *path, loff_t new_size) in yaffs_truncate() argument 1339 else if (new_size < 0 || new_size > YAFFS_MAX_FILE_SIZE) in yaffs_truncate() 1342 result = yaffs_resize_file(obj, new_size); in yaffs_truncate() 1349 int yaffs_ftruncate(int handle, loff_t new_size) in yaffs_ftruncate() argument 1366 else if (new_size < 0 || new_size > YAFFS_MAX_FILE_SIZE) in yaffs_ftruncate() 1370 result = yaffs_resize_file(obj, new_size); in yaffs_ftruncate()
|
| H A D | yaffs_guts.h | 852 int yaffs_resize_file(struct yaffs_obj *obj, loff_t new_size); 948 void yaffs_resize_file_down(struct yaffs_obj *obj, loff_t new_size);
|
| H A D | yaffs_guts.c | 3672 static void yaffs_prune_chunks(struct yaffs_obj *in, loff_t new_size) in yaffs_prune_chunks() argument 3688 yaffs_addr_to_chunk(dev, new_size + dev->data_bytes_per_chunk - 1, in yaffs_prune_chunks() 3722 void yaffs_resize_file_down(struct yaffs_obj *obj, loff_t new_size) in yaffs_resize_file_down() argument 3728 yaffs_addr_to_chunk(dev, new_size, &new_full, &new_partial); in yaffs_resize_file_down() 3730 yaffs_prune_chunks(obj, new_size); in yaffs_resize_file_down() 3747 obj->variant.file_variant.file_size = new_size; in yaffs_resize_file_down() 3752 int yaffs_resize_file(struct yaffs_obj *in, loff_t new_size) in yaffs_resize_file() argument 3765 if (new_size == old_size) in yaffs_resize_file() 3768 if (new_size > old_size) { in yaffs_resize_file() 3769 yaffs2_handle_hole(in, new_size); in yaffs_resize_file() [all …]
|
| H A D | yaffs_yaffs2.c | 831 int yaffs2_handle_hole(struct yaffs_obj *obj, loff_t new_size) in yaffs2_handle_hole() argument 860 if (new_size <= old_file_size) in yaffs2_handle_hole() 863 increase = new_size - old_file_size; in yaffs2_handle_hole()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | abuf.h | 91 bool abuf_realloc(struct abuf *abuf, size_t new_size);
|
| /rk3399_rockchip-uboot/common/ |
| H A D | dlmalloc.c | 146 long new_size = max (NEXT_SIZE, AlignPage (size)); in wsbrk() local 150 new_address = findRegion (new_address, new_size); in wsbrk() 156 (unsigned int)VirtualAlloc (new_address, new_size, in wsbrk() 166 gAllocatedSize = new_size; in wsbrk() 1012 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size) in mremap_chunk() argument 1014 static mchunkptr mremap_chunk(p, new_size) mchunkptr p; size_t new_size; in mremap_chunk() 1028 new_size = (new_size + offset + SIZE_SZ + page_mask) & ~page_mask; 1030 cp = (char *)mremap((char *)p - offset, size + offset, new_size, 1); 1039 set_head(p, (new_size - offset)|IS_MMAPPED); 1042 mmapped_mem += new_size;
|
| H A D | dlmalloc.src | 1061 long new_size = max (NEXT_SIZE, AlignPage (size)); 1065 new_address = findRegion (new_address, new_size); 1071 (unsigned int)VirtualAlloc (new_address, new_size, 1081 gAllocatedSize = new_size; 1877 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size) 1879 static mchunkptr mremap_chunk(p, new_size) mchunkptr p; size_t new_size; 1893 new_size = (new_size + offset + SIZE_SZ + page_mask) & ~page_mask; 1895 cp = (char *)mremap((char *)p - offset, size + offset, new_size, 1); 1904 set_head(p, (new_size - offset)|IS_MMAPPED); 1907 mmapped_mem += new_size;
|
| /rk3399_rockchip-uboot/lib/optee_clientApi/ |
| H A D | OpteeClientRkNewFs_v1.c | 1132 int ret, fd, new_size; in ree_fs_new_write() local 1160 new_size = offs + len > p.size ? offs + len : p.size; in ree_fs_new_write() 1161 file_data = malloc(new_size); in ree_fs_new_write() 1188 p.size = new_size; in ree_fs_new_write() 1189 section_num = new_size / RKSS_DATA_SECTION_LEN + 1; in ree_fs_new_write()
|
| H A D | OpteeClientRkNewFs_v2.c | 1123 int ret, fd, new_size; in ree_fs_new_write() local 1147 new_size = offs + len > p.size ? offs + len : p.size; in ree_fs_new_write() 1148 file_data = malloc(new_size); in ree_fs_new_write() 1175 p.size = new_size; in ree_fs_new_write() 1176 section_num = new_size / RKSS_DATA_LEN + 1; in ree_fs_new_write()
|
| /rk3399_rockchip-uboot/fs/ext4/ |
| H A D | ext4_common.c | 491 uint32_t new_size; in ext4fs_update_parent_dentry() local 569 new_size = le32_to_cpu(g_parent_inode->size); in ext4fs_update_parent_dentry() 570 new_size += fs->blksz; in ext4fs_update_parent_dentry() 571 g_parent_inode->size = cpu_to_le32(new_size); in ext4fs_update_parent_dentry()
|
| /rk3399_rockchip-uboot/lib/avb/libavb/ |
| H A D | avb_slot_verify.c | 1107 size_t new_size = in load_and_verify_vbmeta() local 1109 char* new_cmdline = avb_calloc(new_size); in load_and_verify_vbmeta()
|
| /rk3399_rockchip-uboot/scripts/dtc/ |
| H A D | dtc-lexer.lex.c_shipped | 1455 int new_size = b->yy_buf_size * 2; 1457 if ( new_size <= 0 ) 1512 int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); 1513 …ER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
|