/linux/Documentation/devicetree/bindings/iio/afe/ |
H A D | current-sense-amplifier.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Current Sense Amplifier 10 - Peter Rosin <peda@axentia.se> 13 When an io-channel measures the output voltage from a current sense 14 amplifier, the interesting measurement is almost always the current 15 through the sense resistor, not the voltage output. This binding 16 describes such a current sense circuit. [all …]
|
H A D | current-sense-shunt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/current-sense-shunt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Current Sense Shunt 10 - Peter Rosin <peda@axentia.se> 13 When an io-channel measures the voltage over a current sense shunt, 14 the interesting measurement is almost always the current through the 15 shunt, not the voltage over it. This binding describes such a current 16 sense circuit. [all …]
|
H A D | temperature-sense-rtd.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/temperature-sense-rtd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Temperature Sense RTD 10 - Liam Beguin <liambeguin@gmail.com> 17 When an io-channel measures the output voltage across an RTD such as a 25 T = 1 / (alpha * r0 * iexc) * (V - r0 * iexc) 30 ----- 32 +---+----+ [all …]
|
H A D | temperature-transducer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/temperature-transducer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Beguin <liambeguin@gmail.com> 15 voltage (like the LTC2997), and temperature to current (like the AD590) 19 When an io-channel measures the output voltage of a temperature analog front 31 The following circuits show a temperature to current and a temperature to 35 ----- 37 +---+---+ [all …]
|
/linux/drivers/s390/block/ |
H A D | dasd_3990_erp.c | 1 // SPDX-License-Identifier: GPL-2.0 30 * 24 and 32 byte sense ERP functions 51 struct dasd_ccw_req *cqr = erp->refers; in dasd_3990_erp_cleanup() 53 dasd_free_erp_request(erp, erp->memdev); in dasd_3990_erp_cleanup() 54 cqr->status = final_status; in dasd_3990_erp_cleanup() 70 struct dasd_device *device = erp->startdev; in dasd_3990_erp_block_queue() 76 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 78 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 79 erp->status = DASD_CQR_FILLED; in dasd_3990_erp_block_queue() 80 if (erp->block) in dasd_3990_erp_block_queue() [all …]
|
/linux/Documentation/hwmon/ |
H A D | ltc2945.rst | 10 Addresses scanned: - 14 https://www.analog.com/media/en/technical-documentation/data-sheets/2945fb.pdf 16 Author: Guenter Roeck <linux@roeck-us.net> 20 ----------- 22 The LTC2945 is a rail-to-rail system monitor that measures current, voltage, 27 ----------- 37 $ echo ltc2945 0x10 > /sys/bus/i2c/devices/i2c-1/new_device 41 ------------- 49 Current reading provided by this driver is reported as obtained from the ADC 50 Current Sense register. The reported value assumes that a 1 mOhm sense resistor [all …]
|
H A D | ltc4260.rst | 10 Addresses scanned: - 16 Author: Guenter Roeck <linux@roeck-us.net> 20 ----------- 27 ----------- 37 $ echo ltc4260 0x10 > /sys/bus/i2c/devices/i2c-1/new_device 41 ------------- 49 Current reading provided by this driver is reported as obtained from the ADC 50 Current Sense register. The reported value assumes that a 1 mOhm sense resistor 51 is installed. If a different sense resistor is installed, calculate the real 52 current by dividing the reported value by the sense resistor value in mOhm. [all …]
|
H A D | max16065.rst | 11 Addresses scanned: - 15 http://datasheets.maxim-ic.com/en/ds/MAX16065-MAX16066.pdf 21 Addresses scanned: - 25 http://datasheets.maxim-ic.com/en/ds/MAX16067.pdf 31 Addresses scanned: - 35 http://datasheets.maxim-ic.com/en/ds/MAX16068.pdf 41 Addresses scanned: - 45 http://datasheets.maxim-ic.com/en/ds/MAX16070-MAX16071.pdf 47 Author: Guenter Roeck <linux@roeck-us.net> 51 ----------- [all …]
|
H A D | ltc4261.rst | 10 Addresses scanned: - 16 Author: Guenter Roeck <linux@roeck-us.net> 20 ----------- 22 The LTC4261/LTC4261-2 negative voltage Hot Swap controllers allow a board 27 ----------- 37 $ echo ltc4261 0x10 > /sys/bus/i2c/devices/i2c-1/new_device 41 ------------- 49 Current reading provided by this driver is reported as obtained from the ADC 50 Current Sense register. The reported value assumes that a 1 mOhm sense resistor 51 is installed. If a different sense resistor is installed, calculate the real [all …]
|
H A D | ltc2990.rst | 11 Addresses scanned: - 19 - Mike Looijmans <mike.looijmans@topic.nl> 20 - Tom Levens <tom.levens@cern.ch> 24 ----------- 26 LTC2990 is a Quad I2C Voltage, Current and Temperature Monitor. 29 measure current through a series resistor, or a temperature with an external 34 ----------- 41 ---------------- 52 in[1-4]_input Voltage at V[1-4] pin in millivolt 55 curr1_input Current in mA across V1-V2 assuming a 1mOhm sense resistor [all …]
|
H A D | ltc4151.rst | 10 Addresses scanned: - 20 ----------- 22 The LTC4151 is a High Voltage I2C Current and Voltage Monitor. 26 ----------- 36 # echo ltc4151 0x6f > /sys/bus/i2c/devices/i2c-0/new_device 40 ------------- 45 Current reading provided by this driver is reported as obtained from the Current 46 Sense register. The reported value assumes that a 1 mOhm sense resistor is 54 curr1_input SENSE current (mA)
|
/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ad5755.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD5755 Multi-Channel DAC 10 - Sean Nyekjaer <sean.nyekjaer@prevas.dk> 15 - adi,ad5755 16 - adi,ad5755-1 17 - adi,ad5757 18 - adi,ad5735 19 - adi,ad5737 [all …]
|
/linux/Documentation/devicetree/bindings/iio/temperature/ |
H A D | adi,ltc2983.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system 10 - Nuno Sá <nuno.sa@analog.com> 13 Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital 16 https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf 18 https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf 19 https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | bq2415x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI bq2415x Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24150 20 - ti,bq24150a 21 - ti,bq24151 22 - ti,bq24151a [all …]
|
H A D | lltc,ltc294x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 for the charge counter and adds voltage, current and temperature monitoring. 17 - Sebastian Reichel <sre@kernel.org> 20 - $ref: power-supply.yaml# 25 - lltc,ltc2941 26 - lltc,ltc2942 27 - lltc,ltc2943 28 - lltc,ltc2944 [all …]
|
/linux/drivers/iio/adc/ |
H A D | max9611.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Maxim max9611/max9612 high side current sense amplifier with 6 * 12-bit ADC interface. 12 * This driver supports input common-mode voltage, current-sense 16 * Op-amp, analog comparator, and watchdog functionalities are not 48 * max9611 current sense amplifier voltage output: 56 * The complete formula to calculate current sense voltage is: 57 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3) 71 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000) 113 * max9611_mux_conf - associate ADC mux configuration with register address [all …]
|
/linux/drivers/iio/afe/ |
H A D | iio-rescale.c | 1 // SPDX-License-Identifier: GPL-2.0 33 *val *= rescale->numerator; in rescale_process_scale() 34 if (rescale->denominator == 1) in rescale_process_scale() 36 *val2 = rescale->denominator; in rescale_process_scale() 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale() 53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale() 54 tmp *= rescale->numerator; in rescale_process_scale() 82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale() 86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 13 that handles voltage dividers, current sense shunts and 14 current sense amplifiers. 17 module will be called iio-rescale.
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | maxim,max9611.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Maxim MAX9611 and similar current sense amplifiers with integrated ADCs 10 - Jacopo Mondi <jacopo@jmondi.org> 13 These devices combine a high-side current sense amplifier with a 12 bit ADC. 19 - maxim,max9611 20 - maxim,max9612 25 shunt-resistor-micro-ohms: 28 RS- inputs, across which the current is measured. Value needed to compute [all …]
|
H A D | microchip,pac1921.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microchip PAC1921 High-Side Power/Current Monitor with Anaog Output 10 - Matteo Martelli <matteomartelli3@gmail.com> 13 The PAC1921 is a power/current monitoring device with an analog output 17 https://ww1.microchip.com/downloads/en/DeviceDoc/PAC1921-Data-Sheet-DS20005293E.pdf 26 vdd-supply: true 28 "#io-channel-cells": 31 shunt-resistor-micro-ohms: [all …]
|
/linux/drivers/hwmon/ |
H A D | ltc4260.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <linux/hwmon-sysfs.h> 58 * 300 uV resolution. Convert to current as measured with in ltc4260_get_value() 59 * an 1 mOhm sense resistor, in mA. If a different sense in ltc4260_get_value() 60 * resistor is installed, calculate the actual current by in ltc4260_get_value() 61 * dividing the reported current by the sense resistor value in ltc4260_get_value() 67 return -EINVAL; in ltc4260_get_value() 79 value = ltc4260_get_value(dev, attr->index); in ltc4260_value_show() 97 fault &= attr->index; in ltc4260_bool_show() 99 regmap_update_bits(regmap, LTC4260_FAULT, attr->index, 0); in ltc4260_bool_show() [all …]
|
H A D | ltc4222.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include <linux/hwmon-sysfs.h> 74 * 62.5 uV resolution. Convert to current as measured with in ltc4222_get_value() 75 * an 1 mOhm sense resistor, in mA. If a different sense in ltc4222_get_value() 76 * resistor is installed, calculate the actual current by in ltc4222_get_value() 77 * dividing the reported current by the sense resistor value in ltc4222_get_value() 83 return -EINVAL; in ltc4222_get_value() 94 value = ltc4222_get_value(dev, attr->index); in ltc4222_value_show() 108 ret = regmap_read(regmap, attr->nr, &fault); in ltc4222_bool_show() 111 fault &= attr->index; in ltc4222_bool_show() [all …]
|
/linux/Documentation/devicetree/bindings/iio/addac/ |
H A D | adi,ad74115.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cosmin Tanislav <cosmin.tanislav@analog.com> 13 The AD74115H is a single-channel software configurable input/output 17 chip solution with an SPI interface. The device features a 16-bit ADC and a 18 14-bit DAC. 25 - adi,ad74115h 30 spi-max-frequency: 33 spi-cpol: true [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | sense.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 51 mlx4_err(dev, "Sense command failed for port: %d\n", port); in mlx4_SENSE_PORT() 56 mlx4_err(dev, "Sense returned illegal value: 0x%llx\n", out_param); in mlx4_SENSE_PORT() 57 return -EINVAL; in mlx4_SENSE_PORT() 68 struct mlx4_sense *sense = &mlx4_priv(dev)->sense; in mlx4_do_sense_ports() local 72 for (i = 1; i <= dev->caps.num_ports; i++) { in mlx4_do_sense_ports() 73 stype[i - 1] = 0; in mlx4_do_sense_ports() 74 if (sense->do_sense_port[i] && sense->sense_allowed[i] && in mlx4_do_sense_ports() 75 dev->caps.possible_type[i] == MLX4_PORT_TYPE_AUTO) { in mlx4_do_sense_ports() [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_error.c | 1 // SPDX-License-Identifier: GPL-2.0-only 66 lockdep_assert_held(shost->host_lock); in scsi_eh_wakeup() 68 if (busy == shost->host_failed) { in scsi_eh_wakeup() 70 wake_up_process(shost->ehandler); in scsi_eh_wakeup() 77 * scsi_schedule_eh - schedule EH for SCSI host 86 spin_lock_irqsave(shost->host_lock, flags); in scsi_schedule_eh() 90 shost->host_eh_scheduled++; in scsi_schedule_eh() 94 spin_unlock_irqrestore(shost->host_lock, flags); in scsi_schedule_eh() 100 if (!shost->last_reset || shost->eh_deadline == -1) in scsi_host_eh_past_deadline() 110 if (time_before(jiffies, shost->last_reset + shost->eh_deadline) && in scsi_host_eh_past_deadline() [all …]
|