/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/bmcweb/include/ |
H A D | http_utility.hpp | 55 std::string_view encoding = header.substr(lastIndex, index); in getPreferredContentType() 67 encoding = encoding.substr(0, separator); in getPreferredContentType()
|
/openbmc/linux/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-transform.sh | 111 rq = substr(arg, length($i), 1); 112 arg = substr(arg, 1, length($i) - 1);
|
/openbmc/openbmc/poky/bitbake/doc/sphinx-static/ |
H A D | switchers.js | 64 var series = version.substr(0, 3); 209 var current_series = release.substr(0, 3); 225 var series = version.substr(0, 3);
|
/openbmc/dbus-sensors/src/ |
H A D | PSUSensorMain.cpp | 207 pathList[attrName.substr(0, attrName.find('_'))].push_back(eventPath); in checkGroupEvent() 227 std::string_view(sensorPathStr).substr(attributePartPos + 1); in checkEventLimits() 234 auto prefixPart = sensorPathStr.substr(0, attributePartPos + 1); in checkEventLimits() 263 std::string labelHeadIndex = labelHead.substr(3); in checkPWMSensor() 576 std::string sensorPathStrMax = sensorPathStr.substr(pos); in createSensorsCallback() 605 labelHead = sensorNameStr.substr(0, in createSensorsCallback() 621 labelHead = label.substr(0, label.find(' ')); in createSensorsCallback() 636 labelHead = sensorNameStr.substr(0, findIIOHyphen); in createSensorsCallback() 855 firstChar + sensorNameSubStr.substr(1) + "ScaleFactor"; in createSensorsCallback() 1034 cpuIndex = std::stoi(obj.substr(obj.find_last_of("cpu") + 1)); in getPresentCpus() [all …]
|
/openbmc/phosphor-gpio-monitor/presence/ |
H A D | main.cpp | 44 auto path = entry.substr(0, pos); in getDrivers() 45 auto device = entry.substr(pos + 1); in getDrivers()
|
/openbmc/service-config-manager/src/ |
H A D | main.cpp | 78 const auto& typeStr = fullUnitName.substr(typePos + 1); in getUnitNameTypeAndInstance() 92 instanceName = fullUnitName.substr(instancePos + 1, in getUnitNameTypeAndInstance() 94 unitName = fullUnitName.substr(0, instancePos); in getUnitNameTypeAndInstance() 98 unitName = fullUnitName.substr(0, typePos); in getUnitNameTypeAndInstance()
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | redfish_util.hpp | 93 std::string chassisId = subtree[0].first.substr(idPos + 1); in getMainChassisId() 132 std::string unitNameEnd = unitName.substr(lastCharPos); in getPortStatusAndPath() 147 std::string unitNameStr = unitName.substr(0, lastCharPos); in getPortStatusAndPath()
|
/openbmc/u-boot/board/gdsys/common/ |
H A D | osd.c | 425 char substr[5]; in osd_write() local 427 memcpy(substr, rp, 4); in osd_write() 428 substr[4] = 0; in osd_write() 429 *wp = simple_strtoul(substr, NULL, 16); in osd_write()
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | data_interface.hpp | 183 uint64_t seconds = atol(line.substr(0, pos).c_str()); in getUptimeInSeconds() 238 loadavg.append(line.substr(0, pos + 1)); in getBMCLoadAvg() 242 loadavg.append(line.substr(0, pos)); in getBMCLoadAvg() 245 line = line.substr(pos + 1); in getBMCLoadAvg()
|
/openbmc/openpower-pnor-code-mgmt/static/ |
H A D | item_updater_static.cpp | 156 auto flags = line.substr(pos); in getPartsToClear() 165 line = line.substr(pos); // Skipping "ID=xx" in getPartsToClear() 172 line = line.substr(pos); // Skipping spaces in getPartsToClear() 179 line = line.substr(0, pos); // The part name in getPartsToClear()
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric_config.cpp | 103 std::string typeStr = key.substr(0, key.find_first_of(keyDelimiter)); in from_json() 104 std::string boundStr = key.substr(key.find_last_of(keyDelimiter) + 1, in from_json() 174 std::string typeStr = name.substr(0, name.find_first_of(nameDelimiter)); in getHealthMetricConfigs()
|
/openbmc/openbmc/poky/scripts/ |
H A D | rootfs_rpm-extract-postinst.awk | 2 package = substr($0, 7)
|
/openbmc/openpower-pnor-code-mgmt/ubi/ |
H A D | serialize.cpp | 102 auto var = envVars.substr(varPosition); in restoreFromFile() 103 priority = std::stoi(var.substr(versionVar.length())); in restoreFromFile()
|
/openbmc/phosphor-logging/ |
H A D | elog_meta.hpp | 45 auto key = entryItem.substr(0, entryItem.find(separator)); in parse() 46 auto value = entryItem.substr(entryItem.find(separator) + 1); in parse()
|
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-httpd/apache2/apache2/ |
H A D | 0009-support-apxs.in-force-destdir-to-be-empty-string.patch | 36 - $destdir = substr($0, 0, $ddi); 42 +# $destdir = substr($0, 0, $ddi);
|
/openbmc/telemetry/src/utils/ |
H A D | to_short_enum.hpp | 13 return name.substr(pos + 1); in toShortEnum()
|
/openbmc/bmcweb/test/http/ |
H A D | http2_connection_test.cpp | 162 EXPECT_EQ(outStr.substr(0, expectedPrefix.size()), expectedPrefix); in TEST() 165 unpackHeaders(outStr.substr(0, headerSize), headers); in TEST()
|
/openbmc/phosphor-psu-code-mgmt/vendor-example/ |
H A D | get_version.cpp | 22 printf("%s", psu.substr(psu.size() - NUM_OF_BYTES).c_str()); in main()
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_proc.c | 40 char *substr; in dasd_devices_show() local 71 substr = (device->features & DASD_FEATURE_READONLY) ? "(ro)" : " "; in dasd_devices_show() 72 seq_printf(m, "%4s: ", substr); in dasd_devices_show()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fw_tracer.c | 419 char *substr, *pstr = str; in mlx5_tracer_get_num_of_params() local 423 substr = strstr(pstr, VAL_PARM); in mlx5_tracer_get_num_of_params() 424 while (substr) { in mlx5_tracer_get_num_of_params() 425 memcpy(substr, REPLACE_64_VAL_PARM, 4); in mlx5_tracer_get_num_of_params() 426 pstr = substr; in mlx5_tracer_get_num_of_params() 427 substr = strstr(pstr, VAL_PARM); in mlx5_tracer_get_num_of_params() 431 substr = strstr(str, PARAM_CHAR); in mlx5_tracer_get_num_of_params() 432 while (substr) { in mlx5_tracer_get_num_of_params() 434 str = substr + 1; in mlx5_tracer_get_num_of_params() 435 substr = strstr(str, PARAM_CHAR); in mlx5_tracer_get_num_of_params()
|
/openbmc/phosphor-networkd/src/ |
H A D | netlink.cpp | 42 auto msg = msgs.substr(NLMSG_HDRLEN, hdr.nlmsg_len - NLMSG_HDRLEN); in processMsg() 197 auto attr = data.substr(RTA_LENGTH(0), hdr.rta_len - RTA_LENGTH(0)); in extractRtAttr()
|
/openbmc/phosphor-objmgr/src/test/util/ |
H A D | asio_server_class.hpp | 30 dbusName += fullAppPath.substr(fileNameLoc + 1); in SetUpTestCase()
|
/openbmc/gpioplus/src/gpioplus/utility/ |
H A D | aspeed.hpp | 41 auto letters = name.substr(0, name.length() - 1); in nameToOffset()
|
/openbmc/phosphor-fan-presence/control/ |
H A D | fanctl.cpp | 68 fanName = path.substr(1 + itr); in justFanName() 145 fan = fan.substr(0, fan.rfind("_")); in loadDBusData() 159 fan = fan.substr(0, fan.rfind("_")); in loadDBusData() 458 std::string sensor(path.substr(path.rfind("/"))); in set() 462 sensor = sensor.substr(1); in set()
|