Lines Matching refs:ckf
637 const struct vcap_client_keyfield *ckf; in vcap_encode_rule_keyset() local
673 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) { in vcap_encode_rule_keyset()
675 if (ckf->ctrl.key >= keyset_size) { in vcap_encode_rule_keyset()
677 __func__, __LINE__, ckf->ctrl.key); in vcap_encode_rule_keyset()
680 vcap_copy_from_client_keyfield(&ri->data, &tempkf, ckf); in vcap_encode_rule_keyset()
681 vcap_encode_keyfield(ri, &tempkf, &kf_table[ckf->ctrl.key], in vcap_encode_rule_keyset()
1003 struct vcap_client_keyfield *ckf, *newckf; in vcap_dup_rule() local
1021 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) { in vcap_dup_rule()
1022 newckf = kmemdup(ckf, sizeof(*newckf), GFP_KERNEL); in vcap_dup_rule()
1038 list_for_each_entry_safe(ckf, newckf, &duprule->data.keyfields, ctrl.list) { in vcap_dup_rule()
1039 list_del(&ckf->ctrl.list); in vcap_dup_rule()
1040 kfree(ckf); in vcap_dup_rule()
1870 const struct vcap_client_keyfield *ckf; in _vcap_rule_find_keysets() local
1881 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) in _vcap_rule_find_keysets()
1892 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) in _vcap_rule_find_keysets()
1894 keyset, ckf->ctrl.key)) in _vcap_rule_find_keysets()
1949 const struct vcap_client_actionfield *ckf; in vcap_rule_find_actionsets() local
1959 list_for_each_entry(ckf, &ri->data.actionfields, ctrl.list) in vcap_rule_find_actionsets()
1970 list_for_each_entry(ckf, &ri->data.actionfields, ctrl.list) in vcap_rule_find_actionsets()
1973 ckf->ctrl.action)) in vcap_rule_find_actionsets()
2389 struct vcap_client_keyfield *ckf, *next_ckf; in vcap_free_rule() local
2392 list_for_each_entry_safe(ckf, next_ckf, &ri->data.keyfields, ctrl.list) { in vcap_free_rule()
2393 list_del(&ckf->ctrl.list); in vcap_free_rule()
2394 kfree(ckf); in vcap_free_rule()
2612 struct vcap_client_keyfield *ckf; in vcap_find_keyfield() local
2614 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) in vcap_find_keyfield()
2615 if (ckf->ctrl.key == key) in vcap_find_keyfield()
2616 return ckf; in vcap_find_keyfield()
2643 const struct vcap_client_keyfield *ckf; in vcap_keyfield_unique() local
2645 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) in vcap_keyfield_unique()
2646 if (ckf->ctrl.key == key) in vcap_keyfield_unique()
2779 struct vcap_client_keyfield *ckf; in vcap_rule_get_key_u32() local
2781 ckf = vcap_find_keyfield(rule, key); in vcap_rule_get_key_u32()
2782 if (!ckf) in vcap_rule_get_key_u32()
2785 *value = ckf->data.u32.value; in vcap_rule_get_key_u32()
2786 *mask = ckf->data.u32.mask; in vcap_rule_get_key_u32()
3305 struct vcap_client_keyfield *ckf) in vcap_rule_get_key() argument
3312 memcpy(ckf, field, sizeof(*ckf)); in vcap_rule_get_key()
3313 INIT_LIST_HEAD(&ckf->ctrl.list); in vcap_rule_get_key()
3502 struct vcap_client_keyfield *ckf, *next_ckf; in vcap_filter_rule_keys() local
3510 list_for_each_entry_safe(ckf, next_ckf, in vcap_filter_rule_keys()
3512 key = ckf->ctrl.key; in vcap_filter_rule_keys()
3515 list_del(&ckf->ctrl.list); in vcap_filter_rule_keys()
3516 kfree(ckf); in vcap_filter_rule_keys()
3528 list_for_each_entry_safe(ckf, next_ckf, in vcap_filter_rule_keys()
3530 key = ckf->ctrl.key; in vcap_filter_rule_keys()
3532 list_del(&ckf->ctrl.list); in vcap_filter_rule_keys()
3533 kfree(ckf); in vcap_filter_rule_keys()
3570 struct vcap_client_keyfield *ckf; in vcap_copy_rule() local
3583 list_for_each_entry(ckf, &ri->data.keyfields, ctrl.list) { in vcap_copy_rule()
3586 ckf->ctrl.key, in vcap_copy_rule()
3587 ckf->ctrl.type, in vcap_copy_rule()
3588 &ckf->data); in vcap_copy_rule()