Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 25 of 27) sorted by relevance

12

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_indirect_births.c130 uint64_t old_size; in vdev_indirect_births_add_entry() local
143 old_size = vdev_indirect_births_size_impl(vib); in vdev_indirect_births_add_entry()
144 dmu_write(vib->vib_objset, vib->vib_object, old_size, sizeof (vibe), in vdev_indirect_births_add_entry()
150 if (old_size > 0) { in vdev_indirect_births_add_entry()
151 bcopy(vib->vib_entries, new_entries, old_size); in vdev_indirect_births_add_entry()
152 kmem_free(vib->vib_entries, old_size); in vdev_indirect_births_add_entry()
H A Dvdev_indirect_mapping.c391 uint64_t old_size; in vdev_indirect_mapping_add_entries() local
402 old_size = vdev_indirect_mapping_size(vim); in vdev_indirect_mapping_add_entries()
474 ASSERT3U(new_size, >, old_size); in vdev_indirect_mapping_add_entries()
475 ASSERT3U(new_size - old_size, ==, in vdev_indirect_mapping_add_entries()
478 if (old_size > 0) { in vdev_indirect_mapping_add_entries()
479 bcopy(old_entries, vim->vim_entries, old_size); in vdev_indirect_mapping_add_entries()
480 kmem_free(old_entries, old_size); in vdev_indirect_mapping_add_entries()
482 VERIFY0(dmu_read(vim->vim_objset, vim->vim_object, old_size, in vdev_indirect_mapping_add_entries()
483 new_size - old_size, &vim->vim_entries[old_count], in vdev_indirect_mapping_add_entries()
/illumos-gate/usr/src/uts/common/io/
H A Dptms_conf.c569 minor_t old_size = ptms_nslots; in ptms_grow() local
570 minor_t delta = MIN(pt_maxdelta, old_size); in ptms_grow()
571 minor_t new_size = old_size + delta; in ptms_grow()
587 vaddr = vmem_add(ptms_minor_arena, (void *)(uintptr_t)(old_size + 1), in ptms_grow()
588 new_size - old_size, VM_NOSLEEP); in ptms_grow()
597 bcopy(ptms_old, ptms_new, old_size * sizeof (struct pt_ttys *)); in ptms_grow()
599 kmem_free(ptms_old, old_size * sizeof (struct pt_ttys *)); in ptms_grow()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dunparse.c53 size_t old_size) in krb5int_realloc() argument
58 bcopy(oldp, newp, old_size < new_size ? old_size : new_size); in krb5int_realloc()
59 FREE(oldp, old_size); in krb5int_realloc()
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c332 fsblkcnt_t new_size, old_size; in readmap() local
336 old_size = nblk(statbuf.st_size, in readmap()
344 if (new_size < old_size) in readmap()
347 blk = new_size - old_size; in readmap()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_wr.c1151 uint32_t old_size; in dapls_tavor_srq_wrid_resize() local
1167 old_size = wridlist->wl_size; in dapls_tavor_srq_wrid_resize()
1184 old_size * sizeof (dapls_tavor_wrid_entry_t)); in dapls_tavor_srq_wrid_resize()
1191 idx = (idx + 1) % old_size; in dapls_tavor_srq_wrid_resize()
1197 new_wl_freel[idx] = wridlist->wl_srq_desc_addr + old_size * in dapls_tavor_srq_wrid_resize()
1201 for (i = 0; i < new_size - old_size - 1; i++) { in dapls_tavor_srq_wrid_resize()
1213 old_size; in dapls_tavor_srq_wrid_resize()
1218 dapl_os_free(old_wl_wre, old_size * in dapls_tavor_srq_wrid_resize()
1222 dapl_os_free(old_wl_freel, old_size * sizeof (uint32_t)); in dapls_tavor_srq_wrid_resize()
/illumos-gate/usr/src/lib/libelfsign/common/
H A Delfsignlib.c534 size_t old_size, new_size; in elfsign_signatures() local
558 old_size = data->d_size; in elfsign_signatures()
559 if (old_size != shdr.sh_size) { in elfsign_signatures()
561 "and section size %lld", old_size, shdr.sh_size); in elfsign_signatures()
564 new_size = old_size + strlen(elf_section) + 1; in elfsign_signatures()
568 (void) memcpy(new_d_buf, data->d_buf, old_size); in elfsign_signatures()
569 (void) strlcpy(new_d_buf + old_size, elf_section, in elfsign_signatures()
570 new_size - old_size); in elfsign_signatures()
589 shdr.sh_name = old_size; in elfsign_signatures()
614 old_size + strlen(elf_section) + 1) != ELFSIGN_SUCCESS) { in elfsign_signatures()
/illumos-gate/usr/src/uts/common/io/sbp2/
H A Dcfgrom.c267 int new_size, old_size; in sbp2_cfgrom_dir_grow() local
275 old_size = dir->cd_size * sizeof (sbp2_cfgrom_ent_t); in sbp2_cfgrom_dir_grow()
276 bcopy(dir->cd_ent, new_ent, old_size); in sbp2_cfgrom_dir_grow()
277 kmem_free(dir->cd_ent, old_size); in sbp2_cfgrom_dir_grow()
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_alloc.c233 uint32_t old_loc, old_size, new_size; in ud_alloc_space_bmap() local
274 old_loc = old_size = 0; in ud_alloc_space_bmap()
330 if (old_size < new_size) { in ud_alloc_space_bmap()
332 old_size = new_size; in ud_alloc_space_bmap()
367 if ((old_size == 0) && (!fragmented)) { in ud_alloc_space_bmap()
373 if (less_is_ok && (old_size != 0)) { in ud_alloc_space_bmap()
381 ud_part, old_loc, &old_size) == 0) { in ud_alloc_space_bmap()
382 if (old_size != 0) { in ud_alloc_space_bmap()
384 *size = old_size; in ud_alloc_space_bmap()
386 ud_part->udp_last_alloc = old_loc + old_size; in ud_alloc_space_bmap()
H A Dudf_dir.c1631 uint32_t entrysize, count, offset, tbno, old_size, off; in ud_dirprepareentry() local
1666 old_size = (uint32_t)dp->i_size; in ud_dirprepareentry()
1691 while (off < old_size) { in ud_dirprepareentry()
/illumos-gate/usr/src/uts/common/os/
H A Dvmem.c1673 size_t old_size, new_size, h, nseg; in vmem_hash_rescale() local
1679 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale()
1681 if ((old_size >> vmem_rescale_minshift) <= new_size && in vmem_hash_rescale()
1682 new_size <= (old_size << 1)) in vmem_hash_rescale()
1693 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale()
1700 for (h = 0; h < old_size; h++) { in vmem_hash_rescale()
1716 old_size * sizeof (void *)); in vmem_hash_rescale()
H A Dcyclic.c1448 cyc_index_t new_size, old_size; in cyclic_expand() local
1464 if ((new_size = ((old_size = cpu->cyp_size) << 1)) == 0) { in cyclic_expand()
1537 ASSERT(old_size != 0); in cyclic_expand()
1538 kmem_free(old_cyclics, sizeof (cyclic_t) * old_size); in cyclic_expand()
1539 kmem_free(old_heap, sizeof (cyc_index_t) * old_size); in cyclic_expand()
H A Dkmem.c3328 size_t old_size, new_size, h; in kmem_hash_rescale() local
3334 old_size = cp->cache_hash_mask + 1; in kmem_hash_rescale()
3336 if ((old_size >> 1) <= new_size && new_size <= (old_size << 1)) in kmem_hash_rescale()
3347 old_size = cp->cache_hash_mask + 1; in kmem_hash_rescale()
3354 for (h = 0; h < old_size; h++) { in kmem_hash_rescale()
3368 vmem_free(kmem_hash_arena, old_table, old_size * sizeof (void *)); in kmem_hash_rescale()
H A Ddumpsubr.c486 size_t old_size = dumpbuf.size; in dumpbuf_resize() local
493 if (new_size <= old_size) in dumpbuf_resize()
500 kmem_free(old_buf, old_size); in dumpbuf_resize()
/illumos-gate/usr/src/lib/libumem/common/
H A Dvmem.c1595 size_t old_size, new_size, h, nseg; in vmem_hash_rescale() local
1600 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale()
1602 if ((old_size >> 1) <= new_size && new_size <= (old_size << 1)) in vmem_hash_rescale()
1613 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale()
1620 for (h = 0; h < old_size; h++) { in vmem_hash_rescale()
1636 old_size * sizeof (void *)); in vmem_hash_rescale()
H A Dumem.c2417 size_t old_size, new_size, h; in umem_hash_rescale() local
2423 old_size = cp->cache_hash_mask + 1; in umem_hash_rescale()
2425 if ((old_size >> 1) <= new_size && new_size <= (old_size << 1)) in umem_hash_rescale()
2436 old_size = cp->cache_hash_mask + 1; in umem_hash_rescale()
2443 for (h = 0; h < old_size; h++) { in umem_hash_rescale()
2457 vmem_free(umem_hash_arena, old_table, old_size * sizeof (void *)); in umem_hash_rescale()
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai_register.c1260 usba_kmem_realloc(void* old_mem, int old_size, int new_size) in usba_kmem_realloc() argument
1266 if (old_size > 0) { in usba_kmem_realloc()
1268 min(old_size, new_size)); in usba_kmem_realloc()
1272 if (old_size > 0) { in usba_kmem_realloc()
1273 kmem_free(old_mem, old_size); in usba_kmem_realloc()
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/
H A Dsppptun.c233 minor_t old_size = tcl_nslots; in tcl_grow() local
234 minor_t new_size = 2 * old_size; in tcl_grow()
247 vaddr = vmem_add(tcl_minor_arena, (void*)((uintptr_t)old_size + 1), in tcl_grow()
248 new_size - old_size, VM_NOSLEEP); in tcl_grow()
257 bcopy(tcl_old, tcl_new, old_size * sizeof (tuncl_t *)); in tcl_grow()
259 kmem_free(tcl_old, old_size * sizeof (tuncl_t *)); in tcl_grow()
/illumos-gate/usr/src/uts/common/fs/mntfs/
H A Dmntvnops.c1002 size_t size, old_size; in mntgetattr() local
1029 old_size = mntdata->mnt_hidden_size; in mntgetattr()
1032 old_size = mntdata->mnt_size; in mntgetattr()
1055 size = old_size; in mntgetattr()
/illumos-gate/usr/src/tools/smatch/src/
H A Dexpand.c92 int old_size = oldtype->bit_size; in cast_value() local
103 if (old_size == new_size) { in cast_value()
130 oldsignmask = 1ULL << (old_size-1); in cast_value()
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd.c2668 uint64_t old_size; in sbd_modify_lu() local
2862 old_size = sl->sl_lu_size; in sbd_modify_lu()
2868 sl->sl_lu_size = old_size; in sbd_modify_lu()
2872 if (old_size != mlu->mlu_lu_size) { in sbd_modify_lu()
3191 uint64_t old_size, new_size; in sbd_data_write() local
3194 old_size = sl->sl_data_readable_size; in sbd_data_write()
3195 if ((offset + size) <= old_size) in sbd_data_write()
3198 } while (atomic_cas_64(&sl->sl_data_readable_size, old_size, in sbd_data_write()
3199 new_size) != old_size); in sbd_data_write()
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c2653 scsa1394_kmem_realloc(void *old_buf, int old_size, int new_size, size_t elsize, in scsa1394_kmem_realloc() argument
2660 if (old_size > 0) { in scsa1394_kmem_realloc()
2662 bcopy(old_buf, new_buf, old_size * elsize); in scsa1394_kmem_realloc()
2664 kmem_free(old_buf, old_size * elsize); in scsa1394_kmem_realloc()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c269 size_t new_size, old_size; in htbl_grow() local
290 old_size = htbl->htbl_size; in htbl_grow()
301 while (old_size-- > 0) { in htbl_grow()
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_boot.c3507 uint_t old_size; in alloc_res_array() local
3513 old_size = array_size; in alloc_res_array()
3526 old_size * sizeof (struct pci_bus_resource)); in alloc_res_array()
3527 kmem_free(old_res, old_size * sizeof (struct pci_bus_resource)); in alloc_res_array()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c6362 size_t old_size, new_size; in vd_backend_check_size() local
6434 old_size = vd->vdisk_size; in vd_backend_check_size()
6438 if (old_size != VD_SIZE_UNKNOWN && old_size == new_size && in vd_backend_check_size()

12