Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 25 of 116) sorted by relevance

12345

/titanic_41/usr/src/uts/common/xen/io/
H A Dxenbus_comms.c142 unsigned int avail; in xb_write() local
165 dst = get_output_chunk(cons, prod, (char *)intf->req, &avail); in xb_write()
166 if (avail == 0) in xb_write()
168 if (avail > len) in xb_write()
169 avail = len; in xb_write()
171 (void) memcpy(dst, data, avail); in xb_write()
172 data = (void *)((uintptr_t)data + avail); in xb_write()
173 len -= avail; in xb_write()
177 intf->req_prod += avail; in xb_write()
195 unsigned int avail; in xb_read() local
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/refreserv/
H A Drefreserv_004_pos.ksh74 typeset -i avail
75 avail=$(get_prop avail $subfs)
76 log_must $ZFS set refreservation=$avail $subfs
79 log_must $MKFILE $avail $mntpnt/$TESTFILE
82 ((exceed = avail + 1))
84 log_mustnot $MKFILE $avail $mntpnt/$TESTFILE
H A Drefreserv_005_pos.ksh63 avail=$(get_prop mountpoint $vol)
64 log_mustnot $ZFS set refreservation=$avail $vol
/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_hsp.c74 dlist_t **avail);
87 dlist_t **avail,
414 dlist_t *avail = NULL; /* available slices */ in populate_hsp() local
424 (error = disks_get_avail_slices(request, disks, &avail)) || in populate_hsp()
429 dlist_free_items(avail, NULL); in populate_hsp()
438 dlist_free_items(avail, NULL); in populate_hsp()
442 if (avail == NULL || dlist_length(avail) == 0) { in populate_hsp()
458 (error = remove_undersized_slices(unique, &avail)); in populate_hsp()
461 dlist_free_items(avail, NULL); in populate_hsp()
483 dlist_free_items(avail, NULL); in populate_hsp()
[all …]
H A Dlayout_request.c219 boolean_t *avail);
225 boolean_t *avail);
252 uint64_t *avail);
1216 boolean_t avail = B_FALSE; in hba_get_avail_disks_and_space() local
1229 error = is_device_avail(disk, request, &avail); in hba_get_avail_disks_and_space()
1230 if ((error == 0) && (avail == B_TRUE)) { in hba_get_avail_disks_and_space()
1300 boolean_t avail = B_FALSE; in disk_get_avail_space() local
1324 if (((error = is_device_avail(slice, request, &avail)) == 0) && in disk_get_avail_space()
1325 (avail == B_TRUE)) { in disk_get_avail_space()
1378 boolean_t avail = B_FALSE; in disks_get_avail_slices() local
[all …]
/titanic_41/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dstats.c125 unsigned int avail; in rdsv3_stats_info() local
127 avail = len / sizeof (struct rds_info_counter); in rdsv3_stats_info()
129 if (avail < ARRAY_SIZE(rdsv3_stat_names)) { in rdsv3_stats_info()
130 avail = 0; in rdsv3_stats_info()
147 avail -= ARRAY_SIZE(rdsv3_stat_names); in rdsv3_stats_info()
151 lens->nr = rdsv3_trans_stats_info_copy(iter, avail) + in rdsv3_stats_info()
H A Dib_stats.c84 unsigned int avail) in rdsv3_ib_stats_info_copy() argument
93 iter, avail); in rdsv3_ib_stats_info_copy()
95 if (avail < ARRAY_SIZE(rdsv3_ib_stat_names)) in rdsv3_ib_stats_info_copy()
109 "Return: iter: %p, avail: %d", iter, avail); in rdsv3_ib_stats_info_copy()
H A Dib_ring.c114 uint32_t ret = 0, avail; in rdsv3_ib_ring_alloc() local
116 avail = ring->w_nr - __rdsv3_ib_ring_used(ring); in rdsv3_ib_ring_alloc()
120 ring->w_alloc_ptr, avail); in rdsv3_ib_ring_alloc()
122 if (val && avail) { in rdsv3_ib_ring_alloc()
123 ret = min(val, avail); in rdsv3_ib_ring_alloc()
H A Dtransport.c134 unsigned int avail) in rdsv3_trans_stats_info_copy() argument
148 part = trans->stats_info_copy(iter, avail); in rdsv3_trans_stats_info_copy()
149 avail -= min(avail, part); in rdsv3_trans_stats_info_copy()
/titanic_41/usr/src/cmd/look/
H A Dlook.c161 int avail = WORDSIZE - 1; in getword() local
163 while(avail--) { in getword()
181 int avail = WORDSIZE - 1; in canon() local
198 avail--; in canon()
199 if (avail <= 0) { in canon()
/titanic_41/usr/src/cmd/power/
H A Dsvc-power40 avail=0 # Free blocks in current filesystem
51 while read device kbytes used avail capacity filesys; do
54 if [ $avail -gt $max_avail ]; then
55 max_avail=$avail
/titanic_41/usr/src/uts/common/io/mac/
H A Dmac_ndd.c183 mac_ndd_get_ioctl(mac_impl_t *mip, mblk_t *mp, int avail, int *rval) in mac_ndd_get_ioctl() argument
197 if (mp->b_cont == NULL || avail < 2) in mac_ndd_get_ioctl()
200 mp1 = allocb(avail, BPRI_HI); /* the returned buffer */ in mac_ndd_get_ioctl()
213 if (size_out > avail) { in mac_ndd_get_ioctl()
221 excess = size_out - avail; in mac_ndd_get_ioctl()
293 (void) snprintf(valp, avail, "%d", new_value); in mac_ndd_get_ioctl()
303 MAC_PROP_PRIVATE, avail - 2, mp1->b_rptr); in mac_ndd_get_ioctl()
308 size_out += strnlen((const char *)mp1->b_rptr, avail); in mac_ndd_get_ioctl()
327 mac_ndd_set_ioctl(mac_impl_t *mip, mblk_t *mp, int avail, int *rval) in mac_ndd_set_ioctl() argument
340 if (avail == 0 || !(mp1 = mp->b_cont)) in mac_ndd_set_ioctl()
/titanic_41/usr/src/uts/common/io/audio/impl/
H A Daudio_output.c224 uint_t avail; in auimpl_consume_fragment() local
239 avail = sp->s_head - sp->s_tail; in auimpl_consume_fragment()
242 count = min(avail, fragfr); in auimpl_consume_fragment()
265 count = min(avail, fragfr); in auimpl_consume_fragment()
289 int avail; in auimpl_output_callback_impl() local
314 if ((avail = sp->s_cnv_cnt) == 0) { in auimpl_output_callback_impl()
317 avail = sp->s_cnv_cnt; in auimpl_output_callback_impl()
325 used = min(avail, need); in auimpl_output_callback_impl()
351 } while (need && avail); in auimpl_output_callback_impl()
353 if (avail == 0) { in auimpl_output_callback_impl()
/titanic_41/usr/src/lib/auditd_plugins/syslog/
H A Dsysplugin.c228 fromleft(char *p, size_t avail, char *attrname, size_t attrlen, char *txt, in fromleft() argument
233 if (avail < attrlen + ELLIPSIS_SIZE) in fromleft()
238 avail -= attrlen; in fromleft()
239 if (txtlen > avail) { in fromleft()
241 txt += txtlen - (avail - ELLIPSIS_SIZE); in fromleft()
242 (void) memcpy(p + ELLIPSIS_SIZE, txt, avail - ELLIPSIS_SIZE); in fromleft()
243 len = attrlen + avail; in fromleft()
244 p += avail; in fromleft()
255 fromright(char *p, size_t avail, char *attrname, size_t attrlen, char *txt, in fromright() argument
260 if (avail < attrlen + ELLIPSIS_SIZE) in fromright()
[all …]
/titanic_41/usr/src/cmd/cmd-crypto/tpmadm/
H A Dadmin_cmds.c113 UINT32 avail, max; in print_tpm_resources() local
121 TSS_TPMCAP_PROP_CONTEXTS, &avail, sizeof (avail))) in print_tpm_resources()
123 (void) printf(gettext("\tContexts: %d/%d available\n"), avail, max); in print_tpm_resources()
129 TSS_TPMCAP_PROP_SESSIONS, &avail, sizeof (avail))) in print_tpm_resources()
131 (void) printf(gettext("\tSessions: %d/%d available\n"), avail, max); in print_tpm_resources()
137 TSS_TPMCAP_PROP_AUTHSESSIONS, &avail, sizeof (avail))) in print_tpm_resources()
140 avail, max); in print_tpm_resources()
146 TSS_TPMCAP_PROP_KEYS, &avail, sizeof (avail))) in print_tpm_resources()
148 (void) printf(gettext("\tLoaded Keys: %d/%d available\n"), avail, max); in print_tpm_resources()
/titanic_41/usr/src/cmd/mdb/common/modules/libumem/
H A Dlibumem.c86 umastat_cpu_avail(uintptr_t addr, const umem_cpu_cache_t *ccp, int *avail) in umastat_cpu_avail() argument
89 *avail += ccp->cc_rounds; in umastat_cpu_avail()
91 *avail += ccp->cc_prounds; in umastat_cpu_avail()
107 umastat_slab_avail(uintptr_t addr, const umem_slab_t *sp, int *avail) in umastat_slab_avail() argument
109 *avail += sp->slab_chunks - sp->slab_refcnt; in umastat_slab_avail()
221 int avail, alloc, total, nptc = 0; in umastat_cache() local
232 avail = cp->cache_full.ml_total * magsize; in umastat_cache()
236 (void) mdb_pwalk("umem_cpu_cache", cpu_avail, &avail, addr); in umastat_cache()
237 (void) mdb_pwalk("umem_slab_partial", slab_avail, &avail, addr); in umastat_cache()
270 mdb_printf((dfp++)->fmt, total - avail); in umastat_cache()
/titanic_41/usr/src/cmd/fs.d/ufs/df/
H A Ddf.c470 fsblkcnt64_t totalblks, availblks, avail, free, used; in dfreedev() local
528 avail = availblks > used ? availblks - used : (fsblkcnt64_t)0; in dfreedev()
530 (void) printf("%8lld\n", dbtok(avail, in dfreedev()
536 dbtok(avail, (fsblkcnt64_t)sblock.fs_fsize)); in dfreedev()
546 t_avail += dbtok(avail, (fsblkcnt64_t)sblock.fs_fsize); in dfreedev()
592 fsblkcnt64_t totalblks, avail, free, used, reserved; in dfreemnt() local
597 avail = fs.f_bavail; in dfreemnt()
598 reserved = free - avail; in dfreemnt()
599 if ((long long)avail < 0) in dfreemnt()
600 avail = 0; in dfreemnt()
[all …]
/titanic_41/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c73 static void warn(int type, char *name, fsblkcnt_t need, fsblkcnt_t avail,
125 warn(int type, char *name, fsblkcnt_t need, fsblkcnt_t avail, fsblkcnt_t limit) in warn() argument
129 logerr(gettext(WRN_NOBLKS), name, avail, (need + limit), limit, in warn()
130 (need + limit - avail)); in warn()
132 logerr(gettext(WRN_NOFILES), name, avail, (need + limit), limit, in warn()
133 (need + limit - avail)); in warn()
/titanic_41/usr/src/lib/libadm/common/
H A Ddevreserv.c544 struct devlks *avail; /* Pointer to empty slot */ in compresslks() local
552 avail = NULL; in compresslks()
567 if (!avail) avail = p; in compresslks()
570 else if (avail) { in compresslks()
577 (void) strcpy(avail->lk_alias, p->lk_alias); in compresslks()
578 avail->lk_key = p->lk_key; in compresslks()
579 avail++; in compresslks()
/titanic_41/usr/src/test/zfs-tests/tests/functional/compression/
H A Dcompress_004_pos.ksh84 typeset -i avail=0
115 avail=$(get_prop available $fs)
116 (( blknum = avail / blksize ))
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Dexpand.c46 unsigned int avail = nexpvars; in set_variable() local
58 } else if (i < avail) { in set_variable()
59 avail = i; in set_variable()
64 if (avail == nexpvars) in set_variable()
67 i = avail; in set_variable()
/titanic_41/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_heap.c288 int avail; in ndr_heap_avail() local
293 avail = count * NDR_HEAP_BLKSZ; in ndr_heap_avail()
294 avail += (heap->top - heap->next); in ndr_heap_avail()
296 return (avail); in ndr_heap_avail()
/titanic_41/usr/src/uts/sun4/io/fpc/
H A Dfpc-impl.c106 fpc_perfcnt_module_init(dev_info_t *fpc_dip, int *avail) in fpc_perfcnt_module_init() argument
111 *avail = 0; in fpc_perfcnt_module_init()
126 if (fpc_platform_node_init(dip, avail) != SUCCESS) in fpc_perfcnt_module_init()
130 return ((*avail) ? fpc_platform_module_init(fpc_dip) : DDI_FAILURE); in fpc_perfcnt_module_init()
/titanic_41/usr/src/lib/libast/common/sfio/
H A Dsfpkrd.c170 { long avail = -1; local
171 if((r = ioctl(fd,FIONREAD,&avail)) < 0)
183 else r = avail <= 0 ? -1 : (ssize_t)avail;
/titanic_41/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_gen.c392 size_t size, avail = 0; in _nsc_rmmap_avail() local
402 if (size > avail) in _nsc_rmmap_avail()
403 avail = size; in _nsc_rmmap_avail()
409 return (avail); in _nsc_rmmap_avail()
435 size_t avail, size = (*sizep); in _nsc_rmmap_inuse() local
440 avail = map[0].offset + map[0].size - offset; in _nsc_rmmap_inuse()
452 if (avail > map[i].offset - offset) in _nsc_rmmap_inuse()
453 avail = map[i].offset - offset; in _nsc_rmmap_inuse()
456 (*sizep) = avail; in _nsc_rmmap_inuse()

12345