/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_xfs.c | 336 int toread; in next_dentry() local 388 toread = roundup8 (le16(dau->unused.length)) - 4; in next_dentry() 389 xfs.blkoff += toread; in next_dentry() 390 filepos += toread; in next_dentry() 399 toread = roundup8 (namelen + 11) - 9; in next_dentry() 400 xfs_read (dirbuf, toread); in next_dentry() 402 xfs.blkoff += toread + 5; in next_dentry() 492 int toread, startpos, endpos; in xfs_read() local 509 toread = (endofcur >= endpos) in xfs_read() 514 filepos - (offset << xfs.blklog), toread, buf); in xfs_read() [all …]
|
H A D | fsys_jfs.c | 233 int toread, startpos, endpos; in jfs_read() local 244 toread = (endofcur >= endpos) in jfs_read() 249 filepos - (offset << jfs.l2bsize), toread, buf); in jfs_read() 252 buf += toread; in jfs_read() 253 len -= toread; in jfs_read() 254 filepos += toread; in jfs_read() 256 toread = ((offset << jfs.l2bsize) >= endpos) in jfs_read() 258 len -= toread; in jfs_read() 259 filepos += toread; in jfs_read() 260 for (; toread; toread--) { in jfs_read()
|
H A D | fsys_zfs.c | 639 int toread = MIN(array_len - bseen, ZAP_LEAF_ARRAY_BYTES); in zap_leaf_array_equal() local 644 if (zfs_bcmp(la->la_array, buf + bseen, toread) != 0) in zap_leaf_array_equal() 647 bseen += toread; in zap_leaf_array_equal()
|
/illumos-gate/usr/src/cmd/nvmeadm/ |
H A D | nvmeadm_wdc.c | 192 uint32_t toread = MIN(len, E6_BUFSIZE); in do_wdc_e6dump() local 193 wdc_e6_read(npa, req, off, buf, toread); in do_wdc_e6dump() 194 wdc_e6_write(ofd, buf, toread); in do_wdc_e6dump() 196 off += toread; in do_wdc_e6dump() 197 len -= toread; in do_wdc_e6dump()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | io.c | 597 ber_uint_t toread; in ber_get_next() local 688 toread = (uintptr_t)ber->ber_end - (uintptr_t)ber->ber_rwptr; in ber_get_next() 690 if ( (rc = BerRead( sb, ber->ber_rwptr, (ber_int_t)toread )) <= 0 ) { in ber_get_next() 694 toread -= rc; in ber_get_next() 696 } while ( toread > 0 ); in ber_get_next() 1103 ber_uint_t toread; in ber_get_next_buffer_ext() local 1194 toread = (uintptr_t)ber->ber_end - (uintptr_t)ber->ber_rwptr; in ber_get_next_buffer_ext() 1197 (ber_int_t)toread )) <= 0 ) { in ber_get_next_buffer_ext() 1201 toread -= rc; in ber_get_next_buffer_ext() 1203 } while ( toread > 0 ); in ber_get_next_buffer_ext()
|
/illumos-gate/usr/src/lib/lib9p/common/transport/ |
H A D | socket.c | 452 size_t toread; in l9p_socket_readmsg() local 479 toread = msize - sizeof(uint32_t); in l9p_socket_readmsg() 482 ret = xread(fd, (char *)buffer + sizeof(uint32_t), toread); in l9p_socket_readmsg() 488 if (ret != (ssize_t)toread) { in l9p_socket_readmsg() 490 ret, toread); in l9p_socket_readmsg()
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | word.c | 393 readb(struct fileblk *f, int toread, int rest) in readb() argument 427 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote); in readb()
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_restore_writer.c | 1728 int toread, actual_size, rec_size; in input_mem() local 1736 toread = len; in input_mem() 1737 while (toread > 0) { in input_mem() 1738 rec = get_read_buffer(toread, &err, &actual_size, lcmds); in input_mem() 1747 rec_size = min(actual_size, toread); in input_mem() 1750 toread -= rec_size; in input_mem() 1753 return (len - toread); in input_mem()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddi_ufm.c | 302 uint64_t toread = MIN(len, UFM_READ_STRIDE); in ufm_read_img() local 306 img, slot, toread, off + nread, buf, &iter); in ufm_read_img()
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | ufm.c | 136 uint64_t toread = MIN(imgsize, UFM_READ_BUFLEN); in fw_readfw() local 144 rimg.ufri_len = toread; in fw_readfw()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zap_leaf.c | 375 int toread = MIN(array_numints - bseen, ZAP_LEAF_ARRAY_BYTES); in zap_leaf_array_match() local 377 if (bcmp(la->la_array, (char *)zn->zn_key_orig + bseen, toread)) in zap_leaf_array_match() 380 bseen += toread; in zap_leaf_array_match()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_mac.c | 1072 size_t toread = MIN(maxread, nbytes - i); in t4_mc_transceiver_read() local 1073 rc = -t4_i2c_rd(sc, sc->mbox, pi->port_id, page, offset, toread, in t4_mc_transceiver_read() 1077 offset += toread; in t4_mc_transceiver_read() 1078 bp = (void *)((uintptr_t)bp + toread); in t4_mc_transceiver_read()
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 243 size_t toread; in prwritectl_readin() local 287 toread = MIN(prwc->prwc_buflen - prwc->prwc_curvalid, in prwritectl_readin() 289 ASSERT3U(toread, >=, needed - prwc->prwc_curvalid); in prwritectl_readin() 291 if ((ret = uiomove(start, toread, UIO_WRITE, prwc->prwc_uiop)) != 0) { in prwritectl_readin() 295 prwc->prwc_curvalid += toread; in prwritectl_readin()
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_mover.c | 2820 long toread; in mover_socket_read_one_buf() local 2823 for (index = 0, toread = read_size; toread > 0; ) { in mover_socket_read_one_buf() 2825 NDMP_LOG(LOG_DEBUG, "index: %d, toread: %d", index, toread); in mover_socket_read_one_buf() 2828 toread); in mover_socket_read_one_buf() 2835 toread -= n; in mover_socket_read_one_buf()
|
H A D | ndmpd_data.c | 1737 int n, toread; in discard_data_v3() local 1739 toread = (length < MAX_RECORD_SIZE) ? length : in discard_data_v3() 1743 n = read(session->ns_data.dd_sock, buf, toread); in discard_data_v3()
|