Lines Matching refs:opcode
101 tp.opcode = htons(TFTP_RRQ); in tftp_file_read()
104 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) + in tftp_file_read()
142 if (tr->opcode == ntohs(TFTP_ERROR)) in tftp_file_read()
150 if (tr->opcode == ntohs(TFTP_OACK)) { in tftp_file_read()
172 tp.opcode = htons(TFTP_ERROR); in tftp_file_read()
178 len = sizeof(tp.ip) + sizeof(tp.udp) + sizeof(tp.opcode) + sizeof(tp.u.err.errcode) + in tftp_file_read()
198 else if (tr->opcode == htons(TFTP_DATA)) { in tftp_file_read()
211 tp.opcode = htons(TFTP_ACK); in tftp_file_read()
291 if (tr->opcode == ntohs (TFTP_ERROR)) in buf_fill()
299 if (tr->opcode == ntohs (TFTP_OACK)) in buf_fill()
349 tp.opcode = htons (TFTP_ERROR); in buf_fill()
354 + sizeof (tp.opcode) + sizeof (tp.u.err.errcode) in buf_fill()
376 else if (tr->opcode == ntohs (TFTP_DATA)) in buf_fill()
403 tp.opcode = abort ? htons (TFTP_ERROR) : htons (TFTP_ACK); in buf_fill()
522 grub_printf ("opcode = 0x%x, rrq = ", (unsigned long) tp.opcode); in tftp_read()
616 tp.opcode = htons (TFTP_RRQ); in tftp_dir()
623 + sizeof (tp.ip) + sizeof (tp.udp) + sizeof (tp.opcode) + 1); in tftp_dir()