/openbmc/linux/Documentation/devicetree/bindings/serial/ |
H A D | pl011.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 13 - $ref: /schemas/arm/primecell.yaml# 14 - $ref: serial.yaml# 22 - arm,pl011 24 - compatible 29 - const: arm,pl011 30 - const: arm,primecell [all …]
|
/openbmc/phosphor-logging/ |
H A D | util.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 20 #include <poll.h> 22 #include <systemd/sd-bus.h> 23 #include <systemd/sd-journal.h> 26 #include <phosphor-logging/lg2.hpp> 48 auto value = line.substr(keyPattern.size()); in getOSReleaseValue() 50 return value.substr(pos, value.find_last_of('"') - pos); in getOSReleaseValue() 60 auto fd = -1; in journalSync() 61 auto rc = -1; in journalSync() 62 auto wd = -1; in journalSync() [all …]
|
/openbmc/openpower-sbe-interface/ |
H A D | sbe_chipOp_handler.cpp | 4 #include <poll.h> 18 constexpr auto SBE_OPERATION_SUCCESSFUL = 0; 19 constexpr auto LENGTH_OF_DISTANCE_HEADER_IN_WORDS = 0x1; 20 constexpr auto LENGTH_OF_RESP_HEADER_IN_WORDS = 0x2; 21 constexpr auto DISTANCE_TO_RESP_CODE = 0x1; 22 constexpr auto MAX_FFDC_LEN_IN_WORDS = 5120; 23 constexpr auto WORD_SIZE = 4; 24 constexpr auto MAGIC_CODE_BITS = 16; 42 if ((rc = poll(&poll_fd, 1, -1)) < 0) in writeToFifo() 55 auto bytesToWrite = (cmdBufLen * WORD_SIZE); in writeToFifo() [all …]
|
/openbmc/openpower-occ-control/ |
H A D | occ_errors.cpp | 9 #include <phosphor-logging/elog-errors.hpp> 10 #include <phosphor-logging/elog.hpp> 11 #include <phosphor-logging/lg2.hpp> 12 #include <phosphor-logging/log.hpp> 47 auto r = sd_event_add_io(event.get(), &sourcePtr, fd, EPOLLPRI | EPOLLERR, in registerCallBack() 54 strerror(-r)); in registerCallBack() 60 void Error::addWatch(bool poll) in addWatch() argument 67 if (poll) in addWatch() 102 auto error = static_cast<Error*>(userData); in processEvents() 104 error->analyzeEvent(); in processEvents() [all …]
|
H A D | occ_errors.hpp | 18 constexpr auto PRESENCE_ERROR_PATH = 20 constexpr auto SAFE_ERROR_PATH = "org.open_power.OCC.Device.Error.SafeState"; 21 constexpr auto MISSING_OCC_SENSORS_PATH = 23 constexpr auto OCC_COMM_ERROR_PATH = 40 * @param[in] event - reference to sd_event unique_ptr 41 * @param[in] file - File used by driver to communicate errors 42 * @param[in] callBack - Optional function callback on error condition 74 * @param[in] path - the DBus error path 75 * @param[in] err - Optional error return code 76 * @param[in] callout - Optional PEL callout path [all …]
|
H A D | occ_manager.hpp | 46 /** @brief Default time, in seconds, between OCC poll commands */ 53 constexpr auto AMBIENT_PATH = 55 constexpr auto AMBIENT_INTERFACE = "xyz.openbmc_project.Sensor.Value"; 56 constexpr auto AMBIENT_PROP = "Value"; 57 constexpr auto ALTITUDE_PATH = "/xyz/openbmc_project/sensors/altitude/Altitude"; 58 constexpr auto ALTITUDE_INTERFACE = "xyz.openbmc_project.Sensor.Value"; 59 constexpr auto ALTITUDE_PROP = "Value"; 74 /** @brief Adds OCC pass-through and status objects on the bus 77 * @param[in] event - Unique ptr reference to sd_event 124 inline auto getNumOCC [all...] |
H A D | occ_manager.cpp | 10 #include <phosphor-logging/elog-errors.hpp> 11 #include <phosphor-logging/lg2.hpp> 26 constexpr auto fruTypeSuffix = "fru_type"; 27 constexpr auto faultSuffix = "fault"; 28 constexpr auto inputSuffix = "input"; 29 constexpr auto maxSuffix = "max"; 31 const auto HOST_ON_FILE = "/run/openbmc/host@0-on"; 52 auto er in readFile() [all...] |
H A D | powermode.hpp | 34 constexpr auto PMODE_PATH = "/xyz/openbmc_project/control/host0/power_mode"; 35 constexpr auto PMODE_INTERFACE = "xyz.openbmc_project.Control.Power.Mode"; 36 constexpr auto POWER_MODE_PROP = "PowerMode"; 37 constexpr auto POWER_SAFE_MODE_PROP = "SafeMode"; 39 constexpr auto PIPS_PATH = "/xyz/openbmc_project/control/host0/power_ips"; 40 constexpr auto PIPS_INTERFACE = 42 constexpr auto IPS_ACTIVE_PROP = "Active"; 43 constexpr auto IPS_ENABLED_PROP = "Enabled"; 44 constexpr auto IPS_ENTER_UTIL = "EnterUtilizationPercent"; 45 constexpr auto IPS_ENTER_TIME = "EnterDwellTime"; [all …]
|
/openbmc/phosphor-ipmi-flash/tools/ |
H A D | helper.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 35 static auto pollStat(std::uint16_t session, ipmiblob::BlobInterface* blob, in pollStat() 40 constexpr auto maxSleep = 1s; in pollStat() 41 constexpr auto printInterval = 30s; in pollStat() 42 constexpr auto timeout = 30min; in pollStat() 46 auto start = std::chrono::steady_clock::now(); in pollStat() 47 auto last_print = start; in pollStat() 48 auto last_check = start; in pollStat() 49 auto check_interval = 50ms; in pollStat() 53 ipmiblob::StatResponse resp = blob->getStat(session); in pollStat() [all …]
|
/openbmc/pldm/platform-mc/ |
H A D | manager.hpp | 49 * @return coroutine return_value - PLDM completion code 55 * @return coroutine return_value - PLDM completion code 62 * @param[in] mctpInfos - list information of the MCTP endpoints 72 * @param[in] mctpInfos - list information of the MCTP endpoints 109 * @param[in] request - Event message 110 * @param[in] payloadLength - Event message payload size 111 * @param[in] tid - Terminus ID 112 * @param[in] eventDataOffset - Event data offset 121 auto eventData = reinterpret_cast<const uint8_t*>(request->payload) + in handleSensorEvent() 123 auto eventDataSize = payloadLength - eventDataOffset; in handleSensorEvent() [all …]
|
H A D | sensor_manager.cpp | 6 #include <phosphor-logging/lg2.hpp> 32 lg2::info("Terminus ID {TID}: sensor poll timer already exists.", "TID", in startPolling() 37 auto terminus = termini[tid]; in startPolling() 38 for (auto& sensor : terminus->numericSensors) in startPolling() 47 lg2::info("Terminus ID {TID}: no sensors to poll.", "TID", tid); in startPolling() 57 if (sensorPollTimers[tid] && !sensorPollTimers[tid]->isRunning()) in startPolling() 59 sensorPollTimers[tid]->start( in startPolling() 79 sensorPollTimers[tid]->stop(); in stopPolling() 87 auto& [scope, rcOpt] = doSensorPollingTaskHandles[tid]; in stopPolling() 97 auto it = doSensorPollingTaskHandles.find(tid); in doSensorPolling() [all …]
|
/openbmc/telemetry/tests/src/ |
H A D | dbus_environment.cpp | 26 bus->request_name(serviceName()); in SetUp() 34 ioc.poll(); in TearDown() 61 auto promise = std::make_shared<std::promise<bool>>(); in setPromise() 62 futures[std::string(name)].emplace_back(promise->get_future()); in setPromise() 63 return [p = std::move(promise)]() { p->set_value(true); }; in setPromise() 74 auto& data = futures[std::string(name)]; in waitForFutures() 75 auto ret = waitForFutures(std::move(data), true, [](auto sum, auto val) { in waitForFutures() 84 auto& data = futures[std::string(name)]; in getFuture() 85 auto it = data.begin(); in getFuture() 89 auto result = std::move(*it); in getFuture() [all …]
|
H A D | dbus_environment.hpp | 32 while (ioc.poll() > 0) in synchronizeIoc() 48 constexpr auto precission = Milliseconds(10); in waitForFutures() 49 auto elapsed = Milliseconds(0); in waitForFutures() 51 auto sum = init; in waitForFutures() 52 for (auto& future : futures) in waitForFutures() 85 [](auto, const auto& value) { return value; }, in waitForFuture() argument 100 auto propertyPromise = std::promise<T>(); in getProperty() 101 auto propertyFuture = propertyPromise.get_future(); in getProperty() 121 auto promise = std::promise<boost::system::error_code>(); in setProperty() 122 auto future = promise.get_future(); in setProperty() [all …]
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/ |
H A D | pldm_utils.cpp | 1 // SPDX-License-Identifier: Apache-2.0 9 #include <libpldm/transport/mctp-demux.h> 10 #include <poll.h> 12 #include <phosphor-logging/elog-errors.hpp> 13 #include <phosphor-logging/lg2.hpp> 42 auto rc = pldm_instance_db_init_default(&pldmInstanceIdDb); in initPLDMInstanceIdDb() 55 auto rc = pldm_instance_db_destroy(pldmInstanceIdDb); in destroyPLDMInstanceIdDb() 66 auto rc = pldm_instance_id_alloc(pldmInstanceIdDb, tid, &instanceID); in getPLDMInstanceID() 67 if (rc == -EAGAIN) in getPLDMInstanceID() 88 auto rc = pldm_instance_id_free(pldmInstanceIdDb, tid, instanceID); in freePLDMInstanceID() [all …]
|
/openbmc/pldm/pldmtool/ |
H A D | pldm_cmd_helper.cpp | 7 #include <libpldm/transport/af-mctp.h> 8 #include <libpldm/transport/mctp-demux.h> 9 #include <poll.h> 10 #include <systemd/sd-bus.h> 27 auto [rc, requestMsg] = createRequestMsg(); in exec() 46 auto responsePtr = reinterpret_cast<struct pldm_msg*>(responseMsg.data()); in exec() 47 parseResponseMsg(responsePtr, responseMsg.size() - sizeof(pldm_msg_hdr)); in exec() 66 auto tid = mctp_eid; in pldmSendRecv()
|
/openbmc/linux/Documentation/networking/ |
H A D | napi.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 16 interrupts first (:ref:`busy polling<poll>`). 29 and the associated poll method. struct napi_struct holds the state 30 of the NAPI instance while the method is the driver-specific event 37 ----------- 45 A disabled NAPI can't be scheduled and its poll method is guaranteed 55 ------------ 57 napi_schedule() is the basic method of scheduling a NAPI poll. 62 Later, after NAPI is scheduled, the driver's poll method will be 64 argument - drivers can process completions for any number of Tx [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * igc_check_reset_block - Check if PHY reset is blocked 26 * igc_get_phy_id - Retrieve the PHY ID and revision 34 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() 38 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 42 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 44 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 48 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id() 49 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igc_get_phy_id() 56 * igc_phy_has_link - Polls PHY for link [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ftmac110.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 6 * Dante Su <dantesu@faraday-tech.com> 17 uint32_t txpd; /* 0x18: Tx Poll Demand Register */ 18 uint32_t rxpd; /* 0x1c: Rx Poll Demand Register */ 66 #define MACCR_LOOPBACK (1 << 3) /* loop-back */ 108 /* Tx Poll Timeout = n * Tx Cycle, 0=No auto polling */ 113 /* Rx Poll Timeout = n * Rx Cycle, 0=No auto polling */ 121 #define DBLAC_BURST_MAX_ANY (0 << 14) /* un-limited */
|
/openbmc/linux/Documentation/hid/ |
H A D | hid-sensor.rst | 26 Logical Minimum(-32767) 35 The report is indicating "sensor page (0x20)" contains an accelerometer-3D (0x73). 36 This accelerometer-3D has some fields. Here for example field 2 is motion intensity 37 (0x045f) with a logical minimum value of -32767 and logical maximum of 32767. The 51 - Core HID driver 52 - Individual sensor processing part (sensor drivers) 55 ----------- 56 The core driver (hid-sensor-hub) registers as a HID driver. It parses 58 with name HID-SENSOR-xxxx (where xxxx is usage id from the specification). 62 HID-SENSOR-200073 is registered for an Accelerometer 3D driver. [all …]
|
/openbmc/linux/Documentation/misc-devices/ |
H A D | xilinx_sdfec.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 4 Xilinx SD-FEC Driver 10 This driver supports SD-FEC Integrated Block for Zynq |Ultrascale+ (TM)| RFSoCs. 15 …f SD-FEC core features, see the `SD-FEC Product Guide (PG256) <https://www.xilinx.com/cgi-bin/docs… 19 - Retrieval of the Integrated Block configuration and status information 20 - Configuration of LDPC codes 21 - Configuration of Turbo decoding 22 - Monitoring errors 24 Missing features, known issues, and limitations of the SD-FEC driver are as 27 - Only allows a single open file handler to any instance of the driver at any time [all …]
|
/openbmc/dbus-sensors/src/nvme/ |
H A D | NVMeContext.hpp | 43 for (auto& sensor : sensors) in getSensorAtPath() 45 if (sensor->configurationPath == path) in getSensorAtPath() 54 // Post-condition: The sensor list does not contain the provided sensor 55 // Post-condition: pollCursor is a valid iterator for the sensor list 59 auto found = std::find(sensors.begin(), sensors.end(), sensor); in removeSensor() 61 // If we failed to find the sensor in the list the post-condition is in removeSensor() 89 // Remove the sensor and update the poll cursor so the cursor remains in removeSensor()
|
/openbmc/linux/include/linux/ |
H A D | hil.h | 5 * Hewlett Packard Human Interface Loop (HP-HIL) Protocol -- header. 33 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A 57 * implementing a software MLC to run HIL devices on a non-parisc machine. 109 HIL_ERR_OB = 0x00000800, /* MLC is busy sending an auto-poll, 114 HIL_ERR_LERR = 0x00040000, /* A poll didn't come back. */ 131 /* This gives us a 32-bit "packet" 140 HIL_CMD_EPT = 0x01, /* Enter Pass-Thru Mode */ 141 HIL_CMD_ELB = 0x02, /* Enter Loop-Back Mode */ 147 HIL_CMD_ACF = 0x08, /* Auto Configure */ 148 HIL_CMDID_ACF = 0x07, /* Auto Configure bits with incremented ID */ [all …]
|
/openbmc/linux/Documentation/userspace-api/netlink/ |
H A D | intro-specs.rst | 1 .. SPDX-License-Identifier: BSD-3-Clause 21 - ``--spec`` - point to the spec file 22 - ``--do $name`` / ``--dump $name`` - issue request ``$name`` 23 - ``--json $attrs`` - provide attributes for the request 24 - ``--subscribe $group`` - receive notifications from ``$group`` 30 $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/ethtool.yaml \ 31 --do rings-get \ 32 --json '{"header":{"dev-index": 18}}' 33 {'header': {'dev-index': 18, 'dev-name': 'eni1np1'}, 35 'rx-jumbo': 0, [all …]
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | ncsi_state_machine.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 35 // * L2 -- performs basic NC-SI setup, reads NIC MAC addr 36 // * L3/4 -- once network is configured on the interface, 37 // sets up NC-SI filter in the NIC. 38 // * Test -- runs several basic NC-SI link tests, like 40 // Also, reads hostless/host-based flag from the NIC, see 52 // NC-SI State Machine's main function. 56 // How often Test FSM re-runs, in seconds. 63 // Poll L2 state machine. Each call advances it by one step. 67 // This function is used to poll both L3/4 and Test state machine, [all …]
|
/openbmc/linux/include/sound/ |
H A D | timer.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 * Abramo Bagnara <abramo@alsa-project.org> 14 #define snd_timer_chip(timer) ((timer)->private_data) 20 #define SNDRV_TIMER_HW_AUTO 0x00000001 /* auto trigger is supported */ 29 #define SNDRV_TIMER_IFLG_AUTO 0x00000008 /* auto restart */ 32 #define SNDRV_TIMER_IFLG_EXCLUSIVE 0x00000040 /* exclusive owner - no more instances */ 33 #define SNDRV_TIMER_IFLG_EARLY_EVENT 0x00000080 /* write early event to the poll queue */ 41 /* -- must be filled with low-level driver */ 47 /* -- low-level functions -- */ 96 unsigned long ticks; /* auto-load ticks when expired */
|