Lines Matching refs:event

127   tftp_event_t    event;  member
148 static CURLcode tftp_rx(struct tftp_state_data *state, tftp_event_t event);
149 static CURLcode tftp_tx(struct tftp_state_data *state, tftp_event_t event);
395 tftp_event_t event) in tftp_connect_for_tx() argument
407 return tftp_tx(state, event); in tftp_connect_for_tx()
411 tftp_event_t event) in tftp_connect_for_rx() argument
423 return tftp_rx(state, event); in tftp_connect_for_rx()
427 tftp_event_t event) in tftp_send_first() argument
440 switch(event) { 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()
577 tftp_event_t event) in tftp_rx() argument
584 switch(event) { in tftp_rx()
699 static CURLcode tftp_tx(struct tftp_state_data *state, tftp_event_t event) in tftp_tx() argument
710 switch(event) { in tftp_tx()
714 if(event == TFTP_EVENT_ACK) { in tftp_tx()
835 failf(data, "tftp_tx: internal error, event: %i", (int)(event)); in tftp_tx()
902 tftp_event_t event) in tftp_state_machine() argument
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()
1119 state->event = TFTP_EVENT_TIMEOUT; in tftp_receive_packet()
1123 unsigned short event = getrpacketevent(&state->rpacket); in tftp_receive_packet() local
1124 state->event = (tftp_event_t)event; in tftp_receive_packet()
1126 switch(state->event) { in tftp_receive_packet()
1183 tftp_event_t *event) in tftp_state_timeout() argument
1190 if(event) in tftp_state_timeout()
1191 *event = TFTP_EVENT_NONE; in tftp_state_timeout()
1202 if(event) in tftp_state_timeout()
1203 *event = TFTP_EVENT_TIMEOUT; in tftp_state_timeout()
1219 tftp_event_t event; in tftp_multi_statemach() local
1223 timediff_t timeout_ms = tftp_state_timeout(data, &event); in tftp_multi_statemach()
1231 if(event != TFTP_EVENT_NONE) { in tftp_multi_statemach()
1232 result = tftp_state_machine(state, event); in tftp_multi_statemach()
1249 state->event = TFTP_EVENT_ERROR; in tftp_multi_statemach()
1255 result = tftp_state_machine(state, state->event); in tftp_multi_statemach()