/freebsd-12-stable/sys/dev/sound/midi/ |
H A D | sequencer.c | 875 scp->unit, uio->uio_resid)); 902 while (uio->uio_resid > 0) { 919 used = MIN(MIDIQ_LEN(scp->in_q), uio->uio_resid); 935 retval, uio->uio_resid)); 949 scp->unit, uio->uio_resid)); 962 while (uio->uio_resid > 0) { 991 used = MIN(uio->uio_resid, 4); 994 uio->uio_resid, (intmax_t)MIDIQ_LEN(scp->out_q), 1040 while (uio->uio_resid > 0) { 1042 retval = uiomove(event, MIN(EV_SZ, uio->uio_resid), ui [all...] |
/freebsd-12-stable/sys/fs/ext2fs/ |
H A D | ext2_vnops.c | 2068 orig_resid = uio->uio_resid; 2069 KASSERT(orig_resid >= 0, ("ext2_read: uio->uio_resid < 0")); 2078 for (error = 0, bp = NULL; uio->uio_resid > 0; bp = NULL) { 2087 if (uio->uio_resid < xfersize) 2088 xfersize = uio->uio_resid; 2096 NOCRED, blkoffset + uio->uio_resid, seqcount, 2140 if ((error == 0 || uio->uio_resid != orig_resid) && 2217 (intmax_t)uio->uio_resid); 2220 KASSERT(uio->uio_resid >= 0, ("ext2_write: uio->uio_resid < [all...] |
H A D | ext2_extattr.c | 836 entry->e_value_size = uio->uio_resid; 839 EXT2_EXTATTR_SIZE(uio->uio_resid); 881 new_entry = allocate_entry(name, attrnamespace, 0, uio->uio_resid, 0); 966 entry->e_name_len, uio->uio_resid); 990 entry->e_name_len, uio->uio_resid); 1127 entry->e_name_len, uio->uio_resid); 1138 strlen(name), uio->uio_resid); 1163 strlen(ext2_extattr_name_to_linux(attrnamespace, name)), uio->uio_resid);
|
/freebsd-12-stable/contrib/ipfilter/tools/ |
H A D | ipftest.c | 630 uio.uio_resid = iov.iov_len; 631 resid = uio.uio_resid; 637 if (uio.uio_resid == resid) 639 write(fd, buffer, resid - uio.uio_resid);
|
/freebsd-12-stable/sys/dev/pccard/ |
H A D | pccard_device.c | 174 MIN(uio->uio_resid, sc->cis->len - uio->uio_offset), uio));
|
/freebsd-12-stable/sys/fs/autofs/ |
H A D | autofs_vnops.c | 368 if (uio->uio_resid < reclen) 408 initial_resid = ap->a_uio->uio_resid; 504 if (uio->uio_resid == initial_resid) 510 if (uio->uio_resid < reclen)
|
/freebsd-12-stable/sys/kern/ |
H A D | subr_sbuf.c | 262 if (uio->uio_resid >= INT_MAX || uio->uio_resid < SBUF_MINSIZE - 1) { 266 s = sbuf_new(s, NULL, uio->uio_resid + 1, 0); 271 *error = uiomove(s->s_buf, uio->uio_resid, uio);
|
/freebsd-12-stable/sys/mips/mips/ |
H A D | mem.c | 91 while (uio->uio_resid > 0 && !error) {
|
/freebsd-12-stable/sys/sparc64/sparc64/ |
H A D | mem.c | 105 while (uio->uio_resid > 0 && error == 0) {
|
/freebsd-12-stable/sys/arm/arm/ |
H A D | mem.c | 91 while (uio->uio_resid > 0 && error == 0) {
|
/freebsd-12-stable/sys/arm/xilinx/ |
H A D | zy7_devcfg.c | 545 if (uio->uio_offset == 0 && uio->uio_resid > 0) { 570 while (uio->uio_resid > 0) { 579 segsz = MIN(PAGE_SIZE, uio->uio_resid); 593 if (uio->uio_resid > segsz)
|
/freebsd-12-stable/sys/dev/cardbus/ |
H A D | cardbus_device.c | 167 MIN(uio->uio_resid, devi->sc_cis.len - uio->uio_offset), uio));
|
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_sa.c | 81 MIN((size_t)bufsz, uio->uio_resid), UIO_READ, uio); 87 MIN((size_t)bufsz, uio->uio_resid), UIO_READ, uio);
|
/freebsd-12-stable/sys/dev/cyapa/ |
H A D | cyapa.c | 757 didread = (uio->uio_resid == 0); 769 while (error == 0 && uio->uio_resid && 771 if (n > uio->uio_resid) 772 n = uio->uio_resid; 807 while ((n = fifo_space(sc, &sc->wfifo)) > 0 && uio->uio_resid) { 808 if (n > uio->uio_resid) 809 n = uio->uio_resid; 1046 if (error == 0 && (cmd_completed || uio->uio_resid))
|
/freebsd-12-stable/sys/dev/nand/ |
H A D | nandsim_swap.c | 221 auio.uio_resid = swap->blk_size; 263 auio.uio_resid = swap->blk_size;
|
/freebsd-12-stable/sys/fs/tmpfs/ |
H A D | tmpfs_vnops.c | 511 if (uio->uio_resid == 0) 515 if (uio->uio_offset + uio->uio_resid > 520 if (uio->uio_offset + uio->uio_resid > node->tn_size) { 521 error = tmpfs_reg_resize(vp, uio->uio_offset + uio->uio_resid, 538 MPASS(IMPLIES(error == 0, uio->uio_resid == 0)); 1237 startresid = uio->uio_resid; 1256 error = (uio->uio_resid != startresid) ? 0 : EINVAL; 1285 error = uiomove(node->tn_link, MIN(node->tn_size, uio->uio_resid),
|
/freebsd-12-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_sync.c | 445 while (uio->uio_resid > 0) { 447 if (uio->uio_resid >= sizeof(sh)) { 525 if (uio->uio_resid >= sh.sm_len) { 553 sh.sm_len, (int)uio->uio_resid); 583 if ((uio->uio_resid & 3) || (uio->uio_resid < 8)) { 615 (uio->uio_resid > sizeof(*sl))) { 625 (uio->uio_resid > sizeof(*su))) {
|
/freebsd-12-stable/sys/nfs/ |
H A D | krpc_subr.c | 350 auio.uio_resid = len = 1<<16; 359 len -= auio.uio_resid;
|
H A D | nfs_lock.c | 131 if (uio->uio_resid != sizeof *lm) 160 if (uio->uio_resid != sizeof la)
|
/freebsd-12-stable/sys/vm/ |
H A D | vnode_pager.c | 687 auio.uio_resid = size; 692 int count = size - auio.uio_resid; 1388 prev_resid = auio.uio_resid = aiov.iov_len = next_offset - 1393 wrsz = prev_resid - auio.uio_resid; 1398 auio.uio_offset, auio.uio_resid); 1413 if (auio.uio_resid != 0 && (ppscheck != 0 || 1416 "at %ju\n", auio.uio_resid, 1419 if (error != 0 || auio.uio_resid != 0)
|
/freebsd-12-stable/sys/arm/altera/socfpga/ |
H A D | socfpga_a10_manager.c | 335 while (uio->uio_resid >= 4) { 341 switch (uio->uio_resid) {
|
/freebsd-12-stable/sys/cam/scsi/ |
H A D | scsi_target.c | 537 ("write - uio_resid %zd\n", uio->uio_resid)); 538 while (uio->uio_resid >= sizeof(user_ccb) && error == 0) { 611 if (write_len == 0 && uio->uio_resid != 0) 849 if (uio->uio_resid < sizeof(user_ccb)) 871 if (uio->uio_resid < sizeof(user_ccb)) 894 if (read_len == 0 && uio->uio_resid != 0)
|
/freebsd-12-stable/sys/dev/firewire/ |
H A D | fwdev.c | 383 if (uio->uio_resid >= ir->psize) { 408 if ((xfer = fw_xfer_alloc_buf(M_FWXFER, uio->uio_resid, 413 xfer->send.pay_len = uio->uio_resid; 414 if (uio->uio_resid > 0) { 416 uio->uio_resid, uio))) 510 if (uio->uio_resid >= sizeof(struct fw_isohdr)) {
|
/freebsd-12-stable/sys/dev/iscsi_initiator/ |
H A D | iscsi.c | 290 if(uio->uio_resid == 0) 312 if(uio->uio_resid == 0) 321 if(uio->uio_resid == 0) 330 if(uio->uio_resid == 0) 339 if(uio->uio_resid == 0) 348 if(uio->uio_resid == 0)
|
/freebsd-12-stable/sys/fs/nandfs/ |
H A D | nandfs_vnops.c | 147 if (uio->uio_resid == 0) 157 resid = omin(uio->uio_resid, bytesinfile); 212 uio->uio_resid, (uintmax_t)uio->uio_offset)); 216 if (uio->uio_resid == 0) 239 resid = uio->uio_resid; 242 while (uio->uio_resid) { 246 towrite = omin(uio->uio_resid, blocksize - off); 285 if (resid > uio->uio_resid && ap->a_cred && 289 if (file_size < uio->uio_offset + uio->uio_resid) { 291 uio->uio_resid; [all...] |