Home
last modified time | relevance | path

Searched refs:vrule (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_flower.c369 vrule->id); in sparx5_tc_add_rule_counter()
372 vcap_rule_set_counter_id(vrule, vrule->id); in sparx5_tc_add_rule_counter()
377 vrule->id); in sparx5_tc_add_rule_counter()
380 vcap_rule_set_counter_id(vrule, vrule->id); in sparx5_tc_add_rule_counter()
504 if (IS_ERR(vrule)) in sparx5_tc_add_rule_copy()
515 vrule->id); in sparx5_tc_add_rule_copy()
1124 if (IS_ERR(vrule)) in sparx5_tc_flower_replace()
1129 state.vrule = vrule; in sparx5_tc_flower_replace()
1296 if (IS_ERR(vrule)) in sparx5_tc_free_rule_resources()
1399 if (IS_ERR(vrule)) { in sparx5_tc_flower_template_create()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_flower.c230 .vrule = vrule, in lan966x_tc_flower_use_dissectors()
432 vrule->id); in lan966x_tc_add_rule_counter()
449 struct vcap_rule *vrule; in lan966x_tc_flower_add() local
460 if (IS_ERR(vrule)) in lan966x_tc_flower_add()
461 return PTR_ERR(vrule); in lan966x_tc_flower_add()
463 vrule->cookie = f->cookie; in lan966x_tc_flower_add()
503 admin, vrule, in lan966x_tc_flower_add()
534 vcap_set_tc_exterr(f, vrule); in lan966x_tc_flower_add()
540 vcap_set_tc_exterr(f, vrule); in lan966x_tc_flower_add()
544 err = vcap_add_rule(vrule); in lan966x_tc_flower_add()
[all …]
H A Dlan966x_ptp.c58 struct vcap_rule *vrule; in lan966x_ptp_add_trap() local
62 if (!IS_ERR(vrule)) { in lan966x_ptp_add_trap()
72 err = vcap_mod_rule(vrule); in lan966x_ptp_add_trap()
79 if (IS_ERR(vrule)) in lan966x_ptp_add_trap()
80 return PTR_ERR(vrule); in lan966x_ptp_add_trap()
92 err = vcap_add_rule(vrule); in lan966x_ptp_add_trap()
96 vcap_free_rule(vrule); in lan966x_ptp_add_trap()
104 struct vcap_rule *vrule; in lan966x_ptp_del_trap() local
109 if (IS_ERR(vrule)) in lan966x_ptp_del_trap()
122 err = vcap_mod_rule(vrule); in lan966x_ptp_del_trap()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_tc.c40 err = vcap_rule_add_key_u48(st->vrule, smac_key, &smac); in vcap_tc_flower_handler_ethaddr_usage()
48 err = vcap_rule_add_key_u48(st->vrule, dmac_key, &dmac); in vcap_tc_flower_handler_ethaddr_usage()
72 err = vcap_rule_add_key_u32(st->vrule, in vcap_tc_flower_handler_ipv4_usage()
80 err = vcap_rule_add_key_u32(st->vrule, in vcap_tc_flower_handler_ipv4_usage()
113 err = vcap_rule_add_key_u128(st->vrule, in vcap_tc_flower_handler_ipv6_usage()
121 err = vcap_rule_add_key_u128(st->vrule, in vcap_tc_flower_handler_ipv6_usage()
189 err = vcap_rule_add_key_u32(st->vrule, vid_key, in vcap_tc_flower_handler_cvlan_usage()
197 err = vcap_rule_add_key_u32(st->vrule, pcp_key, in vcap_tc_flower_handler_cvlan_usage()
223 err = vcap_rule_add_key_u32(st->vrule, vid_key, in vcap_tc_flower_handler_vlan_usage()
231 err = vcap_rule_add_key_u32(st->vrule, pcp_key, in vcap_tc_flower_handler_vlan_usage()
[all …]
H A Dvcap_api_debugfs.c297 struct vcap_rule *vrule; in vcap_show_admin() local
302 vrule = vcap_decode_rule(elem); in vcap_show_admin()
303 if (IS_ERR_OR_NULL(vrule)) { in vcap_show_admin()
304 ret = PTR_ERR(vrule); in vcap_show_admin()
309 vcap_show_admin_rule(vctrl, admin, out, to_intrule(vrule)); in vcap_show_admin()
310 vcap_free_rule(vrule); in vcap_show_admin()
H A Dvcap_tc.h12 struct vcap_rule *vrule; member
H A Dvcap_api_client.h240 void vcap_set_tc_exterr(struct flow_cls_offload *fco, struct vcap_rule *vrule);
H A Dvcap_api.c2935 void vcap_set_tc_exterr(struct flow_cls_offload *fco, struct vcap_rule *vrule) in vcap_set_tc_exterr() argument
2937 switch (vrule->exterr) { in vcap_set_tc_exterr()
/openbmc/linux/security/apparmor/
H A Daudit.c209 void aa_audit_rule_free(void *vrule) in aa_audit_rule_free() argument
211 struct aa_audit_rule *rule = vrule; in aa_audit_rule_free()
220 int aa_audit_rule_init(u32 field, u32 op, char *rulestr, void **vrule, gfp_t gfp) in aa_audit_rule_init() argument
247 *vrule = rule; in aa_audit_rule_init()
267 int aa_audit_rule_match(u32 sid, u32 field, u32 op, void *vrule) in aa_audit_rule_match() argument
269 struct aa_audit_rule *rule = vrule; in aa_audit_rule_match()
/openbmc/linux/security/apparmor/include/
H A Daudit.h195 void aa_audit_rule_free(void *vrule);
196 int aa_audit_rule_init(u32 field, u32 op, char *rulestr, void **vrule, gfp_t gfp);
198 int aa_audit_rule_match(u32 sid, u32 field, u32 op, void *vrule);
/openbmc/linux/security/selinux/ss/
H A Dservices.c3490 void selinux_audit_rule_free(void *vrule) in selinux_audit_rule_free() argument
3492 struct selinux_audit_rule *rule = vrule; in selinux_audit_rule_free()
3500 int selinux_audit_rule_init(u32 field, u32 op, char *rulestr, void **vrule, in selinux_audit_rule_init() argument
3510 struct selinux_audit_rule **rule = (struct selinux_audit_rule **)vrule; in selinux_audit_rule_init()
3626 int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *vrule) in selinux_audit_rule_match() argument
3632 struct selinux_audit_rule *rule = vrule; in selinux_audit_rule_match()
/openbmc/linux/security/smack/
H A Dsmack_lsm.c4630 static int smack_audit_rule_init(u32 field, u32 op, char *rulestr, void **vrule, in smack_audit_rule_init() argument
4634 char **rule = (char **)vrule; in smack_audit_rule_init()
4685 static int smack_audit_rule_match(u32 secid, u32 field, u32 op, void *vrule) in smack_audit_rule_match() argument
4688 char *rule = vrule; in smack_audit_rule_match()