Lines Matching +full:entry +full:- +full:method

7 //      http://www.apache.org/licenses/LICENSE-2.0
27 #include <mtd/mtd-abi.h>
28 #include <mtd/mtd-user.h>
33 #include <phosphor-logging/elog-errors.hpp>
34 #include <phosphor-logging/log.hpp>
82 if (fs->exists(bmDriveCleaningDoneAckFlagPath, ec)) in isBmcInBareMetalMode()
91 if (fs->exists(bmDriveCleaningDoneFlagPath, ec)) in isBmcInBareMetalMode()
93 fs->rename(bmDriveCleaningDoneFlagPath, bmDriveCleaningDoneAckFlagPath, in isBmcInBareMetalMode()
102 if (fs->exists(BM_SIGNAL_PATH, ec)) in isBmcInBareMetalMode()
104 if (!fs->exists(bmDriveCleaningFlagPath, ec)) in isBmcInBareMetalMode()
106 fs->create(bmDriveCleaningFlagPath); in isBmcInBareMetalMode()
126 return isBmcInBareMetalMode(this->getFs()); in getBmcMode()
156 if (!this->getFs()->exists(path, ec)) in getRxPackets()
186 if (!this->getFs()->exists(opath.str(), ec)) in getCpldVersion()
227 static constexpr auto PSU_HARDRESET_TARGET = "gbmc-psu-hardreset.target";
252 auto method = bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_ROOT, in psuResetDelay() local
255 method.append(PSU_HARDRESET_TARGET); in psuResetDelay()
256 method.append("replace"); in psuResetDelay()
260 bus.call_noreply(method); in psuResetDelay()
303 log<level::ERR>("Unknown Entity ID", entry("ENTITY_ID=%d", id)); in getEntityName()
318 entityName = readNameFromConfig(it->second, instance, _entityConfig); in getEntityName()
334 const char* path = "/etc/os-release"; in getMachineName()
367 lineView.size() - 1 - in getMachineName()
368 std::min(lineView.find_last_not_of('"'), lineView.size() - 1)); in getMachineName()
374 static constexpr auto HOST_POWEROFF_TARGET = "gbmc-host-poweroff.target";
397 auto method = bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_ROOT, in hostPowerOffDelay() local
400 method.append(HOST_POWEROFF_TARGET); in hostPowerOffDelay()
401 method.append("replace"); in hostPowerOffDelay()
405 bus.call_noreply(method); in hostPowerOffDelay()
410 entry("WHAT=%s", ex.what())); in hostPowerOffDelay()
451 Handler::getI2cEntry(unsigned int entry) const in getI2cEntry()
453 return _pcie_i2c_map[entry]; in getI2cEntry()
480 return this->fsPtr; in getFs()
490 auto method = bus.new_method_call(ACCEL_OOB_SERVICE, "/", in accelOobDeviceCount() local
493 bus.call(method).read(data); in accelOobDeviceCount()
499 entry("WHAT=%s", ex.what())); in accelOobDeviceCount()
513 auto method = bus.new_method_call(ACCEL_OOB_SERVICE, "/", in accelOobDeviceName() local
516 bus.call(method).read(data); in accelOobDeviceName()
522 entry("WHAT=%s", ex.what())); in accelOobDeviceName()
530 entry("INDEX=%zu", index), entry("NUM_NAMES=%zu", data.size())); in accelOobDeviceName()
552 auto method = bus.new_method_call(ACCEL_OOB_SERVICE, object_name.c_str(), in accelOobRead() local
554 method.append(address, static_cast<uint64_t>(num_bytes)); in accelOobRead()
560 bus.call(method).read(bytes); in accelOobRead()
565 entry("WHAT=%s", ex.what()), in accelOobRead()
566 entry("DBUS_SERVICE=%s", ACCEL_OOB_SERVICE), in accelOobRead()
567 entry("DBUS_OBJECT=%s", object_name.c_str()), in accelOobRead()
568 entry("DBUS_INTERFACE=%s", ACCEL_OOB_INTERFACE), in accelOobRead()
569 entry("DBUS_METHOD=%s", ACCEL_OOB_METHOD), in accelOobRead()
570 entry("DBUS_ARG_ADDRESS=%016llx", address), in accelOobRead()
571 entry("DBUS_ARG_NUM_BYTES=%zu", (size_t)num_bytes)); in accelOobRead()
580 entry("DBUS_SERVICE=%s", ACCEL_OOB_SERVICE), in accelOobRead()
581 entry("DBUS_OBJECT=%s", object_name.c_str()), in accelOobRead()
582 entry("DBUS_INTERFACE=%s", ACCEL_OOB_INTERFACE), in accelOobRead()
583 entry("DBUS_METHOD=%s", ACCEL_OOB_METHOD), in accelOobRead()
584 entry("DBUS_ARG_ADDRESS=%016llx", address), in accelOobRead()
585 entry("DBUS_ARG_NUM_BYTES=%zu", (size_t)num_bytes), in accelOobRead()
586 entry("DBUS_RETURN_SIZE=%zu", bytes.size())); in accelOobRead()
594 entry("DBUS_SERVICE=%s", ACCEL_OOB_SERVICE), in accelOobRead()
595 entry("DBUS_OBJECT=%s", object_name.c_str()), in accelOobRead()
596 entry("DBUS_INTERFACE=%s", ACCEL_OOB_INTERFACE), in accelOobRead()
597 entry("DBUS_METHOD=%s", ACCEL_OOB_METHOD), in accelOobRead()
598 entry("DBUS_ARG_ADDRESS=%016llx", address), in accelOobRead()
599 entry("DBUS_ARG_NUM_BYTES=%zu", (size_t)num_bytes), in accelOobRead()
600 entry("DBUS_RETURN_SIZE=%zu", bytes.size())); in accelOobRead()
625 entry("DBUS_SERVICE=%s", ACCEL_OOB_SERVICE), in accelOobWrite()
626 entry("DBUS_OBJECT=%s", object_name.c_str()), in accelOobWrite()
627 entry("DBUS_INTERFACE=%s", ACCEL_OOB_INTERFACE), in accelOobWrite()
628 entry("DBUS_METHOD=%s", ACCEL_OOB_METHOD.data()), in accelOobWrite()
629 entry("DBUS_ARG_ADDRESS=%016llx", address), in accelOobWrite()
630 entry("DBUS_ARG_NUM_BYTES=%zu", (size_t)num_bytes), in accelOobWrite()
631 entry("DBUS_ARG_DATA=%016llx", data)); in accelOobWrite()
646 auto method = in accelOobWrite() local
649 method.append(address, bytes); in accelOobWrite()
650 bus.call_noreply(method); in accelOobWrite()
655 entry("WHAT=%s", ex.what()), in accelOobWrite()
656 entry("DBUS_SERVICE=%s", ACCEL_OOB_SERVICE), in accelOobWrite()
657 entry("DBUS_OBJECT=%s", object_name.c_str()), in accelOobWrite()
658 entry("DBUS_INTERFACE=%s", ACCEL_OOB_INTERFACE), in accelOobWrite()
659 entry("DBUS_METHOD=%s", ACCEL_OOB_METHOD.data()), in accelOobWrite()
660 entry("DBUS_ARG_ADDRESS=%016llx", address), in accelOobWrite()
661 entry("DBUS_ARG_NUM_BYTES=%zu", (size_t)num_bytes), in accelOobWrite()
662 entry("DBUS_ARG_DATA=%016llx", data)); in accelOobWrite()
673 static constexpr auto BARE_METAL_TARGET = "gbmc-bare-metal-active@0.target";
677 if (isBmcInBareMetalMode(this->fsPtr) != in linuxBootDone()
687 auto method = bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_ROOT, in linuxBootDone() local
690 method.append(BARE_METAL_TARGET); in linuxBootDone()
691 method.append("replace"); in linuxBootDone()
695 bus.call_noreply(method); in linuxBootDone()
700 entry("WHAT=%s", ex.what())); in linuxBootDone()
719 entry("settings_id=%d", settings_id)); in accelSetVrSettings()
728 ctx->bus->yield_method_call( in accelSetVrSettings()
729 ctx->yield, ec, ACCEL_POWER_SERVICE, object_name.c_str(), in accelSetVrSettings()
757 entry("settings_id=%d", settings_id)); in accelGetVrSettings()
761 value = ctx->bus->yield_method_call<std::variant<double>>( in accelGetVrSettings()
762 ctx->yield, ec, EXTERNAL_SENSOR_SERVICE, object_name.c_str(), in accelGetVrSettings()
785 propertyTypeString = it->second; in getBMInstanceProperty()
787 std::string opath = std::format("/run/bm-instance/{}", propertyTypeString); in getBMInstanceProperty()
792 if (!this->getFs()->exists(opath, ec)) in getBMInstanceProperty()