/titanic_44/usr/src/lib/libresolv2/common/isc/ |
H A D | memcluster.c | 186 size_t new_size = quantize(size); in __memget_record() local 211 if (size >= max_size || new_size >= max_size) { in __memget_record() 216 e = malloc(new_size); in __memget_record() 246 if (freelists[new_size] == NULL) { in __memget_record() 278 if (new_size > mem_target_half) in __memget_record() 289 frags = total_size / new_size; in __memget_record() 290 stats[new_size].blocks++; in __memget_record() 291 stats[new_size].freefrags += frags; in __memget_record() 294 next = curr + new_size; in __memget_record() 297 memset(curr, 0xa5, new_size); in __memget_record() [all …]
|
/titanic_44/usr/src/lib/print/libprint/common/ |
H A D | list.c | 70 int new_size = (((count + 1) / _list_increment) + 1) * in list_append() local 73 new_list = (void **)calloc(new_size, in list_append() 76 (new_size * sizeof (void *))); in list_append() 132 new_size = 0; in list_concatenate() local 143 new_size = ((size1 + size2)/_list_increment + 2) * _list_increment; in list_concatenate() 145 if ((list = (void **)calloc((new_size), sizeof (void *))) in list_concatenate() 149 (void) memset(list, NULL, (new_size * sizeof (void *))); in list_concatenate()
|
/titanic_44/usr/src/cmd/ssh/libssh/common/ |
H A D | xmalloc.c | 53 xrealloc(void *ptr, size_t new_size) in xrealloc() argument 57 if (new_size == 0) in xrealloc() 60 new_ptr = malloc(new_size); in xrealloc() 62 new_ptr = realloc(ptr, new_size); in xrealloc() 64 fatal("xrealloc: out of memory (new_size %lu bytes)", (u_long) new_size); in xrealloc()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | getenv.c | 216 int new_size; in addtoenv() local 271 new_size = environ_size * 2; in addtoenv() 272 if (new_size < MIN_ENV_SIZE) in addtoenv() 273 new_size = MIN_ENV_SIZE; in addtoenv() 279 new_size * sizeof (char *)); in addtoenv() 310 new_environ = &new_base[(new_size - 1) - environ_size]; in addtoenv() 324 environ_size = new_size; in addtoenv()
|
/titanic_44/usr/src/lib/print/libpapi-common/common/ |
H A D | list.c | 62 int new_size = LIST_SIZE(count + 1); in list_append() local 64 new_list = (void **)calloc(new_size, sizeof (void *)); in list_append() 92 int new_size = 0; in list_concatenate() local 109 new_size = LIST_SIZE(size1 + size2); in list_concatenate() 111 if ((*result = (void **)calloc((new_size), sizeof (void *))) != NULL) { in list_concatenate()
|
/titanic_44/usr/src/test/zfs-tests/tests/functional/snapshot/ |
H A D | snapshot_008_pos.ksh | 91 new_size=`get_prop available $TESTPOOL` 95 (( tolerance = new_size - orig_size)) 97 log_fail "Space not freed. ($orig_size != $new_size)"
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | unparse.c | 52 size_t new_size, in krb5int_realloc() argument 56 char *newp = MALLOC(new_size); in krb5int_realloc() 58 bcopy(oldp, newp, old_size < new_size ? old_size : new_size); in krb5int_realloc() 63 return (realloc(oldp, new_size)); in krb5int_realloc()
|
/titanic_44/usr/src/uts/common/inet/ilb/ |
H A D | ilb_alg_hash.c | 227 size_t new_size; in hash_server_add() local 232 new_size = hash_alg->hash_servers + 1; in hash_server_add() 233 if (new_size > hash_alg->hash_tbl_size) { in hash_server_add() 252 new_size = hash_alg->hash_enabled_servers + 1; in hash_server_add() 253 if (new_size > hash_alg->hash_enabled_tbl_size) { in hash_server_add() 275 size_t new_size, i; in hash_server_enable() local 308 new_size = alg->hash_enabled_servers + 1; in hash_server_enable() 309 if (new_size > alg->hash_enabled_tbl_size) { in hash_server_enable()
|
/titanic_44/usr/src/cmd/sendmail/db/db/ |
H A D | db_region.c | 696 __db_rgrow(infop, new_size) in __db_rgrow() argument 698 size_t new_size; 718 DB_ROUNDOFF(new_size, DB_VMPAGESIZE); 719 increment = new_size - rlp->size; 725 rlp->size = new_size; 728 return (__db_rreattach(infop, new_size)); 836 __db_rreattach(infop, new_size) in __db_rreattach() argument 838 size_t new_size; 864 infop->size = new_size;
|
/titanic_44/usr/src/lib/libproc/common/ |
H A D | Pstack.c | 176 uint_t new_size, i; in load_uclist() local 184 new_size = ucl->uc_size ? ucl->uc_size * 2 : 16; in load_uclist() 186 new_size * sizeof (uintptr_t)); in load_uclist() 190 ucl->uc_size = new_size; in load_uclist()
|
/titanic_44/usr/src/lib/libsqlite/src/ |
H A D | hash.c | 168 static void rehash(Hash *pH, int new_size){ in rehash() argument 174 assert( (new_size & (new_size-1))==0 ); in rehash() 175 new_ht = (struct _ht *)sqliteMalloc( new_size*sizeof(struct _ht) ); in rehash() 179 pH->htsize = new_size; in rehash() 182 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1); in rehash()
|
/titanic_44/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass1.c | 578 offset_t new_size; in collapse_dirhole() local 595 new_size = idesc->id_firsthole * (offset_t)sblock.fs_bsize; in collapse_dirhole() 596 blocks = howmany(new_size, sblock.fs_bsize); in collapse_dirhole() 606 new_size = blocks * sblock.fs_bsize; in collapse_dirhole() 609 (longlong_t)new_size, blocks); in collapse_dirhole() 611 truncino(inumber, new_size, TI_NOPARENT); in collapse_dirhole() 619 idesc->id_entryno = btodb(new_size); in collapse_dirhole()
|
/titanic_44/usr/src/uts/common/io/aggr/ |
H A D | aggr_send.c | 254 uint_t new_size; in aggr_send_port_enable() local 256 new_size = grp->lg_ntx_ports+1; in aggr_send_port_enable() 257 new_ports = kmem_zalloc(new_size * sizeof (aggr_port_t *), in aggr_send_port_enable() 269 grp->lg_tx_ports_size = new_size; in aggr_send_port_enable()
|
/titanic_44/usr/src/cmd/svr4pkg/libinst/ |
H A D | listmgr.c | 139 int offset_to_avail, seg_size, new_size; in alloc_next_seg() local 149 new_size = (seg_size + bl_ptr->block_size); in alloc_next_seg() 163 new_size = bl_ptr->block_size; in alloc_next_seg() 170 (unsigned)new_size)) == NULL) { in alloc_next_seg() 184 alloc_segment->eoseg_ptr = alloc_segment->seg_ptr + new_size; in alloc_next_seg()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | ptms_conf.c | 567 minor_t new_size = old_size + delta; in ptms_grow() local 577 ptms_new = kmem_zalloc(new_size * sizeof (struct pt_ttys *), in ptms_grow() 584 new_size - old_size, VM_NOSLEEP); in ptms_grow() 587 kmem_free(ptms_new, new_size * sizeof (struct pt_ttys *)); in ptms_grow() 592 ptms_nslots = new_size; in ptms_grow()
|
/titanic_44/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | dockspace.c | 328 fsblkcnt_t new_size, old_size; in readmap() local 329 new_size = nblk(ept->cinfo.size, in readmap() 340 if (new_size < old_size) in readmap() 343 blk = new_size - old_size; in readmap()
|
/titanic_44/usr/src/uts/common/io/idm/ |
H A D | idm_impl.c | 648 uint32_t new_size; in idm_idpool_increment() local 652 new_size = pool->id_size * 2; in idm_idpool_increment() 653 if (new_size <= IDM_IDPOOL_MAX_SIZE) { in idm_idpool_increment() 654 new_pool = kmem_alloc(new_size / 8, KM_NOSLEEP); in idm_idpool_increment() 656 bzero(new_pool, new_size / 8); in idm_idpool_increment() 660 pool->id_free_counter += new_size - pool->id_size; in idm_idpool_increment() 661 pool->id_max_free_counter += new_size - pool->id_size; in idm_idpool_increment() 662 pool->id_size = new_size; in idm_idpool_increment() 663 pool->id_idx_msk = (new_size / 8) - 1; in idm_idpool_increment() 664 if (new_size >= IDM_IDPOOL_MAX_SIZE) { in idm_idpool_increment()
|
/titanic_44/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_cookie.c | 197 IN DAT_COUNT new_size, in dapls_cb_resize() argument 206 if (new_size < curr_buffer->pool_size) { in dapls_cb_resize() 216 new_size); in dapls_cb_resize()
|
/titanic_44/usr/src/cmd/fs.d/ufs/ncheck/ |
H A D | ncheck.c | 139 unsigned int new_size); 678 extend_tbl(uchar_t *tbl, unsigned int *current_size, unsigned int new_size) in extend_tbl() argument 687 if (tbl && (*current_size < new_size)) { in extend_tbl() 693 tbl = (uchar_t *)malloc(new_size); in extend_tbl() 697 *current_size = new_size; in extend_tbl() 699 (void) memset(tbl, 0, new_size); in extend_tbl()
|
/titanic_44/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_wr.c | 1144 dapls_tavor_srq_wrid_resize(ib_srq_handle_t srq_handle, uint32_t new_size) in dapls_tavor_srq_wrid_resize() argument 1169 new_wl_wre = (dapls_tavor_wrid_entry_t *)dapl_os_alloc(new_size * in dapls_tavor_srq_wrid_resize() 1174 new_wl_freel = dapl_os_alloc(new_size * sizeof (uint32_t)); in dapls_tavor_srq_wrid_resize() 1200 idx = (idx + 1) % new_size; in dapls_tavor_srq_wrid_resize() 1201 for (i = 0; i < new_size - old_size - 1; i++) { in dapls_tavor_srq_wrid_resize() 1205 idx = (idx + 1) % new_size; in dapls_tavor_srq_wrid_resize() 1207 wridlist->wl_size = new_size; in dapls_tavor_srq_wrid_resize() 1212 wridlist->wl_freel_entries = wridlist->wl_freel_entries + new_size - in dapls_tavor_srq_wrid_resize() 1228 dapl_os_free(new_wl_wre, new_size * in dapls_tavor_srq_wrid_resize()
|
/titanic_44/usr/src/tools/ctf/dwarf/common/ |
H A D | dwarf_macro.c | 135 long new_size; in _dwarf_macro_stack_push_index() local 140 new_size = ms->max * 2; in _dwarf_macro_stack_push_index() 143 new_size * sizeof(Dwarf_Signed)); in _dwarf_macro_stack_push_index() 155 ms->max = new_size; in _dwarf_macro_stack_push_index()
|
/titanic_44/usr/src/lib/libelfsign/common/ |
H A D | elfsignlib.c | 53 Elf_Scn *scn, uint64_t new_size); 534 size_t old_size, new_size; in elfsign_signatures() local 564 new_size = old_size + strlen(elf_section) + 1; in elfsign_signatures() 565 if ((new_d_buf = malloc(new_size)) == NULL) in elfsign_signatures() 570 new_size - old_size); in elfsign_signatures() 572 data->d_size = new_size; in elfsign_signatures() 683 elfsign_adjustoffsets(ELFsign_t ess, Elf_Scn *scn, uint64_t new_size) in elfsign_adjustoffsets() argument 701 if (shdr.sh_size == new_size) in elfsign_adjustoffsets() 715 name ? name : "NULL", shdr.sh_offset, shdr.sh_size, new_size); in elfsign_adjustoffsets() 716 shdr.sh_size = new_size; in elfsign_adjustoffsets()
|
/titanic_44/usr/src/uts/common/os/ |
H A D | ddi_intr_irm.c | 216 ndi_irm_resize_pool(ddi_irm_pool_t *pool_p, uint_t new_size) in ndi_irm_resize_pool() argument 224 (void *)pool_p, pool_p->ipool_totsz, new_size)); in ndi_irm_resize_pool() 241 if ((pool_p->ipool_totsz < new_size) || in ndi_irm_resize_pool() 242 (pool_p->ipool_resno <= new_size)) { in ndi_irm_resize_pool() 244 pool_p->ipool_totsz = new_size; in ndi_irm_resize_pool() 247 MAX(DDI_MIN_MSIX_ALLOC, new_size / DDI_MSIX_ALLOC_DIVIDER)); in ndi_irm_resize_pool() 264 pool_p->ipool_totsz = new_size; in ndi_irm_resize_pool() 272 if (pool_p->ipool_resno > new_size) { /* rebalance failed */ in ndi_irm_resize_pool() 282 MAX(DDI_MIN_MSIX_ALLOC, new_size / DDI_MSIX_ALLOC_DIVIDER)); in ndi_irm_resize_pool()
|
H A D | cyclic.c | 1346 cyc_index_t new_size = arg->cyx_size, size = cpu->cyp_size, i; in cyclic_expand_xcall() local 1361 CYC_TRACE(cpu, CY_HIGH_LEVEL, "expand", new_size, 0); in cyclic_expand_xcall() 1366 ASSERT((new_size & new_size - 1) == 0); in cyclic_expand_xcall() 1367 ASSERT(new_size == (size << 1)); in cyclic_expand_xcall() 1385 for (i = size; i < new_size; i++) { in cyclic_expand_xcall() 1396 cpu->cyp_size = new_size; in cyclic_expand_xcall() 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() 1457 new_size = CY_DEFAULT_PERCPU; in cyclic_expand() 1464 ASSERT((new_size - 1 & new_size) == 0); in cyclic_expand() [all …]
|
/titanic_44/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_kutil.c | 208 uint32_t new_size; in smb_idpool_increment() local 212 new_size = pool->id_size * 2; in smb_idpool_increment() 213 if (new_size <= SMB_IDPOOL_MAX_SIZE) { in smb_idpool_increment() 214 new_pool = kmem_alloc(new_size / 8, KM_NOSLEEP); in smb_idpool_increment() 216 bzero(new_pool, new_size / 8); in smb_idpool_increment() 220 pool->id_free_counter += new_size - pool->id_size; in smb_idpool_increment() 221 pool->id_max_free_counter += new_size - pool->id_size; in smb_idpool_increment() 222 pool->id_size = new_size; in smb_idpool_increment() 223 pool->id_idx_msk = (new_size / 8) - 1; in smb_idpool_increment() 224 if (new_size >= SMB_IDPOOL_MAX_SIZE) { in smb_idpool_increment()
|