| /openbmc/sdbusplus/include/sdbusplus/async/ |
| H A D | match.hpp | 25 class match : private bus::details::bus_friend class 28 match() = delete; 29 match(const match&) = delete; 30 match& operator=(const match&) = delete; 31 match(match&&) = delete; 32 match& operator=(match&&) = delete; 33 ~match(); 37 match(context& ctx, const std::string_view& pattern); 84 explicit match_completion(match& m) : m(m) {}; in match_completion() 87 friend match; [all …]
|
| /openbmc/entity-manager/test/ |
| H A D | test_utils.cpp | 9 auto match = iFindFirst(helloWorld, "World"); in TEST() local 10 EXPECT_TRUE(match); in TEST() 11 EXPECT_EQ(std::distance(helloWorld.begin(), match.begin()), 6); in TEST() 12 EXPECT_EQ(std::distance(helloWorld.begin(), match.end()), 11); in TEST() 17 auto match = iFindFirst(helloWorld, "world"); in TEST() local 18 EXPECT_TRUE(match); in TEST() 19 EXPECT_EQ(std::distance(helloWorld.begin(), match.begin()), 6); in TEST() 20 EXPECT_EQ(std::distance(helloWorld.begin(), match.end()), 11); in TEST() 25 auto match = iFindFirst(helloWorld, "Planet"); in TEST() local 26 EXPECT_FALSE(match); in TEST() [all …]
|
| /openbmc/u-boot/lib/ |
| H A D | lz4.c | 111 const BYTE* match; in LZ4_decompress_generic() local 152 match = cpy - LZ4_readLE16(ip); ip+=2; in LZ4_decompress_generic() 153 …if ((checkOffset) && (unlikely(match < lowLimit))) goto _output_error; /* Error : offset outside… in LZ4_decompress_generic() 171 if ((dict==usingExtDict) && (match < lowPrefix)) in LZ4_decompress_generic() 175 if (length <= (size_t)(lowPrefix-match)) in LZ4_decompress_generic() 178 match = dictEnd - (lowPrefix-match); in LZ4_decompress_generic() 179 memmove(op, match, length); op += length; in LZ4_decompress_generic() 184 size_t copySize = (size_t)(lowPrefix-match); in LZ4_decompress_generic() 205 if (unlikely((op-match)<8)) in LZ4_decompress_generic() 207 const size_t dec64 = dec64table[op-match]; in LZ4_decompress_generic() [all …]
|
| /openbmc/openbmc/poky/meta/lib/oe/ |
| H A D | go.py | 10 if re.match('i.86', a): 14 elif re.match('arm.*', a): 16 elif re.match('aarch64.*', a): 18 elif re.match('mips64el.*', a): 20 elif re.match('mips64.*', a): 26 elif re.match('p(pc|owerpc)(64le)', a): 28 elif re.match('p(pc|owerpc)(64)', a):
|
| /openbmc/u-boot/tools/patman/ |
| H A D | checkpatch.py | 91 match = re_stats_full.match(line) 92 if not match: 93 match = re_stats.match(line) 94 if match: 95 result.errors = int(match.group(1)) 96 result.warnings = int(match.group(2)) 97 if len(match.groups()) == 4: 98 result.checks = int(match.group(3)) 99 result.lines = int(match.group(4)) 101 result.lines = int(match.group(3)) [all …]
|
| /openbmc/openbmc/poky/meta/classes-recipe/ |
| H A D | kernel-arch.bbclass | 9 # modules). return value must match one of the architecture directories 31 if re.match('(i.86|athlon|x86.64)$', a): return 'x86' 32 elif re.match('arceb$', a): return 'arc' 33 elif re.match('armeb$', a): return 'arm' 34 elif re.match('aarch64$', a): return 'arm64' 35 elif re.match('aarch64_be$', a): return 'arm64' 36 elif re.match('aarch64_ilp32$', a): return 'arm64' 37 elif re.match('aarch64_be_ilp32$', a): return 'arm64' 38 elif re.match('loongarch(32|64|)$', a): return 'loongarch' 39 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips' [all …]
|
| /openbmc/boost-dbus/include/dbus/ |
| H A D | match.hpp | 24 class match { class 29 match(connection_ptr c, BOOST_ASIO_MOVE_ARG(std::string) e) in match() function in dbus::match 34 ~match() { connection_->delete_match(*this); } in ~match() 38 match(match&&) = delete; 39 match& operator=(match&&) = delete;
|
| /openbmc/phosphor-hwmon/ |
| H A D | sensorset.cpp | 36 std::smatch match; in SensorSet() local 38 std::regex_search(fileName.native(), match, sensors_regex); in SensorSet() 40 if (match.size() != sensor_regex_match_count) in SensorSet() 45 if (match[3] == hwmon::entry::label) in SensorSet() 50 _container[make_pair(match[1], match[2])].emplace(match[3]); in SensorSet()
|
| /openbmc/openbmc/poky/meta/recipes-core/musl/ |
| H A D | libucontext_1.2.bb | 33 elif re.match('(i.86|athlon)$', a): return 'x86' 34 elif re.match('x86.64$', a): return 'x86_64' 35 elif re.match('armeb$', a): return 'arm' 36 elif re.match('aarch64$', a): return 'aarch64' 37 elif re.match('aarch64_be$', a): return 'aarch64' 38 elif re.match('aarch64_ilp32$', a): return 'aarch64' 39 elif re.match('aarch64_be_ilp32$', a): return 'aarch64' 40 elif re.match('mips(isa|)(32|)(r6|)(el|)$', a): return 'mips' 41 elif re.match('mips(isa|)64(r6|)(el|)$', a): return 'mips64' 42 elif re.match('p(pc64|owerpc64)(le)', a): return 'ppc64' [all …]
|
| /openbmc/openbmc/poky/scripts/lib/devtool/ |
| H A D | search.py | 47 match = False 49 match = True 51 if not match: 59 match = True 71 match = True 73 if match: 83 match = False 85 match = True 89 match = True 91 if not match: [all …]
|
| /openbmc/smbios-mdr/tools/ |
| H A D | sst-compare-redfish-os.py | 32 match = re.search("powerdomain-(\\d+)", proc) 33 if not match or match.group(1) == "0": 55 match = re.search("logical_cpu:(\\d+).*punit_core:(\\d+)", line) 56 if not match: 58 logical_thread = int(match.group(1)) 59 physical_core = int(match.group(2)) 93 match = re.match("cpu(\\d+)", redfish_id) 94 if not match: 96 num = match.group(1) 99 if re.match(f"^package-{num}:.*", key): [all …]
|
| /openbmc/qemu/scripts/coccinelle/ |
| H A D | qom-parent-type.cocci | 4 @match@ 13 @script:python filter depends on match@ 14 obj_t << match.obj_t; 20 identifier match.obj_t, match.fld; 21 type match.parent_t;
|
| H A D | tcg_gen_extract.cocci | 40 @match@ 62 @script:python verify_len depends on match@ 63 ret_s << match.ret; 64 msk_s << match.msk; 65 shr_p << match.shr_p; 86 identifier match.ret; 87 metavariable match.arg; 88 constant match.ofs, match.msk; 89 position match.shr_p, match.and_p;
|
| /openbmc/u-boot/doc/device-tree-bindings/memory/ |
| H A D | memory.txt | 6 ID masks. To match a set of board ids, a board-id node may define match-mask 7 and match-value ints to define a mask to apply to the board id, and the value 8 that the result should have for the match to be considered valid. The mask 9 defaults to -1, meaning that the value must fully match the board id. 23 match-mask - A mask to apply to the board id. This must be accompanied by 24 match-value. 25 match-value - The required resulting value of the board id mask for the given 26 node to be considered a match. 46 match-value = <17>; 51 match-mask = <2>; [all …]
|
| /openbmc/qemu/docs/sphinx/ |
| H A D | hxtool.py | 57 match = re.match(r'DEFHEADING\((.*?):?\)', line) 58 if match is None: 60 return match.group(1) 70 match = re.match(r'ARCHHEADING\((.*?):?,.*\)', line) 71 if match is None: 73 return match.group(1) 78 match = re.match(r'SRST(\((.*?)\))?', line) 79 if match is None: 81 return match.group(2)
|
| /openbmc/sdbusplus/src/async/ |
| H A D | match.cpp | 6 slot_t match::makeMatch(context& ctx, const std::string_view& pattern) in makeMatch() 11 static_cast<match*>(ctx)->handle_match(message_t{msg}); in makeMatch() 26 match::match(context& ctx, const std::string_view& pattern) : in match() function in sdbusplus::async::match 30 match::~match() in ~match() 71 void match::handle_match(message_t&& msg) noexcept in handle_match() 80 void match::handle_completion(std::unique_lock<std::mutex>&& l) noexcept in handle_completion()
|
| /openbmc/openbmc/poky/bitbake/contrib/vim/syntax/ |
| H A D | bitbake.vim | 30 syn case match 33 syn match bbUnmatched "." 38 syn match bbComment "#.*$" contains=@bbCommentGroup 41 syn match bbQuote +['"]+ contained 42 syn match bbDelimiter "[(){}=]" contained 43 syn match bbArrayBrackets "[\[\]]" contained 46 syn match bbContinue "\\$" 51 syn match bbExport "^export" nextgroup=bbIdentifier skipwhite 53 syn match bbIdentifier "[a-zA-Z0-9\-_\.\/\+]\+" display contained 54 syn match bbVarDeref "${[a-zA-Z0-9\-_:\.\/\+]\+}" contained [all …]
|
| /openbmc/sdbusplus/src/bus/ |
| H A D | match.cpp | 7 namespace sdbusplus::bus::match namespace 22 match::match(sdbusplus::bus_t& bus, const char* _match, in match() function in sdbusplus::bus::match::match 32 auto c = static_cast<match::callback_t*>(context); in matchCallback() 38 match::match(sdbusplus::bus_t& bus, const char* _match, callback_t callback) : in match() function in sdbusplus::bus::match::match
|
| /openbmc/openbmc/meta-security/lib/oeqa/runtime/cases/ |
| H A D | apparmor.py | 23 match = re.search('apparmor module is loaded.', output) 24 if not match: 32 match = re.search('apparmor module is loaded.', output) 33 if not match: 41 match = re.search('apparmor module is loaded.', output) 42 if not match:
|
| H A D | tripwire.py | 23 match = re.search('The database was successfully generated.', output) 24 if not match: 33 match = re.search('Wrote policy file: /etc/tripwire/twpol.enc', output) 34 if not match: 43 match = re.search('The database was successfully generated.', output) 44 if not match:
|
| /openbmc/qemu/authz/ |
| H A D | list.c | 40 trace_qauthz_list_check_rule(authz, rule->match, identity, in qauthz_list_is_allowed() 44 if (g_str_equal(rule->match, identity)) { in qauthz_list_is_allowed() 49 if (g_pattern_match_simple(rule->match, identity)) { in qauthz_list_is_allowed() 151 const char *match, in qauthz_list_append_rule() argument 162 rule->match = g_strdup(match); in qauthz_list_append_rule() 185 const char *match, in qauthz_list_insert_rule() argument 197 rule->match = g_strdup(match); in qauthz_list_insert_rule() 221 ssize_t qauthz_list_delete_rule(QAuthZList *auth, const char *match) in qauthz_list_delete_rule() argument 231 if (g_str_equal(rule->match, match)) { in qauthz_list_delete_rule()
|
| /openbmc/sdbusplus/include/sdbusplus/bus/ |
| H A D | match.hpp | 16 namespace match namespace 19 struct match : private sdbusplus::bus::details::bus_friend struct 28 match(sdbusplus::bus_t& bus, const char* _match, 30 inline match(sdbusplus::bus_t& bus, const std::string& _match, in match() function 32 match(bus, _match.c_str(), handler, context) in match() 42 match(sdbusplus::bus_t& bus, const char* _match, callback_t callback); 43 inline match(sdbusplus::bus_t& bus, const std::string& _match, in match() argument 45 match(bus, _match.c_str(), std::move(callback)) in match() 193 using match_t = match::match;
|
| /openbmc/phosphor-fan-presence/control/json/triggers/ |
| H A D | signal.cpp | 40 using namespace sdbusplus::bus::match; 42 void subscribe(const std::string& match, SignalPkg&& signalPkg, in subscribe() argument 45 auto& signalData = mgr->getSignal(match); in subscribe() 53 if (!match.empty()) in subscribe() 57 mgr->getBus(), match.c_str(), in subscribe() 101 const auto match = in propertiesChanged() local 113 subscribe(match, std::move(signalPkg), isSameSig, mgr); in propertiesChanged() 125 const auto match = in interfacesAdded() local 137 subscribe(match, std::move(signalPkg), isSameSig, mgr); in interfacesAdded() 149 const auto match = in interfacesRemoved() local [all …]
|
| /openbmc/qemu/tests/tcg/plugins/ |
| H A D | insn.c | 40 Match *match; member 70 record->match = m; in get_insn_record() 111 Match *insn_match = insn->match; in vcpu_insn_matched_exec_before() 112 MatchCount *match = qemu_plugin_scoreboard_find(insn_match->counts, in vcpu_insn_matched_exec_before() local 118 uint64_t delta = icount - match->last_hit; in vcpu_insn_matched_exec_before() 120 match->hits++; in vcpu_insn_matched_exec_before() 121 match->total_delta += delta; in vcpu_insn_matched_exec_before() 122 match->last_hit = icount; in vcpu_insn_matched_exec_before() 134 match->hits, delta, in vcpu_insn_matched_exec_before() 135 match->total_delta / match->hits); in vcpu_insn_matched_exec_before() [all …]
|
| /openbmc/u-boot/cmd/ |
| H A D | ethsw.c | 633 int (*match)(enum ethsw_keyword_id key_id, int argc, char *const argv[], member 638 .match = &keyword_match_gen, 641 .match = &keyword_match_gen, 644 .match = &keyword_match_port 647 .match = &keyword_match_gen, 650 .match = &keyword_match_gen, 653 .match = &keyword_match_gen, 656 .match = &keyword_match_gen, 659 .match = &keyword_match_gen, 662 .match = &keyword_match_gen, [all …]
|