Lines Matching refs:idx

41 	int idx;  in test_val_keyset()  local
46 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset()
47 if (kslist->keysets[idx] == VCAP_KFS_ETAG) in test_val_keyset()
48 return kslist->keysets[idx]; in test_val_keyset()
49 if (kslist->keysets[idx] == in test_val_keyset()
51 return kslist->keysets[idx]; in test_val_keyset()
52 if (kslist->keysets[idx] == in test_val_keyset()
54 return kslist->keysets[idx]; in test_val_keyset()
55 if (kslist->keysets[idx] == in test_val_keyset()
57 return kslist->keysets[idx]; in test_val_keyset()
61 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset()
62 if (kslist->keysets[idx] == VCAP_KFS_MAC_ETYPE) in test_val_keyset()
63 return kslist->keysets[idx]; in test_val_keyset()
64 if (kslist->keysets[idx] == VCAP_KFS_ARP) in test_val_keyset()
65 return kslist->keysets[idx]; in test_val_keyset()
66 if (kslist->keysets[idx] == VCAP_KFS_IP_7TUPLE) in test_val_keyset()
67 return kslist->keysets[idx]; in test_val_keyset()
116 int idx; in test_cache_read() local
123 for (idx = 0; idx < count; ++idx) { in test_cache_read()
125 __LINE__, start + idx, keystr[idx]); in test_cache_read()
127 for (idx = 0; idx < count; ++idx) { in test_cache_read()
129 mskstr[idx] = ~mskstr[idx]; in test_cache_read()
131 __LINE__, start + idx, mskstr[idx]); in test_cache_read()
136 for (idx = 0; idx < count; ++idx) { in test_cache_read()
138 __LINE__, start + idx, actstr[idx]); in test_cache_read()
158 int idx; in test_cache_write() local
164 for (idx = 0; idx < count; ++idx) { in test_cache_write()
166 __LINE__, start + idx, keystr[idx]); in test_cache_write()
168 for (idx = 0; idx < count; ++idx) { in test_cache_write()
170 mskstr[idx] = ~mskstr[idx]; in test_cache_write()
172 __LINE__, start + idx, mskstr[idx]); in test_cache_write()
177 for (idx = 0; idx < count; ++idx) { in test_cache_write()
179 __LINE__, start + idx, actstr[idx]); in test_cache_write()
263 int idx, cnt; in test_prf() local
275 for (idx = 0; idx < cnt; ++idx) { in test_prf()
277 test_buffer[idx]; in test_prf()
278 if (test_buffer[idx] == '\n') { in test_prf()
315 int ret, idx, addr; in vcap_api_addr_keyset_test() local
323 for (idx = ARRAY_SIZE(keydata) - 1, addr = 799; idx > 0; in vcap_api_addr_keyset_test()
324 --idx, --addr) { in vcap_api_addr_keyset_test()
325 admin.cache.keystream = &keydata[idx]; in vcap_api_addr_keyset_test()
326 admin.cache.maskstream = &mskdata[idx]; in vcap_api_addr_keyset_test()
333 admin.cache.keystream = &keydata[idx]; in vcap_api_addr_keyset_test()
334 admin.cache.maskstream = &mskdata[idx]; in vcap_api_addr_keyset_test()
416 int idx; in vcap_api_show_admin_test() local
421 for (idx = 0; idx < test_pr_bufferidx; ++idx) { in vcap_api_show_admin_test()
423 KUNIT_EXPECT_STREQ(test, test_admin_info_expect[idx], in vcap_api_show_admin_test()
424 test_pr_buffer[idx]); in vcap_api_show_admin_test()
527 int ret, idx; in vcap_api_show_admin_rule_test() local
534 for (idx = 0; idx < test_pr_bufferidx; ++idx) { in vcap_api_show_admin_rule_test()
536 KUNIT_EXPECT_STREQ(test, test_admin_expect[idx], in vcap_api_show_admin_rule_test()
537 test_pr_buffer[idx]); in vcap_api_show_admin_rule_test()