| /linux/drivers/acpi/x86/ |
| H A D | apple.c | 30 unsigned int i, j = 0, newsize = 0, numprops, numvalid; in acpi_extract_apple_properties() local 79 newsize += key->string.length + 1; in acpi_extract_apple_properties() 81 newsize += val->buffer.length; in acpi_extract_apple_properties() 83 newsize += val->string.length + 1; in acpi_extract_apple_properties() 95 newsize += (1 + 3 * numvalid) * sizeof(union acpi_object); in acpi_extract_apple_properties() 96 newprops = ACPI_ALLOCATE_ZEROED(newsize); in acpi_extract_apple_properties() 140 WARN_ON(free_space != (void *)newprops + newsize); in acpi_extract_apple_properties()
|
| /linux/include/linux/ |
| H A D | ramfs.h | 14 ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument 19 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
|
| /linux/security/apparmor/ |
| H A D | lib.c | 121 bool aa_resize_str_table(struct aa_str_table *t, int newsize, gfp_t gfp) in aa_resize_str_table() argument 126 if (t->size == newsize) in aa_resize_str_table() 128 n = kzalloc_objs(*n, newsize, gfp); in aa_resize_str_table() 131 for (i = 0; i < min(t->size, newsize); i++) in aa_resize_str_table() 135 if (newsize > t->size) in aa_resize_str_table() 136 memset(&n[t->size], 0, (newsize-t->size)*sizeof(*n)); in aa_resize_str_table() 139 t->size = newsize; in aa_resize_str_table()
|
| /linux/fs/ceph/ |
| H A D | quota.c | 457 bool ceph_quota_is_max_bytes_exceeded(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_exceeded() argument 465 if (newsize <= size) in ceph_quota_is_max_bytes_exceeded() 468 return check_quota_exceeded(inode, QUOTA_CHECK_MAX_BYTES_OP, (newsize - size)); in ceph_quota_is_max_bytes_exceeded() 479 bool ceph_quota_is_max_bytes_approaching(struct inode *inode, loff_t newsize) in ceph_quota_is_max_bytes_approaching() argument 487 if (newsize <= size) in ceph_quota_is_max_bytes_approaching() 491 (newsize - size)); in ceph_quota_is_max_bytes_approaching()
|
| /linux/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()
|
| /linux/arch/s390/tools/ |
| H A D | relocs.c | 254 unsigned long newsize = r->size + 50000; in add_reloc() local 255 void *mem = realloc(r->offset, newsize * sizeof(r->offset[0])); in add_reloc() 258 die("realloc of %ld entries for relocs failed\n", newsize); in add_reloc() 261 r->size = newsize; in add_reloc()
|
| /linux/arch/s390/mm/ |
| H A D | dump_pagetables.c | 295 size_t newsize; in add_marker() local 297 newsize = (markers_cnt + 2) * sizeof(*markers); in add_marker() 298 new = kvrealloc(markers, newsize, GFP_KERNEL); in add_marker()
|
| /linux/drivers/md/ |
| H A D | md-cluster.h | 34 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
|
| H A D | md-cluster.c | 1150 static int resize_bitmaps(struct mddev *mddev, sector_t newsize, sector_t oldsize) in resize_bitmaps() argument 1166 rv = update_bitmap_size(mddev, newsize); in resize_bitmaps()
|
| /linux/fs/udf/ |
| H A D | inode.c | 647 static int udf_extend_file(struct inode *inode, loff_t newsize) in udf_extend_file() argument 655 sector_t first_block = newsize >> sb->s_blocksize_bits, offset; in udf_extend_file() 702 (newsize & (sb->s_blocksize - 1)); in udf_extend_file() 1274 int udf_setsize(struct inode *inode, loff_t newsize) in udf_setsize() argument 1285 if (newsize > inode->i_size) { in udf_setsize() 1288 (udf_file_entry_alloc_offset(inode) + newsize)) { in udf_setsize() 1290 iinfo->i_lenAlloc = newsize; in udf_setsize() 1298 err = udf_extend_file(inode, newsize); in udf_setsize() 1302 truncate_setsize(inode, newsize); in udf_setsize() 1307 memset(iinfo->i_data + iinfo->i_lenEAttr + newsize, in udf_setsize() [all …]
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-clt.h | 141 int rnbd_clt_resize_disk(struct rnbd_clt_dev *dev, sector_t newsize);
|
| H A D | rnbd-clt.c | 121 int rnbd_clt_resize_disk(struct rnbd_clt_dev *dev, sector_t newsize) in rnbd_clt_resize_disk() argument 131 rnbd_clt_change_capacity(dev, newsize); in rnbd_clt_resize_disk()
|
| /linux/fs/jfs/ |
| H A D | jfs_xtree.h | 108 extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type);
|
| /linux/fs/nfs/ |
| H A D | nfs4session.c | 39 static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize) in nfs4_shrink_slot_table() argument 42 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table() 46 while (newsize--) in nfs4_shrink_slot_table()
|
| /linux/drivers/md/bcache/ |
| H A D | bset.c | 134 size_t newsize = oldsize + u64s; in __bch_keylist_realloc() local 138 newsize = roundup_pow_of_two(newsize); in __bch_keylist_realloc() 140 if (newsize <= KEYLIST_INLINE || in __bch_keylist_realloc() 141 roundup_pow_of_two(oldsize) == newsize) in __bch_keylist_realloc() 144 new_keys = krealloc(old_keys, sizeof(uint64_t) * newsize, GFP_NOIO); in __bch_keylist_realloc()
|
| H A D | request.c | 94 size_t newsize = oldsize + u64s; in bch_keylist_realloc() local 102 if (newsize * sizeof(uint64_t) > block_bytes(c->cache) - sizeof(struct jset)) in bch_keylist_realloc()
|
| /linux/arch/x86/tools/ |
| H A D | relocs.c | 684 unsigned long newsize = r->size + 50000; in add_reloc() local 685 void *mem = realloc(r->offset, newsize * sizeof(r->offset[0])); in add_reloc() 688 die("realloc of %ld entries for relocs failed\n", newsize); in add_reloc() 691 r->size = newsize; in add_reloc()
|
| /linux/arch/mips/boot/tools/ |
| H A D | relocs.c | 456 unsigned long newsize = r->size + 50000; in add_reloc() local 457 void *mem = realloc(r->offset, newsize * sizeof(r->offset[0])); in add_reloc() 463 r->size = newsize; in add_reloc()
|
| /linux/security/ |
| H A D | commoncap.c | 581 size_t newsize; in cap_convert_nscap() local 606 newsize = sizeof(struct vfs_ns_cap_data); in cap_convert_nscap() 607 nscap = kmalloc(newsize, GFP_ATOMIC); in cap_convert_nscap() 619 return newsize; in cap_convert_nscap()
|
| /linux/security/apparmor/include/ |
| H A D | lib.h | 162 bool aa_resize_str_table(struct aa_str_table *t, int newsize, gfp_t gfp);
|
| /linux/fs/nilfs2/ |
| H A D | nilfs.h | 376 int nilfs_resize_fs(struct super_block *sb, __u64 newsize);
|
| /linux/drivers/net/ethernet/ibm/ |
| H A D | ibmveth.c | 2014 u32 newsize; in veth_pool_store() local 2026 newsize = oldsize; in veth_pool_store() 2061 newsize = value; in veth_pool_store() 2081 pool->size = newsize; in veth_pool_store()
|