Lines Matching refs:kf
447 const struct vcap_client_keyfield *kf, in vcap_encode_keyfield() argument
459 switch (kf->ctrl.type) { in vcap_encode_keyfield()
461 value = &kf->data.u1.value; in vcap_encode_keyfield()
462 mask = &kf->data.u1.mask; in vcap_encode_keyfield()
465 value = (const u8 *)&kf->data.u32.value; in vcap_encode_keyfield()
466 mask = (const u8 *)&kf->data.u32.mask; in vcap_encode_keyfield()
469 value = kf->data.u48.value; in vcap_encode_keyfield()
470 mask = kf->data.u48.mask; in vcap_encode_keyfield()
473 value = kf->data.u56.value; in vcap_encode_keyfield()
474 mask = kf->data.u56.mask; in vcap_encode_keyfield()
477 value = kf->data.u64.value; in vcap_encode_keyfield()
478 mask = kf->data.u64.mask; in vcap_encode_keyfield()
481 value = kf->data.u72.value; in vcap_encode_keyfield()
482 mask = kf->data.u72.mask; in vcap_encode_keyfield()
485 value = kf->data.u112.value; in vcap_encode_keyfield()
486 mask = kf->data.u112.mask; in vcap_encode_keyfield()
489 value = kf->data.u128.value; in vcap_encode_keyfield()
490 mask = kf->data.u128.mask; in vcap_encode_keyfield()
2968 struct vcap_client_keyfield *kf, *nkf; in vcap_enable_rule() local
2980 list_for_each_entry_safe(kf, nkf, &ri->data.keyfields, ctrl.list) { in vcap_enable_rule()
2981 list_del(&kf->ctrl.list); in vcap_enable_rule()
2982 kfree(kf); in vcap_enable_rule()
3334 struct vcap_client_keyfield kf = {}; in vcap_rule_get_keysets() local
3338 err = vcap_rule_get_key(&ri->data, VCAP_KF_TYPE, &kf); in vcap_rule_get_keysets()
3342 if (kf.ctrl.type == VCAP_FIELD_BIT) { in vcap_rule_get_keysets()
3343 value = kf.data.u1.value; in vcap_rule_get_keysets()
3344 mask = kf.data.u1.mask; in vcap_rule_get_keysets()
3345 } else if (kf.ctrl.type == VCAP_FIELD_U32) { in vcap_rule_get_keysets()
3346 value = kf.data.u32.value; in vcap_rule_get_keysets()
3347 mask = kf.data.u32.mask; in vcap_rule_get_keysets()