Lines Matching refs:query_idx
88 int query_idx,
741 int *query_idx, in dns_validate_msg() argument
837 if (*query_idx >= 0) { in dns_validate_msg()
854 *query_idx = get_slot_by_id(ctx, *dns_id, *query_hash); in dns_validate_msg()
855 if (*query_idx < 0) { in dns_validate_msg()
861 if (ctx->queries[*query_idx].query_type == in dns_validate_msg()
875 } else if (ctx->queries[*query_idx].query_type == in dns_validate_msg()
920 &ctx->queries[*query_idx]); in dns_validate_msg()
923 ctx->queries[*query_idx].query, &info, ttl); in dns_validate_msg()
948 if (*query_idx < 0) { in dns_validate_msg()
956 *query_idx = get_slot_by_id(ctx, *dns_id, *query_hash); in dns_validate_msg()
957 if (*query_idx < 0) { in dns_validate_msg()
1011 int query_idx = -1; in dns_read() local
1018 ret = dns_validate_msg(ctx, &dns_msg, dns_id, &query_idx, in dns_read()
1024 if ((ret < 0 && ret != DNS_EAI_ALLDONE) || query_idx < 0 || in dns_read()
1025 query_idx > CONFIG_DNS_NUM_CONCUR_QUERIES) { in dns_read()
1029 invoke_query_callback(ret, NULL, &ctx->queries[query_idx]); in dns_read()
1032 release_query(&ctx->queries[query_idx]); in dns_read()
1038 ctx->queries[query_idx].query, in dns_read()
1039 ctx->queries[query_idx].query_type); in dns_read()
1052 int query_idx, in dns_write() argument
1067 dns_id = ctx->queries[query_idx].id; in dns_write()
1068 query_type = ctx->queries[query_idx].query_type; in dns_write()
1091 ctx->queries[query_idx].query_hash = in dns_write()
1143 ret = k_work_reschedule(&ctx->queries[query_idx].timer, in dns_write()
1144 ctx->queries[query_idx].timeout); in dns_write()
1147 "ret %d", query_idx, server_idx, dns_id, ret); in dns_write()
1152 "hash %u", query_idx, server_idx, dns_id, in dns_write()
1153 ctx->queries[query_idx].query_hash); in dns_write()