Home
last modified time | relevance | path

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

123456

/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_comms.c139 unsigned int avail; in xb_write() local
163 if (avail == 0) in xb_write()
165 if (avail > len) in xb_write()
166 avail = len; in xb_write()
170 len -= avail; in xb_write()
174 intf->req_prod += avail; in xb_write()
192 unsigned int avail; in xb_read() local
216 if (avail == 0) in xb_read()
218 if (avail > len) in xb_read()
219 avail = len; in xb_read()
[all …]
/illumos-gate/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
/illumos-gate/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()
/illumos-gate/usr/src/cmd/look/
H A Dlook.c159 int avail = WORDSIZE - 1; in getword() local
161 while(avail--) { in getword()
179 int avail = WORDSIZE - 1; in canon() local
196 avail--; in canon()
197 if (avail <= 0) { in canon()
/illumos-gate/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
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/lib/auditd_plugins/syslog/
H A Dsysplugin.c233 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()
243 len = attrlen + avail; in fromleft()
244 p += avail; in fromleft()
260 if (avail < attrlen + ELLIPSIS_SIZE) in fromright()
265 avail -= attrlen; in fromright()
266 if (txtlen > avail) { in fromright()
270 len = attrlen + avail; in fromright()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/fs.d/ufs/df/
H A Ddf.c470 fsblkcnt64_t totalblks, availblks, avail, free, used; in dfreedev() local
530 (void) printf("%8lld\n", dbtok(avail, in dfreedev()
536 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()
602 (void) printf("%8lld\n", dbtok(avail, in dfreemnt()
609 dbtok(avail, (fsblkcnt64_t)fs.f_frsize)); in dfreemnt()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Ddevreserv.c546 struct devlks *avail; /* Pointer to empty slot */ in compresslks() local
554 avail = NULL; in compresslks()
569 if (!avail) avail = p; in compresslks()
572 else if (avail) { in compresslks()
579 (void) strcpy(avail->lk_alias, p->lk_alias); in compresslks()
580 avail->lk_key = p->lk_key; in compresslks()
581 avail++; in compresslks()
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c77 static void warn(int type, char *name, fsblkcnt_t need, fsblkcnt_t avail,
129 warn(int type, char *name, fsblkcnt_t need, fsblkcnt_t avail, fsblkcnt_t limit) in warn() argument
133 logerr(gettext(WRN_NOBLKS), name, avail, (need + limit), limit, in warn()
134 (need + limit - avail)); in warn()
136 logerr(gettext(WRN_NOFILES), name, avail, (need + limit), limit, in warn()
137 (need + limit - avail)); in warn()
/illumos-gate/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 ))
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_heap.c309 int avail; in ndr_heap_avail() local
314 avail = count * NDR_HEAP_BLKSZ; in ndr_heap_avail()
315 avail += (heap->top - heap->next); in ndr_heap_avail()
317 return (avail); in ndr_heap_avail()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dexpand.c47 unsigned int avail = nexpvars; in set_variable() local
59 } else if (i < avail) { in set_variable()
60 avail = i; in set_variable()
65 if (avail == nexpvars) in set_variable()
68 i = avail; in set_variable()
/illumos-gate/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()
/illumos-gate/usr/src/lib/libzpool/common/
H A Dutil.c57 char used[6], avail[6]; in show_vdev_stats() local
91 nicenum(vs->vs_space - vs->vs_alloc, avail, sizeof (avail)); in show_vdev_stats()
108 vs->vs_space ? 6 : 0, vs->vs_space ? avail : "", in show_vdev_stats()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfpkrd.c190 { long avail = -1; local
191 if((r = ioctl(fd,FIONREAD,&avail)) < 0)
203 else r = avail <= 0 ? -1 : (ssize_t)avail;
/illumos-gate/usr/src/uts/sun4v/io/fpc/
H A Dfpc-impl-4v.c118 fpc_platform_node_init(dev_info_t *dip, int *avail) in fpc_platform_node_init() argument
190 *avail |= in fpc_platform_node_init()
193 *avail |= JBUS_REGS_AVAIL; in fpc_platform_node_init()
/illumos-gate/usr/src/cmd/addbadsec/
H A Dix_altsctr.c814 int avail; in print_altsctr() local
826 avail = ap->part.p_size - totalloc; in print_altsctr()
827 avail = avail - (ap->ap_tbl_secsiz/NBPSCTR) in print_altsctr()
829 avail = avail-(ap->ap_tblp->alts_ent_end -ap->ap_tblp->alts_ent_base+1); in print_altsctr()
830 if (avail < 0) avail = 0; in print_altsctr()
842 avail); in print_altsctr()

123456