/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | Watchdog.interface.yaml | 5 - name: ResetTimeRemaining 12 - name: EnableWatchdog 18 - xyz.openbmc_project.Common.Error.InternalFailure 21 - name: Initialized 26 - name: Enabled 31 - name: LogTimeout 37 - name: ExpireAction 42 - name: Interval 45 Time interval to arm the watchdog, in milli-second. 47 - name: TimeRemaining [all …]
|
/openbmc/dbus-sensors/src/hwmon-temp/ |
H A D | HwmonTempMain.cpp | 8 // http://www.apache.org/licenses/LICENSE-2.0 63 static constexpr double minValueTemperature = -128; // DegreesC 104 // https://lore.kernel.org/linux-iio/5c79425f-6e88-36b6-cdfe-4080738d039f@metafoo.de/ in getSensorParameters() 118 // units that have yet to be scaled for D-Bus. in getSensorParameters() 123 pathStr.substr(0, pathStr.size() - 4) + "_offset"; in getSensorParameters() 127 // https://lore.kernel.org/linux-iio/5c79425f-6e88-36b6-cdfe-4080738d039f@metafoo.de/ in getSensorParameters() 134 pathStr.substr(0, pathStr.size() - 4) + "_scale"; in getSensorParameters() 138 // https://lore.kernel.org/linux-iio/5c79425f-6e88-36b6-cdfe-4080738d039f@metafoo.de/ in getSensorParameters() 145 // Temperatures are read in milli degrees Celsius, we need in getSensorParameters() 147 // Pascals. On D-Bus for Open BMC we use the International in getSensorParameters() [all …]
|
/openbmc/linux/tools/thermal/thermometer/ |
H A D | thermometer.8 | 2 # SPDX-License-Identifier: GPL-2.0 4 \fBthermometer\fP - A thermal profiling tool 44 The \fB-h, --help\fP option shows a short usage help 46 The \fB-o <dir>, --output <dir>\fP option defines the output directory to put the 49 The \fB-c <config>, --config <config>\fP option specifies the configuration file to use 51 The \fB-d <seconds>, --duration <seconds>\fP option specifies the duration of the capture 53 The \fB-l <loglevel>, --loglevel <loglevel>\fP option sets the loglevel [DEBUG,INFO,NOTICE,WARN,ERR… 55 The \fB-p <string>, --postfix <string>\fP option appends \fBstring\fP at the end of the capture fil… 57 The \fB-s, --syslog\fP option sets the output to syslog, default is \fBstdout\fP 59 The \fB-w, --overwrite\fP overwrites the output files if they exist [all …]
|
/openbmc/linux/include/linux/input/ |
H A D | matrix_keypad.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\ 14 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\ 24 * struct matrix_keymap_data - keymap for matrix keyboards 30 * keymaps to drivers that implement matrix-like keypads/keyboards. 38 * struct matrix_keypad_platform_data - platform-dependent keypad data 57 * This structure represents platform-specific data that use used by 71 /* key debounce interval in milli-second */
|
/openbmc/linux/drivers/iio/adc/ |
H A D | qcom-spmi-rradc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2016-2017, 2019, The Linux Foundation. All rights reserved. 28 #include <soc/qcom/qcom-spmi-pmic.h> 30 #define DRIVER_NAME "qcom-spmi-rradc" 219 * struct rradc_channel - rradc channel data 263 dev_err(chip->dev, in rradc_read() 266 return -EINVAL; in rradc_read() 270 ret = regmap_bulk_read(chip->regmap, chip->base + addr, buf, in rradc_read() 273 dev_err(chip->dev, "rr_adc reg 0x%x failed :%d\n", addr, in rradc_read() 278 ret = regmap_bulk_read(chip->regmap, chip->base + addr, in rradc_read() [all …]
|
H A D | at91-sama5d2_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/dma-mapping.h> 31 #include <linux/nvmem-consumer.h> 36 #include <dt-bindings/iio/adc/at91-sama5d2_adc.h> 110 /* Interrupt Enable Register - TS X measurement ready */ 112 /* Interrupt Enable Register - TS Y measurement ready */ 114 /* Interrupt Enable Register - TS pressure measurement ready */ 116 /* Interrupt Enable Register - Data ready */ 118 /* Interrupt Enable Register - general overrun error */ 120 /* Interrupt Enable Register - Pen detect */ [all …]
|
/openbmc/pldm/fw-update/ |
H A D | update_manager.cpp | 7 #include <phosphor-logging/lg2.hpp> 39 if (activation->activation() == in processPackage() 44 "VERSION", parser->pkgVersion); in processPackage() 46 return -1; in processPackage() 59 "Failed to open the PLDM fw update package file '{FILE}', error - {ERROR}.", in processPackage() 63 return -1; in processPackage() 75 return -1; in processPackage() 87 pkgHeaderInfo->package_version_string_length; in processPackage() 100 return -1; in processPackage() 104 size_t versionHash = std::hash<std::string>{}(parser->pkgVersion); in processPackage() [all …]
|
/openbmc/bmcweb/redfish-core/src/utils/ |
H A D | time_utils.cpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 80 size_t charactersRead = static_cast<size_t>(ptr - v.data()); in fromDurationString() 122 // 1S) or for the second time (in the case of 1.1S). in fromDurationString() 174 ms -= days; in toDurationString() 177 ms -= hours; in toDurationString() 180 ms -= minutes; in toDurationString() 183 ms -= seconds; in toDurationString() 234 // Preconditions: z is number of days since 1970-01-01 and is in the range: 236 // numeric_limits<Int>::max()-719468]. [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | xilinx_wwdt.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2022 - 2024, Advanced Micro Devices, Inc. 57 * struct xwwdt_device - Watchdog device structure 79 struct watchdog_device *xilinx_wwdt_wdd = &xdev->xilinx_wwdt_wdd; in xilinx_wwdt_start() 82 spin_lock(&xdev->spinlock); in xilinx_wwdt_start() 84 iowrite32(XWWDT_MWR_MASK, xdev->base + XWWDT_MWR_OFFSET); in xilinx_wwdt_start() 85 iowrite32(~(u32)XWWDT_ESR_WEN_MASK, xdev->base + XWWDT_ESR_OFFSET); in xilinx_wwdt_start() 86 iowrite32((u32)xdev->closed_timeout, xdev->base + XWWDT_FWR_OFFSET); in xilinx_wwdt_start() 87 iowrite32((u32)xdev->open_timeout, xdev->base + XWWDT_SWR_OFFSET); in xilinx_wwdt_start() 90 control_status_reg = ioread32(xdev->base + XWWDT_ESR_OFFSET); in xilinx_wwdt_start() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | hih6130.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Honeywell HIH-6130/HIH-6131 humidity and temperature sensor driver 9 * Data sheets available (2012-06-22) at 18 #include <linux/hwmon-sysfs.h> 26 * struct hih6130 - HIH-6130 device specific data 46 * hih6130_temp_ticks_to_millicelsius() - convert raw temperature ticks to 47 * milli celsius 55 * Formula T = ( ticks / ( 2^14 - 2 ) ) * 165 -40 in hih6130_temp_ticks_to_millicelsius() 57 return (DIV_ROUND_CLOSEST(ticks * 1650, 16382) - 400) * 100; in hih6130_temp_ticks_to_millicelsius() 61 * hih6130_rh_ticks_to_per_cent_mille() - convert raw humidity ticks to [all …]
|
H A D | sht21.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <linux/hwmon-sysfs.h> 29 * struct sht21 - SHT21 device specific data 49 * sht21_temp_ticks_to_millicelsius() - convert raw temperature ticks to 50 * milli celsius 57 * Formula T = -46.85 + 175.72 * ST / 2^16 from data sheet 6.2, in sht21_temp_ticks_to_millicelsius() 60 return ((21965 * ticks) >> 13) - 46850; in sht21_temp_ticks_to_millicelsius() 64 * sht21_rh_ticks_to_per_cent_mille() - convert raw humidity ticks to 65 * one-thousandths of a percent relative humidity 72 * Formula RH = -6 + 125 * SRH / 2^16 from data sheet 6.1, in sht21_rh_ticks_to_per_cent_mille() [all …]
|
H A D | xgene-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * APM X-Gene SoC Hardware Monitoring Driver 10 * - Retrieve CPU total power (uW) 11 * - Retrieve IO total power (uW) 12 * - Retrieve SoC temperature (milli-degree C) and alarm 15 #include <linux/dma-mapping.h> 17 #include <linux/hwmon-sysfs.h> 134 struct acpi_pcct_shared_memory *generic_comm_base = ctx->pcc_comm_addr; in xgene_hwmon_pcc_rd() 139 mutex_lock(&ctx->rd_mutex); in xgene_hwmon_pcc_rd() 140 init_completion(&ctx->rd_complete); in xgene_hwmon_pcc_rd() [all …]
|
/openbmc/linux/Documentation/watchdog/ |
H A D | watchdog-kernel-api.rst | 5 Last reviewed: 12-Feb-2013 10 ------------ 14 file: Documentation/watchdog/watchdog-api.rst . 24 ------- 91 'timeout'. Not used if max_hw_heartbeat_ms is non-zero. 93 in milli-seconds. This value is normally 0; it should only be provided 95 * max_hw_heartbeat_ms: Maximum hardware heartbeat, in milli-seconds. 106 should define ops->restart. Priority can be changed through 191 timer device. It returns 0 on success, -EINVAL for "parameter out of range" 192 and -EIO for "could not write value to the watchdog". On success this [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/ |
H A D | smu13_driver_if_v13_0_4.h | 121 //Voltage in milli volts with 2 fractional bits 176 uint16_t CoreTemperature[8]; //[centi-Celsius] 178 uint16_t L3Temperature; //[centi-Celsius] 180 uint16_t GfxTemperature; //[centi-Celsius] 181 uint16_t SocTemperature; //[centi-Celsius] 200 uint16_t CurTemp; //[centi-Celsius] 214 …e to the metrics table, i.e. if the metrics table update happens every 1 second, this value could …
|
/openbmc/u-boot/drivers/fpga/ |
H A D | lattice.c | 1 // SPDX-License-Identifier: GPL-2.0+ 53 * micro-seconds or 32000 milli-second maximum. The VME file will never pass on 73 pfns->jtag_set_tdi(a_ucValue); in writePort() 76 pfns->jtag_set_tck(a_ucValue); in writePort() 79 pfns->jtag_set_tms(a_ucValue); in writePort() 88 return pfns->jtag_get_tdo(); in readPort() 138 * Data over-run. in GetByte() 263 if ((desc->family > min_lattice_type) && in lattice_validate() 264 (desc->family < max_lattice_type)) { in lattice_validate() 265 if ((desc->iface > min_lattice_iface_type) && in lattice_validate() [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | dell-smm-hwmon.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 5 Kernel driver dell-smm-hwmon 8 :Copyright: |copy| 2002-2005 Massimo Dal Zotto <dz@debian.org> 12 ----------- 24 ------------------- 35 fan[1-3]_input RO Fan speed in RPM. 36 fan[1-3]_label RO Fan label. 37 fan[1-3]_min RO Minimal Fan speed in RPM 38 fan[1-3]_max RO Maximal Fan speed in RPM 39 fan[1-3]_target RO Expected Fan speed in RPM [all …]
|
/openbmc/u-boot/drivers/mtd/ |
H A D | st_smi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 81 * smi_wait_xfer_finish - Wait until TFF is set in status register 91 if (readl(&smicntl->smi_sr) & TFF) in smi_wait_xfer_finish() 98 return -1; in smi_wait_xfer_finish() 102 * smi_read_id - Read flash id 112 writel(readl(&smicntl->smi_cr1) | SW_MODE, &smicntl->smi_cr1); in smi_read_id() 113 writel(READ_ID, &smicntl->smi_tr); in smi_read_id() 115 &smicntl->smi_cr2); in smi_read_id() 118 return -EIO; in smi_read_id() 120 value = (readl(&smicntl->smi_rr) & 0x00FFFFFF); in smi_read_id() [all …]
|
/openbmc/linux/Documentation/scheduler/ |
H A D | sched-energy.rst | 6 --------------- 25 please refer to its documentation (see Documentation/power/energy-model.rst). 29 ----------------------------- 32 - energy = [joule] (resource like a battery on powered devices) 33 - power = energy/time = [joule/second] = [watt] 39 -------------------- 45 ----------- 49 optimization objective to the current performance-only objective for the 50 scheduler. This alternative considers two objectives: energy-efficiency and 54 implications of its decisions rather than blindly applying energy-saving [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | rt5651.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5651.c -- RT5651 ALSA SoC audio codec driver 23 #include <sound/soc-dapm.h> 287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 288 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 290 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 369 * set_dmic_clk - Set parameter of dmic. 379 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() 383 rate = rt5651->sysclk / rl6231_get_pre_div(rt5651->regmap, in set_dmic_clk() [all …]
|
H A D | rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver 27 #include <sound/soc-dapm.h> 340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 451 * set_dmic_clk - Set parameter of dmic. 461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() 465 rate = rt5640->sysclk / rl6231_get_pre_div(rt5640->regmap, in set_dmic_clk() [all …]
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | systems.hpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 // SPDX-FileCopyrightText: Copyright 2018 Intel Corporation 30 #include <asm-generic/errno.h> 62 {{"SSH", "obmc-console-ssh"}, {"IPMI", "phosphor-ipmi-net"}}}; 81 asyncResp->res.jsonValue["MemorySummary"]["Status"]["State"]; in updateDimmProperties() 86 asyncResp->res.jsonValue["MemorySummary"]["Status"]["State"] = in updateDimmProperties() 107 asyncResp->res.jsonValue["ProcessorSummary"]["Status"]["State"]; in modifyCpuFunctionalState() 116 asyncResp->res.jsonValue["ProcessorSummary"]["Status"]["State"] = in modifyCpuFunctionalState() 138 asyncResp->res.jsonValue["ProcessorSummary"]["Count"]; in modifyCpuPresenceState() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio | 3 Contact: linux-iio@vger.kernel.org 11 Contact: linux-iio@vger.kernel.org 25 Contact: linux-iio@vger.kernel.org 31 Contact: linux-iio@vger.kernel.org 38 Contact: linux-iio@vger.kernel.org 44 The contents of the label are free-form, but there are some 51 * "proximity-wifi" 52 * "proximity-lte" 53 * "proximity-wifi-lte" 54 * "proximity-wifi-left" [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | esp_scsi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 27 #define ESP_CFG2 0x0bUL /* rw Second cfg register 0x2c */ 40 /* ESP config reg 1, read-write, found on all ESP chips */ 48 /* ESP config reg 2, read-write, found only on esp100a+esp200+esp236 chips */ 52 #define ESP_CONFIG2_SCSI2ENAB 0x08 /* Enable SCSI-2 features (tgtmode) */ 55 #define ESP_CONFIG2_BCM 0x20 /* Enable byte-ctrl (236) */ 58 #define ESP_CONFIG2_SPL 0x40 /* Enable status-phase latch (236) */ 63 /* ESP config register 3 read-write, found only esp236+fas236+fas100a+hme chips */ 65 #define ESP_CONFIG3_TEM 0x01 /* Enable thresh-8 mode (esp/fas236) */ 67 #define ESP_CONFIG3_ADMA 0x02 /* Enable alternate-dma (esp/fas236) */ [all …]
|
/openbmc/linux/tools/perf/ |
H A D | builtin-lock.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "util/lock-contention.h" 18 #include <subcmd/parse-options.h> 19 #include "util/trace-event.h" 94 if (st->tid == tid) in thread_stat_find() 96 else if (tid < st->tid) in thread_stat_find() 97 node = node->rb_left; in thread_stat_find() 99 node = node->rb_right; in thread_stat_find() 115 if (new->tid < p->tid) in thread_stat_insert() 116 rb = &(*rb)->rb_left; in thread_stat_insert() [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | max3421-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: David Mosberger-Tang <davidm@egauge.net> 7 * (C) Copyright 2014 David Mosberger-Tang <davidm@egauge.net> 9 * MAX3421 is a chip implementing a USB 2.0 Full-/Low-Speed host 16 * https://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf 24 * Important note on worst-case (full-speed) packet size constraints 27 * - control: 64 bytes 28 * - isochronous: 1023 bytes 29 * - interrupt: 64 bytes 30 * - bulk: 64 bytes [all …]
|