Lines Matching refs:total
57 size_t total = desired_total;
62 if (total == 0) {
82 while (total > 0) {
86 size_t buffered_bytes = MIN((size_t) fp->_r, total);
91 total -= buffered_bytes;
96 if (total == 0) {
104 if (total > (size_t) fp->_bf._size) {
126 while (total > 0) {
127 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total);
133 total -= bytes_read;
138 return ((desired_total - total) / size);