Lines Matching refs:block
50 static unsigned short block, prevblock; variable
94 block = 0; in tftp_file_read()
114 timeout = rfc2131_sleep_interval(block?TFTP_REXMT: TIMEOUT, retry); in tftp_file_read()
120 if (!block && retry++ < MAX_TFTP_RETRIES) in tftp_file_read()
128 if (block && ((retry += TFTP_REXMT) < TFTP_TIMEOUT)) in tftp_file_read()
194 block = tp.u.ack.block = 0; /* this ensures, that */ in tftp_file_read()
202 block = ntohs(tp.u.ack.block = tr->u.data.block); } in tftp_file_read()
207 if ((block || bcounter) && (block != (unsigned short)(prevblock+1))) { in tftp_file_read()
209 tp.u.ack.block = htons(block = prevblock); in tftp_file_read()
215 if ((unsigned short)(block-prevblock) != 1) { in tftp_file_read()
220 prevblock = block; in tftp_file_read()
250 timeout = rfc2131_sleep_interval (block ? TFTP_REXMT : TIMEOUT, retry); in buf_fill()
260 if (! block && retry++ < MAX_TFTP_RETRIES) in buf_fill()
274 if (block && ((retry += TFTP_REXMT) < TFTP_TIMEOUT)) in buf_fill()
374 block = tp.u.ack.block = 0; in buf_fill()
392 block = ntohs (tp.u.ack.block = tr->u.data.block); in buf_fill()
398 if ((block || bcounter) && (block != (unsigned short) (prevblock + 1))) in buf_fill()
400 tp.u.ack.block = htons (block = prevblock); in buf_fill()
420 if ((unsigned short) (block - prevblock) != 1) in buf_fill()
424 prevblock = block; in buf_fill()
450 block = 0; in send_rrq()
710 rc = fnc(buf, ++block, len, len < packetsize); in tftp_file_read_undi()