Lines Matching refs:ckf
596 struct vcap_client_keyfield ckf = { in vcap_api_encode_keyfield_test() local
615 vcap_encode_keyfield(&rule, &ckf, &rf, tgt); in vcap_api_encode_keyfield_test()
657 struct vcap_client_keyfield ckf = { in vcap_api_encode_max_keyfield_test() local
693 vcap_encode_keyfield(&rule, &ckf, &rf, tgt); in vcap_api_encode_max_keyfield_test()
841 struct vcap_client_keyfield ckf[] = { in vcap_api_encode_rule_keyset_test() local
900 for (idx = 0; idx < ARRAY_SIZE(ckf); idx++) in vcap_api_encode_rule_keyset_test()
901 list_add_tail(&ckf[idx].ctrl.list, &rule.data.keyfields); in vcap_api_encode_rule_keyset_test()
999 struct vcap_client_keyfield *ckf, *next_ckf; in vcap_free_ckf() local
1001 list_for_each_entry_safe(ckf, next_ckf, &rule->keyfields, ctrl.list) { in vcap_free_ckf()
1002 list_del(&ckf->ctrl.list); in vcap_free_ckf()
1003 kfree(ckf); in vcap_free_ckf()
1194 struct vcap_client_keyfield ckf[] = { in vcap_api_rule_find_keyset_basic_test() local
1221 for (idx = 0; idx < ARRAY_SIZE(ckf); idx++) in vcap_api_rule_find_keyset_basic_test()
1222 list_add_tail(&ckf[idx].ctrl.list, &ri.data.keyfields); in vcap_api_rule_find_keyset_basic_test()
1241 struct vcap_client_keyfield ckf[] = { in vcap_api_rule_find_keyset_failed_test() local
1268 for (idx = 0; idx < ARRAY_SIZE(ckf); idx++) in vcap_api_rule_find_keyset_failed_test()
1269 list_add_tail(&ckf[idx].ctrl.list, &ri.data.keyfields); in vcap_api_rule_find_keyset_failed_test()
1288 struct vcap_client_keyfield ckf[] = { in vcap_api_rule_find_keyset_many_test() local
1315 for (idx = 0; idx < ARRAY_SIZE(ckf); idx++) in vcap_api_rule_find_keyset_many_test()
1316 list_add_tail(&ckf[idx].ctrl.list, &ri.data.keyfields); in vcap_api_rule_find_keyset_many_test()
2030 struct vcap_client_keyfield *ckf, *next; in vcap_api_filter_unsupported_keys_test() local
2037 ckf = kzalloc(sizeof(*ckf), GFP_KERNEL); in vcap_api_filter_unsupported_keys_test()
2038 if (ckf) { in vcap_api_filter_unsupported_keys_test()
2039 ckf->ctrl.key = keylist[idx]; in vcap_api_filter_unsupported_keys_test()
2040 list_add_tail(&ckf->ctrl.list, &ri.data.keyfields); in vcap_api_filter_unsupported_keys_test()
2053 list_for_each_entry_safe(ckf, next, &ri.data.keyfields, ctrl.list) { in vcap_api_filter_unsupported_keys_test()
2054 KUNIT_EXPECT_EQ(test, expected[idx], ckf->ctrl.key); in vcap_api_filter_unsupported_keys_test()
2055 list_del(&ckf->ctrl.list); in vcap_api_filter_unsupported_keys_test()
2056 kfree(ckf); in vcap_api_filter_unsupported_keys_test()
2154 struct vcap_client_keyfield *ckf, *next; in vcap_api_filter_keylist_test() local
2161 ckf = kzalloc(sizeof(*ckf), GFP_KERNEL); in vcap_api_filter_keylist_test()
2162 if (ckf) { in vcap_api_filter_keylist_test()
2163 ckf->ctrl.key = keylist[idx]; in vcap_api_filter_keylist_test()
2164 list_add_tail(&ckf->ctrl.list, &ri.data.keyfields); in vcap_api_filter_keylist_test()
2178 list_for_each_entry_safe(ckf, next, &ri.data.keyfields, ctrl.list) { in vcap_api_filter_keylist_test()
2179 KUNIT_EXPECT_EQ(test, expected[idx], ckf->ctrl.key); in vcap_api_filter_keylist_test()
2180 list_del(&ckf->ctrl.list); in vcap_api_filter_keylist_test()
2181 kfree(ckf); in vcap_api_filter_keylist_test()