| /OK3568_Linux_fs/kernel/fs/ramfs/ |
| H A D | file-nommu.c | 62 int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument 72 order = get_order(newsize); in ramfs_nommu_expand_for_mapping() 76 ret = inode_newsize_ok(inode, newsize); in ramfs_nommu_expand_for_mapping() 80 i_size_write(inode, newsize); in ramfs_nommu_expand_for_mapping() 90 npages = (newsize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_expand_for_mapping() 99 newsize = PAGE_SIZE * npages; in ramfs_nommu_expand_for_mapping() 101 memset(data, 0, newsize); in ramfs_nommu_expand_for_mapping() 132 static int ramfs_nommu_resize(struct inode *inode, loff_t newsize, loff_t size) in ramfs_nommu_resize() argument 139 if (unlikely(newsize >> 32)) in ramfs_nommu_resize() 142 return ramfs_nommu_expand_for_mapping(inode, newsize); in ramfs_nommu_resize() [all …]
|
| /OK3568_Linux_fs/external/recovery/update_engine/ |
| H A D | do_patch.c | 92 ssize_t oldsize, newsize; in do_patch_rkimg() local 161 (newsize = strtol(token[TID_NEW_SIZE], &saveptr, 10)) == 0 || in do_patch_rkimg() 162 (errno == ERANGE && (newsize == LONG_MAX || newsize == LONG_MIN)) || in do_patch_rkimg() 214 newsize = offtin(header + 24); in do_patch_rkimg() 215 if ((bzctrllen < 0) || (bzdatalen < 0) || (newsize <= 0)) { in do_patch_rkimg() 267 (lseek(fd, newsize - 1, SEEK_SET) != (newsize - 1)) || in do_patch_rkimg() 270 ((new_ptr = (unsigned char *)mmap(NULL, newsize, PROT_READ | PROT_WRITE, in do_patch_rkimg() 279 while (newpos < newsize) { in do_patch_rkimg() 292 if (newpos + ctrl[0] > newsize) { in do_patch_rkimg() 315 if (newpos + ctrl[1] > newsize) { in do_patch_rkimg() [all …]
|
| /OK3568_Linux_fs/buildroot/package/bsdiff/ |
| H A D | 0002-bspatch-adaption-to-embedded-system.patch | 59 newsize=offtin(header+24); 60 - if((bzctrllen<0) || (bzdatalen<0) || (newsize<0)) 61 + if((bzctrllen<0) || (bzdatalen<0) || (newsize<=0)) 77 - if((new=malloc(newsize+1))==NULL) err(1,NULL); 81 + (lseek(fd,newsize-1,SEEK_SET)!=(newsize-1)) || 84 + ((new=mmap(NULL,newsize,PROT_READ | PROT_WRITE,MAP_SHARED,fd,0))==MAP_FAILED) || 89 while(newpos<newsize) { 96 - (write(fd,new,newsize)!=newsize) || (close(fd)==-1)) 101 + munmap(new, newsize);
|
| /OK3568_Linux_fs/external/xserver/hw/xwin/ |
| H A D | InitOutput.c | 452 size_t newsize = size + blen; in winFixupPaths() local 456 newsize++; in winFixupPaths() 460 fontpath = malloc(newsize + 1); in winFixupPaths() 462 fontpath = realloc(fontpath, newsize + 1); in winFixupPaths() 477 fontpath[newsize] = 0; in winFixupPaths() 478 size = newsize; in winFixupPaths() 505 size_t newsize = oldfp_len; in winFixupPaths() local 506 char *newpath = malloc(newsize + 1); in winFixupPaths() 508 strncpy(newpath, oldptr, newsize); in winFixupPaths() 509 newpath[newsize] = 0; in winFixupPaths() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/acpi/x86/ |
| H A D | apple.c | 29 unsigned int i, j = 0, newsize = 0, numprops, numvalid; in acpi_extract_apple_properties() local 77 newsize += key->string.length + 1; in acpi_extract_apple_properties() 79 newsize += val->buffer.length; in acpi_extract_apple_properties() 91 newsize += (1 + 3 * numvalid) * sizeof(union acpi_object); in acpi_extract_apple_properties() 92 newprops = ACPI_ALLOCATE_ZEROED(newsize); in acpi_extract_apple_properties() 130 WARN_ON(free_space != (void *)newprops + newsize); in acpi_extract_apple_properties()
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | readahead.c | 344 unsigned long newsize = roundup_pow_of_two(size); in get_init_ra_size() local 346 if (newsize <= max / 32) in get_init_ra_size() 347 newsize = newsize * 4; in get_init_ra_size() 348 else if (newsize <= max / 4) in get_init_ra_size() 349 newsize = newsize * 2; in get_init_ra_size() 351 newsize = max; in get_init_ra_size() 353 return newsize; in get_init_ra_size()
|
| H A D | truncate.c | 819 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument 822 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache() 834 truncate_inode_pages(mapping, newsize); in truncate_pagecache() 852 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument 856 i_size_write(inode, newsize); in truncate_setsize() 857 if (newsize > oldsize) in truncate_setsize() 858 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize() 859 truncate_pagecache(inode, newsize); in truncate_setsize()
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | dlmalloc.c | 1658 INTERNAL_SIZE_T newsize; /* its size */ local 1693 newsize = oldsize = chunksize(oldp); 1732 if ((long)(nextsize + newsize) >= (long)(nb + MINSIZE)) 1734 newsize += nextsize; 1736 set_head(top, (newsize - nb) | PREV_INUSE); 1743 else if (((long)(nextsize + newsize) >= (long)(nb))) 1746 newsize += nextsize; 1770 if ((long)(nextsize + prevsize + newsize) >= (long)(nb + MINSIZE)) 1774 newsize += prevsize + nextsize; 1778 set_head(top, (newsize - nb) | PREV_INUSE); [all …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | xmalloc.c | 40 void *lsx_realloc(void *ptr, size_t newsize) in lsx_realloc() argument 42 if (ptr && newsize == 0) { in lsx_realloc() 47 return lsx_checkptr(realloc(ptr, newsize)); in lsx_realloc()
|
| /OK3568_Linux_fs/kernel/Documentation/RCU/ |
| H A D | arrayRCU.rst | 75 static int grow_ary(struct ipc_ids* ids, int newsize) 82 if(newsize > IPCMNI) 83 newsize = IPCMNI; 84 if(newsize <= size) 85 return newsize; 87 new = ipc_rcu_alloc(sizeof(struct kern_ipc_perm *)*newsize + 91 new->size = newsize; 95 for(i=size;i<newsize;i++) { 108 return newsize;
|
| /OK3568_Linux_fs/kernel/fs/xfs/ |
| H A D | xfs_iops.c | 858 xfs_off_t oldsize, newsize; in xfs_setattr_size() local 871 newsize = iattr->ia_size; in xfs_setattr_size() 876 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size() 909 if (newsize > oldsize) { in xfs_setattr_size() 910 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size() 911 error = iomap_zero_range(inode, oldsize, newsize - oldsize, in xfs_setattr_size() 920 error = filemap_write_and_wait_range(inode->i_mapping, newsize, in xfs_setattr_size() 921 newsize); in xfs_setattr_size() 924 error = iomap_truncate_page(inode, newsize, &did_zeroing, in xfs_setattr_size() 952 truncate_setsize(inode, newsize); in xfs_setattr_size() [all …]
|
| /OK3568_Linux_fs/kernel/scripts/dtc/ |
| H A D | data.c | 27 int newsize; in data_grow_for() local 34 newsize = xlen; in data_grow_for() 36 while ((d.len + xlen) > newsize) in data_grow_for() 37 newsize *= 2; in data_grow_for() 39 nd.val = xrealloc(d.val, newsize); in data_grow_for()
|
| /OK3568_Linux_fs/u-boot/scripts/dtc/ |
| H A D | data.c | 42 int newsize; in data_grow_for() local 49 newsize = xlen; in data_grow_for() 51 while ((d.len + xlen) > newsize) in data_grow_for() 52 newsize *= 2; in data_grow_for() 54 nd.val = xrealloc(d.val, newsize); in data_grow_for()
|
| /OK3568_Linux_fs/kernel/fs/xfs/libxfs/ |
| H A D | xfs_dir2_sf.c | 950 int newsize; /* new inode size */ in xfs_dir2_sf_removename() local 987 newsize = oldsize - entsize; in xfs_dir2_sf_removename() 998 dp->i_d.di_size = newsize; in xfs_dir2_sf_removename() 1002 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename() 1026 int newsize; in xfs_dir2_sf_replace_needblock() local 1033 newsize = dp->i_df.if_bytes + (sfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_replace_needblock() 1036 sfp->i8count == 0 && newsize > XFS_IFORK_DSIZE(dp); in xfs_dir2_sf_replace_needblock() 1166 int newsize; /* new inode size */ in xfs_dir2_sf_toino4() local 1188 newsize = oldsize - (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino4() 1190 xfs_idata_realloc(dp, newsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | ramfs.h | 13 ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument 18 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
|
| /OK3568_Linux_fs/kernel/scripts/dtc/libfdt/ |
| H A D | fdt_rw.c | 419 int newsize; in fdt_open_into() local 452 newsize = FDT_ALIGN(sizeof(struct fdt_header), 8) + mem_rsv_size in fdt_open_into() 455 if (bufsize < newsize) in fdt_open_into() 461 if (((tmp + newsize) > fdtstart) && (tmp < fdtend)) { in fdt_open_into() 464 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 469 memmove(buf, tmp, newsize); in fdt_open_into()
|
| /OK3568_Linux_fs/kernel/fs/ceph/ |
| H A D | quota.c | 429 bool ceph_quota_is_max_bytes_exceeded(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_exceeded() argument 437 if (newsize <= size) in ceph_quota_is_max_bytes_exceeded() 440 return check_quota_exceeded(inode, QUOTA_CHECK_MAX_BYTES_OP, (newsize - size)); in ceph_quota_is_max_bytes_exceeded() 451 bool ceph_quota_is_max_bytes_approaching(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_approaching() argument 459 if (newsize <= size) in ceph_quota_is_max_bytes_approaching() 463 (newsize - size)); in ceph_quota_is_max_bytes_approaching()
|
| /OK3568_Linux_fs/u-boot/scripts/dtc/libfdt/ |
| H A D | fdt_rw.c | 433 int newsize; in fdt_open_into() local 465 newsize = FDT_ALIGN(sizeof(struct fdt_header), 8) + mem_rsv_size in fdt_open_into() 468 if (bufsize < newsize) in fdt_open_into() 474 if (((tmp + newsize) > fdtstart) && (tmp < fdtend)) { in fdt_open_into() 477 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 482 memmove(buf, tmp, newsize); in fdt_open_into()
|
| /OK3568_Linux_fs/kernel/arch/sh/mm/ |
| H A D | pmb.c | 657 unsigned long span, newsize; in pmb_merge() local 661 span = newsize = head->size; in pmb_merge() 668 newsize = span; in pmb_merge() 683 if (!depth || !pmb_size_valid(newsize)) in pmb_merge() 687 head->flags |= pmb_size_to_flags(newsize); in pmb_merge() 689 head->size = newsize; in pmb_merge()
|
| /OK3568_Linux_fs/kernel/fs/jfs/ |
| H A D | inode.c | 377 loff_t newsize; in jfs_truncate_nolock() local 398 newsize = xtTruncate(tid, ip, length, in jfs_truncate_nolock() 400 if (newsize < 0) { in jfs_truncate_nolock() 412 } while (newsize > length); /* Truncate isn't always atomic */ in jfs_truncate_nolock()
|
| /OK3568_Linux_fs/kernel/fs/gfs2/ |
| H A D | bmap.c | 1375 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument 1382 while (oldsize != newsize) { in gfs2_journaled_truncate() 1386 chunk = oldsize - newsize; in gfs2_journaled_truncate() 1410 static int trunc_start(struct inode *inode, u64 newsize) in trunc_start() argument 1421 unsigned int offs = newsize & (blocksize - 1); in trunc_start() 1423 error = gfs2_block_zero_range(inode, newsize, in trunc_start() 1443 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + newsize); in trunc_start() 1447 i_size_write(inode, newsize); in trunc_start() 1452 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start() 1454 truncate_pagecache(inode, newsize); in trunc_start() [all …]
|
| /OK3568_Linux_fs/kernel/fs/udf/ |
| H A D | inode.c | 626 static int udf_extend_file(struct inode *inode, loff_t newsize) in udf_extend_file() argument 634 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; in udf_extend_file() 666 partial_final_block = newsize & (sb->s_blocksize - 1); in udf_extend_file() 684 iinfo->i_lenExtents = newsize; in udf_extend_file() 1227 int udf_setsize(struct inode *inode, loff_t newsize) in udf_setsize() argument 1240 if (newsize > inode->i_size) { in udf_setsize() 1244 (udf_file_entry_alloc_offset(inode) + newsize)) { in udf_setsize() 1250 iinfo->i_lenAlloc = newsize; in udf_setsize() 1254 err = udf_extend_file(inode, newsize); in udf_setsize() 1261 truncate_setsize(inode, newsize); in udf_setsize() [all …]
|
| /OK3568_Linux_fs/kernel/fs/affs/ |
| H A D | file.c | 559 affs_extent_file_ofs(struct inode *inode, u32 newsize) in affs_extent_file_ofs() argument 567 pr_debug("%s(%lu, %d)\n", __func__, inode->i_ino, newsize); in affs_extent_file_ofs() 577 tmp = min(bsize - boff, newsize - size); in affs_extent_file_ofs() 591 while (size < newsize) { in affs_extent_file_ofs() 596 tmp = min(bsize, newsize - size); in affs_extent_file_ofs() 621 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs() 625 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/multiprecision/ |
| H A D | cpp_int.hpp | 1412 std::size_t newsize = bitcount / (sizeof(limb_type) * CHAR_BIT) + 1; in do_assign_string() local 1413 …result.resize(static_cast<unsigned>(newsize), static_cast<unsigned>(newsize)); // will throw if t… in do_assign_string() 1449 std::size_t newsize = bitcount / (sizeof(limb_type) * CHAR_BIT) + 1; in do_assign_string() local 1450 …result.resize(static_cast<unsigned>(newsize), static_cast<unsigned>(newsize)); // will throw if t… in do_assign_string() 1472 if(limb + 1 == newsize) in do_assign_string() 1473 … result.resize(static_cast<unsigned>(newsize + 1), static_cast<unsigned>(newsize + 1)); in do_assign_string() 1739 unsigned newsize = static_cast<unsigned>(c.size() / sizeof(limb_type)); in construct_from_container() local 1742 ++newsize; in construct_from_container() 1744 if(newsize) in construct_from_container() 1746 this->resize(newsize, newsize); // May throw in construct_from_container()
|
| /OK3568_Linux_fs/kernel/fs/ext2/ |
| H A D | inode.c | 1281 static int ext2_setsize(struct inode *inode, loff_t newsize) in ext2_setsize() argument 1296 error = iomap_zero_range(inode, newsize, in ext2_setsize() 1297 PAGE_ALIGN(newsize) - newsize, NULL, in ext2_setsize() 1301 newsize, ext2_get_block); in ext2_setsize() 1304 newsize, ext2_get_block); in ext2_setsize() 1309 truncate_setsize(inode, newsize); in ext2_setsize() 1310 __ext2_truncate_blocks(inode, newsize); in ext2_setsize()
|