| /src/sys/miscfs/procfs/ |
| procfs_cmdline.c | 53 buf += uio->uio_offset - off; 54 if (off + len <= (uintmax_t)uio->uio_offset) 56 return uiomove(buf, off + len - uio->uio_offset, cookie); 86 if (0 == uio->uio_offset) { 92 if (len >= (uintmax_t)uio->uio_offset) { 93 start = uio->uio_offset - 1; 98 if (len + 2 >= (uintmax_t)uio->uio_offset) { 99 start = uio->uio_offset - 1 - len; 105 len = uio->uio_offset + uio->uio_resid;
|
| procfs_auxv.c | 55 if ((uintmax_t)uio->uio_offset < bufsize) 56 error = uiomove((char *)buffer + uio->uio_offset, 57 bufsize - uio->uio_offset, uio);
|
| procfs_limit.c | 115 if ((uintmax_t)uio->uio_offset < pos) 116 error = uiomove(buffer + uio->uio_offset, 117 pos - uio->uio_offset, uio); 184 if ((uintmax_t)uio->uio_offset < pos) 185 error = uiomove(buffer + uio->uio_offset, 186 pos - uio->uio_offset, uio);
|
| procfs_map.c | 219 if ((uintmax_t)uio->uio_offset < pos) 220 error = uiomove(buffer + uio->uio_offset, 221 pos - uio->uio_offset, uio);
|
| /src/sys/ufs/ext2fs/ |
| ext2fs_readwrite.c | 123 if ((uint64_t)uio->uio_offset > ump->um_maxfilesize) 127 if (uio->uio_offset >= ext2fs_size(ip)) 133 bytelen = MIN(ext2fs_size(ip) - uio->uio_offset, 178 if (uio->uio_offset > ump->um_maxfilesize) 182 if (uio->uio_offset >= ext2fs_size(ip)) 186 bytesinfile = ext2fs_size(ip) - uio->uio_offset; 189 lbn = ext2_lblkno(fs, uio->uio_offset); 192 blkoffset = ext2_blkoff(fs, uio->uio_offset); 290 uio->uio_offset = ext2fs_size(ip); 292 uio->uio_offset != ext2fs_size(ip) [all...] |
| /src/sys/ufs/ufs/ |
| ufs_readwrite.c | 91 if ((u_int64_t)uio->uio_offset > ump->um_maxfilesize) 99 if (uio->uio_offset >= ip->i_size) 108 bytelen = MIN(ip->i_size - uio->uio_offset, uio->uio_resid); 150 if (uio->uio_offset > ump->um_maxfilesize) 157 if (uio->uio_offset >= ip->i_size) 161 bytesinfile = ip->i_size - uio->uio_offset; 164 lbn = ufs_lblkno(fs, uio->uio_offset); 167 blkoffset = ufs_blkoff(fs, uio->uio_offset); 270 uio->uio_offset = ip->i_size; 271 if ((ip->i_flags & APPEND) && uio->uio_offset != ip->i_size [all...] |
| /src/sys/ufs/lfs/ |
| ulfs_readwrite.c | 89 if ((u_int64_t)uio->uio_offset > fs->um_maxfilesize) 95 if (uio->uio_offset >= ip->i_size) 104 bytelen = MIN(ip->i_size - uio->uio_offset, uio->uio_resid); 147 if (uio->uio_offset > fs->um_maxfilesize) 153 if (uio->uio_offset >= ip->i_size) 157 bytesinfile = ip->i_size - uio->uio_offset; 160 lbn = lfs_lblkno(fs, uio->uio_offset); 163 blkoffset = lfs_blkoff(fs, uio->uio_offset); 256 uio->uio_offset = ip->i_size; 257 if ((ip->i_flags & APPEND) && uio->uio_offset != ip->i_size [all...] |
| /src/sys/compat/netbsd32/ |
| netbsd32_ptrace.c | 169 if (uio->uio_offset < 0 || uio->uio_offset > (off_t)sizeof(r32)) 175 kv += uio->uio_offset; 176 kl -= uio->uio_offset; 189 uio->uio_offset = 0; 208 if (uio->uio_offset < 0 || uio->uio_offset > (off_t)sizeof(r32)) 213 kv += uio->uio_offset; 214 kl -= uio->uio_offset; 227 uio->uio_offset = 0 [all...] |
| /src/external/cddl/osnet/sys/sys/ |
| uio.h | 77 off_t uio_offset; member in struct:uio 100 #define uio_loffset uio_offset 157 uiop->uio_offset += (off_t)niovb;
|
| /src/sys/nfs/ |
| nfs_bio.c | 102 if (vp->v_type != VDIR && uio->uio_offset < 0) 110 (uio->uio_offset + uio->uio_resid) > nmp->nm_maxfilesize) 155 if (np->n_size <= uio->uio_offset) { 159 MIN(np->n_size - uio->uio_offset, uio->uio_resid); 168 if (uio->uio_offset >= np->n_size) { 198 ndp = nfs_searchdircache(vp, uio->uio_offset, 213 ndp = nfs_enterdircache(vp, uio->uio_offset, 214 uio->uio_offset, 0, 0); 297 (uintmax_t)uio->uio_offset, 423 uio->uio_offset = curoff [all...] |
| /src/sys/arch/i386/isa/ |
| cmos.c | 148 if (uio->uio_offset + uio->uio_resid > CMOS_SIZE) 153 error = uiomove(cmos_buf + uio->uio_offset, uio->uio_resid, uio); 164 if (uio->uio_offset + uio->uio_resid > CMOS_SIZE) 169 error = uiomove(cmos_buf + uio->uio_offset, uio->uio_resid, uio);
|
| /src/sys/fs/filecorefs/ |
| filecore_vnops.c | 214 if (uio->uio_offset < 0) 216 if (uio->uio_offset >= ip->i_size) 226 vsize_t bytelen = MIN(ip->i_size - uio->uio_offset, 242 lbn = filecore_lblkno(fcmp, uio->uio_offset); 243 on = filecore_blkoff(fcmp, uio->uio_offset); 245 diff = (off_t)ip->i_size - uio->uio_offset; 253 on = uio->uio_offset; 310 if (uio->uio_offset % FILECORE_DIRENT_SIZE != 0) 312 i = uio->uio_offset / FILECORE_DIRENT_SIZE; 313 uiooff = uio->uio_offset; [all...] |
| /src/sys/arch/i386/i386/ |
| process_machdep.c | 310 uio.uio_offset = 0; 340 uio.uio_offset = 0; 373 kv += uio->uio_offset; 374 kl -= uio->uio_offset; 391 uio->uio_offset = 0; 419 kv += uio->uio_offset; 420 kl -= uio->uio_offset; 433 uio->uio_offset = 0;
|
| /src/sys/rump/librump/rumpkern/ |
| accessors.c | 68 uio->uio_offset = offset; 87 return uio->uio_offset;
|
| /src/sys/dev/ |
| mm.c | 175 if ((uintptr_t)uio->uio_offset != uio->uio_offset) { 178 paddr = uio->uio_offset & ~PAGE_MASK; 184 offset = uio->uio_offset & PAGE_MASK; 243 addr = (void *)(intptr_t)uio->uio_offset; 244 if ((uintptr_t)addr != uio->uio_offset) { 251 offset = uio->uio_offset & PAGE_MASK;
|
| /src/sys/kern/ |
| sys_process_lwpstatus.c | 157 if (uio->uio_offset < 0 || uio->uio_offset > (off_t)ks) 160 kv = buf + uio->uio_offset; 161 kl = ks - uio->uio_offset; 176 uio->uio_offset = 0;
|
| kern_physio.c | 238 __func__, uio->uio_offset, uio->uio_resid)); 307 bp->b_blkno = btodb(uio->uio_offset); 314 if (uio->uio_offset & (DEV_BSIZE - 1)) { 382 uio->uio_offset += todo; 403 delta = uio->uio_offset - ps->ps_endoffset; 406 /* uio->uio_offset = ps->ps_endoffset; */ 443 __func__, uio->uio_offset, uio->uio_resid));
|
| /src/sys/fs/nfs/client/ |
| nfs_clbio.c | 150 uio.uio_offset = IDX_TO_OFF(pages[0]->pindex); 295 uio.uio_offset = offset; 420 if (uio->uio_offset < 0) /* XXX VDIR cookies can be negative */ 434 tmp_off = uio->uio_offset + uio->uio_resid; 436 (tmp_off > nmp->nm_maxfilesize || tmp_off < uio->uio_offset)) { 463 lbn = uio->uio_offset / biosize; 464 on = uio->uio_offset - (lbn * biosize); 561 && uio->uio_offset >= np->n_direofoffset) { 564 lbn = (uoff_t)uio->uio_offset / NFS_DIRBLKSIZ; 565 on = uio->uio_offset & (NFS_DIRBLKSIZ - 1) [all...] |
| /src/sys/arch/shark/ofw/ |
| ofrom.c | 170 if (uio->uio_offset >= sc->size) 173 v = sc->base + uio->uio_offset; 178 o = uio->uio_offset & PGOFSET;
|
| /src/sys/arch/powerpc/powerpc/ |
| process_machdep.c | 218 uio.uio_offset = 0; 247 kv += uio->uio_offset; 248 kl -= uio->uio_offset; 265 uio->uio_offset = 0; 301 uio.uio_offset = (off_t)va; 319 uio.uio_offset = (off_t)va;
|
| /src/sys/dev/i2c/ |
| at24cxx.c | 271 if (uio->uio_offset >= sc->sc_size) 281 while (uio->uio_resid > 0 && uio->uio_offset < sc->sc_size) { 282 a = (int)uio->uio_offset; 324 if (uio->uio_offset >= sc->sc_size) 332 while (uio->uio_resid > 0 && uio->uio_offset < sc->sc_size) { 333 a = (int)uio->uio_offset;
|
| m41t00.c | 174 if (uio->uio_offset >= M41T00_NBYTES) 180 while (uio->uio_resid && uio->uio_offset < M41T00_NBYTES) { 181 a = (int)uio->uio_offset; 213 if (uio->uio_offset >= M41T00_NBYTES) 219 while (uio->uio_resid && uio->uio_offset < M41T00_NBYTES) { 220 a = (int)uio->uio_offset;
|
| x1226.c | 178 if (uio->uio_offset >= X1226_NVRAM_SIZE) 184 while (uio->uio_resid && uio->uio_offset < X1226_NVRAM_SIZE) { 185 addr = (int)uio->uio_offset + X1226_NVRAM_START; 194 (int)uio->uio_offset); 219 if (uio->uio_offset >= X1226_NVRAM_SIZE) 225 while (uio->uio_resid && uio->uio_offset < X1226_NVRAM_SIZE) { 226 addr = (int)uio->uio_offset + X1226_NVRAM_START; 238 (int)uio->uio_offset);
|
| /src/sys/ufs/chfs/ |
| chfs_vnops.c | 656 if ((u_int64_t)uio->uio_offset > ump->um_maxfilesize) 661 if (uio->uio_offset >= ip->size) 673 bytelen = MIN(ip->size - uio->uio_offset, 688 bytesinfile = ip->size - uio->uio_offset; 691 lbn = chfs_lblkno(chmp, uio->uio_offset); 694 blkoffset = chfs_blkoff(chmp, uio->uio_offset); 794 uio->uio_offset = ip->size; 795 if ((ip->flags & APPEND) && uio->uio_offset != ip->size) 809 if (uio->uio_offset < 0 || 810 (u_int64_t)uio->uio_offset [all...] |
| /src/sys/fs/msdosfs/ |
| msdosfs_vnops.c | 469 if (uio->uio_offset < 0) 471 if (uio->uio_offset >= dep->de_FileSize) 478 bytelen = MIN(dep->de_FileSize - uio->uio_offset, 494 lbn = de_cluster(pmp, uio->uio_offset); 495 on = uio->uio_offset & pmp->pm_crbomask; 497 if (uio->uio_offset >= dep->de_FileSize) { 501 diff = dep->de_FileSize - uio->uio_offset; 574 uio->uio_offset = dep->de_FileSize; 582 if (uio->uio_offset < 0) 589 if (uio->uio_offset + uio->uio_resid > MSDOSFS_FILESIZE_MAX [all...] |