Lines Matching refs:nr_keys

426 	unsigned int nr_keys;  member
483 static int init_default_key_collection(unsigned int nr_keys, bool randomized) in init_default_key_collection() argument
487 if (!nr_keys) { in init_default_key_collection()
498 if (nr_keys > 127) in init_default_key_collection()
501 collection.keys = reallocarray(collection.keys, nr_keys, key_sz); in init_default_key_collection()
505 memset(collection.keys, 0, nr_keys * key_sz); in init_default_key_collection()
506 collection.nr_keys = nr_keys; in init_default_key_collection()
507 while (nr_keys--) in init_default_key_collection()
508 init_key_in_collection(nr_keys, randomized); in init_default_key_collection()
592 for (i = 0; i < collection.nr_keys; i++) { in key_collection_socket()
622 server ? "server" : "client", i, collection.nr_keys, in key_collection_socket()
638 for (i = 0; i < collection.nr_keys; i++) { in verify_counters()
687 keys = calloc(collection.nr_keys, len); in verify_keys()
691 keys->nkeys = collection.nr_keys; in verify_keys()
699 for (i = 0; i < collection.nr_keys; i++) { in verify_keys()
873 if (i >= collection.nr_keys) in server_rotations()
888 unsigned int nr_keys, int current_index, int rnext_index, in run_client() argument
914 current_index = nr_keys - 1; in run_client()
916 rnext_index = nr_keys - 1; in run_client()
933 unsigned int nr_keys, int current_index, int rnext_index, in start_client() argument
937 if (init_default_key_collection(nr_keys, true)) in start_client()
940 return run_client(tst_name, port, nr_keys, current_index, in start_client()
944 static void end_client(const char *tst_name, int sk, unsigned int nr_keys, in end_client() argument
952 current_index = nr_keys - 1; in end_client()
954 rnext_index = nr_keys - 1; in end_client()
978 } while (++i < collection.nr_keys); in try_unmatched_keys()
1007 for (i = 0; i < collection.nr_keys; i++) { in try_unmatched_keys()
1025 unsigned int nr_keys, in client_non_matching() argument
1031 if (init_default_key_collection(nr_keys, true)) in client_non_matching()
1034 for (i = 0; i < nr_keys; i++) { in client_non_matching()
1042 return run_client(tst_name, port, nr_keys, current_index, in client_non_matching()
1047 unsigned int nr_keys, in check_current_back() argument
1054 sk = start_client(tst_name, port, nr_keys, current_index, rnext_index, in check_current_back()
1077 end_client(tst_name, sk, nr_keys, current_index, rnext_index, &tmp); in check_current_back()
1081 unsigned int nr_keys, unsigned int rotations, in roll_over_keys() argument
1088 sk = start_client(tst_name, port, nr_keys, current_index, rnext_index, in roll_over_keys()
1093 if (i >= collection.nr_keys) in roll_over_keys()
1113 end_client(tst_name, sk, nr_keys, current_index, rnext_index, &tmp); in roll_over_keys()
1117 unsigned int nr_keys, int current_index, int rnext_index) in try_client_run() argument
1122 sk = start_client(tst_name, port, nr_keys, current_index, rnext_index, in try_client_run()
1126 end_client(tst_name, sk, nr_keys, current_index, rnext_index, &tmp); in try_client_run()
1130 unsigned int nr_keys, in try_client_match() argument
1135 sk = client_non_matching(tst_name, port, nr_keys, current_index, in try_client_match()
1140 end_client(tst_name, sk, nr_keys, current_index, rnext_index, NULL); in try_client_match()