Searched refs:totread (Results 1 – 2 of 2) sorted by relevance
196 size_t totread; in splitfs_read() local200 totread = 0; in splitfs_read()202 nread = read(sf->curfd, buf, size - totread); in splitfs_read()210 totread += nread; in splitfs_read()213 if (totread < size) { /* EOF */ in splitfs_read()226 } while (totread < size); in splitfs_read()229 *resid = size - totread; in splitfs_read()
301 size_t totread = 0; in kmdb_prom_read() local310 totread += thisread; in kmdb_prom_read()314 if (totread == 0) in kmdb_prom_read()331 for (i = 0; i < totread; i++) { in kmdb_prom_read()338 (void) kmdb_prom_write(buf, totread, tio); in kmdb_prom_read()340 return (totread); in kmdb_prom_read()