Lines Matching refs:tftp_cur_block
78 static ulong tftp_cur_block; variable
234 ulong pos = tftp_cur_block * tftp_block_size + in show_block_marker()
246 if (((tftp_cur_block - 1) % 10) == 0) in show_block_marker()
248 else if ((tftp_cur_block % (10 * HASHES_PER_LINE)) == 0) in show_block_marker()
277 if (tftp_cur_block == 0 && tftp_prev_block != 0) { in update_block_number()
359 s[1] = htons(tftp_cur_block); in tftp_send()
364 int loaded = load_block(tftp_cur_block, pkt, toload); in tftp_send()
450 int ack_ok = (tftp_cur_block == block); in tftp_handler()
452 tftp_cur_block = (unsigned short)(block + 1); in tftp_handler()
506 tftp_cur_block++; in tftp_handler()
515 tftp_cur_block = ntohs(*(__be16 *)pkt); in tftp_handler()
529 if (tftp_cur_block != 1) { /* Assertion */ in tftp_handler()
532 tftp_cur_block); in tftp_handler()
539 if (tftp_cur_block == tftp_prev_block) { in tftp_handler()
544 tftp_prev_block = tftp_cur_block; in tftp_handler()
548 if (store_block(tftp_cur_block - 1, pkt + 2, len)) { in tftp_handler()
752 tftp_cur_block = 0; in tftp_start()
790 tftp_cur_block = 0; in tftp_start_server()