Lines Matching refs:buf_read
54 static int buf_eof, buf_read;
244 while (! buf_eof && (buf_read + packetsize <= FSYS_BUFLEN))
433 grub_memmove (buf + buf_read, tr->u.data.download, len);
434 buf_read += len;
457 buf_read = 0;
515 buf_read = 0;
543 int amt = buf_read + saved_filepos - filepos;
564 buf_read -= FSYS_BUFLEN / 2;
571 saved_filepos += buf_read;
572 buf_read = 0;
583 if (size > 0 && buf_read == 0)
652 filemax += buf_read;
654 buf_read = 0;
665 filemax += buf_read;
687 buf_read = 0;
726 while (! buf_eof && (buf_read + packetsize <= FSYS_BUFLEN)) {
735 if (eb_pxenv_tftp_read(buf + buf_read, &len) == 0)
738 buf_read += len;
755 buf_read = 0;
771 int amt = buf_read + saved_filepos - filepos;
792 buf_read -= FSYS_BUFLEN / 2;
797 saved_filepos += buf_read;
798 buf_read = 0;
808 if (size > 0 && buf_read == 0) {
846 buf_read = 0;
854 filemax += buf_read;
855 buf_read = 0;
863 filemax += buf_read;
874 buf_read = 0;