Lines Matching refs:result
397 CURLcode result; in tftp_connect_for_tx() local
404 result = tftp_set_timeouts(state); in tftp_connect_for_tx()
405 if(result) in tftp_connect_for_tx()
406 return result; in tftp_connect_for_tx()
413 CURLcode result; in tftp_connect_for_rx() local
420 result = tftp_set_timeouts(state); in tftp_connect_for_rx()
421 if(result) in tftp_connect_for_rx()
422 return result; in tftp_connect_for_rx()
434 CURLcode result = CURLE_OK; in tftp_send_first() local
449 return result; in tftp_send_first()
465 result = Curl_urldecode(&state->data->state.up.path[1], 0, in tftp_send_first()
467 if(result) in tftp_send_first()
468 return result; in tftp_send_first()
489 result = tftp_option_add(state, &sbytes, in tftp_send_first()
492 if(result == CURLE_OK) in tftp_send_first()
493 result = tftp_option_add(state, &sbytes, in tftp_send_first()
498 if(result == CURLE_OK) in tftp_send_first()
499 result = tftp_option_add(state, &sbytes, in tftp_send_first()
502 if(result == CURLE_OK) in tftp_send_first()
503 result = tftp_option_add(state, &sbytes, in tftp_send_first()
508 if(result == CURLE_OK) in tftp_send_first()
509 result = tftp_option_add(state, &sbytes, in tftp_send_first()
512 if(result == CURLE_OK) in tftp_send_first()
513 result = tftp_option_add(state, &sbytes, in tftp_send_first()
516 if(result != CURLE_OK) { in tftp_send_first()
538 result = tftp_connect_for_tx(state, event); in tftp_send_first()
541 result = tftp_connect_for_rx(state, event); in tftp_send_first()
546 result = tftp_connect_for_tx(state, event); in tftp_send_first()
550 result = tftp_connect_for_rx(state, event); in tftp_send_first()
562 return result; in tftp_send_first()
703 CURLcode result = CURLE_OK; in tftp_tx() local
733 result = CURLE_SEND_ERROR; in tftp_tx()
745 result = CURLE_SEND_ERROR; in tftp_tx()
749 return result; in tftp_tx()
774 result = Curl_client_read(data, bufptr, state->blksize - state->sbytes, in tftp_tx()
776 if(result) in tftp_tx()
777 return result; in tftp_tx()
839 return result; in tftp_tx()
851 CURLcode result = CURLE_OK; in tftp_translate_code() local
856 result = CURLE_TFTP_NOTFOUND; in tftp_translate_code()
859 result = CURLE_TFTP_PERM; in tftp_translate_code()
862 result = CURLE_REMOTE_DISK_FULL; in tftp_translate_code()
866 result = CURLE_TFTP_ILLEGAL; in tftp_translate_code()
869 result = CURLE_TFTP_UNKNOWNID; in tftp_translate_code()
872 result = CURLE_REMOTE_FILE_EXISTS; in tftp_translate_code()
875 result = CURLE_TFTP_NOSUCHUSER; in tftp_translate_code()
878 result = CURLE_OPERATION_TIMEDOUT; in tftp_translate_code()
881 result = CURLE_COULDNT_CONNECT; in tftp_translate_code()
884 result = CURLE_ABORTED_BY_CALLBACK; in tftp_translate_code()
889 result = CURLE_OK; in tftp_translate_code()
891 return result; in tftp_translate_code()
904 CURLcode result = CURLE_OK; in tftp_state_machine() local
910 result = tftp_send_first(state, event); in tftp_state_machine()
914 result = tftp_rx(state, event); in tftp_state_machine()
918 result = tftp_tx(state, event); in tftp_state_machine()
926 result = CURLE_TFTP_ILLEGAL; in tftp_state_machine()
930 return result; in tftp_state_machine()
1059 CURLcode result = CURLE_OK; in tftp_done() local
1071 result = tftp_translate_code(state->error); in tftp_done()
1073 return result; in tftp_done()
1101 CURLcode result = CURLE_OK; in tftp_receive_packet() local
1131 result = Curl_client_write(data, CLIENTWRITE_BODY, in tftp_receive_packet()
1134 if(result) { in tftp_receive_packet()
1136 return result; in tftp_receive_packet()
1153 result = tftp_parse_option_ack(state, in tftp_receive_packet()
1156 if(result) in tftp_receive_packet()
1157 return result; in tftp_receive_packet()
1172 return result; in tftp_receive_packet()
1220 CURLcode result = CURLE_OK; in tftp_multi_statemach() local
1232 result = tftp_state_machine(state, event); in tftp_multi_statemach()
1233 if(result) in tftp_multi_statemach()
1234 return result; in tftp_multi_statemach()
1252 result = tftp_receive_packet(data); in tftp_multi_statemach()
1253 if(result) in tftp_multi_statemach()
1254 return result; in tftp_multi_statemach()
1255 result = tftp_state_machine(state, state->event); in tftp_multi_statemach()
1256 if(result) in tftp_multi_statemach()
1257 return result; in tftp_multi_statemach()
1266 return result; in tftp_multi_statemach()
1278 CURLcode result; in tftp_doing() local
1279 result = tftp_multi_statemach(data, dophase_done); in tftp_doing()
1284 else if(!result) { in tftp_doing()
1289 result = CURLE_ABORTED_BY_CALLBACK; in tftp_doing()
1291 result = Curl_speedcheck(data, Curl_now()); in tftp_doing()
1293 return result; in tftp_doing()
1305 CURLcode result = CURLE_OK; in tftp_perform() local
1311 result = tftp_state_machine(state, TFTP_EVENT_INIT); in tftp_perform()
1313 if((state->state == TFTP_STATE_FIN) || result) in tftp_perform()
1314 return result; in tftp_perform()
1321 return result; in tftp_perform()
1338 CURLcode result; in tftp_do() local
1344 result = tftp_connect(data, done); in tftp_do()
1345 if(result) in tftp_do()
1346 return result; in tftp_do()
1353 result = tftp_perform(data, done); in tftp_do()
1357 if(!result) in tftp_do()
1359 result = tftp_translate_code(state->error); in tftp_do()
1361 return result; in tftp_do()