Home
last modified time | relevance | path

Searched +full:auto +full:- +full:string +full:- +full:detection (Results 1 – 25 of 169) sorted by relevance

1234567

/openbmc/phosphor-power/phosphor-regulators/test/
H A Dphase_fault_detection_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
39 #include <string>
65 * - Regulator Device
66 * - I/O expander Device
67 * - Chassis that contains the Devices
68 * - System that contains the Chassis
77 auto regI2CInterface = std::make_unique<i2c::MockedI2CInterface>();
78 this->regI2CInterface = regI2CInterface.get();
81 auto regulator = std::make_unique<Device>(
85 this->regulator = regulator.get();
[all …]
H A Dpresence_detection_tests.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
36 #include <string>
60 * @param detection PresenceDetection object to move into object hierarchy
66 createParentObjects(std::unique_ptr<PresenceDetection> detection) in createParentObjects() argument
76 std::move(i2cInterface), std::move(detection)); in createParentObjects()
101 PresenceDetection detection{std::move(actions)}; in TEST() local
102 EXPECT_EQ(detection.getActions().size(), 1); in TEST()
103 EXPECT_FALSE(detection.getCachedPresence().has_value()); in TEST()
115 PresenceDetection* detection = new PresenceDetection(std::move(actions)); in TEST() local
118 auto [system, chassis, device] = in TEST()
[all …]
/openbmc/phosphor-fan-presence/presence/
H A Djson_parser.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
26 #include <phosphor-logging/log.hpp>
33 #include <string>
47 const std::map<std::string, methodHandler> JsonConfig::_methods = {
49 const std::map<std::string, rpolicyHandler> JsonConfig::_rpolicies = {
52 const auto loggingPath = "/xyz/openbmc_project/logging";
53 const auto loggingCreateIface = "xyz.openbmc_project.Logging.Create";
67 for (auto& p : _policies) in start()
69 p->monitor(); in start()
91 for (auto& p : _policies) in sighupHandler()
[all …]
H A Djson_parser.hpp14 #include <string>
27 constexpr auto confFileName = "config.json";
28 constexpr auto confAppName = "presence";
32 constexpr auto fanPolicyFanPos = 0;
33 constexpr auto fanPolicySensorListPos = 1;
56 * @param[in] bus - sdbusplus bus object
63 * @return - The fan presence policies
71 * @param[in] sigSrc - sd_event_source signal wrapper
72 * @param[in] sigInfo - signal info on signal fd
95 static const std::map<std::string, methodHandler> _methods;
[all …]
H A Dgpio.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <phosphor-logging/elog-errors.hpp>
23 #include <phosphor-logging/elog.hpp>
38 const auto loggingService = "xyz.openbmc_project.Logging";
39 const auto loggingPath = "/xyz/openbmc_project/logging";
40 const auto loggingCreateIface = "xyz.openbmc_project.Logging.Create";
42 Gpio::Gpio(const std::string& physDevice, const std::string& device, in Gpio()
96 void Gpio::logConflict(const std::string& fanInventoryPath) const in logConflict()
99 std::map<std::string, std::string> ad; in logConflict()
102 static constexpr auto errorName = in logConflict()
[all …]
/openbmc/phosphor-debug-collector/
H A Dramoops_manager.cpp7 #include <phosphor-logging/elog-errors.hpp>
8 #include <phosphor-logging/lg2.hpp>
24 Manager::Manager(const std::string& filePath) in Manager()
37 std::vector<std::string> files; in Manager()
47 std::map<std::string, std::string> additionalData; in createError()
52 auto bus = sdbusplus::bus::new_default(); in createError()
53 auto method = bus.new_method_call( in createError()
61 auto resp = bus.call(method); in createError()
66 "sdbusplus D-Bus call exception, error {ERROR} trying to create " in createError()
67 "an error for ramoops detection", in createError()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/leds/backlight/
H A Dqcom-wled.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
11 - Kiran Gunda <kgunda@codeaurora.org>
21 - qcom,pm8941-wled
22 - qcom,pmi8950-wled
23 - qcom,pmi8994-wled
24 - qcom,pmi8998-wled
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/src/
H A Dpmbus_driver_device.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
37 std::string label{name}; in getGPIOValues()
60 std::string fileName = std::format("status{:d}", page); in getStatusWord()
61 value = pmbusInterface->read(fileName, Type::Debug); in getStatusWord()
77 std::string fileName = std::format("status{:d}_vout", page); in getStatusVout()
78 value = pmbusInterface->read(fileName, Type::Debug); in getStatusVout()
95 std::string fileName = std::format("in{}_input", fileNumber); in getReadVout()
96 std::string millivoltsStr = in getReadVout()
97 pmbusInterface->readString(fileName, Type::Hwmon); in getReadVout()
116 std::string fileName = std::format("in{}_lcrit", fileNumber); in getVoutUVFaultLimit()
[all …]
/openbmc/openpower-occ-control/
H A Docc_status.hpp49 using sensorName = std::string;
55 const std::string sysfsName = "occ-hwmon";
79 * @param[in] event - sd_event unique pointer reference
80 * @param[in] path - DBus object path
81 * @param[in] manager - OCC manager instance
82 * @param[in] callBack - Callback handler to invoke during
84 * @param[in] resetCallBack - callback handler to invoke for resetting the
128 (std::string(OCC_NAME) + std::to_string(instance))) in Status()
144 this->emit_object_added(); in Status()
147 /** @brief Since we are overriding the setter-occActive but not the
[all …]
H A Docc_manager.hpp51 constexpr auto AMBIENT_PATH =
53 constexpr auto AMBIENT_INTERFACE = "xyz.openbmc_project.Sensor.Value";
54 constexpr auto AMBIENT_PROP = "Value";
55 constexpr auto ALTITUDE_PATH = "/xyz/openbmc_project/sensors/altitude/Altitude";
56 constexpr auto ALTITUDE_INTERFACE = "xyz.openbmc_project.Sensor.Value";
57 constexpr auto ALTITUDE_PROP = "Value";
72 /** @brief Adds OCC pass-through and status objects on the bus
75 * @param[in] event - Unique ptr reference to sd_event
131 inline auto getNumOCCs() const in getNumOCCs()
140 * @param[in] instance - the OCC instance id
[all …]
/openbmc/dbus-sensors/src/intrusion/
H A DIntrusionSensorMain.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
24 #include <phosphor-logging/lg2.hpp>
43 #include <string>
53 static constexpr auto nicTypes{std::to_array<const char*>({nicType})};
55 static const std::map<std::string, std::string> compatibleHwmonNames = {
57 // Add compatible strings here for new hwmon intrusion detection
79 const std::pair<std::string, SensorBaseConfigMap>* baseConfiguration = in createSensorsFromConfig()
82 for (const auto& [path, cfgData] : sensorConfigurations) in createSensorsFromConfig()
88 auto sensorBase = sensorData->find(configInterfaceName(sensorType)); in createSensorsFromConfig()
89 if (sensorBase == sensorData->end()) in createSensorsFromConfig()
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dmanager.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
42 constexpr auto busName = "xyz.openbmc_project.Power.Regulators";
43 constexpr auto managerObjPath = "/xyz/openbmc_project/power/regulators/manager";
44 constexpr auto chassisStatePath = "/xyz/openbmc_project/state/chassis0";
45 constexpr auto chassisStateIntf = "xyz.openbmc_project.State.Chassis";
46 constexpr auto chassisStateProp = "CurrentPowerState";
54 * implement the D-Bus compatible interface.
56 constexpr auto defaultConfigFileName = "config.json";
62 const fs::path standardConfigFileDir{"/usr/share/phosphor-regulators"};
68 const fs::path testConfigFileDir{"/etc/phosphor-regulators"};
[all …]
/openbmc/phosphor-fan-presence/monitor/
H A Dsystem.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
35 #include <phosphor-logging/log.hpp>
49 const std::string System::dumpFile = "/tmp/fan_monitor_dump.json";
68 // must be done before service detection in start()
96 auto trustGrps = getTrustGroups(jsonObj); in load()
97 auto fanDefs = getFanDefinitions(jsonObj); in load()
115 if (_powerState->isPowerOn()) in load()
121 [this](auto& rule) { in load()
122 rule->check(PowerRuleState::runtime, _fanHealth); in load()
139 std::set<std::string> unique_interfaces{util::FAN_SENSOR_VALUE_INTF}; in subscribeSensorsToServices()
[all …]
/openbmc/linux/Documentation/sound/hd-audio/
H A Dnotes.rst2 More Notes on HD-Audio Driver
11 HD-audio is the new standard on-board audio component on modern PCs
12 after AC97. Although Linux has been supporting HD-audio since long
15 This document explains the brief trouble-shooting and debugging
16 methods for the HD-audio hardware.
18 The HD-audio component consists of two parts: the controller chip and
19 the codec chips on the HD-audio bus. Linux provides a single driver
20 for all controllers, snd-hda-intel. Although the driver name contains
21 a word of a well-known hardware vendor, it's not specific to it but for
22 all controller chips by other companies. Since the HD-audio
[all …]
/openbmc/qemu/include/standard-headers/linux/
H A Dethtool.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
19 #include "standard-headers/linux/const.h"
20 #include "standard-headers/linux/types.h"
21 #include "standard-headers/linux/if_ether.h"
26 * have the same layout for 32-bit and 64-bit userland.
38 * struct ethtool_cmd - DEPRECATED, link control and status
43 * interface supports autonegotiation or auto-detection.
44 * Read-only.
48 * auto-detection.
56 * @autoneg: Enable/disable autonegotiation and auto-detection;
[all …]
/openbmc/linux/kernel/module/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
63 bool "Debug duplicate modules with auto-loading"
65 Module autoloading allows in-kernel code to request modules through
74 requests are non-fatal virtual memory is a limited resource and each
79 module requests to help identify if module auto-loading may be the
92 non-wait request_module() call is synchronous and waits until modprobe
93 completes. Subsequent auto-loading requests for the same module do
101 abuse was due to module auto-loading. These issues are currently only
104 module auto-loading is not the culprit. There may very well still be
105 many duplicate module auto-loading requests which could be optimized
[all …]
/openbmc/linux/Documentation/devicetree/bindings/media/i2c/
H A Dsony,imx296.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Sony IMX296 1/2.8-Inch CMOS Image Sensor
10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11 - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
13 description: |-
14 The Sony IMX296 is a 1/2.9-Inch active pixel type CMOS Solid-state image
16 features a global shutter with variable charge-integration time. It is
17 programmable through I2C and 4-wire interfaces. The sensor output is
[all …]
/openbmc/linux/drivers/video/backlight/
H A Dqcom-wled.c1 // SPDX-License-Identifier: GPL-2.0-only
61 /* WLED3 specific per-'string' registers below */
93 /* WLED4 specific per-'string' registers below */
140 /* WLED5 specific per-'string' registers below */
225 * Determines if the auto string detection is required.
238 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled3_set_brightness()
239 rc = regmap_bulk_write(wled->regmap, wled->ctrl_addr + in wled3_set_brightness()
240 WLED3_SINK_REG_BRIGHT(wled->cfg.enabled_strings[i]), in wled3_set_brightness()
252 u16 low_limit = wled->max_brightness * 4 / 1000; in wled4_set_brightness()
261 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled4_set_brightness()
[all …]
/openbmc/linux/include/uapi/linux/
H A Dethtool.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
26 * have the same layout for 32-bit and 64-bit userland.
38 * struct ethtool_cmd - DEPRECATED, link control and status
43 * interface supports autonegotiation or auto-detection.
44 * Read-only.
48 * auto-detection.
56 * @autoneg: Enable/disable autonegotiation and auto-detection;
60 * Read-only.
62 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated.
64 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated.
[all …]
/openbmc/intel-ipmi-oem/include/
H A Dmanufacturingcommands.hpp8 // http://www.apache.org/licenses/LICENSE-2.0
19 #include <ipmid/api-types.hpp>
21 #include <phosphor-logging/log.hpp>
36 // TODO: Service names may change. Worth to consider dynamic detection.
204 std::string name;
205 std::string prevState;
206 std::string currentState;
210 LedProperty(SmSignalSet signal_, std::string name_) : in LedProperty()
225 void setPrevState(const std::string& state) in setPrevState()
229 void setCurrState(const std::string& state) in setCurrState()
[all …]
/openbmc/pldm/pldmtool/
H A Dpldm_platform_cmd.cpp29 static const std::map<uint8_t, std::string> sensorPresState{
42 static const std::map<uint8_t, std::string> sensorOpState{
52 const std::map<uint8_t, std::string> effecterOpState{
65 std::string getEffecterOpState(uint8_t state) in getEffecterOpState()
94 auto pdrOptionGroup = app->add_option_group( in GetPDR()
97 pdrOptionGroup->add_option( in GetPDR()
98 "-d,--dat in GetPDR()
[all...]
/openbmc/linux/Documentation/sound/
H A Dalsa-configuration.rst2 Advanced Linux Sound Architecture - Driver Configuration guide
22 too. "Debug detection" will add checks for the detection of cards.
38 ----------
47 limiting card index for auto-loading (1-8);
49 For auto-loading more than one card, specify this option
50 together with snd-card-X aliases.
63 Module snd-pcm-oss
64 ------------------
86 regarding opening the device. When this option is non-zero,
90 Module snd-rawmidi
[all …]
/openbmc/phosphor-power/phosphor-power-supply/
H A Dpower_supply.cpp22 constexpr auto bindDelay = 1000;
28 sdbusplus::bus_t& bus, const std::string& invpath, std::uint8_t i2cbus, in PowerSupply()
29 std::uint16_t i2caddr, const std::string& driver, in PowerSupply()
30 const std::string& gpioLineName, std::function<bool()>&& callback) : in PowerSupply()
53 std::string addrStr = ss.str(); in PowerSupply()
54 std::string busStr = std::to_string(i2cbus); in PowerSupply()
56 bindDevice.append("-"); in PowerSupply()
69 // GPIOs are in use by the kernel, meaning it is using gpio-keys. in PowerSupply()
70 // So, I should rely on phosphor-gpio-presence to update D-Bus, and in PowerSupply()
73 // Setup the functions to call when the D-Bus inventory path for the in PowerSupply()
[all …]
/openbmc/linux/Documentation/admin-guide/
H A Dparport.rst4 The ``parport`` code provides parallel-port support under Linux. This
9 detection of your hardware. This is particularly useful if you want
16 port-sharing) and architecture-dependent (which deals with actually
28 architecture-dependent code with (for example)::
30 # insmod parport_pc io=0x3bc,0x378,0x278 irq=none,7,auto
32 to tell the ``parport`` code that you want three PC-style ports, one at
34 auto-detected IRQ. Currently, PC-style (``parport_pc``), Sun ``bpp``,
43 --------
49 options parport_pc io=0x378,0x278 irq=7,auto
51 modprobe will load ``parport_pc`` (with the options ``io=0x378,0x278 irq=7,auto``)
[all …]
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dda7218.txt8 - compatible : Should be "dlg,da7217" or "dlg,da7218"
9 - reg: Specifies the I2C slave address
11 - VDD-supply: VDD power supply for the device
12 - VDDMIC-supply: VDDMIC power supply for the device
13 - VDDIO-supply: VDDIO power supply for the device
18 - interrupts: IRQ line info for DA7218 chip.
19 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
21 - interrupt-names : Name associated with interrupt line. Should be "wakeup" if
23 - wakeup-source: Flag to indicate this device can wake system (suspend/resume).
25 - clocks : phandle and clock specifier for codec MCLK.
[all …]

1234567