/titanic_41/usr/src/lib/libkvm/common/ |
H A D | kvm_getcmd.c | 86 size_t asize, esize; in kvm_getcmd32() local 142 asize = aptrcount * sizeof (uintptr_t) + RoundUp(strpoolsz, uintptr_t); in kvm_getcmd32() 143 if (arg && (argv = calloc(1, asize + sizeof (uintptr_t))) == NULL) { in kvm_getcmd32() 209 char *argv_null = (char *)argv + asize; in kvm_getcmd32() 218 str >= (char *)argv + asize) in kvm_getcmd32() 263 size_t asize; in kvm_getcmd() local 302 asize = (size_t)proc->p_usrstack - (size_t)u->u_argv; in kvm_getcmd() 303 if ((argv = malloc(asize + sizeof (uintptr_t))) == NULL) in kvm_getcmd() 305 argv_null = (char *)argv + asize; in kvm_getcmd() 329 (uintptr_t)u->u_argv, argv, asize) != asize) { in kvm_getcmd() [all …]
|
/titanic_41/usr/src/cmd/lms/tools/ |
H A D | ATNetworkTool.h | 130 static const void *saInAddr(const struct sockaddr *ip, size_t &asize) in saInAddr() argument 134 asize = sizeof(in6_addr); in saInAddr() 139 asize = sizeof(in_addr); in saInAddr() 144 asize = 0; in saInAddr() 155 size_t asize; in saInNtoP() local 156 const void *src = ATAddress::saInAddr(ip, asize); in saInNtoP() 182 const void *inAddr(size_t &asize) const in inAddr() argument 184 return ATAddress::saInAddr((const struct sockaddr *)&(this->ip), asize); in inAddr() 213 size_t asize = 0; in compare() local 214 const void *a = this->inAddr(asize); in compare() [all …]
|
/titanic_41/usr/src/cmd/sh/ |
H A D | stak.c | 40 getstak(asize) /* allocate requested stack */ in getstak() argument 41 int asize; in getstak() 46 size = round(asize, BYTESPERWORD);
|
H A D | cmd.c | 53 getstor(asize) in getstor() argument 54 int asize; in getstor() 57 return((unsigned char *)alloc(asize)); 59 return(getstak(asize));
|
/titanic_41/usr/src/lib/libc/port/stdio/ |
H A D | setbuffer.c | 43 setbuffer(FILE *iop, char *abuf, size_t asize) in setbuffer() argument 48 (void) setvbuf(iop, abuf, _IOFBF, asize); in setbuffer()
|
/titanic_41/usr/src/cmd/sed/ |
H A D | compile.c | 464 int asize; in compile_subst() local 476 asize = 2 * _POSIX2_LINE_MAX + 1; in compile_subst() 477 if ((text = malloc(asize)) == NULL) in compile_subst() 535 if (asize - size < _POSIX2_LINE_MAX + 1) { in compile_subst() 536 asize *= 2; in compile_subst() 537 if ((text = realloc(text, asize)) == NULL) in compile_subst() 721 uintptr_t size, asize; in compile_text() local 725 asize = 2 * _POSIX2_LINE_MAX + 1; in compile_text() 726 if ((text = malloc(asize)) == NULL) in compile_text() 743 if (asize - size < _POSIX2_LINE_MAX + 1) { in compile_text() [all …]
|
/titanic_41/usr/src/uts/common/tnf/ |
H A D | trace_funcs.c | 107 size_t size, asize; in tnf_trace_alloc() local 133 asize = size + sizeof (tnf_ref32_t); /* one fwd ptr */ in tnf_trace_alloc() 141 asize += sizeof (tnf_ref32_t); in tnf_trace_alloc() 148 TNFW_B_ALLOC(wcb, asize, buffer, probe_event_prototype_t *); in tnf_trace_alloc()
|
/titanic_41/usr/src/cmd/picl/plugins/common/piclevent/ |
H A D | piclevent.c | 146 event_handler(void *cookie, char *argp, size_t asize, in event_handler() argument 156 cookie, argp, asize); in event_handler() 161 if (nvlist_unpack(argp, asize, &nvlp, NULL)) in event_handler()
|
/titanic_41/usr/src/lib/libtnfprobe/ |
H A D | trace_funcs.c | 113 ulong_t size, asize; in tnf_trace_alloc() local 169 asize = size + sizeof (tnf_ref32_t); /* one fwd ptr */ in tnf_trace_alloc() 176 asize += sizeof (tnf_ref32_t); in tnf_trace_alloc() 189 buffer = ops->alloc(wcb, asize, ops->mode); in tnf_trace_alloc()
|
/titanic_41/usr/src/ucblib/libucb/port/gen/ |
H A D | setbuffer.c | 50 setbuffer(FILE *iop, char *abuf, int asize) in setbuffer() argument 54 int size = asize - _SMBFSZ; in setbuffer()
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | vdev_root.c | 57 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_root_open() argument 84 *asize = 0; in vdev_root_open()
|
H A D | vdev_raidz.c | 456 uint64_t q, r, c, bc, col, acols, scols, coff, devidx, asize, tot; in vdev_raidz_map_alloc() local 506 asize = 0; in vdev_raidz_map_alloc() 530 asize += rm->rm_col[c].rc_size; in vdev_raidz_map_alloc() 533 ASSERT3U(asize, ==, tot << unit_shift); in vdev_raidz_map_alloc() 534 rm->rm_asize = roundup(asize, (nparity + 1) << unit_shift); in vdev_raidz_map_alloc() 536 ASSERT3U(rm->rm_asize - asize, ==, rm->rm_nskip << unit_shift); in vdev_raidz_map_alloc() 1473 vdev_raidz_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_raidz_open() argument 1501 *asize = MIN(*asize - 1, cvd->vdev_asize - 1) + 1; in vdev_raidz_open() 1506 *asize *= vd->vdev_children; in vdev_raidz_open() 1675 uint64_t asize; in vdev_raidz_asize() local [all …]
|
H A D | dsl_dir.c | 1127 dsl_dir_tempreserve_impl(dsl_dir_t *dd, uint64_t asize, boolean_t netfree, in dsl_dir_tempreserve_impl() argument 1141 ASSERT3S(asize, >, 0); in dsl_dir_tempreserve_impl() 1164 asize, est_inflight, &used_on_disk, &ref_rsrv); in dsl_dir_tempreserve_impl() 1214 quota>>10, asize>>10, retval); in dsl_dir_tempreserve_impl() 1220 dd->dd_tempreserved[txgidx] += asize; in dsl_dir_tempreserve_impl() 1223 asize - ref_rsrv); in dsl_dir_tempreserve_impl() 1228 tr->tr_size = asize; in dsl_dir_tempreserve_impl() 1249 dsl_dir_tempreserve_space(dsl_dir_t *dd, uint64_t lsize, uint64_t asize, in dsl_dir_tempreserve_space() argument 1255 if (asize == 0) { in dsl_dir_tempreserve_space() 1263 ASSERT3S(asize, >, 0); in dsl_dir_tempreserve_space() [all …]
|
H A D | vdev_mirror.c | 134 vdev_mirror_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_mirror_open() argument 156 *asize = MIN(*asize - 1, cvd->vdev_asize - 1) + 1; in vdev_mirror_open()
|
H A D | metaslab.c | 2037 metaslab_group_alloc(metaslab_group_t *mg, uint64_t psize, uint64_t asize, in metaslab_group_alloc() argument 2061 if (msp->ms_weight < asize) { in metaslab_group_alloc() 2067 mg, msp, psize, asize, msp->ms_weight); in metaslab_group_alloc() 2105 if (msp->ms_weight < asize || (was_active && in metaslab_group_alloc() 2135 if ((offset = metaslab_block_alloc(msp, asize)) != -1ULL) in metaslab_group_alloc() 2145 range_tree_add(msp->ms_alloctree[txg & TXG_MASK], offset, asize); in metaslab_group_alloc() 2167 uint64_t asize; in metaslab_alloc_dva() local 2286 asize = vdev_psize_to_asize(vd, psize); in metaslab_alloc_dva() 2287 ASSERT(P2PHASE(asize, 1ULL << vd->vdev_ashift) == 0); in metaslab_alloc_dva() 2289 offset = metaslab_group_alloc(mg, psize, asize, txg, distance, in metaslab_alloc_dva() [all …]
|
H A D | zio.c | 678 uint64_t asize = DVA_GET_ASIZE(&bp->blk_dva[i]); in zfs_blkptr_verify() local 680 asize = vdev_psize_to_asize(vd, SPA_GANGBLOCKSIZE); in zfs_blkptr_verify() 681 if (offset + asize > vd->vdev_asize) { in zfs_blkptr_verify() 1891 uint64_t asize; in zio_write_gang_member_ready() local 1907 asize = DVA_GET_ASIZE(&pdva[d]); in zio_write_gang_member_ready() 1908 asize += DVA_GET_ASIZE(&cdva[d]); in zio_write_gang_member_ready() 1909 DVA_SET_ASIZE(&pdva[d], asize); in zio_write_gang_member_ready() 2625 uint64_t asize = P2ROUNDUP(zio->io_size, align); in zio_vdev_io_start() local 2626 char *abuf = zio_buf_alloc(asize); in zio_vdev_io_start() 2630 bzero(abuf + zio->io_size, asize - zio->io_size); in zio_vdev_io_start() [all …]
|
/titanic_41/usr/src/cmd/ibd_upgrade/ |
H A D | ibd_delete_link.c | 38 ibd_dladm_door_call(dladm_handle_t handle, void *arg, size_t asize, void *rbuf, in ibd_dladm_door_call() argument 46 darg.data_size = asize; in ibd_dladm_door_call()
|
/titanic_41/usr/src/head/ |
H A D | xti.h | 427 #define _T_OPT_ALIGN(x, asize) \ argument 428 (((uintptr_t)(x) + ((asize) - 1L)) & ~((asize) - 1L))
|
/titanic_41/usr/src/uts/common/os/ |
H A D | vmem.c | 1055 size_t aneeded, asize; in vmem_xalloc() local 1066 asize = P2ROUNDUP(aneeded, aquantum); in vmem_xalloc() 1068 if (asize < size) { in vmem_xalloc() 1089 if (size == asize && !(vmp->vm_cflags & VMC_XALLOC)) in vmem_xalloc() 1103 size_t oasize = asize; in vmem_xalloc() 1106 &asize, align, vmflag & VM_KMFLAGS); in vmem_xalloc() 1107 ASSERT(asize >= oasize); in vmem_xalloc() 1108 ASSERT(P2PHASE(asize, in vmem_xalloc() 1114 asize, vmflag & VM_KMFLAGS); in vmem_xalloc() 1129 if (asize > aneeded && in vmem_xalloc() [all …]
|
/titanic_41/usr/src/cmd/sgs/libld/common/ |
H A D | util.c | 107 size_t asize = size + HEAPALIGN; in libld_malloc() local 114 (((size_t)chp->lh_end - (size_t)chp->lh_free) <= asize)) { in libld_malloc() 117 size_t tsize = (size_t)S_ROUND((asize + hsize), HEAPALIGN); in libld_malloc() 146 chp->lh_free = (void *)S_ROUND((size_t)chp->lh_free + asize, in libld_malloc()
|
/titanic_41/usr/src/cmd/backup/dump/ |
H A D | dumptape.c | 2028 long asize = 0; /* number of 0.1" units... */ in dowrite() local 2105 asize * 2, tapeno); in dowrite() 2110 (cartridge ? asize/tracks : in dowrite() 2111 asize)/120L, in dowrite() 2117 asize * 2, tapeno); in dowrite() 2124 asize * 2, tapeno); in dowrite() 2129 (cartridge ? asize/tracks : in dowrite() 2130 asize)/120L, tapeno); in dowrite() 2135 asize * 2, tapeno); in dowrite() 2150 asize += trecs; /* asize == blocks written */ in dowrite() [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_misc.h | 54 extern int _sd_cache_sizes(int *asize, int *wsize);
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 1270 size_t asize = P2ROUNDUP(size, kmemlp_qnt); in segkmem_alloc_lp() local 1278 ASSERT(asize >= size); in segkmem_alloc_lp() 1305 asize < (segkmem_heaplp_quantum - kmemlp_qnt)) { in segkmem_alloc_lp() 1330 if (asize == kmemlp_qnt) in segkmem_alloc_lp() 1331 asize += kmemlp_qnt; in segkmem_alloc_lp() 1347 addr = vmem_alloc(kmem_lp_arena, asize, in segkmem_alloc_lp() 1360 *sizep = asize; in segkmem_alloc_lp()
|
/titanic_41/usr/src/uts/i86pc/os/ |
H A D | ddi_impl.c | 1320 size_t asize = pgcnt * PAGESIZE; in contig_alloc() local 1331 addr = vmem_alloc(heap_arena, asize, in contig_alloc() 1334 addr = vmem_xalloc(heap_arena, asize, align, 0, 0, NULL, NULL, in contig_alloc() 1340 vmem_free(heap_arena, addr, asize); in contig_alloc() 1353 asize, pflag, &kas, (caddr_t)addr, attr); in contig_alloc() 1356 vmem_free(heap_arena, addr, asize); in contig_alloc() 1379 size_t asize = pgcnt * PAGESIZE; in contig_free() local 1383 hat_unload(kas.a_hat, addr, asize, HAT_UNLOAD_UNLOCK); in contig_free() 1385 for (a = addr, ea = a + asize; a < ea; a += PAGESIZE) { in contig_free() 1401 vmem_free(heap_arena, addr, asize); in contig_free()
|
/titanic_41/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_hsp.c | 704 uint64_t asize = 0; in remove_undersized_slices() local 706 error = slice_get_size(aslice, &asize); in remove_undersized_slices() 707 if (asize >= usize) { in remove_undersized_slices()
|