Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 196) sorted by relevance

12345678

/openbmc/bmcweb/http/
H A Drouting.hpp42 DynamicRule& newRuleDynamic(const std::string& rule) in newRuleDynamic() argument
45 std::make_unique<DynamicRule>(rule); in newRuleDynamic()
53 auto& newRuleTagged(const std::string& rule) in newRuleTagged() argument
58 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRuleTagged()
66 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRuleTagged()
74 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRuleTagged()
82 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRuleTagged()
91 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRuleTagged()
100 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRuleTagged()
116 void internalAdd(std::string_view rule, BaseRule* ruleObject) in internalAdd()
[all …]
/openbmc/qemu/authz/
H A Dlist.c36 QAuthZListRule *rule = rules->value; in qauthz_list_is_allowed() local
37 QAuthZListFormat format = rule->has_format ? rule->format : in qauthz_list_is_allowed()
40 trace_qauthz_list_check_rule(authz, rule->match, identity, in qauthz_list_is_allowed()
41 format, rule->policy); in qauthz_list_is_allowed()
44 if (g_str_equal(rule->match, identity)) { in qauthz_list_is_allowed()
45 return rule->policy == QAUTHZ_LIST_POLICY_ALLOW; in qauthz_list_is_allowed()
49 if (g_pattern_match_simple(rule->match, identity)) { in qauthz_list_is_allowed()
50 return rule->policy == QAUTHZ_LIST_POLICY_ALLOW; in qauthz_list_is_allowed()
156 QAuthZListRule *rule; in qauthz_list_append_rule() local
160 rule = g_new0(QAuthZListRule, 1); in qauthz_list_append_rule()
[all …]
/openbmc/u-boot/drivers/ddr/altera/
H A Dsdram_gen5.c17 u32 rule; /* SDRAM protection rule number: 0-19 */ member
111 int ruleno = prule->rule; in sdram_set_rule()
149 int ruleno = prule->rule; in sdram_get_rule()
177 struct sdram_prot_rule rule; in sdram_set_protection_config() local
184 memset(&rule, 0, sizeof(rule)); in sdram_set_protection_config()
187 rule.rule = rules; in sdram_set_protection_config()
188 sdram_set_rule(&rule); in sdram_set_protection_config()
192 rule.sdram_start = sdram_start; in sdram_set_protection_config()
193 rule.sdram_end = sdram_end; in sdram_set_protection_config()
194 rule.lo_prot_id = 0x0; in sdram_set_protection_config()
[all …]
/openbmc/phosphor-power/phosphor-regulators/test/
H A Drule_tests.cpp45 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
46 EXPECT_EQ(rule.getID(), "set_voltage_rule"); in TEST()
47 EXPECT_EQ(rule.getActions().size(), 2); in TEST()
67 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
68 rule.execute(env); in TEST()
92 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
93 EXPECT_EQ(rule.execute(env), false); in TEST()
111 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
112 EXPECT_EQ(rule.getActions().size(), 2); in TEST()
113 EXPECT_EQ(rule.getActions()[0].get(), action1); in TEST()
[all …]
H A Did_map_tests.cpp135 Rule rule{id, std::vector<std::unique_ptr<Action>>{}}; in TEST() local
141 idMap.addRule(rule); in TEST()
148 EXPECT_EQ(&ruleFound, &rule); in TEST()
261 Rule rule{id, std::vector<std::unique_ptr<Action>>{}}; in TEST() local
262 idMap.addRule(rule); in TEST()
269 EXPECT_EQ(&ruleFound, &rule); in TEST()
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/
H A Drun_rule.md5 Runs the specified rule.
7 Note: Make sure that two rules do not run each other recursively (rule "A" runs
8 rule "B" which runs rule "A").
12 String containing the unique ID of the [rule](rule.md) to run.
16 Return value of the rule that was run.
H A Drule.md1 # rule chapter
5 A rule is a sequence of actions that can be shared by multiple regulators in the
9 For example, the following action sequences might be sharable using a rule:
20 …array of strings | One or more comment lines describing this rule. …
21 | id | yes | string | Unique ID for this rule. Can only contain l…
H A Dconfiguration.md18 - Use the "rule_id" property to specify a standard rule to run.
28 | rule_id | see [notes](#notes) | string | Unique ID of the [rule](rule.md)…
39 "comments": ["Set rail to 1.25V using standard rule"],
/openbmc/qemu/block/
H A Dblkdebug.c188 struct BlkdebugRule *rule; in add_rule() local
205 rule = g_malloc0(sizeof(*rule)); in add_rule()
206 *rule = (struct BlkdebugRule) { in add_rule()
215 rule->options.inject.error = qemu_opt_get_number(opts, "errno", EIO); in add_rule()
216 rule->options.inject.once = qemu_opt_get_bool(opts, "once", 0); in add_rule()
217 rule->options.inject.immediately = in add_rule()
220 rule->options.inject.offset = in add_rule()
228 g_free(rule); in add_rule()
232 rule->options.inject.iotype_mask = (1ull << iotype); in add_rule()
235 rule->options.inject.iotype_mask = in add_rule()
[all …]
/openbmc/bmcweb/redfish-core/include/
H A Dredfish_oem_routing.hpp62 constexpr std::string_view rule = URI; in newRule() local
63 constexpr uint64_t numArgs = crow::utility::getParameterTag(rule); in newRule()
68 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRule()
70 perMethod.internalAdd(rule, std::move(ruleObject)); in newRule()
76 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRule()
78 perMethod.internalAdd(rule, std::move(ruleObject)); in newRule()
84 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRule()
86 perMethod.internalAdd(rule, std::move(ruleObject)); in newRule()
92 std::unique_ptr<RuleT> ruleObject = std::make_unique<RuleT>(rule); in newRule()
94 perMethod.internalAdd(rule, std::move(ruleObject)); in newRule()
[all …]
H A Dfilter_expr_parser_grammar.hpp36 using boost::spirit::x3::rule;
53 const rule<class QuotedStringId, QuotedString> quotedString("QuotedString");
54 const rule<class UnquotedStrId, UnquotedString> unquotedString("UnquotedStr");
57 const rule<class BooleanOpId, BooleanOp> booleanOp("BooleanOp");
58 const rule<class ComparisonId, Comparison> comparison("Comparison");
61 const rule<class LogicalAndId, LogicalAnd> logicalAnd("LogicalAnd");
62 const rule<class LogicalOrId, LogicalOr> logicalOr("LogicalOr");
63 const rule<class LogicalNotId, LogicalNot> logicalNot("LogicalNot");
/openbmc/qemu/scripts/
H A Ddevice-crash-test196 def errorRuleTestCaseMatch(rule, t): argument
203 return (('machine' not in rule or
205 re.match(rule['machine'] + '$', t['machine'])) and
206 ('accel' not in rule or
208 re.match(rule['accel'] + '$', t['accel'])) and
209 ('device' not in rule or
211 re.match(rule['device'] + '$', t['device'])))
216 for i, rule in enumerate(ERROR_RULE_LIST):
217 if errorRuleTestCaseMatch(rule, t):
218 yield (i, rule)
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/
H A Dtftp-0.40-remap.patch10 @@ -286,6 +286,7 @@ struct rule *parserulefile(FILE * f)
14 + memset(this_rule, '\0', sizeof(struct rule));
18 @@ -294,6 +295,7 @@ struct rule *parserulefile(FILE * f)
21 this_rule = tfmalloc(sizeof(struct rule));
22 + memset(this_rule, '\0', sizeof(struct rule));
/openbmc/phosphor-power/phosphor-regulators/test/actions/
H A Drun_rule_action_tests.cpp77 Rule rule("exception_rule", std::move(actions)); in TEST() local
81 idMap.addRule(rule); in TEST()
101 Rule rule("infinite_rule", std::move(actions)); in TEST() local
105 idMap.addRule(rule); in TEST()
139 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
143 idMap.addRule(rule); in TEST()
172 Rule rule("set_voltage_rule", std::move(actions)); in TEST() local
176 idMap.addRule(rule); in TEST()
/openbmc/qemu/include/fpu/
H A Dsoftfloat-helpers.h84 static inline void set_float_2nan_prop_rule(Float2NaNPropRule rule, in set_float_2nan_prop_rule() argument
87 status->float_2nan_prop_rule = rule; in set_float_2nan_prop_rule()
90 static inline void set_float_3nan_prop_rule(Float3NaNPropRule rule, in set_float_3nan_prop_rule() argument
93 status->float_3nan_prop_rule = rule; in set_float_3nan_prop_rule()
96 static inline void set_float_infzeronan_rule(FloatInfZeroNaNRule rule, in set_float_infzeronan_rule() argument
99 status->float_infzeronan_rule = rule; in set_float_infzeronan_rule()
/openbmc/phosphor-power/phosphor-regulators/src/
H A Did_map.cpp48 void IDMap::addRule(Rule& rule) in addRule() argument
50 const std::string& id = rule.getID(); in addRule()
56 ruleMap[id] = &rule; in addRule()
/openbmc/phosphor-power/phosphor-regulators/tools/
H A Dvalidate-regulators-config.py51 for rule in config_json.get("rules", {}):
52 rule_ids.append(rule["id"])
205 for rule in config_json.get("rules", {}):
206 if rule["id"] == run_rule_id:
208 config_json, rule, call_stack
220 for rule in config_json.get("rules", {}):
221 check_infinite_loops_in_rule(config_json, rule)
251 for rule in config_json.get("rules", {}):
252 rule_id = rule["id"]
/openbmc/bmcweb/include/
H A Ddbus_privileges.hpp76 BaseRule& rule) in isUserPrivileged() argument
95 if (!rule.checkPrivileges(userPrivileges)) in isUserPrivileged()
114 BaseRule& rule, const dbus::utility::DBusPropertiesMap& userInfoMap) in afterGetUserInfoValidate() argument
124 if (!isUserPrivileged(req, asyncResp, rule)) in afterGetUserInfoValidate()
189 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, BaseRule& rule, in validatePrivilege() argument
199 [req, asyncResp, &rule, callback = std::move(callback)]( in validatePrivilege()
201 if (afterGetUserInfoValidate(*req, asyncResp, rule, userInfoMap)) in validatePrivilege()
/openbmc/qemu/docs/devel/testing/
H A Dblkdebug.rst10 The ``blkdebug`` block driver is a rule-based error injection engine. It can be
31 Each I/O request is evaluated against the rules. If a rule matches the request
36 each section of the file represents a rule.
38 The following configuration file defines a single rule::
45 This rule fails all aio read requests with ``ENOSPC`` (28). Note that the errno
64 rule to match. See `State transitions`_ for information
68 the numeric errno value to return when a request matches this rule.
74 match this rule
131 When a rule's "state" attribute is non-zero then the current state must equal
132 the attribute in order for the rule to match.
[all …]
/openbmc/openbmc-tools/dbus-pcap/
H A Ddbus-pcap462 def gen_match_type(rule): argument
463 mt = MessageType.__members__[rule.value.upper()]
467 def gen_match_sender(rule): argument
468 mf = Field(MessageFieldType.SENDER, rule.value)
472 def gen_match_interface(rule): argument
473 mf = Field(MessageFieldType.INTERFACE, rule.value)
477 def gen_match_member(rule): argument
478 mf = Field(MessageFieldType.MEMBER, rule.value)
482 def gen_match_path(rule): argument
483 mf = Field(MessageFieldType.PATH, rule.value)
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-block-qdict.c423 QDict *src, *dst, *rule, *vnc, *acl, *listen; in qdict_crumple_test_recursive() local
462 rule = qobject_to(QDict, qlist_pop(rules)); in qdict_crumple_test_recursive()
463 g_assert(rule); in qdict_crumple_test_recursive()
464 g_assert_cmpint(qdict_size(rule), ==, 2); in qdict_crumple_test_recursive()
465 g_assert_cmpstr("fred", ==, qdict_get_str(rule, "match")); in qdict_crumple_test_recursive()
466 g_assert_cmpstr("allow", ==, qdict_get_str(rule, "policy")); in qdict_crumple_test_recursive()
467 qobject_unref(rule); in qdict_crumple_test_recursive()
469 rule = qobject_to(QDict, qlist_pop(rules)); in qdict_crumple_test_recursive()
470 g_assert(rule); in qdict_crumple_test_recursive()
471 g_assert_cmpint(qdict_size(rule), ==, 2); in qdict_crumple_test_recursive()
[all …]
/openbmc/openbmc/meta-facebook/meta-ventura/recipes-core/udev/
H A Dpersistent-rs485-port-mapping_0.1.bb40 for rule in ${S}/*.rules; do
41 if [ -f "$rule" ]; then
42 install -m 0644 "$rule" ${D}${sysconfdir}/rs485-rules/
/openbmc/qemu/tests/qemu-iotests/
H A D277.out3 NBD server: Closing connection on rule match inject-error
6 NBD server: Closing connection on rule match inject-error
/openbmc/bmcweb/test/http/
H A Drouter_test.cpp42 EXPECT_EQ(router.findRoute(req).route.rule, nullptr); in TEST()
48 EXPECT_NE(router.findRoute(req).route.rule, nullptr); in TEST()
51 EXPECT_EQ(router.findRoute(patchReq).route.rule, nullptr); in TEST()
57 EXPECT_NE(router.findRoute(req).route.rule, nullptr); in TEST()
58 EXPECT_NE(router.findRoute(patchReq).route.rule, nullptr); in TEST()
/openbmc/phosphor-fan-presence/monitor/
H A Dsystem.cpp119 [this](auto& rule) { in load() argument
120 rule->check(PowerRuleState::runtime, _fanHealth); in load()
341 [this](auto& rule) { in fanStatusChange() argument
342 rule->check(PowerRuleState::runtime, _fanHealth); in fanStatusChange()
407 [this](auto& rule) { in powerStateChanged() argument
408 rule->check(PowerRuleState::atPgood, _fanHealth); in powerStateChanged()
411 [this](auto& rule) { in powerStateChanged() argument
412 rule->check(PowerRuleState::runtime, _fanHealth); in powerStateChanged()
421 [](auto& rule) { rule->cancel(); }); in powerStateChanged() argument

12345678