Lines Matching defs:uiop

181 smbfs_readvnode(struct vnode *vp, struct uio *uiop, struct ucred *cred)
193 if (uiop->uio_segflg == UIO_NOCOPY)
200 if (uiop->uio_resid == 0)
202 if (uiop->uio_offset < 0)
204 /* if (uiop->uio_offset + uiop->uio_resid > smp->nm_maxfilesize)
206 td = uiop->uio_td;
211 error = smbfs_readvdir(vp, uiop, cred);
237 error = smb_read(smp->sm_share, np->n_fid, uiop, scred);
243 smbfs_writevnode(struct vnode *vp, struct uio *uiop,
256 SMBVDEBUG("ofs=%jd,resid=%zd\n", (intmax_t)uiop->uio_offset,
257 uiop->uio_resid);
258 if (uiop->uio_offset < 0)
260 /* if (uiop->uio_offset + uiop->uio_resid > smp->nm_maxfilesize)
262 td = uiop->uio_td;
279 uiop->uio_offset = np->n_size;
282 if (uiop->uio_resid == 0)
285 if (vn_rlimit_fsize(vp, uiop, td))
290 error = smb_write(smp->sm_share, np->n_fid, uiop, scred);
292 SMBVDEBUG("after: ofs=%jd,resid=%zd\n", (intmax_t)uiop->uio_offset,
293 uiop->uio_resid);
295 if (uiop->uio_offset > np->n_size) {
296 np->n_size = uiop->uio_offset;
311 struct uio *uiop;
316 uiop = malloc(sizeof(struct uio), M_SMBFSDATA, M_WAITOK);
317 uiop->uio_iov = &io;
318 uiop->uio_iovcnt = 1;
319 uiop->uio_segflg = UIO_SYSSPACE;
320 uiop->uio_td = td;
326 io.iov_len = uiop->uio_resid = bp->b_bcount;
328 uiop->uio_rw = UIO_READ;
331 uiop->uio_offset = ((off_t)bp->b_blkno) * DEV_BSIZE;
332 error = smb_read(smp->sm_share, np->n_fid, uiop, scred);
335 if (uiop->uio_resid) {
336 int left = uiop->uio_resid;
355 io.iov_len = uiop->uio_resid = bp->b_dirtyend - bp->b_dirtyoff;
356 uiop->uio_offset = ((off_t)bp->b_blkno) * DEV_BSIZE + bp->b_dirtyoff;
358 uiop->uio_rw = UIO_WRITE;
359 error = smb_write(smp->sm_share, np->n_fid, uiop, scred);
399 free(uiop, M_SMBFSDATA);
404 bp->b_resid = uiop->uio_resid;
406 free(uiop, M_SMBFSDATA);