Searched defs:avail (Results 1 - 25 of 94) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_stats.c84 unsigned int avail)
92 RDSV3_DPRINTF4("rdsv3_ib_stats_info_copy", "iter: %p, avail: %d",
93 iter, avail);
95 if (avail < ARRAY_SIZE(rdsv3_ib_stat_names))
109 "Return: iter: %p, avail: %d", iter, avail);
83 rdsv3_ib_stats_info_copy(struct rdsv3_info_iterator *iter, unsigned int avail) argument
H A Dtransport.c134 unsigned int avail)
148 part = trans->stats_info_copy(iter, avail);
149 avail -= min(avail, part);
133 rdsv3_trans_stats_info_copy(struct rdsv3_info_iterator *iter, unsigned int avail) argument
H A Dib_ring.c114 uint32_t ret = 0, avail; local
116 avail = ring->w_nr - __rdsv3_ib_ring_used(ring);
120 ring->w_alloc_ptr, avail);
122 if (val && avail) {
123 ret = min(val, avail);
H A Dstats.c125 unsigned int avail; local
127 avail = len / sizeof (struct rds_info_counter);
129 if (avail < ARRAY_SIZE(rdsv3_stat_names)) {
130 avail = 0;
147 avail -= ARRAY_SIZE(rdsv3_stat_names);
151 lens->nr = rdsv3_trans_stats_info_copy(iter, avail) +
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_comms.c142 unsigned int avail; local
165 dst = get_output_chunk(cons, prod, (char *)intf->req, &avail);
166 if (avail == 0)
168 if (avail > len)
169 avail = len;
171 (void) memcpy(dst, data, avail);
172 data = (void *)((uintptr_t)data + avail);
173 len -= avail;
177 intf->req_prod += avail;
195 unsigned int avail; local
[all...]
/illumos-gate/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;
/illumos-gate/usr/src/cmd/look/
H A Dlook.c161 int avail = WORDSIZE - 1; local
163 while(avail--) {
181 int avail = WORDSIZE - 1; local
198 avail--;
199 if (avail <= 0) {
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_heap.c288 int avail; local
293 avail = count * NDR_HEAP_BLKSZ;
294 avail += (heap->top - heap->next);
296 return (avail);
/illumos-gate/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) argument
129 logerr(gettext(WRN_NOBLKS), name, avail, (need + limit), limit, local
130 (need + limit - avail));
132 logerr(gettext(WRN_NOFILES), name, avail, (need + limit), limit, local
133 (need + limit - avail));
/illumos-gate/usr/src/uts/common/inet/
H A Dnd.c61 long avail; local
77 avail = iocp->ioc_count;
110 excess = size_out - 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) argument
197 if (mp->b_cont == NULL || avail < 2)
200 mp1 = allocb(avail, BPRI_HI); /* the returned buffer */
213 if (size_out > avail) {
221 excess = size_out - avail;
293 (void) snprintf(valp, avail, "%d", new_value);
303 MAC_PROP_PRIVATE, avail - 2, mp1->b_rptr);
308 size_out += strnlen((const char *)mp1->b_rptr, avail);
327 mac_ndd_set_ioctl(mac_impl_t *mip, mblk_t *mp, int avail, int *rval) argument
340 if (avail
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1buf.c357 int avail = asn1buf_free(buf); local
358 if(avail < amount){
359 asn1_error_code retval = asn1buf_expand(buf, amount-avail);
/illumos-gate/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 */ local
415 dlist_t *slices = NULL; /* avail slices of sufficient size */
424 (error = disks_get_avail_slices(request, disks, &avail)) ||
429 dlist_free_items(avail, NULL);
438 dlist_free_items(avail, NULL);
442 if (avail == NULL || dlist_length(avail) == 0) {
458 (error = remove_undersized_slices(unique, &avail));
681 remove_undersized_slices( dlist_t *unique, dlist_t **avail) argument
853 choose_spare_for_component( devconfig_t *component, dlist_t **all_spares, dlist_t **new_spares, dlist_t **avail, dlist_t *used_hbas, dlist_t *used_disks, uint16_t npaths) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dcollect.c964 long avail; local
989 avail = freediskspace(qid_printqueue(e->e_qgrp, e->e_qdir),
991 if (avail > 0)
994 avail *= bsize / 1024;
996 avail /= 1024 / bsize;
999 avail);
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_output.c224 uint_t avail; local
239 avail = sp->s_head - sp->s_tail;
242 count = min(avail, fragfr);
265 count = min(avail, fragfr);
289 int avail; local
314 if ((avail = sp->s_cnv_cnt) == 0) {
317 avail = sp->s_cnv_cnt;
325 used = min(avail, need);
351 } while (need && avail);
353 if (avail
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dsched.c157 spgcnt_t avail; local
351 avail = freemem - deficit;
352 if (avail > (spgcnt_t)needs) {
/illumos-gate/usr/src/lib/libadm/common/
H A Ddevreserv.c544 struct devlks *avail; /* Pointer to empty slot */ local
552 avail = NULL;
567 if (!avail) avail = p;
570 else if (avail) {
577 (void) strcpy(avail->lk_alias, p->lk_alias);
578 avail->lk_key = p->lk_key;
579 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) argument
190 *avail |=
193 *avail |= JBUS_REGS_AVAIL;
/illumos-gate/usr/src/uts/sun4/io/fpc/
H A Dfpc-impl.c106 fpc_perfcnt_module_init(dev_info_t *fpc_dip, int *avail) argument
111 *avail = 0;
126 if (fpc_platform_node_init(dip, avail) != SUCCESS)
130 return ((*avail) ? fpc_platform_module_init(fpc_dip) : DDI_FAILURE);
/illumos-gate/usr/src/uts/sun4u/chicago/io/fpc/
H A Dfpc-impl-4u.c129 fpc_platform_node_init(dev_info_t *dip, int *avail) argument
180 *avail |= (PCIE_A_REGS_AVAIL | JBUS_REGS_AVAIL);
182 *avail |= PCIE_B_REGS_AVAIL;
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mangle_name.c301 int i, avail; local
309 avail = SMB_NAME83_BASELEN -
314 * Copy up to avail characters from the base part of name
319 for (i = 0; (i < avail) && (*p != '\0') && (*p != '.'); ++i, ++p) {
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dexpand.c46 unsigned int avail = nexpvars; local
58 } else if (i < avail) {
59 avail = i;
64 if (avail == nexpvars)
67 i = avail;
/illumos-gate/usr/src/boot/sys/boot/i386/libfirewire/
H A Dfirewire.c127 int i, avail; local
133 avail = 0;
139 avail ++;
/illumos-gate/usr/src/lib/libzpool/common/
H A Dutil.c77 char used[6], avail[6]; local
85 "used avail read write read write read write cksum\n");
101 nicenum(vs->vs_space - vs->vs_alloc, avail);
116 vs->vs_space ? 6 : 0, vs->vs_space ? avail : "",
/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) argument
89 *avail += ccp->cc_rounds;
91 *avail += ccp->cc_prounds;
107 umastat_slab_avail(uintptr_t addr, const umem_slab_t *sp, int *avail) argument
109 *avail += sp->slab_chunks - sp->slab_refcnt;
221 int avail, alloc, total, nptc = 0; local
232 avail = cp->cache_full.ml_total * magsize;
236 (void) mdb_pwalk("umem_cpu_cache", cpu_avail, &avail, addr);
237 (void) mdb_pwalk("umem_slab_partial", slab_avail, &avail, addr);
270 mdb_printf((dfp++)->fmt, total - avail);
[all...]

Completed in 97 milliseconds

1234