/titanic_41/usr/src/uts/common/io/ |
H A D | ptms_conf.c | 565 minor_t old_size = ptms_nslots; in ptms_grow() local 566 minor_t delta = MIN(pt_maxdelta, old_size); in ptms_grow() 567 minor_t new_size = old_size + delta; in ptms_grow() 583 vaddr = vmem_add(ptms_minor_arena, (void *)(uintptr_t)(old_size + 1), in ptms_grow() 584 new_size - old_size, VM_NOSLEEP); in ptms_grow() 593 bcopy(ptms_old, ptms_new, old_size * sizeof (struct pt_ttys *)); in ptms_grow() 595 kmem_free(ptms_old, old_size * sizeof (struct pt_ttys *)); in ptms_grow()
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | unparse.c | 53 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()
|
/titanic_41/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 328 fsblkcnt_t new_size, old_size; in readmap() local 332 old_size = nblk(statbuf.st_size, in readmap() 340 if (new_size < old_size) in readmap() 343 blk = new_size - old_size; in readmap()
|
/titanic_41/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_wr.c | 1151 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()
|
/titanic_41/usr/src/lib/libelfsign/common/ |
H A D | elfsignlib.c | 534 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()
|
/titanic_41/usr/src/uts/common/io/sbp2/ |
H A D | cfgrom.c | 269 int new_size, old_size; in sbp2_cfgrom_dir_grow() local 277 old_size = dir->cd_size * sizeof (sbp2_cfgrom_ent_t); in sbp2_cfgrom_dir_grow() 278 bcopy(dir->cd_ent, new_ent, old_size); in sbp2_cfgrom_dir_grow() 279 kmem_free(dir->cd_ent, old_size); in sbp2_cfgrom_dir_grow()
|
/titanic_41/usr/src/uts/common/fs/udfs/ |
H A D | udf_alloc.c | 233 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 D | udf_dir.c | 1631 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()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | vmem.c | 1656 size_t old_size, new_size, h, nseg; in vmem_hash_rescale() local 1662 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale() 1664 if ((old_size >> 1) <= new_size && new_size <= (old_size << 1)) in vmem_hash_rescale() 1675 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale() 1682 for (h = 0; h < old_size; h++) { in vmem_hash_rescale() 1698 old_size * sizeof (void *)); in vmem_hash_rescale()
|
H A D | cyclic.c | 1440 cyc_index_t new_size, old_size; in cyclic_expand() local 1456 if ((new_size = ((old_size = cpu->cyp_size) << 1)) == 0) { in cyclic_expand() 1529 ASSERT(old_size != 0); in cyclic_expand() 1530 kmem_free(old_cyclics, sizeof (cyclic_t) * old_size); in cyclic_expand() 1531 kmem_free(old_heap, sizeof (cyc_index_t) * old_size); in cyclic_expand()
|
H A D | kmem.c | 3272 size_t old_size, new_size, h; in kmem_hash_rescale() local 3278 old_size = cp->cache_hash_mask + 1; in kmem_hash_rescale() 3280 if ((old_size >> 1) <= new_size && new_size <= (old_size << 1)) in kmem_hash_rescale() 3291 old_size = cp->cache_hash_mask + 1; in kmem_hash_rescale() 3298 for (h = 0; h < old_size; h++) { in kmem_hash_rescale() 3312 vmem_free(kmem_hash_arena, old_table, old_size * sizeof (void *)); in kmem_hash_rescale()
|
H A D | dumpsubr.c | 486 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()
|
H A D | sunmdi.c | 9029 mdi_realloc(void *old_ptr, size_t old_size, size_t new_size) in mdi_realloc() argument 9035 bcopy(old_ptr, new_ptr, MIN(old_size, new_size)); in mdi_realloc() 9036 kmem_free(old_ptr, old_size); in mdi_realloc()
|
/titanic_41/usr/src/lib/libumem/common/ |
H A D | vmem.c | 1590 size_t old_size, new_size, h, nseg; in vmem_hash_rescale() local 1595 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale() 1597 if ((old_size >> 1) <= new_size && new_size <= (old_size << 1)) in vmem_hash_rescale() 1608 old_size = vmp->vm_hash_mask + 1; in vmem_hash_rescale() 1615 for (h = 0; h < old_size; h++) { in vmem_hash_rescale() 1631 old_size * sizeof (void *)); in vmem_hash_rescale()
|
H A D | umem.c | 2413 size_t old_size, new_size, h; in umem_hash_rescale() local 2419 old_size = cp->cache_hash_mask + 1; in umem_hash_rescale() 2421 if ((old_size >> 1) <= new_size && new_size <= (old_size << 1)) in umem_hash_rescale() 2432 old_size = cp->cache_hash_mask + 1; in umem_hash_rescale() 2439 for (h = 0; h < old_size; h++) { in umem_hash_rescale() 2453 vmem_free(umem_hash_arena, old_table, old_size * sizeof (void *)); in umem_hash_rescale()
|
/titanic_41/usr/src/uts/common/io/usb/usba/ |
H A D | usbai_register.c | 1205 usba_kmem_realloc(void* old_mem, int old_size, int new_size) in usba_kmem_realloc() argument 1211 if (old_size > 0) { in usba_kmem_realloc() 1213 min(old_size, new_size)); in usba_kmem_realloc() 1217 if (old_size > 0) { in usba_kmem_realloc() 1218 kmem_free(old_mem, old_size); in usba_kmem_realloc()
|
/titanic_41/usr/src/uts/common/inet/kssl/ |
H A D | ksslioctl.c | 602 int tmp_size, old_size; in kssl_add_entry() local 604 tmp_size = old_size = kssl_entry_tab_size; in kssl_add_entry() 610 if (kssl_entry_tab_size > old_size) { in kssl_add_entry()
|
/titanic_41/usr/src/uts/common/io/ppp/sppptun/ |
H A D | sppptun.c | 233 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()
|
/titanic_41/usr/src/uts/common/fs/mntfs/ |
H A D | mntvnops.c | 1002 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()
|
/titanic_41/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd.c | 2624 uint64_t old_size; in sbd_modify_lu() local 2815 old_size = sl->sl_lu_size; in sbd_modify_lu() 2821 sl->sl_lu_size = old_size; in sbd_modify_lu() 2825 if (old_size != mlu->mlu_lu_size) { in sbd_modify_lu() 3110 uint64_t old_size, new_size; in sbd_data_write() local 3113 old_size = sl->sl_data_readable_size; in sbd_data_write() 3114 if ((offset + size) <= old_size) in sbd_data_write() 3117 } while (atomic_cas_64(&sl->sl_data_readable_size, old_size, in sbd_data_write() 3118 new_size) != old_size); in sbd_data_write()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | if.c | 269 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()
|
/titanic_41/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | hba.c | 2653 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()
|
/titanic_41/usr/src/uts/intel/io/pci/ |
H A D | pci_boot.c | 3260 int old_size; in alloc_res_array() local 3266 old_size = array_size; in alloc_res_array() 3279 old_size * sizeof (struct pci_bus_resource)); in alloc_res_array() 3280 kmem_free(old_res, old_size * sizeof (struct pci_bus_resource)); in alloc_res_array()
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | vds.c | 6357 size_t old_size, new_size; in vd_backend_check_size() local 6429 old_size = vd->vdisk_size; in vd_backend_check_size() 6433 if (old_size != VD_SIZE_UNKNOWN && old_size == new_size && in vd_backend_check_size()
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/include/ |
H A D | k5-int.h | 2783 size_t old_size);
|