Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 19 of 19) sorted by relevance

/titanic_44/usr/src/cmd/luxadm/
H A Dfabric_conf.c102 unsigned int bytes_read; in read_repos_file() local
138 bytes_read = 0; in read_repos_file()
139 while (bytes_read < filesize) { in read_repos_file()
141 while (bytes_read < filesize && *tmp_ptr != '\n') { in read_repos_file()
142 bytes_read++; in read_repos_file()
148 bytes_read++; in read_repos_file()
H A Dfcalupdate.c137 int fbuf_idx, fd1, bytes_read; in fcal_update() local
164 while (!strfound && ((bytes_read = read(fd1, in fcal_update()
166 for (fbuf_idx = 0; fbuf_idx < bytes_read; in fcal_update()
/titanic_44/usr/src/test/zfs-tests/cmd/mkholes/
H A Dmkholes.c153 off_t bytes_read = 0; in main() local
166 while (bytes_read < len) { in main()
178 bytes_read += bytes; in main()
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c1084 int bytes_read; in nvf_parse() local
1105 bytes_read = nvf_read(file, (char *)&hdr, sizeof (hdr)); in nvf_parse()
1106 if (bytes_read != sizeof (hdr)) { in nvf_parse()
1141 bytes_read = nvf_read(file, buf, hdr.nvfh_size); in nvf_parse()
1142 if (bytes_read != hdr.nvfh_size) { in nvf_parse()
1145 if (bytes_read < 0) { in nvf_parse()
1147 "to read %s bytes:%d", filename, bytes_read); in nvf_parse()
1151 bytes_read, (longlong_t)hdr.nvfh_size); in nvf_parse()
1159 bytes_read = nvf_read(file, &overfill, 1); in nvf_parse()
1161 if (bytes_read > 0) { in nvf_parse()
/titanic_44/usr/src/uts/common/fs/ufs/
H A Dufs_directio.c818 ssize_t resid, bytes_read; in ufs_directio_read() local
940 bytes_read = 0; in ufs_directio_read()
995 bytes_read += nbytes; in ufs_directio_read()
1034 newerror = directio_wait(tail, &bytes_read); in ufs_directio_read()
1048 uio->uio_resid -= bytes_read; in ufs_directio_read()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Ddmu_send.c1652 uint64_t bytes_read; /* bytes read from stream when record created */ member
1675 uint64_t bytes_read; /* bytes read when current record created */ member
1682 uint64_t bytes_read; member
1767 ra->bytes_read += len; in receive_read()
1882 ASSERT(rwa->bytes_read != 0); in save_resume_state()
1898 ASSERT3U(rwa->bytes_read, >=, in save_resume_state()
1903 rwa->os->os_dsl_dataset->ds_resume_bytes[txgoff] = rwa->bytes_read; in save_resume_state()
2307 ra->rrd->bytes_read = ra->bytes_read; in receive_read_payload_and_next_header()
2316 ra->next_rrd->bytes_read = ra->bytes_read; in receive_read_payload_and_next_header()
2524 ASSERT3U(rrd->bytes_read, >=, rwa->bytes_read); in receive_process_record()
[all …]
/titanic_44/usr/src/cmd/gencat/
H A Dgencat.c417 int nbytes, bytes_read; local
424 bytes_read = READ(fd, p + nbytes, n - nbytes);
425 if (bytes_read < 0) {
431 } else if (bytes_read == 0)
434 nbytes += bytes_read;
/titanic_44/usr/src/cmd/utmpd/
H A Dutmpd.c647 int bytes_read; in drain_pipe() local
657 if ((bytes_read = read(Pfd, p, sizeof (struct pidrec))) != in drain_pipe()
663 if (bytes_read > 0) in drain_pipe()
/titanic_44/usr/src/cmd/hal/hald/
H A Dhald.c263 gsize bytes_read; in sigterm_iochn_data() local
267 g_io_channel_read_chars (source, data, 1, &bytes_read, &err)) { in sigterm_iochn_data()
/titanic_44/usr/src/cmd/vscan/vscand/
H A Dvs_icap.c1177 int bytes_read = 0; in vs_icap_read() local
1181 bytes_read = read(fd, ptr, resid); in vs_icap_read()
1182 if (bytes_read < 0) { in vs_icap_read()
1188 resid -= bytes_read; in vs_icap_read()
1189 ptr += bytes_read; in vs_icap_read()
/titanic_44/usr/src/cmd/rmvolmgr/
H A Drmvolmgr.c278 gsize bytes_read; in sigexit_ioch_func() local
281 if (g_io_channel_read_chars(source, buf, 1, &bytes_read, &error) != in sigexit_ioch_func()
/titanic_44/usr/src/uts/sun4v/io/
H A Dldc.c3892 size_t len = 0, bytes_read = 0; in i_ldc_read_packet() local
4007 bytes_read = 0; in i_ldc_read_packet()
4053 bytes_read = 0; in i_ldc_read_packet()
4062 bytes_read = 0; in i_ldc_read_packet()
4116 bytes_read = 0; in i_ldc_read_packet()
4137 bytes_read, ldcp->last_msg_rcd, in i_ldc_read_packet()
4141 bytes_read = 0; in i_ldc_read_packet()
4152 if (len <= (*sizep - bytes_read)) { in i_ldc_read_packet()
4155 bytes_read += len; in i_ldc_read_packet()
4165 curr_head, *sizep, bytes_read+len); in i_ldc_read_packet()
[all …]
/titanic_44/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c300 int32_t ret_val, bytes_read; in _m_raw_read() local
353 bytes_read = retraw_read->nbytes; in _m_raw_read()
355 return (bytes_read); in _m_raw_read()
/titanic_44/usr/src/cmd/ssh/sftp-server/
H A Dsftp-server.c181 u_int64_t bytes_read, bytes_write; member
212 handles[i].bytes_read = handles[i].bytes_write = 0; in handle_new()
280 handles[handle].bytes_read += bytes; in handle_update_read()
294 return (handles[handle].bytes_read); in handle_bytes_read()
/titanic_44/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c3601 zpool_history_unpack(char *buf, uint64_t bytes_read, uint64_t *leftover, in zpool_history_unpack() argument
3608 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack()
3614 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack()
3620 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack()
3632 *leftover = bytes_read; in zpool_history_unpack()
3653 uint64_t bytes_read = buflen; in zpool_get_history() local
3656 if ((err = get_history(zhp, buf, &off, &bytes_read)) != 0) in zpool_get_history()
3660 if (!bytes_read) in zpool_get_history()
3663 if ((err = zpool_history_unpack(buf, bytes_read, in zpool_get_history()
3667 if (leftover == bytes_read) { in zpool_get_history()
/titanic_44/usr/src/uts/common/io/hxge/
H A Dhxge_rxdma.c1662 uint32_t bytes_read; in hxge_receive_packet() local
1936 bytes_read = rcr_p->rcvd_pkt_bytes; in hxge_receive_packet()
1961 if (l2_len - bytes_read < bsize) { in hxge_receive_packet()
1963 &nmp->b_rptr[l2_len - bytes_read]; in hxge_receive_packet()
1976 l2_len - bytes_read < bsize ? in hxge_receive_packet()
1977 l2_len - bytes_read : bsize); in hxge_receive_packet()
1983 bytes_read = nmp->b_wptr - nmp->b_rptr; in hxge_receive_packet()
1985 bytes_read += nmp->b_wptr - nmp->b_rptr; in hxge_receive_packet()
2036 rcr_p->rcvd_pkt_bytes = bytes_read; in hxge_receive_packet()
/titanic_44/usr/src/uts/common/io/nxge/
H A Dnxge_rxdma.c2201 uint32_t bytes_read; in nxge_receive_packet() local
2584 bytes_read = rcr_p->rcvd_pkt_bytes; in nxge_receive_packet()
2601 if (l2_len - bytes_read < bsize) { in nxge_receive_packet()
2603 &nmp->b_rptr[l2_len - bytes_read]; in nxge_receive_packet()
2616 l2_len - bytes_read < bsize ? in nxge_receive_packet()
2617 l2_len - bytes_read : bsize); in nxge_receive_packet()
2635 bytes_read = nmp->b_wptr - nmp->b_rptr; in nxge_receive_packet()
2637 rdc_stats->ibytes += l2_len - bytes_read < bsize ? in nxge_receive_packet()
2638 l2_len - bytes_read : bsize; in nxge_receive_packet()
2639 bytes_read += nmp->b_wptr - nmp->b_rptr; in nxge_receive_packet()
[all …]
/titanic_44/usr/src/uts/i86pc/os/
H A Dfakebop.c622 int bytes_read; in boot_prop_finish() local
649 bytes_read = BRD_READ(bfs_ops, fd, line + c, 1); in boot_prop_finish()
650 if (bytes_read == 0) { in boot_prop_finish()
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c1191 read_obj_data(int old_fd, char **buf, ssize_t *bytes_read) in read_obj_data() argument
1227 *bytes_read = nread; in read_obj_data()