| /freebsd-12-stable/sys/contrib/libsodium/src/libsodium/randombytes/nativeclient/ |
| D | randombytes_nativeclient.c | 20 size_t toread = size; in randombytes_nativeclient_buf() local 26 while (toread > (size_t) 0U) { in randombytes_nativeclient_buf() 31 toread -= readnb; in randombytes_nativeclient_buf()
|
| /freebsd-12-stable/contrib/netbsd-tests/fs/common/ |
| D | fstest_puffs.c | 161 size_t toread; in writeshovel() local 181 toread = sizeof(struct putter_hdr); in writeshovel() 182 assert(toread < BUFSIZE); in writeshovel() 184 n = xread(comfd, buf+off, toread); in writeshovel() 192 toread = phdr->pth_framelen - off; in writeshovel() 194 toread = off - sizeof(struct putter_hdr); in writeshovel() 195 } while (toread); in writeshovel()
|
| /freebsd-12-stable/sys/dev/pbio/ |
| D | pbio.c | 378 int err, i, port, ret, toread, unit; in pbioread() local 388 toread = min(uio->uio_resid, PBIO_BUFSIZ); in pbioread() 389 if ((ret = uiomove(scp->pd[port].buff, toread, uio)) != 0) in pbioread() 391 for (i = 0; i < toread; i++) { in pbioread()
|
| /freebsd-12-stable/sys/security/audit/ |
| D | audit_pipe.c | 904 u_int toread; in audit_pipe_read() local 946 toread = MIN(ape->ape_record_len - ap->ap_qoffset, in audit_pipe_read() 950 toread, uio); in audit_pipe_read() 963 ap->ap_qoffset += toread; in audit_pipe_read()
|
| /freebsd-12-stable/share/examples/drivers/ |
| D | make_device_driver.sh | 875 int toread; 882 toread = (min(uio->uio_resid, sizeof(scp->buffer))); 883 return(uiomove(scp->buffer, toread, uio));
|
| /freebsd-12-stable/contrib/ofed/libibnetdisc/ |
| D | ibnetdisc_cache.c | 358 unsigned int toread = 0; in _load_node() local 365 toread = in _load_node() 375 if (ibnd_read(fd, buf, toread) < 0) in _load_node()
|
| /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| 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()
|
| /freebsd-12-stable/contrib/libpcap/rpcapd/ |
| D | daemon.c | 155 static int rpcapd_recv(SOCKET sock, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf); 2554 rpcapd_recv(SOCKET sock, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf) in rpcapd_recv() argument 2559 if (toread > *plen) in rpcapd_recv() 2565 nread = sock_recv(sock, buffer, toread, in rpcapd_recv()
|
| /freebsd-12-stable/contrib/libpcap/ |
| D | pcap-rpcap.c | 162 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf); 3075 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf) in rpcap_recv() argument 3079 if (toread > *plen) in rpcap_recv() 3085 nread = sock_recv(sock, buffer, toread, in rpcap_recv()
|
| /freebsd-12-stable/sys/fs/nandfs/ |
| D | nandfs_vnops.c | 142 ssize_t toread, off; in nandfs_read() local 163 toread = omin(resid, blocksize - off); in nandfs_read() 166 (uintmax_t)lbn, toread, blocksize)); in nandfs_read() 174 error = uiomove(bp->b_data + off, toread, uio); in nandfs_read() 181 resid -= toread; in nandfs_read()
|