Lines Matching refs:last_data
82 struct pbuf *last_data;
103 if (tftp_state.last_data != NULL) {
104 pbuf_free(tftp_state.last_data);
105 tftp_state.last_data = NULL;
159 struct pbuf *p = pbuf_alloc(PBUF_TRANSPORT, tftp_state.last_data->len, PBUF_RAM);
164 if (pbuf_copy(p, tftp_state.last_data) != ERR_OK) {
179 if (tftp_state.last_data != NULL) {
180 pbuf_free(tftp_state.last_data);
183 tftp_state.last_data = pbuf_alloc(PBUF_TRANSPORT, TFTP_HEADER_LENGTH + TFTP_MAX_PAYLOAD_SIZE, PBUF_RAM);
184 if (tftp_state.last_data == NULL) {
188 payload = (u16_t *) tftp_state.last_data->payload;
199 pbuf_realloc(tftp_state.last_data, (u16_t)(TFTP_HEADER_LENGTH + ret));
344 if (tftp_state.last_data != NULL) {
345 lastpkt = tftp_state.last_data->tot_len != (TFTP_MAX_PAYLOAD_SIZE + TFTP_HEADER_LENGTH);
380 if ((tftp_state.last_data != NULL) && (tftp_state.retries < TFTP_MAX_RETRIES)) {
416 tftp_state.last_data = NULL;