| /linux/drivers/net/phy/aquantia/ |
| A D | aquantia_leds.c | 35 unsigned long rules) in aqr_phy_led_hw_is_supported() argument 41 if (rules & ~supported_triggers) in aqr_phy_led_hw_is_supported() 48 unsigned long *rules) in aqr_phy_led_hw_control_get() argument 59 *rules = 0; in aqr_phy_led_hw_control_get() 61 *rules |= BIT(TRIGGER_NETDEV_LINK_100); in aqr_phy_led_hw_control_get() 64 *rules |= BIT(TRIGGER_NETDEV_LINK_1000); in aqr_phy_led_hw_control_get() 76 *rules |= BIT(TRIGGER_NETDEV_RX); in aqr_phy_led_hw_control_get() 79 *rules |= BIT(TRIGGER_NETDEV_TX); in aqr_phy_led_hw_control_get() 85 unsigned long rules) in aqr_phy_led_hw_control_set() argument 107 if (rules & BIT(TRIGGER_NETDEV_RX)) in aqr_phy_led_hw_control_set() [all …]
|
| /linux/security/apparmor/ |
| A D | resource.c | 92 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_setrlimit() local 93 typeof(*rules), list); in profile_setrlimit() 97 rules->rlimits.limits[resource].rlim_max) in profile_setrlimit() 168 struct aa_ruleset *rules = list_first_entry(&old->rules, in __aa_transition_rlimits() local 169 typeof(*rules), in __aa_transition_rlimits() 171 if (rules->rlimits.mask) { in __aa_transition_rlimits() 176 if (rules->rlimits.mask & mask) { in __aa_transition_rlimits() 188 struct aa_ruleset *rules = list_first_entry(&new->rules, in __aa_transition_rlimits() local 189 typeof(*rules), in __aa_transition_rlimits() 193 if (!rules->rlimits.mask) in __aa_transition_rlimits() [all …]
|
| A D | net.c | 113 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_af_perm() local 114 typeof(*rules), list); in aa_profile_af_perm() 124 state = RULE_MEDIATES(rules, AA_CLASS_NET); in aa_profile_af_perm() 226 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_secmark_perm() local 227 typeof(*rules), list); in aa_secmark_perm() 229 if (rules->secmark_count == 0) in aa_secmark_perm() 232 for (i = 0; i < rules->secmark_count; i++) { in aa_secmark_perm() 233 if (!rules->secmark[i].secid) { in aa_secmark_perm() 239 if (rules->secmark[i].secid == secid || in aa_secmark_perm() 241 if (rules->secmark[i].deny) in aa_secmark_perm() [all …]
|
| A D | capability.c | 67 struct aa_ruleset *rules = list_first_entry(&profile->rules, in audit_caps() local 68 typeof(*rules), list); in audit_caps() 77 !cap_raised(rules->caps.audit, cap))) in audit_caps() 81 cap_raised(rules->caps.kill, cap)) { in audit_caps() 83 } else if (cap_raised(rules->caps.quiet, cap) && in audit_caps() 119 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_capable() local 120 typeof(*rules), list); in profile_capable() 123 if (cap_raised(rules->caps.allow, cap) && in profile_capable() 124 !cap_raised(rules->caps.denied, cap)) in profile_capable()
|
| A D | policy_unpack.c | 577 if (!rules->secmark) in unpack_secmark() 599 if (rules->secmark) { in unpack_secmark() 602 kfree(rules->secmark); in unpack_secmark() 604 rules->secmark = NULL; in unpack_secmark() 862 rules = list_first_entry(&profile->rules, typeof(*rules), list); in unpack_profile() 1003 if (aa_dfa_next(rules->policy->dfa, rules->policy->start[0], in unpack_profile() 1037 rules->file = aa_get_pdb(rules->policy); in unpack_profile() 1243 struct aa_ruleset *rules = list_first_entry(&profile->rules, in verify_profile() local 1245 if (!rules) in verify_profile() 1248 if (rules->file->dfa && !verify_dfa_accept_index(rules->file->dfa, in verify_profile() [all …]
|
| A D | mount.c | 314 struct aa_ruleset *rules = list_first_entry(&profile->rules, in match_mnt_path_str() local 315 typeof(*rules), list); in match_mnt_path_str() 337 pos = do_match_mnt(rules->policy, in match_mnt_path_str() 374 struct aa_ruleset *rules = list_first_entry(&profile->rules, in match_mnt() local 375 typeof(*rules), list); in match_mnt() 607 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_umount() local 608 typeof(*rules), list); in profile_umount() 625 state = aa_dfa_match(rules->policy->dfa, in profile_umount() 671 struct aa_ruleset *rules = list_first_entry(&profile->rules, in build_pivotroot() local 672 typeof(*rules), list); in build_pivotroot() [all …]
|
| A D | domain.c | 91 struct aa_ruleset *rules = list_first_entry(&profile->rules, in match_component() local 92 typeof(*rules), list); in match_component() 129 struct aa_ruleset *rules = list_first_entry(&profile->rules, in label_compound_match() local 130 typeof(*rules), list); in label_compound_match() 191 struct aa_ruleset *rules = list_first_entry(&profile->rules, in label_components_match() local 192 typeof(*rules), list); in label_components_match() 516 struct aa_ruleset *rules = list_first_entry(&profile->rules, in x_table_lookup() local 568 struct aa_ruleset *rules = list_first_entry(&profile->rules, in x_to_label() local 637 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_transition() local 739 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_onexec() local [all …]
|
| A D | ipc.c | 83 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_signal_perm() local 84 typeof(*rules), list); in profile_signal_perm() 89 !ANY_RULE_MEDIATES(&profile->rules, AA_CLASS_SIGNAL)) in profile_signal_perm() 95 state = aa_dfa_next(rules->policy->dfa, in profile_signal_perm() 96 rules->policy->start[AA_CLASS_SIGNAL], in profile_signal_perm() 98 aa_label_match(profile, rules, peer, state, false, request, &perms); in profile_signal_perm()
|
| A D | task.c | 231 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_ptrace_perm() local 232 typeof(*rules), list); in profile_ptrace_perm() 237 aa_profile_match_label(profile, rules, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm() 249 !ANY_RULE_MEDIATES(&tracee->rules, AA_CLASS_PTRACE)) in profile_tracee_perm() 263 if (ANY_RULE_MEDIATES(&tracer->rules, AA_CLASS_PTRACE)) in profile_tracer_perm() 327 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_ns_perm() local 328 typeof(*rules), in aa_profile_ns_perm() 332 state = RULE_MEDIATES(rules, ad->class); in aa_profile_ns_perm() 336 perms = *aa_lookup_perms(rules->policy, state); in aa_profile_ns_perm()
|
| A D | policy.c | 247 aa_put_pdb(rules->file); in free_ruleset() 248 aa_put_pdb(rules->policy); in free_ruleset() 255 kfree_sensitive(rules); in free_ruleset() 260 struct aa_ruleset *rules; in aa_alloc_ruleset() local 262 rules = kzalloc(sizeof(*rules), gfp); in aa_alloc_ruleset() 263 if (rules) in aa_alloc_ruleset() 266 return rules; in aa_alloc_ruleset() 335 struct aa_ruleset *rules; in aa_alloc_profile() local 351 if (!rules) in aa_alloc_profile() 353 list_add(&rules->list, &profile->rules); in aa_alloc_profile() [all …]
|
| /linux/drivers/gpu/drm/ci/ |
| A D | container.yml | 24 rules: 28 rules: 32 rules: 36 rules: 40 rules: 44 rules: 48 rules: 52 rules: 56 rules: 60 rules: [all …]
|
| A D | gitlab-ci.yml | 134 rules: 158 rules: 164 rules: 171 rules: 177 rules: 179 - !reference [.never-post-merge-rules, rules] 185 rules: 204 rules: 232 rules: 256 rules: [all …]
|
| /linux/drivers/net/phy/qcom/ |
| A D | qca807x.c | 140 if (test_bit(TRIGGER_NETDEV_TX, &rules)) in qca807x_led_parse_netdev() 142 if (test_bit(TRIGGER_NETDEV_RX, &rules)) in qca807x_led_parse_netdev() 156 if (test_bit(TRIGGER_NETDEV_TX, &rules)) in qca807x_led_parse_netdev() 173 if (rules && !*offload_trigger) in qca807x_led_parse_netdev() 191 unsigned long rules) in qca807x_led_hw_is_supported() argument 202 unsigned long rules) in qca807x_led_hw_control_set() argument 248 unsigned long *rules) in qca807x_led_hw_control_get() argument 266 set_bit(TRIGGER_NETDEV_TX, rules); in qca807x_led_hw_control_get() 268 set_bit(TRIGGER_NETDEV_RX, rules); in qca807x_led_hw_control_get() 285 set_bit(TRIGGER_NETDEV_TX, rules); in qca807x_led_hw_control_get() [all …]
|
| A D | qca808x.c | 423 if (test_bit(TRIGGER_NETDEV_TX, &rules)) in qca808x_led_parse_netdev() 425 if (test_bit(TRIGGER_NETDEV_RX, &rules)) in qca808x_led_parse_netdev() 440 if (rules && !*offload_trigger) in qca808x_led_parse_netdev() 463 unsigned long rules) in qca808x_led_hw_is_supported() argument 474 unsigned long rules) in qca808x_led_hw_control_set() argument 509 unsigned long *rules) in qca808x_led_hw_control_get() argument 525 set_bit(TRIGGER_NETDEV_TX, rules); in qca808x_led_hw_control_get() 527 set_bit(TRIGGER_NETDEV_RX, rules); in qca808x_led_hw_control_get() 529 set_bit(TRIGGER_NETDEV_LINK_10, rules); in qca808x_led_hw_control_get() 531 set_bit(TRIGGER_NETDEV_LINK_100, rules); in qca808x_led_hw_control_get() [all …]
|
| /linux/drivers/net/dsa/qca/ |
| A D | qca8k-leds.c | 68 if (test_bit(TRIGGER_NETDEV_TX, &rules)) in qca8k_parse_netdev() 70 if (test_bit(TRIGGER_NETDEV_RX, &rules)) in qca8k_parse_netdev() 72 if (test_bit(TRIGGER_NETDEV_LINK_10, &rules)) in qca8k_parse_netdev() 74 if (test_bit(TRIGGER_NETDEV_LINK_100, &rules)) in qca8k_parse_netdev() 76 if (test_bit(TRIGGER_NETDEV_LINK_1000, &rules)) in qca8k_parse_netdev() 83 if (rules && !*offload_trigger) in qca8k_parse_netdev() 333 set_bit(TRIGGER_NETDEV_TX, rules); in qca8k_cled_hw_control_get() 335 set_bit(TRIGGER_NETDEV_RX, rules); in qca8k_cled_hw_control_get() 337 set_bit(TRIGGER_NETDEV_LINK_10, rules); in qca8k_cled_hw_control_get() 339 set_bit(TRIGGER_NETDEV_LINK_100, rules); in qca8k_cled_hw_control_get() [all …]
|
| /linux/Documentation/admin-guide/aoe/ |
| A D | udev.txt | 1 # These rules tell udev what device nodes to create for aoe support. 11 # udev_rules="/etc/udev/rules.d/" 12 # bash# ls /etc/udev/rules.d/ 13 # 10-wacom.rules 50-udev.rules 15 # /etc/udev/rules.d/60-aoe.rules
|
| /linux/security/ipe/ |
| A D | policy_parser.c | 39 for (i = 0; i < ARRAY_SIZE(p->rules); ++i) { in new_parsed_policy() 40 t = &p->rules[i]; in new_parsed_policy() 43 INIT_LIST_HEAD(&t->rules); in new_parsed_policy() 420 if (p->rules[op].default_action != IPE_ACTION_INVALID) in parse_rule() 423 p->rules[op].default_action = action; in parse_rule() 435 list_add_tail(&r->next, &p->rules[op].rules); in parse_rule() 457 for (i = 0; i < ARRAY_SIZE(p->rules); ++i) in ipe_free_parsed_policy() 458 list_for_each_entry_safe(pp, t, &p->rules[i].rules, next) { in ipe_free_parsed_policy() 485 for (i = 0; i < ARRAY_SIZE(p->rules); ++i) { in validate_policy() 486 if (p->rules[i].default_action == IPE_ACTION_INVALID) in validate_policy()
|
| A D | eval.c | 317 const struct ipe_op_table *rules = NULL; in ipe_evaluate_event() local 345 rules = &pol->parsed->rules[ctx->op]; in ipe_evaluate_event() 347 list_for_each_entry(rule, &rules->rules, next) { in ipe_evaluate_event() 363 } else if (rules->default_action != IPE_ACTION_INVALID) { in ipe_evaluate_event() 364 action = rules->default_action; in ipe_evaluate_event()
|
| /linux/drivers/net/phy/ |
| A D | air_en8811h.c | 141 unsigned long rules; member 549 priv->led[index].rules = 0; in air_hw_led_on_set() 615 priv->led[index].rules = 0; in air_led_blink_set() 640 priv->led[index].rules = 0; in air_led_brightness_set() 646 unsigned long *rules) in air_led_hw_control_get() argument 653 *rules = priv->led[index].rules; in air_led_hw_control_get() 659 unsigned long rules) in air_led_hw_control_set() argument 668 priv->led[index].rules = rules; in air_led_hw_control_set() 706 priv->led[index].rules = 0; in air_led_hw_control_set() 797 unsigned long rules) in en8811h_led_hw_is_supported() argument [all …]
|
| /linux/net/netfilter/ |
| A D | nft_set_pipapo.c | 644 if (unlikely(rules == 0)) in pipapo_realloc_mt() 648 if (rules > old_rules && f->rules_alloc > rules) in pipapo_realloc_mt() 652 if (rules < old_rules) { in pipapo_realloc_mt() 662 if (rules > extra && in pipapo_realloc_mt() 673 if (rules > old_rules) { in pipapo_realloc_mt() 978 ret = pipapo_resize(f, f->rules, f->rules + 1); in pipapo_insert() 982 f->rules++; in pipapo_insert() 1377 rulemap[i].to = f->rules; 1471 if (src->rules > 0) { 1673 if (pipapo_resize(f, f->rules, f->rules - rulemap[i].n)) { [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| A D | xe_gen_wa_oob.c | 58 char *name, *prev_name = NULL, *rules; in parse() local 81 rules = strtok(NULL, ""); in parse() 89 rules = name; in parse() 93 if (rules[0] == '\0') { in parse() 106 name, rules); in parse() 109 fprintf(csource, ", OR,\n\t%s", rules); in parse()
|
| /linux/tools/perf/util/ |
| A D | strfilter.c | 160 struct strfilter *strfilter__new(const char *rules, const char **err) in strfilter__new() argument 166 filter->root = strfilter_node__new(rules, &ep); in strfilter__new() 179 const char *rules, const char **err) in strfilter__append() argument 184 if (!filter || !rules) in strfilter__append() 187 right = strfilter_node__new(rules, &ep); in strfilter__append() 207 int strfilter__or(struct strfilter *filter, const char *rules, const char **err) in strfilter__or() argument 209 return strfilter__append(filter, true, rules, err); in strfilter__or() 212 int strfilter__and(struct strfilter *filter, const char *rules, in strfilter__and() argument 215 return strfilter__append(filter, false, rules, err); in strfilter__and()
|
| A D | strfilter.h | 30 struct strfilter *strfilter__new(const char *rules, const char **err); 43 const char *rules, const char **err); 56 const char *rules, const char **err);
|
| /linux/security/apparmor/include/ |
| A D | policy.h | 237 struct list_head rules; member 292 static inline aa_state_t RULE_MEDIATES(struct aa_ruleset *rules, in RULE_MEDIATES() argument 296 return rules->policy->start[class]; in RULE_MEDIATES() 298 return aa_dfa_match_len(rules->policy->dfa, in RULE_MEDIATES() 299 rules->policy->start[0], &class, 1); in RULE_MEDIATES() 302 static inline aa_state_t RULE_MEDIATES_AF(struct aa_ruleset *rules, u16 AF) in RULE_MEDIATES_AF() argument 304 aa_state_t state = RULE_MEDIATES(rules, AA_CLASS_NET); in RULE_MEDIATES_AF() 309 return aa_dfa_match_len(rules->policy->dfa, state, (char *) &be_af, 2); in RULE_MEDIATES_AF()
|
| /linux/drivers/media/i2c/ccs/ |
| A D | ccs-data.c | 495 rules = next_rule; in ccs_data_parse_rules() 513 rules->if_rules = if_rule; in ccs_data_parse_rules() 518 if (bin->base && !rules) in ccs_data_parse_rules() 524 rules ? in ccs_data_parse_rules() 525 &rules->read_only_regs : NULL, in ccs_data_parse_rules() 526 rules ? in ccs_data_parse_rules() 536 &rules->frame_format : NULL, in ccs_data_parse_rules() 545 rules ? in ccs_data_parse_rules() 547 rules ? in ccs_data_parse_rules() 557 rules ? in ccs_data_parse_rules() [all …]
|