Home
last modified time | relevance | path

Searched refs:deviceName (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/entity-manager/test/
H A Dtest_gpio_presence_state.cpp26 std::string deviceName = "device1"; in TEST_F() local
28 DevicePresence device(ctx, gpioNames, gpioValues, deviceName, gpioState, in TEST_F()
31 EXPECT_EQ(device.deviceName, deviceName); in TEST_F()
41 std::string deviceName = "device2"; in TEST_F() local
43 DevicePresence device(ctx, gpioNames, gpioValues, deviceName, gpioState, in TEST_F()
46 EXPECT_EQ(device.deviceName, deviceName); in TEST_F()
56 std::string deviceName = "device3"; in TEST_F() local
58 DevicePresence device(ctx, gpioNames, gpioValues, deviceName, gpioState, in TEST_F()
61 EXPECT_EQ(device.deviceName, deviceName); in TEST_F()
75 std::string deviceName = "device1"; in TEST_F() local
[all …]
/openbmc/entity-manager/src/gpio-presence/
H A Ddevice_presence.cpp27 const std::vector<uint64_t>& gpioValues, const std::string& deviceName, in DevicePresence() argument
30 deviceName(deviceName), gpioState(gpioState), ctx(ctx), in DevicePresence()
55 sdbusplus::message::object_path objPath = objPathBase / deviceName; in getObjPath()
87 deviceName); in updateDbusInterfaces()
95 deviceName); in updateDbusInterfaces()
103 DevicePresenceProperties{deviceName, firstCompatible}); in updateDbusInterfaces()
111 deviceName); in updateDbusInterfaces()
H A Ddevice_presence.hpp32 const std::string& deviceName,
46 const std::string deviceName; member in gpio_presence::DevicePresence
/openbmc/dbus-sensors/src/fan/
H A DPresenceGpio.cpp33 const std::string& deviceName, in PresenceGpio() argument
35 deviceType(deviceType), deviceName(deviceName), gpioName(gpioName) in PresenceGpio()
55 logPresent(deviceName); in updateAndTracePresence()
59 logRemoved(deviceName); in updateAndTracePresence()
64 const std::string& deviceType, const std::string& deviceName, in EventPresenceGpio() argument
66 PresenceGpio(deviceType, deviceName, gpioName), gpioFd(io) in EventPresenceGpio()
112 "NAME", self->deviceName, "ERROR_MESSAGE", in monitorPresence()
130 const std::string& deviceType, const std::string& deviceName, in PollingPresenceGpio() argument
132 PresenceGpio(deviceType, deviceName, gpioName), pollTimer(io) in PollingPresenceGpio()
H A DPresenceGpio.hpp15 PresenceGpio(const std::string& deviceType, const std::string& deviceName,
31 std::string deviceName; member in PresenceGpio
36 std::string summary = deviceType + " " + deviceName + " Inserted"; in logPresent()
44 std::string summary = deviceType + " " + deviceName + " Removed"; in logRemoved()
59 const std::string& deviceName,
77 const std::string& deviceName,
H A DFanMain.cpp363 std::string deviceName = in createSensors() local
369 if (!getDeviceBusAddr(deviceName, bus, addr)) in createSensors()
/openbmc/phosphor-bmc-code-mgmt/bmc/usb/
H A Dusb_manager_main.cpp11 std::string deviceName{}; in main() local
14 app.add_option("-d,--device", deviceName, in main()
20 if (deviceName.empty()) in main()
26 fs::path devicePath = fs::path{"/dev"} / deviceName; in main()
27 fs::path usbPath = fs::path{"/run/media/usb"} / deviceName; in main()
/openbmc/phosphor-modbus/tests/
H A Dtest_inventory.cpp37 static constexpr const auto deviceName = "Test1"; member in InventoryTest
56 .name = deviceName, in testInventorySourceCreation()
81 std::format("{} {} {}", deviceName, in testInventorySourceCreation()
100 deviceName, TestIntf::testDeviceAddress, portConfig.name); in TEST_F()
H A Dtest_firmware.cpp55 std::string deviceName; member in FirmwareTest
66 deviceName = std::format("ResorviorPumpUnit_{}_{}", in FirmwareTest()
69 std::format("{}/{}", SoftwareIntf::namespace_path, deviceName); in FirmwareTest()
85 .name = deviceName, in testFirmwareVersion()
H A Dtest_sensors.cpp54 std::string deviceName; member in SensorsTest
65 deviceName = std::format("ResorviorPumpUnit_{}_{}", in SensorsTest()
68 fullSensorName = std::format("{}_{}", deviceName, sensorName); in SensorsTest()
97 .name = deviceName, in testSensorCreation()
H A Dtest_device_events.cpp120 std::string deviceName; member in DeviceEventsTest
138 deviceName = std::format("ResorviorPumpUnit_{}_{}", in DeviceEventsTest()
141 fullSensorName = std::format("{}_{}", deviceName, sensorName); in DeviceEventsTest()
220 .name = deviceName, in testSensorCreation()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/eject/eject/
H A Deject-2.1.5-spaces.patch49 - *deviceName = strdup(s1);
51 + *deviceName = DeMangleMount(strdup(s1));
60 - *deviceName = strdup(s1);
62 + *deviceName = DeMangleMount(strdup(s1));
/openbmc/phosphor-power/phosphor-power-sequencer/src/
H A Ducd90320_device.hpp63 UCD90xDevice(deviceName, bus, address, powerControlGPIOName, in UCD90320Device()
67 constexpr static std::string deviceName{"UCD90320"}; member in phosphor::power::sequencer::UCD90320Device
H A Ducd90160_device.hpp63 UCD90xDevice(deviceName, bus, address, powerControlGPIOName, in UCD90160Device()
67 constexpr static std::string deviceName{"UCD90160"}; member in phosphor::power::sequencer::UCD90160Device
H A Dgpios_only_device.hpp71 BasicDevice(deviceName, 0, 0x00, powerControlGPIOName, in GPIOsOnlyDevice()
117 inline static const std::string deviceName{"gpios_only_device"}; member in phosphor::power::sequencer::GPIOsOnlyDevice
H A Dconfig_file_parser.cpp342 else if (type != GPIOsOnlyDevice::deviceName) in parsePowerSequencer()
369 else if (type != GPIOsOnlyDevice::deviceName) in parsePowerSequencer()
377 if (type == UCD90160Device::deviceName) in parsePowerSequencer()
383 else if (type == UCD90320Device::deviceName) in parsePowerSequencer()
389 else if (type == GPIOsOnlyDevice::deviceName) in parsePowerSequencer()
/openbmc/dbus-sensors/src/
H A DUtils.hpp405 bool getDeviceBusAddr(const std::string& deviceName, T& bus, T& addr) in getDeviceBusAddr() argument
407 auto findHyphen = deviceName.find('-'); in getDeviceBusAddr()
410 lg2::error("found bad device '{NAME}'", "NAME", deviceName); in getDeviceBusAddr()
413 std::string busStr = deviceName.substr(0, findHyphen); in getDeviceBusAddr()
414 std::string addrStr = deviceName.substr(findHyphen + 1); in getDeviceBusAddr()
420 lg2::error("Error finding bus for '{NAME}'", "NAME", deviceName); in getDeviceBusAddr()
426 lg2::error("Error finding addr for '{NAME}'", "NAME", deviceName); in getDeviceBusAddr()
/openbmc/estoraged/src/
H A Dutil.cpp250 std::filesystem::path deviceName(dirEntry.path().filename()); in findDevice() local
256 deviceFile /= deviceName; in findDevice()
258 std::string luksName = "luks-" + deviceName.string(); in findDevice()
H A Destoraged.cpp70 std::string deviceName = std::filesystem::path(devPath).filename().string(); in EStoraged() local
73 "/xyz/openbmc_project/inventory/storage/" + deviceName; in EStoraged()
/openbmc/dbus-sensors/src/hwmon-temp/
H A DHwmonTempMain.cpp317 std::string deviceName; in createSensors() local
328 deviceName = device.parent_path().stem(); in createSensors()
340 deviceName = device.stem(); in createSensors()
345 if (!getDeviceBusAddr(deviceName, bus, addr)) in createSensors()
404 "NAME", deviceName); in createSensors()
/openbmc/dbus-sensors/src/psu/
H A DPSUSensorMain.cpp370 std::string deviceName; in createSensorsCallback() local
386 deviceName = matchStr.substr(matchStr.find_last_of('/') + 1); in createSensorsCallback()
390 deviceName = in createSensorsCallback()
397 if (!getDeviceBusAddr(deviceName, bus, addr)) in createSensorsCallback()
424 "NAME", deviceName); in createSensorsCallback()
471 lg2::error("failed to find match for '{NAME}'", "NAME", deviceName); in createSensorsCallback()
491 "NAME", deviceName); in createSensorsCallback()
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Dgpios_only_device_tests.cpp42 EXPECT_EQ(device.getName(), GPIOsOnlyDevice::deviceName); in TEST()
/openbmc/entity-manager/src/entity_manager/
H A Dperform_scan.cpp536 std::string deviceName = generateDeviceName( in updateSystemConfiguration() local
539 record["Name"] = deviceName; in updateSystemConfiguration()
541 usedNames.insert(deviceName); in updateSystemConfiguration()
/openbmc/phosphor-webui/app/server-control/controllers/
H A Dvirtual-media-controller.js28 vmDevice.deviceName = 'Virtual media device';
/openbmc/dbus-sensors/src/intel-cpu/
H A DIntelCPUSensorMain.cpp216 std::string deviceName = *it; in createSensors() local
220 if (!getDeviceBusAddr(deviceName, bus, addr)) in createSensors()

12