Lines Matching refs:vt
219 enum vcap_type vt, in vcap_verify_keystream_keyset() argument
224 const struct vcap_info *vcap = &vctrl->vcaps[vt]; in vcap_verify_keystream_keyset()
233 if (vcap_keyfield_count(vctrl, vt, keyset) == 0) in vcap_verify_keystream_keyset()
236 info = vcap_keyfieldset(vctrl, vt, keyset); in vcap_verify_keystream_keyset()
246 tgt = vcap_keyfield_typegroup(vctrl, vt, keyset); in vcap_verify_keystream_keyset()
250 fields = vcap_keyfields(vctrl, vt, keyset); in vcap_verify_keystream_keyset()
309 enum vcap_type vt, u32 *stream, in vcap_find_keystream_typegroup_sw() argument
315 tgt = vctrl->vcaps[vt].keyfield_set_typegroups; in vcap_find_keystream_typegroup_sw()
317 for (sw_idx = vctrl->vcaps[vt].sw_count; sw_idx >= 0; sw_idx--) { in vcap_find_keystream_typegroup_sw()
321 res = vcap_verify_typegroups(stream, vctrl->vcaps[vt].sw_width, in vcap_find_keystream_typegroup_sw()
334 enum vcap_type vt, in vcap_find_keystream_keysets() argument
343 sw_count = vcap_find_keystream_typegroup_sw(vctrl, vt, keystream, mask, in vcap_find_keystream_keysets()
348 keyfield_set = vctrl->vcaps[vt].keyfield_set; in vcap_find_keystream_keysets()
349 for (idx = 0; idx < vctrl->vcaps[vt].keyfield_set_size; ++idx) { in vcap_find_keystream_keysets()
353 if (vcap_verify_keystream_keyset(vctrl, vt, keystream, in vcap_find_keystream_keysets()
372 enum vcap_type vt = admin->vtype; in vcap_addr_keysets() local
377 keyset_sw_regs = DIV_ROUND_UP(vctrl->vcaps[vt].sw_width, 32); in vcap_addr_keysets()
389 return vcap_find_keystream_keysets(vctrl, vt, admin->cache.keystream, in vcap_addr_keysets()
397 enum vcap_type vt, in vcap_keyfields() argument
401 if (keyset >= vctrl->vcaps[vt].keyfield_set_size) in vcap_keyfields()
403 return vctrl->vcaps[vt].keyfield_set_map[keyset]; in vcap_keyfields()
408 enum vcap_type vt, in vcap_keyfieldset() argument
414 if (keyset >= vctrl->vcaps[vt].keyfield_set_size) in vcap_keyfieldset()
416 kset = &vctrl->vcaps[vt].keyfield_set[keyset]; in vcap_keyfieldset()
417 if (kset->sw_per_item == 0 || kset->sw_per_item > vctrl->vcaps[vt].sw_count) in vcap_keyfieldset()
426 enum vcap_type vt, enum vcap_keyfield_set keyset) in vcap_keyfield_typegroup() argument
428 const struct vcap_set *kset = vcap_keyfieldset(vctrl, vt, keyset); in vcap_keyfield_typegroup()
433 return vctrl->vcaps[vt].keyfield_set_typegroups[kset->sw_per_item]; in vcap_keyfield_typegroup()
438 enum vcap_type vt, enum vcap_keyfield_set keyset) in vcap_keyfield_count() argument
441 if (keyset >= vctrl->vcaps[vt].keyfield_set_size) in vcap_keyfield_count()
443 return vctrl->vcaps[vt].keyfield_set_map_size[keyset]; in vcap_keyfield_count()
692 enum vcap_type vt, enum vcap_actionfield_set actionset) in vcap_actionfields() argument
695 if (actionset >= vctrl->vcaps[vt].actionfield_set_size) in vcap_actionfields()
697 return vctrl->vcaps[vt].actionfield_set_map[actionset]; in vcap_actionfields()
702 enum vcap_type vt, enum vcap_actionfield_set actionset) in vcap_actionfieldset() argument
707 if (actionset >= vctrl->vcaps[vt].actionfield_set_size) in vcap_actionfieldset()
709 aset = &vctrl->vcaps[vt].actionfield_set[actionset]; in vcap_actionfieldset()
710 if (aset->sw_per_item == 0 || aset->sw_per_item > vctrl->vcaps[vt].sw_count) in vcap_actionfieldset()
718 enum vcap_type vt, enum vcap_actionfield_set actionset) in vcap_actionfield_typegroup() argument
720 const struct vcap_set *aset = vcap_actionfieldset(vctrl, vt, actionset); in vcap_actionfield_typegroup()
725 return vctrl->vcaps[vt].actionfield_set_typegroups[aset->sw_per_item]; in vcap_actionfield_typegroup()
730 enum vcap_type vt, in vcap_actionfield_count() argument
734 if (actionset >= vctrl->vcaps[vt].actionfield_set_size) in vcap_actionfield_count()
736 return vctrl->vcaps[vt].actionfield_set_map_size[actionset]; in vcap_actionfield_count()
1327 enum vcap_type vt, in vcap_verify_actionstream_actionset() argument
1335 if (vcap_actionfield_count(vctrl, vt, actionset) == 0) in vcap_verify_actionstream_actionset()
1338 info = vcap_actionfieldset(vctrl, vt, actionset); in vcap_verify_actionstream_actionset()
1348 tgt = vcap_actionfield_typegroup(vctrl, vt, actionset); in vcap_verify_actionstream_actionset()
1352 fields = vcap_actionfields(vctrl, vt, actionset); in vcap_verify_actionstream_actionset()
1363 enum vcap_type vt, u32 *stream, in vcap_find_actionstream_typegroup_sw() argument
1369 tgt = vctrl->vcaps[vt].actionfield_set_typegroups; in vcap_find_actionstream_typegroup_sw()
1371 for (sw_idx = vctrl->vcaps[vt].sw_count; sw_idx >= 0; sw_idx--) { in vcap_find_actionstream_typegroup_sw()
1374 res = vcap_verify_typegroups(stream, vctrl->vcaps[vt].act_width, in vcap_find_actionstream_typegroup_sw()
1387 enum vcap_type vt, in vcap_find_actionstream_actionset() argument
1395 sw_count = vcap_find_actionstream_typegroup_sw(vctrl, vt, stream, in vcap_find_actionstream_actionset()
1400 actionfield_set = vctrl->vcaps[vt].actionfield_set; in vcap_find_actionstream_actionset()
1401 for (idx = 0; idx < vctrl->vcaps[vt].actionfield_set_size; ++idx) { in vcap_find_actionstream_actionset()
1405 res = vcap_verify_actionstream_actionset(vctrl, vt, in vcap_find_actionstream_actionset()
1437 enum vcap_type vt = admin->vtype; in vcap_decode_actionset() local
1445 res = vcap_find_actionstream_actionset(vctrl, vt, actstream, 0); in vcap_decode_actionset()
1452 actfield_count = vcap_actionfield_count(vctrl, vt, actionset); in vcap_decode_actionset()
1453 actionfield = vcap_actionfields(vctrl, vt, actionset); in vcap_decode_actionset()
1454 tgt = vcap_actionfield_typegroup(vctrl, vt, actionset); in vcap_decode_actionset()
1461 vcap_iter_init(&iter, vctrl->vcaps[vt].act_width, tgt, in vcap_decode_actionset()
1481 enum vcap_type vt = admin->vtype; in vcap_decode_keyset() local
1496 res = vcap_find_keystream_keysets(vctrl, vt, keystream, maskstream, in vcap_decode_keyset()
1504 keyfield_count = vcap_keyfield_count(vctrl, vt, keyset); in vcap_decode_keyset()
1505 keyfield = vcap_keyfields(vctrl, vt, keyset); in vcap_decode_keyset()
1506 tgt = vcap_keyfield_typegroup(vctrl, vt, keyset); in vcap_decode_keyset()
1513 vcap_iter_init(&miter, vctrl->vcaps[vt].sw_width, tgt, in vcap_decode_keyset()
1522 vcap_iter_init(&kiter, vctrl->vcaps[vt].sw_width, tgt, in vcap_decode_keyset()
1715 enum vcap_type vt = ri->admin->vtype; in vcap_add_type_keyfield() local
1720 kset = vcap_keyfieldset(ri->vctrl, vt, keyset); in vcap_add_type_keyfield()
1726 fields = vcap_keyfields(ri->vctrl, vt, keyset); in vcap_add_type_keyfield()
1748 enum vcap_type vt = ri->admin->vtype; in vcap_add_type_actionfield() local
1753 aset = vcap_actionfieldset(ri->vctrl, vt, actionset); in vcap_add_type_actionfield()
1759 fields = vcap_actionfields(ri->vctrl, vt, actionset); in vcap_add_type_actionfield()
2626 enum vcap_type vt = ri->admin->vtype; in vcap_lookup_keyfield() local
2631 fields = vcap_keyfields(ri->vctrl, vt, keyset); in vcap_lookup_keyfield()
2657 enum vcap_type vt = ri->admin->vtype; in vcap_keyfield_match_keyset() local
2663 fields = vcap_keyfields(ri->vctrl, vt, keyset); in vcap_keyfield_match_keyset()
2825 enum vcap_type vt = ri->admin->vtype; in vcap_actionfield_match_actionset() local
2831 fields = vcap_actionfields(ri->vctrl, vt, actionset); in vcap_actionfield_match_actionset()
3324 enum vcap_type vt = ri->admin->vtype; in vcap_rule_get_untyped_keyset() local
3328 keyfield_set = vctrl->vcaps[vt].keyfield_set; in vcap_rule_get_untyped_keyset()
3329 for (idx = 0; idx < vctrl->vcaps[vt].keyfield_set_size; ++idx) { in vcap_rule_get_untyped_keyset()
3344 enum vcap_type vt = ri->admin->vtype; in vcap_rule_get_keysets() local
3364 keyfield_set = vctrl->vcaps[vt].keyfield_set; in vcap_rule_get_keysets()
3365 for (idx = 0; idx < vctrl->vcaps[vt].keyfield_set_size; ++idx) { in vcap_rule_get_keysets()