| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/upm/upm/ |
| H A D | 0001-Use-stdint-types.patch | 25 if(tok.substr(0, 20) == "setInterruptEnable0:") { 26 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 27 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 30 if(tok.substr(0, 20) == "setInterruptEnable1:") { 31 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 32 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 35 if(tok.substr(0, 20) == "setInterruptEnable2:") { 36 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 37 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 40 if(tok.substr(0, 17) == "setInterruptMap0:") { [all …]
|
| /openbmc/phosphor-misc/http-redirect/ |
| H A D | http-redirect.awk | 55 header = substr($0, 1, RSTART - 1) 56 content = substr($0, RSTART + RLENGTH) 143 host = substr(host, 1, RSTART - 1) 223 code = (hex2dec(substr(input, i + 1, 1)) * 16 + \ 224 hex2dec(substr(input, i + 2, 1))) 225 out = out substr(input, 1, i - 1) sprintf("%c", code) 226 input = substr(input, i + 3) 236 components["frag"] = substr(url, RSTART + 1) 237 url = substr(url, 1, RSTART - 1) 241 components["query"] = substr(url, RSTART + 1) [all …]
|
| /openbmc/phosphor-psu-code-mgmt/src/ |
| H A D | version.cpp | 54 ret.emplace(key, line.substr(keySize)); in getValues() 85 std::string substr; in getExtVersionInfo() local 86 getline(ss, substr, ','); in getExtVersionInfo() 87 auto pos = substr.find('='); in getExtVersionInfo() 90 std::string key = substr.substr(0, pos); in getExtVersionInfo() 91 std::string value = substr.substr(pos + 1); in getExtVersionInfo()
|
| /openbmc/phosphor-bmc-code-mgmt/bmc/ |
| H A D | version.cpp | 79 values.push_back(line.substr(keySize)); in getRepeatedValues() 138 if (line.substr(0, machineKey.size()).find(machineKey) != in getBMCMachine() 142 machine = line.substr(pos, line.find_last_of('"') - pos); in getBMCMachine() 166 if (line.substr(0, extendedVersionKey.size()) in getBMCExtendedVersion() 169 extendedVersionValue = line.substr(extendedVersionKey.size()); in getBMCExtendedVersion() 171 extendedVersion = extendedVersionValue.substr( in getBMCExtendedVersion() 191 if (line.substr(0, versionKey.size()).find(versionKey) != in getBMCVersion() 196 versionValue = line.substr(versionKey.size()); in getBMCVersion() 211 versionValue.substr(pos, versionValue.find_last_of('"') - pos); in getBMCVersion()
|
| H A D | serialize.cpp | 98 devicePath = "/dev/" + device.substr(0, device.find(':')); in restorePriority() 116 auto var = envVars.substr(varPosition); in restorePriority() 117 priority = std::stoi(var.substr(versionVar.length())); in restorePriority()
|
| /openbmc/bmcweb/http/ |
| H A D | mutual_tls.cpp | 62 std::string_view upnDomain = upn.substr(upnDomainPos + 1); in isUPNMatch() 69 upnDomainMatching = upnDomain.substr(dotUPNPos + 1); in isUPNMatch() 76 hostDomainMatching = hostname.substr(dotHostPos + 1); in isUPNMatch() 89 upnDomain = upnDomain.substr(0, dotUPNPos); in isUPNMatch() 90 hostname = hostname.substr(0, dotHostPos); in isUPNMatch() 138 ret = upn.substr(0, upnDomainPos); in getUPNFromCert()
|
| /openbmc/phosphor-logging/ |
| H A D | util.cpp | 31 if (line.substr(0, keyPattern.size()).find(keyPattern) != in getOSReleaseValue() 37 auto value = line.substr(keyPattern.size()); in getOSReleaseValue() 39 return value.substr(pos, value.find_last_of('"') - pos); in getOSReleaseValue() 205 auto key = entryItem.substr(0, entryItem.find(separator)); in parse() 206 auto value = entryItem.substr(entryItem.find(separator) + 1); in parse()
|
| /openbmc/telemetry/src/utils/ |
| H A D | make_id_name.cpp | 64 prefixes + strippedId.substr(0, constants::maxIdNameLength); in generateId() 79 strippedId.substr(0, constants::maxIdNameLength - digitsInIdx) + in generateId() 104 name = name.substr(pos + 1); in makeIdName() 107 name = name.substr(0, constants::maxIdNameLength); in makeIdName()
|
| /openbmc/openbmc-tools/dbus-vis/ |
| H A D | boost_handler_timeline_vis.js | 27 const d1 = desc.substr(idx0 + 2); 35 return desc.substr(0, idx0) + d1.substr(idx1) 57 const handler_id = parseInt(action.substr(idx + 1)); 68 handler_id = parseInt(action.substr(1)); 75 handler_id = parseInt(action.substr(1));
|
| H A D | ipmi_parse.js | 8 let line1 = line.substr(i0); 13 let line2 = line1.substr(5, i1 - 5); 24 let line1 = line.substr(i0); 29 let line2 = line1.substr(N, i1 - N); 50 return [parseInt(l.substr(idx + 4), 10), i + 1]; 61 let the_ch = l.substr(idx + 16, 1); 363 let l = g_ipmi_parse_buf.substr(0, idx); 365 g_ipmi_parse_buf = g_ipmi_parse_buf.substr(idx + 1);
|
| /openbmc/phosphor-pid-control/sysfs/ |
| H A D | util.cpp | 30 std::string base = original.substr(0, n); in FixupPath() 32 std::string f = original.substr(n + 2, original.size() - (n + 2)); in FixupPath()
|
| /openbmc/bmcweb/redfish-core/include/ |
| H A D | gzfile.hpp | 105 bufferStr.substr(initialPos, pos - initialPos); in hostLogEntryParser() 137 delimiters = bufferStr.substr(pos - 1, 2); in hostLogEntryParser() 142 delimiters = lastDelimiter + bufferStr.substr(0, 1); in hostLogEntryParser() 168 newLastMessage = bufferStr.substr(initialPos); in hostLogEntryParser()
|
| H A D | sub_route_trie.hpp | 71 params.emplace_back(reqUrl.substr(0, epos)); in findHelper() 73 findHelper(reqUrl.substr(epos), in findHelper() 104 findHelper(reqUrl.substr(fragment.size()), child, params); in findHelper() 135 fragment = urlIn.substr(fragmentPos + 1); in add() 136 url = urlIn.substr(0, fragmentPos); in add()
|
| /openbmc/openbmc/poky/meta/recipes-core/busybox/files/ |
| H A D | mdev-mount.sh | 17 DEVBASE=`expr substr $MDEV 1 3` 19 DEVBASE=`expr substr $MDEV 1 7`
|
| /openbmc/phosphor-networkd/src/ |
| H A D | config_parser.cpp | 170 for (auto c : line.substr(cpos + 1)) in pumpSection() 181 auto s = line.substr(0, cpos); in pumpSection() 200 auto k = line.substr(0, epos); in pumpKV() 215 auto v = line.substr(epos + 1); in pumpKV() 239 return pumpSection(line.substr(i + 1)); in pump() 243 return pumpKV(line.substr(i)); in pump()
|
| H A D | util.cpp | 98 auto interface = interfaces.substr(0, sep); in parseInterfaces() 115 interfaces = interfaces.substr(sep + 1); in parseInterfaces() 255 std::string portName = line.substr(portStart, portEnd - portStart); in parseLLDPConf() 259 std::string statusStr = line.substr(pos + lldpStatusStr.size()); in parseLLDPConf()
|
| /openbmc/phosphor-host-ipmid/include/ipmid/ |
| H A D | sessionhelper.hpp | 41 std::string sessionIdString = objectPath.substr(ptrPosition + 1); in parseCloseSessionInputPayload() 47 std::string sessionHandleString = sessionIdString.substr(pos + 1); in parseCloseSessionInputPayload()
|
| /openbmc/sdbusplus/src/message/ |
| H A D | native_types.cpp | 63 auto filename = strv.substr(firstIndex + 1); in filename() 109 return str.substr(0, index); in parent_path() 135 for (auto c : extId.substr(1)) in operator /=()
|
| /openbmc/bmcweb/include/ |
| H A D | authentication.hpp | 48 std::string_view param = authHeader.substr(strlen("Basic ")); in performBasicAuth() 61 std::string user = authData.substr(0, separator); in performBasicAuth() 67 std::string pass = authData.substr(separator); in performBasicAuth() 113 std::string_view token = authHeader.substr(strlen("Token ")); in performTokenAuth() 161 cookieValue.substr(startIndex, endIndex - startIndex); in performCookieAuth()
|
| /openbmc/phosphor-led-sysfs/ |
| H A D | add_led_action.cpp | 25 std::string led = path.substr(strlen(devPath)); in rootPathVerify() 32 led = led.substr(1); in rootPathVerify()
|
| /openbmc/phosphor-logging/phosphor-rsyslog-config/ |
| H A D | server-conf.cpp | 91 line.substr(posColonLeft + 1, posColonRight - posColonLeft - 1); in parseConfig() 92 serverPort = line.substr(posColonRight + 2); in parseConfig() 102 serverAddress = line.substr(start, pos - start); in parseConfig() 103 serverPort = line.substr(pos + 1); in parseConfig()
|
| /openbmc/openbmc/meta-yadro/recipes-phosphor/ipmi/phosphor-ipmi-host/ |
| H A D | 0003-Fix-version-parsing-update-AUX-revision-info.patch | 67 + results.push_back(str.substr(j, k-j)); 194 - static_cast<char>(std::stoi(s.substr(0, location), 0, 10)); 195 - token = s.substr(location + 1); 221 - std::stoi(token.substr(0, location), 0, 10)); 222 - token = token.substr(location + 1); 249 - commits = std::stoi(token.substr(0, location), 0, 16); 258 - token = token.substr(location + 1); 264 + hashstr = tokens[i].substr(1, AUX_HASH_LEN); 276 - token = token.substr(location + 1); 288 - token = token.substr(location + 1);
|
| /openbmc/ibm-logging/ |
| H A D | policy_find.cpp | 75 value = item.substr(item.find('=') + 1); in getAdditionalDataItem() 130 auto userHeader = data.substr(UH_OFFSET, 5); in getESELSeverity() 137 auto sevType = data.substr(UH_OFFSET + UH_SEV_OFFSET, 1); in getESELSeverity()
|
| /openbmc/phosphor-logging/extensions/openpower-pels/tools/ |
| H A D | peltool.cpp | 50 std::string token = fileName.substr(0, fileName.find("_")); in fileNameToTimestamp() 58 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 68 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 78 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 88 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 98 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 108 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 118 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 128 auto tmp = std::stoul(token.substr(i, 2), nullptr, 16); in fileNameToTimestamp() 149 num = std::stoul(fileName.substr(fileName.find("_") + 1), nullptr, 16); in fileNameToPELId() [all …]
|
| /openbmc/bmcweb/http/routing/ |
| H A D | trie.hpp | 130 findRouteIndexesHelper(reqUrl.substr(fragment.size()), in findRouteIndexesHelper() 172 params.emplace_back(reqUrl.substr(0, epos)); in findHelper() 174 reqUrl.substr(epos), nodes[node.stringParamChild], params); in findHelper() 203 findHelper(reqUrl.substr(fragment.size()), child, params); in findHelper()
|