Lines Matching refs:packetsize
53 static int packetsize; variable
164 if ((packetsize = getdec(&p)) < TFTP_DEFAULTSIZE_PACKET) in tftp_file_read()
200 if (len > packetsize) /* shouldn't happen */ in tftp_file_read()
223 ++bcounter, len, len < packetsize)) <= 0) in tftp_file_read()
225 if (len < packetsize) { /* End of data --- fnc should not have returned */ in tftp_file_read()
244 while (! buf_eof && (buf_read + packetsize <= FSYS_BUFLEN)) in buf_fill()
325 if ((packetsize = getdec (&p)) < TFTP_DEFAULTSIZE_PACKET) in buf_fill()
328 grub_printf ("blksize = %d\n", packetsize); in buf_fill()
384 if (len > packetsize) in buf_fill()
388 __FILE__, __LINE__, len, packetsize); in buf_fill()
437 if (len < packetsize) in buf_fill()
452 packetsize = TFTP_DEFAULTSIZE_PACKET; in send_rrq()
702 arptable[ARP_GATEWAY].ipaddr, &packetsize) == 0) in tftp_file_read_undi()
710 rc = fnc(buf, ++block, len, len < packetsize); in tftp_file_read_undi()
711 if (rc <= 0 || len < packetsize) in tftp_file_read_undi()
726 while (! buf_eof && (buf_read + packetsize <= FSYS_BUFLEN)) { in buf_fill_undi()
741 if (len < packetsize) in buf_fill_undi()
752 arptable[ARP_GATEWAY].ipaddr, &packetsize); in tftp_reopen_undi()
841 arptable[ARP_GATEWAY].ipaddr, &packetsize) == 0) in tftp_dir_undi()