Home
last modified time | relevance | path

Searched refs:newsz (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/lib/libdemangle/common/
H A Dutil.c75 xrealloc(sysdem_ops_t *ops, void *p, size_t oldsz, size_t newsz) in xrealloc() argument
77 if (newsz == oldsz) in xrealloc()
80 VERIFY3U(newsz, >, oldsz); in xrealloc()
82 void *temp = zalloc(ops, newsz); in xrealloc()
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_uobj.c328 uint_t newsz; in sol_ofs_uobj_add() local
330 newsz = uo_tbl->uobj_tbl_num_blks + SOL_OFS_UO_BLKSZ; in sol_ofs_uobj_add()
333 newsz); in sol_ofs_uobj_add()
335 p = kmem_zalloc(newsz * sizeof (*p), KM_NOSLEEP); in sol_ofs_uobj_add()
352 uo_tbl->uobj_tbl_num_blks = newsz; in sol_ofs_uobj_add()
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/
H A Dsmf_response.c100 size_t newsz; in uuid_cache_grow() local
104 newsz = sizeof (struct smf_uuid_cache) + (n - 1) * in uuid_cache_grow()
107 newcache = fmd_hdl_zalloc(hdl, newsz, FMD_SLEEP); in uuid_cache_grow()
122 fmd_buf_create(hdl, NULL, UUID_CACHE_BUFNAME, newsz); in uuid_cache_grow()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_confmgr.c413 int newsz = 0; in __print2buf() local
420 newsz = strlen(toprint) + line->len + 1; in __print2buf()
422 newsz += strlen(sep); in __print2buf()
424 if (line->alloc == 0 || newsz > line->alloc) { in __print2buf()
426 newmax = (((newsz+(BUFSIZ-1))/BUFSIZ)+1) * BUFSIZ; in __print2buf()
455 line->len = newsz; in __print2buf()
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dhtable.c539 uint32_t oldsz, newsz, mask; in enlarge_htab() local
548 newsz = (1 << logsize); in enlarge_htab()
550 newsz * tab->chunks, sizeof (htab_item_t *)); in enlarge_htab()
553 mask = newsz - 1; in enlarge_htab()
562 itemp = &items[(i * newsz) + in enlarge_htab()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dleaky.c237 size_t bytes, newsz, nptrs; in leaky_grep() local
334 newsz = lmp->lkm_limit - nbase; in leaky_grep()
336 nptrs = newsz / sizeof (uintptr_t); in leaky_grep()
337 newsz = nptrs * sizeof (uintptr_t); in leaky_grep()
340 mdb_vread(cur - nptrs, newsz, nbase) != -1) { in leaky_grep()
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c125 size_t newsz = 0; in main() local
223 rv = nvlist_size(mapnvl, &newsz, NV_ENCODE_NATIVE); in main()
235 if ((ondiskbuf = calloc(1, newsz)) == NULL) { in main()
244 rv = nvlist_pack(mapnvl, &ondiskbuf, &newsz, in main()
267 if (write(mapfd, ondiskbuf, newsz) != newsz) { in main()
/illumos-gate/usr/src/cmd/mandoc/
H A Droff.c3581 size_t oldsz, newsz, valsz; in roff_als() local
3587 newsz = roff_getname(r, &oldn, ln, pos); in roff_als()
3588 if (newn[newsz] == '\\' || newn[newsz] == '\t' || *oldn == '\0') in roff_als()
3599 roff_setstrn(&r->rentab, newn, newsz, NULL, 0, 0); in roff_als()
3823 size_t oldsz, newsz; in roff_rn() local
3835 newsz = roff_getname(r, &end, ln, newn - buf->buf); in roff_rn()
3836 if (newsz == 0) in roff_rn()
3845 roff_setstrn(&r->rentab, newn, newsz, NULL, 0, 0); in roff_rn()
3849 roff_setstrn(&r->rentab, newn, newsz, NULL, 0, 0); in roff_rn()
3854 roff_setstrn(&r->strtab, newn, newsz, NULL, 0, 0); in roff_rn()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c169 size_t newsz; in ctf_zdata_grow() local
173 newsz = czd->czd_allocsz + CTF_COMPRESS_CHUNK; in ctf_zdata_grow()
174 ndata = ctf_data_alloc(newsz); in ctf_zdata_grow()
181 czd->czd_allocsz = newsz; in ctf_zdata_grow()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_mount.c1143 size_t newsz; in libzfs_add_handle() local
1146 newsz = cbp->cb_alloc != 0 ? cbp->cb_alloc * 2 : 64; in libzfs_add_handle()
1149 newsz * sizeof (zfs_handle_t *)); in libzfs_add_handle()
1151 cbp->cb_alloc = newsz; in libzfs_add_handle()
/illumos-gate/usr/src/uts/intel/io/acpica/
H A Dacpi_enum.c108 size_t newsz = newlen * sizeof (int); in add_interrupt() local
110 int *newar = kmem_alloc(newsz, KM_SLEEP); in add_interrupt()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzap_micro.c524 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; in zap_lockdir_impl() local
525 if (newsz > MZAP_MAX_BLKSZ) { in zap_lockdir_impl()
534 VERIFY0(dmu_object_set_blocksize(os, obj, newsz, 0, tx)); in zap_lockdir_impl()
H A Ddmu.c1004 int newsz = offset > dn->dn_datablksz ? 0 : in dmu_read_impl() local
1006 bzero((char *)buf + newsz, size - newsz); in dmu_read_impl()
1007 size = newsz; in dmu_read_impl()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dfile_object.c1902 size_t newsz = (csip->csi_array_size > 0) ? in check_snapshot_fill_cb() local
1904 check_snapshot_elem_t *new = uu_zalloc(newsz * sizeof (*new)); in check_snapshot_fill_cb()
1913 csip->csi_array_size = newsz; in check_snapshot_fill_cb()
/illumos-gate/usr/src/common/ctf/
H A Dctf_create.c2160 ctf_set_size(ctf_file_t *fp, ctf_id_t id, const ulong_t newsz) in ctf_set_size() argument
2180 if (newsz < oldsz) in ctf_set_size()
2183 ctf_set_ctt_size(&dtd->dtd_data, newsz); in ctf_set_size()
/illumos-gate/usr/src/uts/common/io/ib/clients/daplt/
H A Ddaplt.c9197 uint_t newsz = (uint_t)daplka_resource.daplka_rc_sz + in daplka_resource_reserve() local
9201 newsz); in daplka_resource_reserve()
9203 p = kmem_zalloc(newsz * sizeof (*p), daplka_km_flags); in daplka_resource_reserve()
9221 daplka_resource.daplka_rc_sz = (int)newsz; in daplka_resource_reserve()
/illumos-gate/usr/src/uts/common/io/rsm/
H A Drsm.c1187 uint_t newsz = (uint_t)rsm_resource.rsmrc_sz + in rsmresource_alloc() local
1199 newsz * sizeof (*p), in rsmresource_alloc()
1217 rsm_resource.rsmrc_sz = (int)newsz; in rsmresource_alloc()