Lines Matching refs:uoff
332 u_offset_t size, uoff; in ufs_directio_write() local
371 uoff = uio->uio_loffset; in ufs_directio_write()
377 if (uoff + resid > limit) in ufs_directio_write()
383 if ((uoff & (u_offset_t)(DEV_BSIZE - 1)) || (resid & (DEV_BSIZE - 1))) in ufs_directio_write()
407 if ((uoff + resid) > size) in ufs_directio_write()
475 error = bmap_read(ip, uoff, &bn, &len); in ufs_directio_write()
503 on = (int)blkoff(fs, uoff); in ufs_directio_write()
505 if ((uoff + n) > ip->i_size) { in ufs_directio_write()
506 error = bmap_write(ip, uoff, (int)(on + n), in ufs_directio_write()
507 (int)(uoff & (offset_t)MAXBOFFSET) == 0, in ufs_directio_write()
512 ip->i_size = uoff + n; in ufs_directio_write()
515 error = bmap_write(ip, uoff, (int)(on + n), in ufs_directio_write()
525 offset = uoff & (offset_t)fs->fs_bmask; in ufs_directio_write()
528 error = bmap_write(ip, uoff, blk_size, in ufs_directio_write()
539 uoff += n; in ufs_directio_write()
653 uoff = uio->uio_loffset; in ufs_directio_write()
663 error = bmap_read(ip, uoff, &bn, &len); in ufs_directio_write()
802 u_offset_t size, uoff; in ufs_directio_read() local
837 uoff = uio->uio_loffset; in ufs_directio_read()
839 if ((uoff & (u_offset_t)(DEV_BSIZE - 1)) || (resid & (DEV_BSIZE - 1))) in ufs_directio_read()
869 if (uoff >= size) { in ufs_directio_read()
877 if ((uoff + resid) > size) { in ufs_directio_read()
878 resid = size - uoff; in ufs_directio_read()
958 uoff = uio->uio_loffset; in ufs_directio_read()
964 error = bmap_read(ip, uoff, &bn, &len); in ufs_directio_read()
970 (long)blkoff(fs, uoff), nbytes); in ufs_directio_read()