Searched refs:kslist (Results 1 – 11 of 11) sorted by relevance
/openbmc/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_debugfs_kunit.c | 43 if (kslist->cnt > 0) { 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() 63 return kslist->keysets[idx]; in test_val_keyset() 65 return kslist->keysets[idx]; in test_val_keyset() [all …]
|
H A D | vcap_api_debugfs.c | 321 struct vcap_keyset_list kslist; in vcap_show_admin_raw() local 337 kslist.keysets = keysets; in vcap_show_admin_raw() 338 kslist.max = ARRAY_SIZE(keysets); in vcap_show_admin_raw() 341 kslist.cnt = 0; in vcap_show_admin_raw() 342 ret = vcap_addr_keysets(vctrl, ri->ndev, admin, addr, &kslist); in vcap_show_admin_raw() 345 info = vcap_keyfieldset(vctrl, vt, kslist.keysets[0]); in vcap_show_admin_raw() 352 vcap_keyset_name(vctrl, kslist.keysets[0])); in vcap_show_admin_raw() 357 for (idx = 0; idx < kslist.cnt; ++idx) in vcap_show_admin_raw() 360 kslist.keysets[idx])); in vcap_show_admin_raw()
|
H A D | vcap_api_private.h | 109 struct vcap_keyset_list *kslist); 116 int sw_max, struct vcap_keyset_list *kslist);
|
H A D | vcap_api_kunit.c | 34 struct vcap_keyset_list *kslist, in test_val_keyset() argument 39 if (kslist->cnt > 0) { in test_val_keyset() 42 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset() 44 return kslist->keysets[idx]; in test_val_keyset() 46 return kslist->keysets[idx]; in test_val_keyset() 48 return kslist->keysets[idx]; in test_val_keyset() 50 return kslist->keysets[idx]; in test_val_keyset() 54 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset() 56 return kslist->keysets[idx]; in test_val_keyset() 58 return kslist->keysets[idx]; in test_val_keyset() [all …]
|
H A D | vcap_api.h | 226 struct vcap_keyset_list *kslist,
|
H A D | vcap_api_client.h | 278 struct vcap_keyset_list *kslist);
|
H A D | vcap_api.c | 338 struct vcap_keyset_list *kslist) in vcap_find_keystream_keysets() argument 355 vcap_keyset_list_add(kslist, idx); in vcap_find_keystream_keysets() 357 if (kslist->cnt > 0) in vcap_find_keystream_keysets() 370 struct vcap_keyset_list *kslist) in vcap_addr_keysets() argument 391 kslist); in vcap_addr_keysets() 3534 struct vcap_keyset_list *kslist) in vcap_select_min_rule_keyset() argument 3540 for (idx = 0; idx < kslist->cnt; ++idx) { in vcap_select_min_rule_keyset() 3541 kset = vcap_keyfieldset(vctrl, vtype, kslist->keysets[idx]); in vcap_select_min_rule_keyset() 3547 ret = kslist->keysets[idx]; in vcap_select_min_rule_keyset()
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_vcap_impl.c | 271 struct vcap_keyset_list *kslist, in lan966x_vcap_validate_keyset() argument 279 if (!kslist || kslist->cnt == 0) in lan966x_vcap_validate_keyset() 297 return kslist->keysets[0]; in lan966x_vcap_validate_keyset() 308 for (int i = 0; i < kslist->cnt; ++i) in lan966x_vcap_validate_keyset() 310 if (kslist->keysets[i] == keysets[j]) in lan966x_vcap_validate_keyset() 311 return kslist->keysets[i]; in lan966x_vcap_validate_keyset()
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_flower.c | 1369 struct vcap_keyset_list kslist = {}; in sparx5_tc_flower_template_create() local 1417 kslist.keysets = keysets; in sparx5_tc_flower_template_create() 1418 kslist.max = ARRAY_SIZE(keysets); in sparx5_tc_flower_template_create() 1419 if (!vcap_rule_find_keysets(vrule, &kslist)) { in sparx5_tc_flower_template_create() 1426 ftp->keyset = vcap_select_min_rule_keyset(vctrl, admin->vtype, &kslist); in sparx5_tc_flower_template_create() 1427 kslist.cnt = 0; in sparx5_tc_flower_template_create() 1431 &kslist); in sparx5_tc_flower_template_create() 1433 if (kslist.cnt > 0) in sparx5_tc_flower_template_create() 1434 ftp->orig = kslist.keysets[0]; in sparx5_tc_flower_template_create()
|
H A D | sparx5_vcap_impl.c | 696 struct vcap_keyset_list *kslist) in sparx5_vcap_get_port_keyset() argument 704 err = sparx5_vcap_is0_get_port_keysets(ndev, lookup, kslist, in sparx5_vcap_get_port_keyset() 709 err = sparx5_vcap_is2_get_port_keysets(ndev, lookup, kslist, in sparx5_vcap_get_port_keyset() 713 err = sparx5_vcap_es0_get_port_keysets(ndev, kslist, l3_proto); in sparx5_vcap_get_port_keyset() 717 err = sparx5_vcap_es2_get_port_keysets(ndev, lookup, kslist, in sparx5_vcap_get_port_keyset() 763 struct vcap_keyset_list *kslist, in sparx5_vcap_validate_keyset() argument 771 if (!kslist || kslist->cnt == 0) in sparx5_vcap_validate_keyset() 804 for (idx = 0; idx < kslist->cnt; ++idx) in sparx5_vcap_validate_keyset() 806 if (kslist->keysets[idx] == keysets[jdx]) in sparx5_vcap_validate_keyset() 807 return kslist->keysets[idx]; in sparx5_vcap_validate_keyset() [all …]
|
H A D | sparx5_vcap_impl.h | 196 struct vcap_keyset_list *kslist);
|