Home
last modified time | relevance | path

Searched refs:resid (Results 1 – 25 of 115) sorted by relevance

12345

/titanic_44/usr/src/cmd/sendmail/libsm/
H A Dfread.c49 register size_t resid = size; variable
67 if (resid == 0)
72 while ((int) resid > (r = fp->f_r))
78 resid -= r;
90 return size - resid;
95 return size - resid;
98 (void) memcpy((void *) p, (void *) fp->f_p, resid);
99 fp->f_r -= resid;
100 fp->f_p += resid;
/titanic_44/usr/src/uts/common/fs/ufs/
H A Dufs_directio.c348 long resid, bytes_written; in ufs_directio_write() local
389 resid = uio->uio_resid; in ufs_directio_write()
394 if (uoff + resid > limit) in ufs_directio_write()
400 if ((uoff & (u_offset_t)(DEV_BSIZE - 1)) || (resid & (DEV_BSIZE - 1))) in ufs_directio_write()
424 if ((uoff + resid) > size) in ufs_directio_write()
487 if (uio->uio_iovcnt != 1 || resid > ufsvfsp->vfs_ioclustsz) { in ufs_directio_write()
491 len = (ssize_t)blkroundup(fs, resid); in ufs_directio_write()
497 if (len < resid) in ufs_directio_write()
521 n = (int)MIN(fs->fs_bsize - on, resid); in ufs_directio_write()
557 resid -= n; in ufs_directio_write()
[all …]
H A Dufs_trans.c637 ufs_log_amt(struct inode *ip, offset_t offset, ssize_t resid, int trunc) in ufs_log_amt() argument
659 writeend = offset + resid; in ufs_log_amt()
665 nblk = lblkno(fs, blkroundup(fs, resid)); in ufs_log_amt()
748 u_offset_t size, offset, resid; in ufs_trans_trunc_resv() local
769 resid = size; in ufs_trans_trunc_resv()
778 for (; (resv = ufs_log_amt(ip, offset, resid, 1)) > ufs_trans_max_resv; in ufs_trans_trunc_resv()
779 offset = length + (nchunks - 1) * resid) { in ufs_trans_trunc_resv()
787 resid = size / nchunks; in ufs_trans_trunc_resv()
791 *residp = resid; in ufs_trans_trunc_resv()
801 u_offset_t resid; in ufs_trans_itrunc() local
[all …]
/titanic_44/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fdio.c181 ssize_t resid = nbytes; in fdio_bdev_read() local
191 while (resid != 0) { in fdio_bdev_read()
194 size_t len = MIN(resid, DEV_BSIZE - blkoff); in fdio_bdev_read()
200 resid -= len; in fdio_bdev_read()
205 if (resid == nbytes && nbytes != 0) in fdio_bdev_read()
209 return (nbytes - resid); in fdio_bdev_read()
222 ssize_t resid = nbytes; in fdio_bdev_write() local
232 while (resid != 0) { in fdio_bdev_write()
235 size_t len = MIN(resid, DEV_BSIZE - blkoff); in fdio_bdev_write()
245 resid -= len; in fdio_bdev_write()
[all …]
H A Dmdb_demangle.c98 size_t resid; in mdb_dem_filter() local
172 resid = (dmp->dm_buf + dmp->dm_len) - (dmp->dm_dem + len); in mdb_dem_filter()
178 if ((dmp->dm_flags & MDB_DM_MANGLED) && resid > 3) { in mdb_dem_filter()
182 (void) strncpy(p, name, resid - 3); in mdb_dem_filter()
183 p[resid - 3] = '\0'; in mdb_dem_filter()
/titanic_44/usr/src/tools/ctf/cvt/
H A Dstrtab.c111 size_t resid, n; in strtab_compare() local
118 resid = sp->str_bufs[b] + sp->str_bufsz - buf; in strtab_compare()
119 n = MIN(resid, len); in strtab_compare()
136 size_t resid, n; in strtab_copyin() local
144 resid = sp->str_bufs[b] + sp->str_bufsz - sp->str_ptr; in strtab_copyin()
145 n = MIN(resid, len); in strtab_copyin()
240 size_t resid, len, n; in strtab_print() local
248 resid = sp->str_bufs[b] + sp->str_bufsz - buf; in strtab_print()
249 n = MIN(resid, len); in strtab_print()
/titanic_44/usr/src/cmd/audio/utilities/
H A DAudioBuffer.cc312 off_t resid; in ReadData() local
338 resid = GetHeader().Time_to_Bytes(GetLength()) - offset; in ReadData()
339 if (resid <= 0) { in ReadData()
344 if (cnt > resid) in ReadData()
345 cnt = resid; in ReadData()
377 off_t resid; in WriteData() local
403 resid = (off_t)bufsize - offset; in WriteData()
404 if (resid <= 0) { in WriteData()
409 if (cnt > resid) in WriteData()
410 cnt = resid; in WriteData()
/titanic_44/usr/src/lib/sun_fc/common/
H A DSun_fcAdapterCreateWWN.cc42 size_t resid = len; in get_random_bytes() local
45 while (resid != 0) { in get_random_bytes()
46 bytes = read(fd, ptr, resid); in get_random_bytes()
48 resid -= bytes; in get_random_bytes()
/titanic_44/usr/src/uts/common/fs/sockfs/
H A Dnl7c.c350 ssize_t resid; in ncaportconf_read() local
380 UIO_SYSSPACE, 0, (rlim64_t)0, CRED(), &resid); in ncaportconf_read()
387 if (resid == sizeof (buf)) { in ncaportconf_read()
393 ebp = &buf[sizeof (buf) - resid]; in ncaportconf_read()
394 off += sizeof (buf) - resid; in ncaportconf_read()
519 ssize_t resid; in ncakmodconf_read() local
546 UIO_SYSSPACE, 0, (rlim64_t)0, CRED(), &resid); in ncakmodconf_read()
553 if (resid == sizeof (buf)) { in ncakmodconf_read()
559 ebp = &buf[sizeof (buf) - resid]; in ncakmodconf_read()
560 off += sizeof (buf) - resid; in ncakmodconf_read()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Ddevcache.c527 ssize_t resid; in kfread() local
537 UIO_SYSSPACE, 0, (rlim64_t)0, kcred, &resid); in kfread()
545 ASSERT(resid >= 0 && resid <= bufsiz); in kfread()
546 n = bufsiz - resid; in kfread()
549 fp->kf_fname, n, bufsiz, resid)); in kfread()
560 ssize_t resid; in kfwrite() local
574 UIO_SYSSPACE, FSYNC, rlimit, kcred, &resid); in kfwrite()
583 fp->kf_fname, len-resid, resid)); in kfwrite()
585 ASSERT(resid >= 0 && resid <= len); in kfwrite()
587 n += (len - resid); in kfwrite()
[all …]
H A Dwatchpoint.c973 size_t resid; in watch_copyinstr() local
977 if ((resid = maxlength) == 0) in watch_copyinstr()
980 while (resid && error == 0) { in watch_copyinstr()
990 (((uintptr_t)uaddr) & PAGEOFFSET)) > resid) in watch_copyinstr()
991 part = resid; in watch_copyinstr()
1025 resid -= size; in watch_copyinstr()
1026 if (error == ENAMETOOLONG && resid > 0) in watch_copyinstr()
1037 while (resid && watchcode && ta && len > part && error == 0 && in watch_copyinstr()
1040 if ((part = PAGESIZE) > resid) in watch_copyinstr()
1041 part = resid; in watch_copyinstr()
[all …]
/titanic_44/usr/src/uts/common/exec/java/
H A Djava.c92 ssize_t resid; in javaexec() local
108 0, UIO_SYSSPACE, 0, (rlim64_t)0, cred, &resid)) != 0) in javaexec()
110 if (resid != 0 || strncmp(lochdr, LOCSIG, SIGSIZ) != 0) in javaexec()
124 xoff, UIO_SYSSPACE, 0, (rlim64_t)0, cred, &resid)) != 0) in javaexec()
126 if (resid != 0) in javaexec()
/titanic_44/usr/src/cmd/vscan/vscand/
H A Dvs_icap.c440 uint64_t resid = ctx->vsc_fsize; in vs_icap_respmod_request() local
463 resid -= (uint64_t)bytes_sent; in vs_icap_respmod_request()
472 while (resid) { in vs_icap_respmod_request()
473 send_len = (resid > VS_BUF_SZ) ? VS_BUF_SZ : resid; in vs_icap_respmod_request()
481 resid -= (uint64_t)rv; in vs_icap_respmod_request()
1094 unsigned int chunk_size, resid; in vs_icap_read_body_chunk() local
1104 resid = chunk_size; in vs_icap_read_body_chunk()
1105 while (resid) { in vs_icap_read_body_chunk()
1106 rsize = (resid < VS_BUF_SZ) ? resid : VS_BUF_SZ; in vs_icap_read_body_chunk()
1116 resid -= rsize; in vs_icap_read_body_chunk()
[all …]
/titanic_44/usr/src/uts/common/io/scsi/adapters/smrt/
H A Dsmrt_sata.c41 size_t resid; in smrt_sata_determine_wwn() local
115 resid = ei->ResidualCnt; in smrt_sata_determine_wwn()
117 resid = 0; in smrt_sata_determine_wwn()
127 if (SMRT_SATA_INQ83_LEN - resid < 16) { in smrt_sata_determine_wwn()
/titanic_44/usr/src/uts/common/fs/proc/
H A Dprcontrol.c108 ctlsize(long cmd, size_t resid, arg_t *argp) in ctlsize() argument
182 if (resid < size + sizeof (prcred_t) - sizeof (gid_t)) in ctlsize()
193 if (resid >= size + sizeof (prpriv_t)) in ctlsize()
206 if (size < resid) { in ctlsize()
213 if (size > resid) in ctlsize()
229 size_t resid = 0; in prwritectl() local
240 if (resid) { /* move incomplete command to front of buffer */ in prwritectl()
243 if (resid >= sizeof (buf)) in prwritectl()
245 tail = (long *)((char *)buf + sizeof (buf) - resid); in prwritectl()
248 } while ((resid -= sizeof (long)) != 0); in prwritectl()
[all …]
/titanic_44/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c150 size_t resid, n; in dt_strtab_compare() local
157 resid = sp->str_bufs[b] + sp->str_bufsz - buf; in dt_strtab_compare()
158 n = MIN(resid, len); in dt_strtab_compare()
178 size_t resid, n; in dt_strtab_copyin() local
187 resid = sp->str_bufs[b] + sp->str_bufsz - sp->str_ptr; in dt_strtab_copyin()
188 n = MIN(resid, len); in dt_strtab_copyin()
/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_util.c162 int count, iovs, resid; in smb_mbuf_allocate() local
166 resid = uio->uio_resid; in smb_mbuf_allocate()
168 while ((resid > 0) && (iovs > 0)) { in smb_mbuf_allocate()
169 count = (resid > MCLBYTES) ? MCLBYTES : resid; in smb_mbuf_allocate()
170 resid -= count; in smb_mbuf_allocate()
/titanic_44/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dcprboot.c344 size_t alsize, len, resid; in cb_read_statefile() local
410 for (resid = cdump.cdd_filesize; resid; resid -= len) { in cb_read_statefile()
430 len = min(PROM_MAX_READ, resid); in cb_read_statefile()
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dktbase.c135 const char *cp, *resid; in krb5_kt_resolve() local
151 resid = name; in krb5_kt_resolve()
153 resid = name + pfxlen + 1; in krb5_kt_resolve()
176 return (*tlist->ops->resolve)(context, resid, ktid); in krb5_kt_resolve()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dzvol.c683 uint64_t resid = zv->zv_volsize; in zvol_prealloc() local
694 while (resid != 0) { in zvol_prealloc()
696 uint64_t bytes = MIN(resid, SPA_OLD_MAXBLOCKSIZE); in zvol_prealloc()
709 resid -= bytes; in zvol_prealloc()
1050 zvol_log_write(zvol_state_t *zv, dmu_tx_t *tx, offset_t off, ssize_t resid, in zvol_log_write() argument
1067 while (resid) { in zvol_log_write()
1078 resid >= blocksize && off % blocksize == 0) { in zvol_log_write()
1083 len = MIN(ZIL_MAX_LOG_DATA, resid); in zvol_log_write()
1086 len = MIN(ZIL_MAX_LOG_DATA, resid); in zvol_log_write()
1121 resid -= len; in zvol_log_write()
[all …]
/titanic_44/usr/src/lib/libproc/common/
H A DPidle.c45 size_t resid = n; in Pread_idle() local
47 while (resid > 0) { in Pread_idle()
57 len = MIN(resid, mp->map_pmap.pr_size - mapoff); in Pread_idle()
63 resid -= len; in Pread_idle()
68 return (n - resid); in Pread_idle()
/titanic_44/usr/src/uts/sun/sys/dada/targets/
H A Ddadpriv.h60 ulong_t resid; member
70 uint32_t resid; member
/titanic_44/usr/src/uts/common/io/audio/impl/
H A Daudio_output.c278 uint_t resid; in auimpl_output_callback_impl() local
431 resid = fragfr; in auimpl_output_callback_impl()
433 uint_t part = min(resid, eng->e_nframes - eng->e_hidx); in auimpl_output_callback_impl()
434 eng->e_export(eng, part, fragfr - resid); in auimpl_output_callback_impl()
439 resid -= part; in auimpl_output_callback_impl()
440 } while (resid); in auimpl_output_callback_impl()
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dccbase.c184 const char *resid; in krb5_cc_resolve() local
210 resid = name; in krb5_cc_resolve()
212 resid = name + pfxlen + 1; in krb5_cc_resolve()
230 return ops->resolve(context, cache, resid); in krb5_cc_resolve()
/titanic_44/usr/src/uts/common/exec/intp/
H A Dintp.c106 ssize_t resid; in getintphead() local
112 UIO_SYSSPACE, 0, (rlim64_t)0, CRED(), &resid)) in getintphead()
114 if (resid > INTPSZ-2 || linep[0] != '#' || linep[1] != '!') in getintphead()

12345