Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 12 of 12) sorted by relevance

/drivers/acpi/x86/
Dapple.c30 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()
/drivers/hid/
Dhid-kye.c405 unsigned int newsize; in kye_tablet_fixup() local
423 newsize = info->has_punk ? sizeof(kye_tablet_rdesc) : 112; in kye_tablet_fixup()
424 memcpy(rdesc, kye_tablet_rdesc, newsize); in kye_tablet_fixup()
444 if (newsize + info->control_rsize > *rsize) in kye_tablet_fixup()
447 memcpy(rdesc + newsize, info->control_rdesc, info->control_rsize); in kye_tablet_fixup()
448 newsize += info->control_rsize; in kye_tablet_fixup()
452 *rsize = newsize; in kye_tablet_fixup()
/drivers/md/
Dmd-cluster.h30 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
Draid5.c2531 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes() argument
2568 struct_size_t(struct stripe_head, dev, newsize), in resize_stripes()
2577 nsh = alloc_stripe(sc, GFP_KERNEL, newsize, conf); in resize_stripes()
2636 ndisks = kcalloc(newsize, sizeof(struct disk_info), GFP_NOIO); in resize_stripes()
2641 for (i = conf->pool_size; i < newsize; i++) { in resize_stripes()
2648 for (i = conf->pool_size; i < newsize; i++) in resize_stripes()
2676 for (i = conf->raid_disks; i < newsize; i++) { in resize_stripes()
2684 for (i=conf->raid_disks; i < newsize; i++) in resize_stripes()
2699 conf->pool_size = newsize; in resize_stripes()
8403 sector_t newsize; in raid5_resize() local
[all …]
Draid10.c4639 sector_t oldsize, newsize; in raid10_start_reshape() local
4642 newsize = raid10_size(mddev, 0, conf->geo.raid_disks); in raid10_start_reshape()
4645 ret = md_bitmap_resize(mddev->bitmap, newsize, 0, 0); in raid10_start_reshape()
4664 MD_FEATURE_RESHAPE_ACTIVE)) || (oldsize == newsize)) in raid10_start_reshape()
4667 ret = md_bitmap_resize(mddev->bitmap, newsize, 0, 0); in raid10_start_reshape()
4671 ret = md_cluster_ops->resize_bitmaps(mddev, newsize, oldsize); in raid10_start_reshape()
Dmd-cluster.c1127 static int resize_bitmaps(struct mddev *mddev, sector_t newsize, sector_t oldsize) in resize_bitmaps() argument
1140 rv = update_bitmap_size(mddev, newsize); in resize_bitmaps()
Draid1.c3222 sector_t newsize = raid1_size(mddev, sectors, 0); in raid1_resize() local
3224 mddev->array_sectors > newsize) in raid1_resize()
3227 int ret = md_bitmap_resize(mddev->bitmap, newsize, 0, 0); in raid1_resize()
3231 md_set_array_sectors(mddev, newsize); in raid1_resize()
/drivers/md/bcache/
Dbset.c134 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()
Drequest.c94 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()
/drivers/block/rnbd/
Drnbd-clt.h141 int rnbd_clt_resize_disk(struct rnbd_clt_dev *dev, sector_t newsize);
Drnbd-clt.c119 int rnbd_clt_resize_disk(struct rnbd_clt_dev *dev, sector_t newsize) in rnbd_clt_resize_disk() argument
129 rnbd_clt_change_capacity(dev, newsize); in rnbd_clt_resize_disk()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c1598 u32 newsize; in brcmf_pcie_adjust_ramsize() local
1607 newsize = le32_to_cpup(field); in brcmf_pcie_adjust_ramsize()
1610 newsize); in brcmf_pcie_adjust_ramsize()
1611 devinfo->ci->ramsize = newsize; in brcmf_pcie_adjust_ramsize()