/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.c | 217 /* Verify that the type id in the stream matches the type id of the keyset */ 222 enum vcap_keyfield_set keyset) 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() 237 /* Check that the keyset is valid */ in vcap_verify_keystream_keyset() 245 /* Get a valid typegroup for the specific 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() 262 * one define in the vcap keyset in vcap_verify_keystream_keyset() 329 /* Verify that the typegroup information, subword count, keyset an 218 vcap_verify_keystream_keyset(struct vcap_control *vctrl, enum vcap_type vt, u32 *keystream, u32 *mskstream, enum vcap_keyfield_set keyset) vcap_verify_keystream_keyset() argument 396 vcap_keyfields(struct vcap_control *vctrl, enum vcap_type vt, enum vcap_keyfield_set keyset) vcap_keyfields() argument 407 vcap_keyfieldset(struct vcap_control *vctrl, enum vcap_type vt, enum vcap_keyfield_set keyset) vcap_keyfieldset() argument 425 vcap_keyfield_typegroup(struct vcap_control *vctrl, enum vcap_type vt, enum vcap_keyfield_set keyset) vcap_keyfield_typegroup() argument 437 vcap_keyfield_count(struct vcap_control *vctrl, enum vcap_type vt, enum vcap_keyfield_set keyset) vcap_keyfield_count() argument 884 vcap_set_rule_set_keyset(struct vcap_rule *rule, enum vcap_keyfield_set keyset) vcap_set_rule_set_keyset() argument 1484 enum vcap_keyfield_set keyset; vcap_decode_keyset() local 1714 enum vcap_keyfield_set keyset = rule->keyset; vcap_add_type_keyfield() local 1777 vcap_keyset_list_add(struct vcap_keyset_list *keysetlist, enum vcap_keyfield_set keyset) vcap_keyset_list_add() argument 1810 vcap_keyset_name(struct vcap_control *vctrl, enum vcap_keyfield_set keyset) vcap_keyset_name() argument 1841 vcap_find_keyset_keyfield(struct vcap_control *vctrl, enum vcap_type vtype, enum vcap_keyfield_set keyset, enum vcap_key_field key) vcap_find_keyset_keyfield() argument 1871 int keyset, found, keycount, map_size; _vcap_rule_find_keysets() local 2625 enum vcap_keyfield_set keyset = rule->keyset; vcap_lookup_keyfield() local 2656 enum vcap_keyfield_set keyset = rule->keyset; vcap_keyfield_match_keyset() local [all...] |
H A D | vcap_api_private.h | 30 int keyset_sw; /* subwords in a keyset */ 32 int keyset_sw_regs; /* registers in a subword in an keyset */ 67 /* Return the number of keyfields in the keyset */ 69 enum vcap_type vt, enum vcap_keyfield_set keyset); 70 /* Return the typegroup table for the matching keyset (using subword size) */ 73 enum vcap_type vt, enum vcap_keyfield_set keyset); 74 /* Return the list of keyfields for the keyset */ 77 enum vcap_keyfield_set keyset); 111 /* Verify that the typegroup information, subword count, keyset and type id
|
H A D | vcap_api_client.h | 179 /* Update the keyset for the rule */ 181 enum vcap_keyfield_set keyset); 232 /* Return the keyset information for the keyset */ 235 enum vcap_keyfield_set keyset); 245 /* Add a keyset to a keyset list */ 247 enum vcap_keyfield_set keyset); 248 /* Drop keys in a keylist and any keys that are not supported by the keyset */ 253 /* map keyset i [all...] |
H A D | vcap_api_kunit.c | 252 enum vcap_keyfield_set keyset = VCAP_KFS_NO_VALUE; in test_vcap_xn_rule_creator() local 265 keyset = VCAP_KFS_ETAG; in test_vcap_xn_rule_creator() 269 keyset = VCAP_KFS_PURE_5TUPLE_IP4; in test_vcap_xn_rule_creator() 273 keyset = VCAP_KFS_NORMAL_5TUPLE_IP4; in test_vcap_xn_rule_creator() 277 keyset = VCAP_KFS_NORMAL_7TUPLE; in test_vcap_xn_rule_creator() 285 KUNIT_ASSERT_NE(test, VCAP_KFS_NO_VALUE, keyset); in test_vcap_xn_rule_creator() 294 /* Override rule keyset */ in test_vcap_xn_rule_creator() 295 ret = vcap_set_rule_set_keyset(rule, keyset); in test_vcap_xn_rule_creator() 305 KUNIT_EXPECT_EQ(test, keyset, rule->keyset); in test_vcap_xn_rule_creator() [all...] |
H A D | vcap_api.h | 73 /* VCAP keyset or actionset type and width */ 92 u16 sw_width; /* bits per subword in a keyset */ 102 /* map of keys per keyset */ 110 /* map of keyset typegroups per subword size */ 157 VCAP_ERR_NO_KEYSET_MATCH, /* No keyset matched the rule keys */ 159 VCAP_ERR_NO_PORT_KEYSET_MATCH, /* No port keyset matched the rule keys */ 192 enum vcap_keyfield_set keyset; /* keyset used: may be derived from fields */ member 200 int max; /* size of the keyset list */ 221 /* validate port keyset operatio [all...] |
H A D | vcap_api_debugfs_kunit.c | 319 /* Go from higher to lower addresses searching for a keyset */ in vcap_api_addr_keyset_test() 513 .keyset = VCAP_KFS_MAC_ETYPE, in vcap_api_show_admin_rule_test()
|
H A D | vcap_api_debugfs.c | 204 keyfield = vcap_keyfields(vctrl, admin->vtype, ri->data.keyset); in vcap_debugfs_show_rule_keyset() 336 /* Go from higher to lower addresses searching for a keyset */ in vcap_show_admin_raw() 349 pr_info("addr: %d X%d error rule, keyset: %s\n", in vcap_show_admin_raw()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_impl.c | 272 /* Get the keyset name from the sparx5 VCAP model */ 274 enum vcap_keyfield_set keyset) in sparx5_vcap_keyset_name() 278 return vcap_keyset_name(port->sparx5->vcap_ctrl, keyset); in sparx5_vcap_keyset_name() 405 /* Add ethernet type IS0 keyset to a list */ 691 /* Get the port keyset for the vcap lookup */ 758 /* API callback used for validating a field keyset (check the port keysets) */ 832 sparx5_vcap_keyset_name(ndev, rule->keyset)); in sparx5_vcap_ingress_add_default_fields() 1522 static u32 sparx5_vcap_is0_keyset_to_etype_ps(enum vcap_keyfield_set keyset) in sparx5_vcap_is0_keyset_to_etype_ps() argument 1524 switch (keyset) { in sparx5_vcap_is0_keyset_to_etype_ps() 1535 enum vcap_keyfield_set keyset, in sparx5_vcap_is0_set_port_keyset() 273 sparx5_vcap_keyset_name(struct net_device *ndev, enum vcap_keyfield_set keyset) sparx5_vcap_keyset_name() argument 1534 sparx5_vcap_is0_set_port_keyset(struct net_device *ndev, int lookup, enum vcap_keyfield_set keyset, int l3_proto) sparx5_vcap_is0_set_port_keyset() argument 1568 sparx5_vcap_is2_keyset_to_arp_ps(enum vcap_keyfield_set keyset) sparx5_vcap_is2_keyset_to_arp_ps() argument 1578 sparx5_vcap_is2_keyset_to_ipv4_ps(enum vcap_keyfield_set keyset) sparx5_vcap_is2_keyset_to_ipv4_ps() argument 1593 sparx5_vcap_is2_keyset_to_ipv6_uc_ps(enum vcap_keyfield_set keyset) sparx5_vcap_is2_keyset_to_ipv6_uc_ps() argument 1608 sparx5_vcap_is2_keyset_to_ipv6_mc_ps(enum vcap_keyfield_set keyset) sparx5_vcap_is2_keyset_to_ipv6_mc_ps() argument 1623 sparx5_vcap_is2_set_port_keyset(struct net_device *ndev, int lookup, enum vcap_keyfield_set keyset, int l3_proto) sparx5_vcap_is2_set_port_keyset() argument 1673 sparx5_vcap_es2_keyset_to_arp_ps(enum vcap_keyfield_set keyset) sparx5_vcap_es2_keyset_to_arp_ps() argument 1683 sparx5_vcap_es2_keyset_to_ipv4_ps(enum vcap_keyfield_set keyset) sparx5_vcap_es2_keyset_to_ipv4_ps() argument 1699 sparx5_vcap_es2_keyset_to_ipv6_ps(enum vcap_keyfield_set keyset) sparx5_vcap_es2_keyset_to_ipv6_ps() argument 1716 sparx5_vcap_es2_set_port_keyset(struct net_device *ndev, int lookup, enum vcap_keyfield_set keyset, int l3_proto) sparx5_vcap_es2_set_port_keyset() argument 1751 sparx5_vcap_set_port_keyset(struct net_device *ndev, struct vcap_admin *admin, int cid, u16 l3_proto, enum vcap_keyfield_set keyset, struct vcap_keyset_list *orig) sparx5_vcap_set_port_keyset() argument [all...] |
H A D | sparx5_tc_flower.c | 24 enum vcap_keyfield_set keyset; member 34 enum vcap_keyfield_set orig; /* keyset used before the template */ 35 enum vcap_keyfield_set keyset; /* new keyset used by template */ member 406 /* Find the intersection of the two sets of keyset */ in sparx5_tc_select_protocol_keyset() 413 /* Find a port keyset that matches the required keys in sparx5_tc_select_protocol_keyset() 423 mru->keyset = portkeysetlist.keysets[idx]; in sparx5_tc_select_protocol_keyset() 446 /* Set the chosen keyset on the rule and set a wildcarded type if there in sparx5_tc_select_protocol_keyset() 447 * are more than one keyset in sparx5_tc_select_protocol_keyset() 454 vcap_set_rule_set_keyset(vrule, mru->keyset); in sparx5_tc_select_protocol_keyset() [all...] |
H A D | sparx5_vcap_impl.h | 43 /* IS0 port keyset selection control */ 45 /* IS0 ethernet, IPv4, IPv6 traffic type keyset generation */ 64 /* IS0 MPLS traffic type keyset generation */ 83 /* IS0 MBLS traffic type keyset generation */ 92 /* IS2 port keyset selection control */ 94 /* IS2 non-ethernet traffic type keyset generation */ 102 /* IS2 IPv4 unicast traffic type keyset generation */ 109 /* IS2 IPv4 multicast traffic type keyset generation */ 117 /* IS2 IPv6 unicast traffic type keyset generation */ 125 /* IS2 IPv6 multicast traffic type keyset generatio [all...] |
/kernel/linux/linux-5.10/drivers/staging/wfx/ |
H A D | wfx.h | 39 u8 keyset; member
|
H A D | main.c | 370 dev_info(wdev->dev, "started firmware %d.%d.%d \"%s\" (API: %d.%d, keyset: %02X, caps: 0x%.8X)\n", in wfx_probe() 374 wdev->keyset, wdev->hw_caps.link_mode); in wfx_probe()
|
H A D | fwio.c | 142 dev_err(wdev->dev, "firmware keyset is incompatible with chip (file: 0x%02X, chip: 0x%02X)\n", in get_firmware() 148 wdev->keyset = keyset_file; in get_firmware()
|
/kernel/linux/linux-6.6/drivers/net/wireless/silabs/wfx/ |
H A D | wfx.h | 39 u8 keyset; member
|
H A D | main.c | 367 dev_info(wdev->dev, "started firmware %d.%d.%d \"%s\" (API: %d.%d, keyset: %02X, caps: 0x%.8X)\n", in wfx_probe() 371 wdev->keyset, wdev->hw_caps.link_mode); in wfx_probe()
|
H A D | fwio.c | 137 dev_err(wdev->dev, "firmware keyset is incompatible with chip (file: 0x%02X, chip: 0x%02X)\n", in get_firmware() 143 wdev->keyset = keyset_file; in get_firmware()
|