/titanic_41/usr/src/uts/common/fs/proc/ |
H A D | prusrio.c | 51 ssize_t total = uiop->uio_resid; in prusrio() 56 if (uiop->uio_resid <= STACK_BUF_SIZE) { in prusrio() 71 while (uiop->uio_resid != 0) { in prusrio() 73 len = MIN(uiop->uio_resid, in prusrio() 88 if (total != uiop->uio_resid || !old) in prusrio() 95 while (uiop->uio_resid != 0) { in prusrio() 97 len = MIN(uiop->uio_resid, in prusrio() 103 uiop->uio_resid += len; in prusrio() 115 if (total != uiop->uio_resid) in prusrio()
|
/titanic_41/usr/src/uts/common/fs/fd/ |
H A D | fdops.c | 131 uiop->uio_resid <= 0) in fdread() 136 MIN(uiop->uio_resid, 2*FDSDSIZE - uiop->uio_offset), in fdread() 138 if (uiop->uio_resid <= 0 || error) in fdread() 142 maxfd = (uiop->uio_offset + uiop->uio_resid - 1)/FDSDSIZE; in fdread() 152 MIN(uiop->uio_resid, FDSDSIZE - modoff), in fdread() 154 if (uiop->uio_resid <= 0 || error) in fdread() 239 if (uiop->uio_offset < 0 || uiop->uio_resid <= 0 || in fdreaddir() 244 oresid = uiop->uio_resid; in fdreaddir() 253 while (uiop->uio_resid > 0) { in fdreaddir() 279 if (reclen > uiop->uio_resid) { in fdreaddir() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | move.c | 69 while (n && uio->uio_resid) { in uiomove() 106 uio->uio_resid -= cnt; in uiomove() 251 if (!(uiop && uiop->uio_resid > 0)) in ureadc() 297 uiop->uio_resid--; in ureadc() 320 if (!(uiop && uiop->uio_resid > 0)) in uwritec() 359 uiop->uio_resid--; in uwritec() 370 if (n > uiop->uio_resid) in uioskip() 384 uiop->uio_resid -= niovb; in uioskip() 472 while (n > 0 && uioa->uio_resid > 0) { in uioamove() 547 uioa->uio_resid -= cnt; in uioamove()
|
H A D | vm_subr.c | 149 tnf_size, size, uio->uio_resid, in default_physio() 200 if (uio->uio_resid == 0) in default_physio() 230 bp->b_bcount = MIN(iov->iov_len, uio->uio_resid); in default_physio() 275 uio->uio_resid -= c; in default_physio()
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | sendfile.c | 150 auio.uio_resid = sfv_len; in sendvec_chunk64() 159 cnt = sfv_len - auio.uio_resid; in sendvec_chunk64() 259 auio.uio_resid = iov_len; in sendvec_chunk64() 287 cnt = iov_len - auio.uio_resid; in sendvec_chunk64() 308 auio.uio_resid = cnt; in sendvec_chunk64() 322 cnt -= auio.uio_resid; in sendvec_chunk64() 323 sfv_len += auio.uio_resid; in sendvec_chunk64() 324 sfv_off -= auio.uio_resid; in sendvec_chunk64() 509 auio.uio_resid = iov_len; in sendvec_small_chunk() 615 auio.uio_resid = iov_len; in sendvec_small_chunk() [all …]
|
H A D | getdents.c | 117 auio.uio_resid = count; in getdents32() 125 count = count - auio.uio_resid; in getdents32() 224 auio.uio_resid = count; in getdents64() 234 count = count - auio.uio_resid; in getdents64()
|
H A D | rw.c | 163 auio.uio_resid = bcount = cnt; in read() 181 cnt -= auio.uio_resid; in read() 301 auio.uio_resid = bcount = cnt; in write() 310 cnt -= auio.uio_resid; in write() 444 auio.uio_resid = bcount; in pread() 456 bcount -= auio.uio_resid; in pread() 574 auio.uio_resid = bcount; in pwrite() 590 bcount -= auio.uio_resid; in pwrite() 733 auio.uio_resid = bcount = count; in readv() 749 count -= auio.uio_resid; in readv() [all …]
|
H A D | readlink.c | 105 auio.uio_resid = cnt; in readlinkat() 115 return ((ssize_t)(cnt - auio.uio_resid)); in readlinkat()
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_directio.c | 389 resid = uio->uio_resid; in ufs_directio_write() 442 copy_resid = uio->uio_resid; in ufs_directio_write() 453 copy_uio.uio_resid = uio->uio_resid; in ufs_directio_write() 635 resid = uio->uio_resid; in ufs_directio_write() 753 resid = uio->uio_resid - bytes_written; in ufs_directio_write() 754 arg_uio->uio_resid = resid; in ufs_directio_write() 801 phys_uio.uio_resid = phys_iov.iov_len; in directio_hole() 804 while (error == 0 && phys_uio.uio_resid) { in directio_hole() 855 resid = uio->uio_resid; in ufs_directio_read() 1048 uio->uio_resid -= bytes_read; in ufs_directio_read()
|
H A D | ufs_trans.c | 889 resid = MIN(uio->uio_resid, ufs_trans_max_resid); in ufs_trans_write_resv() 893 if (resid != uio->uio_resid) in ufs_trans_write_resv() 899 resid = uio->uio_resid; in ufs_trans_write_resv() 904 resid = uio->uio_resid / nchunks; in ufs_trans_write_resv() 938 realresid = uio->uio_resid; in ufs_trans_write() 946 uio->uio_resid = MIN(resid, realresid); in ufs_trans_write() 947 realresid -= uio->uio_resid; in ufs_trans_write() 953 if (err || uio->uio_resid || (realresid == 0)) { in ufs_trans_write() 954 uio->uio_resid += realresid; in ufs_trans_write()
|
/titanic_41/usr/src/cmd/sendmail/libsm/ |
H A D | fwrite.c | 59 uio.uio_resid = iov.iov_len = size; 68 return size - uio.uio_resid;
|
H A D | fvwrite.c | 72 if (uio->uio_resid == 0) 112 } while ((uio->uio_resid -= w) != 0); 204 } while ((uio->uio_resid -= w) != 0); 272 } while ((uio->uio_resid -= w) != 0);
|
/titanic_41/usr/src/uts/common/io/ |
H A D | random.c | 237 while (error == 0 && uiop->uio_resid > 0) { in rnd_read() 238 len = min(sizeof (random_bytes), uiop->uio_resid); in rnd_read() 284 while (uiop->uio_resid > 0) { in rnd_write() 285 bytes = min(sizeof (buf), uiop->uio_resid); in rnd_write()
|
/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_read.c | 381 vdb->vdb_uio.uio_resid = param->rw_count; in smb_common_read() 413 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid; in smb_common_read() 418 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid; in smb_common_read() 424 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid; in smb_common_read() 429 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid; in smb_common_read() 439 param->rw_count -= vdb->vdb_uio.uio_resid; in smb_common_read()
|
/titanic_41/usr/src/uts/common/io/ksocket/ |
H A D | ksocket.c | 208 auio.uio_resid = msglen; in ksocket_send() 231 *sent = msglen - auio.uio_resid; in ksocket_send() 260 auio.uio_resid = msglen; in ksocket_sendto() 284 *sent = msglen - auio.uio_resid; in ksocket_sendto() 325 auio.uio_resid = len; in ksocket_sendmsg() 337 *sent = len - auio.uio_resid; in ksocket_sendmsg() 367 auio.uio_resid = msglen; in ksocket_recv() 391 *recv = msglen - auio.uio_resid; in ksocket_recv() 420 auio.uio_resid = msglen; in ksocket_recvfrom() 443 *recv = msglen - auio.uio_resid; in ksocket_recvfrom() [all …]
|
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | reparse.c | 75 uio.uio_resid = MAXREPARSELEN; in reparse_vnode_parse() 78 *(lkdata + MAXREPARSELEN - uio.uio_resid) = '\0'; in reparse_vnode_parse()
|
H A D | fake_vop.c | 126 resid = uio->uio_resid; in fop_read() 151 uio->uio_resid -= n; in fop_read() 173 while (uio->uio_resid > 0) { in fop_write() 184 if (cnt > uio->uio_resid) in fop_write() 185 cnt = uio->uio_resid; in fop_write() 195 uio->uio_resid -= n; in fop_write() 616 uiop->uio_resid); in fop_readdir() 628 uiop->uio_resid -= cnt; in fop_readdir()
|
/titanic_41/usr/src/lib/libfakekernel/common/ |
H A D | uio.c | 35 while (n && uio->uio_resid) { in uiomove() 58 uio->uio_resid -= cnt; in uiomove()
|
/titanic_41/usr/src/uts/common/fs/objfs/ |
H A D | objfs_data.c | 536 uio->uio_resid <= 0) in read_symtab() 552 uio)) != 0 || uio->uio_resid <= 0) in read_symtab() 581 if (uio->uio_resid <= 0 || uio->uio_offset >= data_size(mp)) in objfs_data_read() 657 uio->uio_resid <= 0) in objfs_data_read() 686 uio->uio_resid <= 0) in objfs_data_read() 721 if (error != 0 || uio->uio_resid <= 0) in objfs_data_read() 736 uio)) != 0 || uio->uio_resid <= 0) in objfs_data_read()
|
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | subr_mchain.c | 183 if (a_uio->uio_resid < 0) { in uio_update() 184 a_uio->uio_resid = 0; in uio_update() 186 if (a_count > (size_t)a_uio->uio_resid) { in uio_update() 187 a_uio->uio_loffset += a_uio->uio_resid; in uio_update() 188 a_uio->uio_resid = 0; in uio_update() 191 a_uio->uio_resid -= a_count; in uio_update() 588 while (size > 0 && uiop->uio_resid) { in mb_put_uio() 913 while (size > 0 && uiop->uio_resid) { in md_get_uio()
|
H A D | smb_smb.c | 629 (uiop->uio_loffset + uiop->uio_resid) > UINT32_MAX) in smb_rwuio() 651 if ((uiop->uio_loffset + uiop->uio_resid) > UINT32_MAX) in smb_rwuio() 663 save_resid = uiop->uio_resid; in smb_rwuio() 664 while (uiop->uio_resid > 0) { in smb_rwuio() 666 rlen = len = (uint32_t)min(maxlen, uiop->uio_resid); in smb_rwuio() 681 if (error && (save_resid != uiop->uio_resid)) { in smb_rwuio() 879 todo = (uint16_t)min(uiop->uio_resid, UINT16_MAX); in smb_smb_read() 958 todo = (uint16_t)min(uiop->uio_resid, UINT16_MAX); in smb_smb_write()
|
/titanic_41/usr/src/uts/common/fs/fifofs/ |
H A D | fifovnops.c | 666 if (uiop->uio_resid == 0) in fifo_read() 737 int uiosize = MIN(bpsize, uiop->uio_resid); in fifo_read() 750 if (uiop->uio_resid == 0) in fifo_read() 777 ASSERT(uiop->uio_resid == 0); in fifo_read() 779 } while (uiop->uio_resid != 0 && fnp->fn_mp != NULL); in fifo_read() 863 write_size = uiop->uio_resid; in fifo_write() 915 if (uiop->uio_resid == write_size) { in fifo_write() 962 if (uiop->uio_resid + fn_dest->fn_count > Fifohiwat) in fifo_write() 963 size = MIN(uiop->uio_resid, PIPE_BUF); in fifo_write() 965 size = uiop->uio_resid; in fifo_write() [all …]
|
/titanic_41/usr/src/uts/common/fs/sockfs/ |
H A D | sodirect.c | 77 if (uiop->uio_resid >= uioasync.mincnt && in sod_rcv_init() 163 if (msg_size > uioap->uio_resid) { in sod_uioa_mblk_init() 189 if (mp1 != NULL || uioap->uio_resid == 0) { in sod_uioa_mblk_init() 290 if (len > uioap->uio_resid || (so->so_oobmark > 0 && in sod_uioa_so_init()
|
/titanic_41/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_disk.c | 196 len = FBA_LEN(uiop->uio_resid + off); in _nsc_rw_uio() 204 if (off != 0 || FBA_OFF(uiop->uio_resid) != 0) in _nsc_rw_uio() 237 !rc && uiop->uio_resid && vec->sv_addr; in _nsc_rw_uio() 239 n = min(vec->sv_len - off, uiop->uio_resid); in _nsc_rw_uio() 536 h->db_uio.uio_resid = (size_t)thisio; in _nsc_dbuf_io()
|
/titanic_41/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_async.c | 219 while ((uiop->uio_resid > 0) && (ret == 0)) { in av1394_async_read() 239 if (uiop->uio_resid < sizeof (arq)) { in av1394_async_read() 270 len = min(uiop->uio_resid, MBLKL(mp)); in av1394_async_read() 299 while (uiop->uio_resid >= sizeof (arq)) { in av1394_async_write()
|