Lines Matching refs:tftp_cur_block
76 static ulong tftp_cur_block; variable
251 ulong pos = tftp_cur_block * tftp_block_size + in show_block_marker()
263 if (((tftp_cur_block - 1) % 10) == 0) in show_block_marker()
265 else if ((tftp_cur_block % (10 * HASHES_PER_LINE)) == 0) in show_block_marker()
297 if (tftp_cur_block == 0 && tftp_prev_block != 0) { in update_block_number()
394 tftp_cur_block = ext2_find_next_zero_bit( in tftp_send()
405 s[1] = htons(tftp_cur_block); in tftp_send()
410 int loaded = load_block(tftp_cur_block, pkt, toload); in tftp_send()
500 int ack_ok = (tftp_cur_block == block); in tftp_handler()
502 tftp_cur_block = (unsigned short)(block + 1); in tftp_handler()
562 tftp_cur_block++; in tftp_handler()
571 tftp_cur_block = ntohs(*(__be16 *)pkt); in tftp_handler()
587 tftp_prev_block = tftp_cur_block - 1; in tftp_handler()
590 if (tftp_cur_block != 1) { /* Assertion */ in tftp_handler()
593 tftp_cur_block); in tftp_handler()
600 if (tftp_cur_block == tftp_prev_block) { in tftp_handler()
605 tftp_prev_block = tftp_cur_block; in tftp_handler()
609 store_block(tftp_cur_block - 1, pkt + 2, len); in tftp_handler()
621 tftp_mcast_ending_block = tftp_cur_block; in tftp_handler()
627 tftp_cur_block = tftp_mcast_prev_hole; in tftp_handler()
628 if (tftp_cur_block > in tftp_handler()
637 tftp_prev_block = tftp_cur_block; in tftp_handler()
646 (tftp_cur_block >= tftp_mcast_ending_block)) { in tftp_handler()
834 tftp_cur_block = 0; in tftp_start()
869 tftp_cur_block = 0; in tftp_start_server()