/openbmc/linux/drivers/iio/pressure/ |
H A D | Kconfig | 3 # Pressure drivers 7 menu "Pressure sensors" 10 tristate "Honeywell ABP pressure sensor driver" 13 Say yes here to build support for the Honeywell ABP pressure 20 tristate "Bosch Sensortec BMP180/BMP280/BMP380/BMP580 pressure sensor driver" 27 and BMP580 pressure and temperature sensors. Also supports the BME280 with 57 tristate "All Sensors DLHL60D and DLHL60G low voltage digital pressure sensors" 63 pressure sensors driver. 69 tristate "Infineon DPS310 pressure and temperature sensor" 73 Support for the Infineon DPS310 digital barometric pressure sensor. [all …]
|
H A D | mprls0025pa.c | 3 * MPRLS0025PA - Honeywell MicroPressure pressure sensor series driver 9 * products/sensors/pressure-sensors/board-mount-pressure-sensors/ 46 * pressure = (press_cnt - outputmin) * scale + pmin 48 * * pressure - measured pressure in Pascal 50 * * pmin - minimum pressure range value of sensor (data->pmin) 51 * * pmax - maximum pressure range value of sensor (data->pmax) 59 * pressure = (raw + offset) * scale 91 s32 pres; /* pressure value */ 100 u32 pmin; /* minimal pressure in pascal */ 101 u32 pmax; /* maximal pressure in pascal */ [all …]
|
H A D | ms5611_core.c | 3 * MS5611 pressure and temperature sensor driver 105 s32 *temp, s32 *pressure) in ms5611_read_temp_and_pressure() argument 110 ret = st->read_adc_temp_and_pressure(st, temp, pressure); in ms5611_read_temp_and_pressure() 113 "failed to read temperature and pressure\n"); in ms5611_read_temp_and_pressure() 117 return st->compensate_temp_and_pressure(st, temp, pressure); in ms5611_read_temp_and_pressure() 121 s32 *temp, s32 *pressure) in ms5611_temp_and_pressure_compensate() argument 123 s32 t = *temp, p = *pressure; in ms5611_temp_and_pressure_compensate() 151 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5611_temp_and_pressure_compensate() 157 s32 *temp, s32 *pressure) in ms5607_temp_and_pressure_compensate() argument 159 s32 t = *temp, p = *pressure; in ms5607_temp_and_pressure_compensate() [all …]
|
H A D | st_pressure_core.c | 23 * About determining pressure scaling factors 26 * Datasheets specify typical pressure sensitivity so that pressure is computed 28 * pressure[mBar] = raw / sensitivity 30 * raw the 24 bits long raw sampled pressure 33 * IIO ABI expects pressure to be expressed as kPascal, hence pressure should be 35 * pressure[kPascal] = pressure[mBar] / 10 38 * Finally, st_press_read_raw() returns pressure scaling factor as an 90 /* Default pressure sensitivity */ 106 /* LPS001WP pressure resolution */ 110 /* LPS001WP pressure gain */ [all …]
|
H A D | hp03.c | 5 * Driver for Hope RF HP03 digital temperature and pressure sensor. 21 * 0x77 ... read-write ADC for pressure and temperature 43 s32 pressure; /* kPa */ member 111 /* Sample Temperature and Pressure */ in hp03_update_temp_pressure() 116 dev_err(dev, "Failed to read pressure\n"); in hp03_update_temp_pressure() 130 /* The Cx coefficients and Temp/Pressure values are MSB first. */ in hp03_update_temp_pressure() 150 priv->pressure = ((x * 100) >> 5) + (cx_val[6] * 10); in hp03_update_temp_pressure() 178 *val = priv->pressure; in hp03_read_raw() 291 MODULE_DESCRIPTION("Driver for Hope RF HP03 pressure and temperature sensor");
|
/openbmc/linux/Documentation/devicetree/bindings/iio/pressure/ |
H A D | honeywell,mprls0025pa.yaml | 4 $id: http://devicetree.org/schemas/iio/pressure/honeywell,mprls0025pa.yaml# 7 title: Honeywell mprls0025pa pressure sensor 13 Honeywell pressure sensor of model mprls0025pa. 18 There are many models with different pressure ranges available. The vendor 20 differ in the pressure range, unit and transfer function. 22 To support different models one need to specify the pressure range as well as 23 the transfer function. Pressure range needs to be converted from its unit to 27 sensor. The minimal range value stands for the minimum pressure and the 28 maximum value also for the maximum pressure with linear relation inside the 33 products/sensors/pressure-sensors/board-mount-pressure-sensors/ [all …]
|
H A D | meas,ms5611.yaml | 4 $id: http://devicetree.org/schemas/iio/pressure/meas,ms5611.yaml# 7 title: Measurement Specialities ms5611 and similar pressure sensors 13 Pressure sensors from MEAS Switzerland with SPI and I2C bus interfaces. 44 pressure@77 { 54 pressure@0 {
|
H A D | murata,zpa2326.yaml | 4 $id: http://devicetree.org/schemas/iio/pressure/murata,zpa2326.yaml# 7 title: Murata ZPA2326 pressure sensor 13 Pressure sensor from Murata with SPI and I2C bus interfaces. 47 pressure@5c { 59 pressure@0 {
|
H A D | hoperf,hp03.yaml | 4 $id: http://devicetree.org/schemas/iio/pressure/hoperf,hp03.yaml# 7 title: HopeRF HP03 digital pressure/temperature sensors 13 Digital pressure and temperature sensor with an I2C interface. 41 pressure@77 {
|
H A D | asc,dlhl60d.yaml | 4 $id: http://devicetree.org/schemas/iio/pressure/asc,dlhl60d.yaml# 7 title: All Sensors DLH series low voltage digital pressure sensors 13 Bindings for the All Sensors DLH series pressure sensors. 46 pressure@29 {
|
/openbmc/linux/Documentation/accounting/ |
H A D | psi.rst | 4 PSI - Pressure Stall Information 34 Pressure interface 37 Pressure information for each resource is exported through the 38 respective file in /proc/pressure/ -- cpu, memory, and io. 67 Monitoring for pressure thresholds 71 pressure exceeds certain thresholds. 78 /proc/pressure/ representing the resource to be monitored and write the 85 For example writing "some 150000 1000000" into /proc/pressure/memory 87 1sec time window. Writing "full 50000 1000000" into /proc/pressure/io 142 fds.fd = open("/proc/pressure/memory", O_RDWR | O_NONBLOCK); [all …]
|
/openbmc/linux/mm/ |
H A D | vmpressure.c | 3 * Linux VM pressure 41 * These thresholds are used when we account memory pressure through 51 * critical pressure as number of pages will be less than "window size". 111 static enum vmpressure_levels vmpressure_level(unsigned long pressure) in vmpressure_level() argument 113 if (pressure >= vmpressure_level_critical) in vmpressure_level() 115 else if (pressure >= vmpressure_level_med) in vmpressure_level() 124 unsigned long pressure = 0; in vmpressure_calc_level() local 140 pressure = scale - (reclaimed * scale / scanned); in vmpressure_calc_level() 141 pressure = pressure * 100 / scale; in vmpressure_calc_level() 144 pr_debug("%s: %3lu (s: %lu r: %lu)\n", __func__, pressure, in vmpressure_calc_level() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | resistive-adc-touch.c | 39 * @pressure_min: number representing the minimum for the pressure 40 * @pressure: are we getting pressure info or not 50 bool pressure; member 83 * On increased pressure the resistance (Rt) is in grts_cb() 85 * real pressure. in grts_cb() 92 if ((!x && !y) || (st->pressure && (press < st->pressure_min))) { in grts_cb() 101 if (st->pressure) in grts_cb() 165 /* pressure is optional */ in grts_get_properties() 166 error = grts_map_channel(st, dev, GRTS_CH_PRESSURE, "pressure", true); in grts_get_properties() 171 st->pressure = true; in grts_get_properties() [all …]
|
H A D | wm9705.c | 29 * Set current used for pressure measurement. 33 * pil = 0 to disable pressure measurement. 36 * when measureing touchpanel pressure. 40 MODULE_PARM_DESC(pil, "Set current used for pressure measurement."); 43 * Set threshold for pressure measurement. 45 * Pen down pressure below threshold is ignored. 47 static int pressure = DEFAULT_PRESSURE & 0xfff; variable 48 module_param(pressure, int, 0); 49 MODULE_PARM_DESC(pressure, "Set threshold for pressure measurement."); 144 /* touchpanel pressure current*/ in wm9705_phy_init() [all …]
|
H A D | wm9713.c | 42 * Set current used for pressure measurement. 46 * pil = 0 to disable pressure measurement. 49 * when measureing touchpanel pressure. 53 MODULE_PARM_DESC(pil, "Set current used for pressure measurement."); 56 * Set threshold for pressure measurement. 58 * Pen down pressure below threshold is ignored. 60 static int pressure = DEFAULT_PRESSURE & 0xfff; variable 61 module_param(pressure, int, 0); 62 MODULE_PARM_DESC(pressure, "Set threshold for pressure measurement."); 83 * NOTE: Five wire mode does not allow for readback of pressure. [all …]
|
H A D | wm9712.c | 42 * Set current used for pressure measurement. 46 * pil = 0 to disable pressure measurement. 49 * when measureing touchpanel pressure. 53 MODULE_PARM_DESC(pil, "Set current used for pressure measurement."); 56 * Set threshold for pressure measurement. 58 * Pen down pressure below threshold is ignored. 60 static int pressure = DEFAULT_PRESSURE & 0xfff; variable 61 module_param(pressure, int, 0); 62 MODULE_PARM_DESC(pressure, "Set threshold for pressure measurement."); 83 * NOTE: Five wire mode does not allow for readback of pressure. [all …]
|
H A D | wm831x-ts.c | 64 bool pressure; member 92 if (wm831x_ts->pressure) in wm831x_ts_data_irq() 139 if (wm831x_ts->pressure) in wm831x_ts_data_irq() 167 if (wm831x_ts->pressure) in wm831x_ts_pen_down_irq() 271 wm831x_ts->pressure = pdata->pressure; in wm831x_ts_probe() 273 wm831x_ts->pressure = true; in wm831x_ts_probe() 275 /* Five wire touchscreens can't report pressure */ in wm831x_ts_probe() 280 /* Pressure measurements are not possible for five wire mode */ in wm831x_ts_probe() 281 WARN_ON(pdata->pressure && pdata->fivewire); in wm831x_ts_probe() 282 wm831x_ts->pressure = false; in wm831x_ts_probe() [all …]
|
H A D | mainstone-wm97xx.c | 81 * Pressure readback. 83 * Set to 1 to read back pen down pressure 85 static int pressure; variable 86 module_param(pressure, int, 0); 87 MODULE_PARM_DESC(pressure, "Pressure readback (1 = pressure, 0 = no pressure)"); 143 if (pressure) in wm97xx_acc_pen_down()
|
/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | resistive-adc-touch.yaml | 15 position measurement and optional pressure. 29 - description: pressure (optional) 39 - enum: [x, y, pressure] 40 - enum: [x, y, pressure] 41 - enum: [x, y, pressure] 55 touchscreen-min-pressure: true 75 touchscreen-min-pressure = <50000>; 77 io-channel-names = "y", "pressure", "x"; 82 touchscreen-min-pressure = <50000>;
|
H A D | ads7846.txt | 64 touchscreen-max-pressure General touchscreen binding, see [1]. 65 touchscreen-min-pressure General touchscreen binding, see [1]. 79 ti,pressure-min Minimum reported pressure value 81 ti,pressure-max Maximum reported pressure value (u16). 102 ti,pressure-max = /bits/ 16 <255>;
|
H A D | touchscreen.yaml | 38 touchscreen-max-pressure: 39 description: maximum reported pressure (arbitrary range dependent on the controller) 42 touchscreen-min-pressure: 43 description: minimum pressure on the touchscreen to be achieved in order 55 touchscreen-fuzz-pressure: 56 description: pressure noise value of the absolute input device (arbitrary
|
H A D | ti,tsc2005.yaml | 51 touchscreen-fuzz-pressure: true 54 touchscreen-max-pressure: true 93 touchscreen-fuzz-pressure = <2>; 96 touchscreen-max-pressure = <2048>; 120 touchscreen-fuzz-pressure = <2>; 123 touchscreen-max-pressure = <2048>;
|
/openbmc/linux/Documentation/translations/zh_CN/accounting/ |
H A D | psi.rst | 37 压力信息可通过/proc/pressure/ --cpu、memory、io文件分别获取。 74 示例:向/proc/pressure/memory写入"some 150000 1000000"将新增触发器,将在 75 1秒内至少一个任务阻塞于内存的总时间超过150ms时触发。向/proc/pressure/io写入 112 fds.fd = open("/proc/pressure/memory", O_RDWR | O_NONBLOCK); 114 printf("/proc/pressure/memory open error: %s\n", 121 printf("/proc/pressure/memory write error: %s\n", 152 此场景下cgroupfs挂载点的子目录包含cpu.pressure、memory.pressure、io.pressure文件, 153 内容格式与/proc/pressure/下的文件相同。
|
/openbmc/openbmc-tools/altitude/ |
H A D | altitude | 60 "--pressure", 63 help="Atmospheric pressure in Pascals", 71 local.append("Pressure at {:.2f}m: {:.2f}Pa".format(args.height, p)) 81 local.append("Pressure at {:.2f}m: {:.2f}Pa".format(ht, p)) 83 if args.pressure is not None: 85 local.append("Pressure") 86 hp = Hp(args.pressure) 87 local.append("Height at {:.2f}Pa: {:.2f}m".format(args.pressure, hp))
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | buildstats.py | 23 # Some hosts like openSUSE have readable /proc/pressure files 26 if os.path.exists("/proc/pressure"): 28 with open('/proc/pressure/cpu', 'rb') as source: 32 file_handlers.extend([('pressure/cpu', self._reduce_pressure), 33 ('pressure/io', self._reduce_pressure), 34 ('pressure/memory', self._reduce_pressure)]) 73 …# Last time we sampled /proc/pressure. All resources stored in a single dict with the key as filen… 74 self.last_pressure = {"pressure/cpu": None, "pressure/io": None, "pressure/memory": None} 155 … Return reduced pressure: {avg10, avg60, avg300} and delta total compared to the previous sample 157 format of the /proc/pressure file is the same in each case.
|