/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | ti,adc12138.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments ADC12138 and similar self-calibrating ADCs 10 - Akinobu Mita <akinobu.mita@gmail.com> 19 - ti,adc12130 20 - ti,adc12132 21 - ti,adc12138 34 vref-p-supply: 37 vref-n-supply: [all …]
|
H A D | adi,ad7280a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 11 - Jonathan Cameron <jic23@kernel.org> 18 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7280A.pdf 31 adi,voltage-alert-last-chan: 40 adi,acquisition-time-ns: 42 Additional time may be needed to charge the sampling capacitors depending 47 adi,thermistor-termination: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | ad7879.txt | 1 * Analog Devices AD7879(-1)/AD7889(-1) touchscreen interface (SPI/I2C) 4 - compatible : for SPI slave, use "adi,ad7879" 5 for I2C slave, use "adi,ad7879-1" 6 - reg : SPI chipselect/I2C slave address 7 See spi-bus.txt for more SPI slave properties 8 - interrupts : touch controller interrupt 9 - touchscreen-max-pressure : maximum reported pressure 10 - adi,resistance-plate-x : total resistance of X-plate (for pressure 13 - touchscreen-swapped-x-y : X and Y axis are swapped (boolean) 14 - adi,first-conversion-delay : 0-12: In 128us steps (starting with 128us) [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | dw-xdata-pcie.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/pci-epf.h> 20 #define DW_XDATA_DRIVER_NAME "dw-xdata-pcie" 75 return dw->rg_region.vaddr; in __dw_regs() 82 mutex_lock(&dw->mutex); in dw_xdata_stop() 84 burst = readl(&(__dw_regs(dw)->burst_cnt)); in dw_xdata_stop() 88 writel(burst, &(__dw_regs(dw)->burst_cnt)); in dw_xdata_stop() 91 mutex_unlock(&dw->mutex); in dw_xdata_stop() 96 struct device *dev = &dw->pdev->dev; in dw_xdata_start() 102 mutex_lock(&dw->mutex); in dw_xdata_start() [all …]
|
/openbmc/linux/include/linux/comedi/ |
H A D | comedidev.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 4 * header file for kernel-only structures, variables, and constants 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org> 13 #include <linux/dma-mapping.h> 28 * struct comedi_subdevice - Working data for a COMEDI subdevice 34 * the low-level driver.) 36 * low-level driver.) 38 * the COMEDI core and user application. (Initialized by the low-level 41 * asynchronous acquisition commands. (Optionally initialized by the [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | stb0899_algo.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 50 struct stb0899_internal *internal = &state->internal; 55 return stb0899_calc_srate(internal->master_clk, sfr); 71 dprintk(state->verbose, FE_DEBUG, 1, "-->"); in stb0899_set_srate() 103 * Compute the amount of time needed by the derotator to lock 105 * return: derotator time constant (ms) 122 struct stb0899_internal *internal = &state->internal; in stb0899_carr_width() 124 return (internal->srate + (internal->srate * internal->rolloff) / 100); in stb0899_carr_width() 133 struct stb0899_internal *internal = &state->internal; in stb0899_first_subrange() 134 struct stb0899_params *params = &state->params; in stb0899_first_subrange() [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | ti-ads7924.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * IIO driver for Texas Instruments ADS7924 ADC, 12-bit, 4-Channels, I2C 8 * based on iio/adc/ti-ads1015.c 98 * The power-up time is allowed to elapse whenever the device has been shutdown 99 * in idle mode. Power-up time can allow external circuits, such as an 101 * The nominal time programmed by the PUTIME[4:0] register bits is given by: 103 * If a power-up time is not required, set the bits to '0' to effectively bypass. 108 * Acquisition Time according to ACQTIME[4:0] register bits. 109 * The Acquisition Time is given by: 111 * Using default value of 0 for ACQTIME[4:0] results in a minimum acquisition [all …]
|
H A D | max1118.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * MAX1117/MAX1118/MAX1119 8-bit, dual-channel ADCs driver 7 * Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX1117-MAX1119.pdf 13 * ------ --------- ----------- 14 * nCS --> CNVST 15 * SCK --> SCLK 16 * MISO <-- DOUT 17 * ------ --------- ----------- 75 * and low for a second time. in max1118_read() 79 .delay = { /* > CNVST Low Time 100 ns */ in max1118_read() [all …]
|
H A D | ad7280a.c | 1 // SPDX-License-Identifier: GPL-2.0 128 #define AD7280A_NUM_CH (AD7280A_AUX_ADC_6_REG - \ 134 (c) - AD7280A_CELLS_PER_DEV) 142 /* 5-bit device address is sent LSB first */ 202 unsigned char crc = ad7280_calc_crc8(st->crc_tab, val >> 10); in ad7280_check_crc() 205 return -EIO; in ad7280_check_crc() 214 * conversion delays and acquisition time options it may take up to 250us, in 220 if (st->readback_delay_us < 50) in ad7280_delay() 221 udelay(st->readback_delay_us); in ad7280_delay() 230 .tx_buf = &st->tx, in __ad7280_read32() [all …]
|
H A D | ti-adc12138.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ADC12130/ADC12132/ADC12138 12-bit plus sign ADC driver 49 /* The number of cclk periods for the S/H's acquisition time */ 132 .tx_buf = adc->tx_buf, in adc12138_mode_programming() 133 .rx_buf = adc->rx_buf, in adc12138_mode_programming() 139 if (adc->id != adc12138) in adc12138_mode_programming() 142 adc->tx_buf[0] = mode; in adc12138_mode_programming() 144 ret = spi_sync_transfer(adc->spi, &xfer, 1); in adc12138_mode_programming() 148 memcpy(rx_buf, adc->rx_buf, len); in adc12138_mode_programming() 172 u8 mode = (ch_to_mux[channel->channel] << 4) | in __adc12138_start_conv() [all …]
|
/openbmc/linux/tools/memory-model/ |
H A D | README | 49 ---------------------------- 53 ------------ ---------- 54 -- 4.14 7.48 -- 55 4.15 -- 4.19 7.49 -- 56 4.20 -- 5.5 7.54 -- 57 5.6 -- 5.16 7.56 -- 58 5.17 -- 7.56.1 -- 69 tests is available in tools/memory-model/Documentation/litmus-tests.txt. 71 Example litmus tests may be found in the Linux-kernel source tree: 73 tools/memory-model/litmus-tests/ [all …]
|
/openbmc/linux/drivers/i2c/muxes/ |
H A D | i2c-mux-pca9541.c | 6 * Author: Guenter Roeck <linux@roeck-us.net> 11 * Copyright (c) 2008-2009 Rodolfo Giometti <giometti@linux.it> 12 * Copyright (c) 2008-2009 Eurotech S.p.A. <info@eurotech.it> 23 #include <linux/i2c-mux.h> 36 * single-channel I2C bus multiplexer. 40 * that only one of the masters is instantiated at any given time. 68 #define ARB2_TIMEOUT (HZ / 4) /* 250 ms until acquisition failure */ 97 * as they will try to lock the adapter a second time. 101 struct i2c_adapter *adap = client->adapter; in pca9541_reg_write() 104 return __i2c_smbus_xfer(adap, client->addr, client->flags, in pca9541_reg_write() [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 15 possible the overhead while doing the temperature acquisition in order 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 [all …]
|
/openbmc/linux/Documentation/RCU/Design/Memory-Ordering/ |
H A D | Tree-RCU-Memory-Ordering.rst | 2 A Tour Through TREE_RCU's Grace-Period Memory Ordering 13 grace-period memory ordering guarantee is provided. 18 RCU grace periods provide extremely strong memory-ordering guarantees 19 for non-idle non-offline code. 22 period that are within RCU read-side critical sections. 25 of that grace period that are within RCU read-side critical sections. 27 Note well that RCU-sched read-side critical sections include any region 30 an extremely small region of preemption-disabled code, one can think of 37 a linked RCU-protected data structure, and phase two frees that element. 39 phase-one update (in the common case, removal) must not witness state [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | evglock.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: evglock - Global Lock support 6 * Copyright (C) 2000 - 2023, Intel Corp. 105 * PARAMETERS: context - From thread interface, not used 132 * Send a unit to the global lock semaphore. The actual acquisition in acpi_ev_global_lock_handler() 152 * PARAMETERS: timeout - Max time to wait for the lock, in millisec. 165 * allows only one thread to acquire the HW Global Lock at a time, and makes 179 * Only one thread can acquire the GL at a time, the global_lock_mutex in acpi_ev_acquire_global_lock() 183 acpi_ex_system_wait_mutex(acpi_gbl_global_lock_mutex->mutex. in acpi_ev_acquire_global_lock() 195 * regardless of where the acquisition request originated. in acpi_ev_acquire_global_lock() [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | rtc.rst | 2 Real Time Clock (RTC) Drivers for Linux 5 When Linux developers talk about a "Real Time Clock", they usually mean 6 something that tracks wall clock time and is battery backed so that it 8 the local time zone or daylight savings time -- unless they dual boot 9 with MS-Windows -- but will instead be set to Coordinated Universal Time 10 (UTC, formerly "Greenwich Mean Time"). 12 The newest non-PC hardware tends to just count seconds, like the time(2) 13 system call reports, but RTCs also very commonly represent time using 14 the Gregorian calendar and 24 hour time, as reported by gmtime(3). 16 Linux has two largely-compatible userspace RTC API families you may [all …]
|
/openbmc/linux/drivers/iio/common/ssp_sensors/ |
H A D | ssp_dev.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 55 .name = "ssp-accelerometer", 58 .name = "ssp-gyroscope", 64 gpiod_set_value(data->mcu_reset_gpiod, 0); in ssp_toggle_mcu_reset_gpio() 66 gpiod_set_value(data->mcu_reset_gpiod, 1); in ssp_toggle_mcu_reset_gpio() 75 if (data->available_sensors & BIT(i)) { in ssp_sync_available_sensors() 76 ret = ssp_enable_sensor(data, i, data->delay_buf[i]); in ssp_sync_available_sensors() 78 dev_err(&data->spi->dev, in ssp_sync_available_sensors() 86 data->mcu_dump_mode); in ssp_sync_available_sensors() 88 dev_err(&data->spi->dev, in ssp_sync_available_sensors() [all …]
|
H A D | ssp.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 44 SSP_FW_DL_STATE_FAIL = -1, 56 /* AP -> SSP Instruction */ 119 /* SSP -> AP ACK about write CMD */ 142 * struct ssp_data - ssp platformdata structure 151 * @time_syncing: time syncing indication flag 152 * @timestamp: previous time in ns calculated for time syncing 163 * @delay_buf: data acquisition intervals table
|
/openbmc/linux/Documentation/security/ |
H A D | landlock.rst | 1 .. SPDX-License-Identifier: GPL-2.0 2 .. Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> 3 .. Copyright © 2019-2020 ANSSI 12 Landlock's goal is to create scoped access-control (i.e. sandboxing). To 21 LSM). Indeed, a Landlock rule shall not interfere with other access-controls 29 Documentation/userspace-api/landlock.rst. 36 seccomp-bpf. 37 * To avoid multiple kinds of side-channel attacks (e.g. leak of security 38 policies, CPU-based attacks), Landlock rules shall not be able to 45 sandboxed process shall retain their scoped accesses (at the time of resource [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | comedi.h | 1 /* SPDX-License-Identifier: LGPL-2.0+ WITH Linux-syscall-note */ 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1998-2001 David A. Schleef <ds@schleef.org> 32 * NOTE: 'comedi_config --init-data' is deprecated 40 /* length of nth chunk of firmware data -*/ 78 /* counters -- these are arbitrary values */ 120 /* try to use a real-time interrupt while performing command */ 123 /* wake up on end-of-scan events */ 162 #define TRIG_TIME 0x00000008 /* trigger at time N ns */ 166 #define TRIG_INT 0x00000080 /* trigger on comedi-internal signal N */ [all …]
|
/openbmc/linux/drivers/comedi/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 3 tristate "Data acquisition support (comedi)" 5 Enable support for a wide range of data acquisition devices 23 running at 10 kHz has of 2-4 seconds of buffer. 32 channels running at 100 kHz has 2-4 seconds of buffer. 41 the questions about misc non-hardware comedi drivers. 62 generate sample waveforms on systems that don't have data acquisition 80 tristate "SSV Embedded Systems DIL/Net-PC support" 83 Enable support for SSV Embedded Systems DIL/Net-PC 102 tristate "Advantech PCL-711/711b and ADlink ACL-8112 ISA card support" [all …]
|
/openbmc/linux/Documentation/locking/ |
H A D | mutex-design.rst | 10 ----------------- 18 of advantages, including simpler interfaces, and at that time smaller 24 -------------- 28 (->owner) to keep track of the lock state during its lifetime. Field owner 32 if waiter list is non-empty). In its most basic form it also includes a 33 wait-queue and a spinlock that serializes access to it. Furthermore, 34 CONFIG_MUTEX_SPIN_ON_OWNER=y systems use a spinner MCS lock (->osq), described 45 (ii) midpath: aka optimistic spinning, tries to spin for acquisition 52 The MCS lock (proposed by Mellor-Crummey and Scott) is a simple spinlock 55 cacheline bouncing that common test-and-set spinlock implementations [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | ni_at_a2150.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Comedi driver for National Instruments AT-A2150 boards 6 * COMEDI - Linux Control and Measurement Device Interface 12 * Description: National Instruments AT-A2150 15 * Devices: [National Instruments] AT-A2150C (at_a2150c), AT-2150S (at_a2150s) 18 * [0] - I/O port base address 19 * [1] - IRQ (optional, required for timed conversions) 20 * [2] - DMA (optional, required for timed conversions) 30 * 320360.pdf AT-A2150 User Manual 33 * - analog level triggering [all …]
|
/openbmc/linux/tools/memory-model/Documentation/ |
H A D | litmus-tests.txt | 1 Linux-Kernel Memory Model Litmus Tests 4 This file describes the LKMM litmus-test format by example, describes 9 A formal kernel memory-ordering model (part 2) 20 tool, please see tools/memory-model/README. 23 Copy-Pasta 30 tools/memory-model/litmus-tests/ 31 Documentation/litmus-tests/ 40 The -l and -L arguments to "git grep" can be quite helpful in identifying 43 good understanding of the litmus-test format. 50 with a small example of the message-passing pattern and moving on to [all …]
|
/openbmc/linux/Documentation/RCU/ |
H A D | checklist.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 over a rather long period of time, but improvements are always welcome! 14 0. Is RCU being applied to a read-mostly situation? If the data 15 structure is updated more than about 10% of the time, then you 18 tool for the job. Yes, RCU does reduce read-side overhead by 19 increasing write-side overhead, which is exactly why normal uses 27 Yet another exception is where the low real-time latency of RCU's 28 read-side primitives is critically important. 33 counter-intuitive situation where rcu_read_lock() and 49 them -- even x86 allows later loads to be reordered to precede [all …]
|