Lines Matching refs:requests
122 if (client->requests[i].request_ongoing == true) { in has_ongoing_request()
133 if (client->requests[i].request_ongoing == true || in has_ongoing_exchange()
134 !exchange_lifetime_exceeded(&client->requests[i])) { in has_ongoing_exchange()
145 if (timeout_expired(&client->requests[i])) { in has_timeout_expired()
155 if (client->requests[i].request_ongoing == false && in get_free_request()
156 exchange_lifetime_exceeded(&client->requests[i])) { in get_free_request()
157 return &client->requests[i]; in get_free_request()
535 if (timeout_expired(&client->requests[i])) { in coap_client_resend_handler()
536 if (!client->requests[i].coap_request.confirmable) { in coap_client_resend_handler()
537 release_internal_request(&client->requests[i]); in coap_client_resend_handler()
541 ret = resend_request(client, &client->requests[i]); in coap_client_resend_handler()
543 report_callback_error(&client->requests[i], ret); in coap_client_resend_handler()
544 release_internal_request(&client->requests[i]); in coap_client_resend_handler()
732 if (client->requests[i].request_ongoing || in get_request_with_token()
733 !exchange_lifetime_exceeded(&client->requests[i])) { in get_request_with_token()
734 if (client->requests[i].request_tkl == 0) { in get_request_with_token()
737 if (client->requests[i].request_tkl != response_tkl) { in get_request_with_token()
740 if (memcmp(&client->requests[i].request_token, &response_token, in get_request_with_token()
742 return &client->requests[i]; in get_request_with_token()
754 if (client->requests[i].request_ongoing) { in get_request_with_mid()
755 if (client->requests[i].last_id == (int)mid) { in get_request_with_mid()
756 return &client->requests[i]; in get_request_with_mid()
1007 for (int i = 0; i < ARRAY_SIZE(client->requests); i++) { in cancel_requests_with()
1008 if (client->requests[i].request_ongoing == true) { in cancel_requests_with()
1015 report_callback_error(&client->requests[i], error); in cancel_requests_with()
1016 release_internal_request(&client->requests[i]); in cancel_requests_with()
1022 reset_internal_request(&client->requests[i]); in cancel_requests_with()
1060 if (client->requests[i].request_ongoing && in coap_client_cancel_request()
1061 requests_match(&client->requests[i].coap_request, req)) { in coap_client_cancel_request()
1063 report_callback_error(&client->requests[i], -ECANCELED); in coap_client_cancel_request()
1064 release_internal_request(&client->requests[i]); in coap_client_cancel_request()