/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/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 15 through the sense resistor, not the voltage output. This binding 16 describes such a current sense circuit. 20 const: current-sense-amplifier [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> 19 When an io-channel measures the output voltage of a temperature analog front 35 ----- 37 +---+---+ 39 +---+---+ ----- 41 V proportional to T +----+----+ [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, 16 sense circuit. 20 const: current-sense-shunt 22 io-channels: [all …]
|
/linux/drivers/s390/char/ |
H A D | tape_3590.c | 1 // SPDX-License-Identifier: GPL-2.0 38 * - Read Opposite: implemented 39 * - Read Device (buffered) log: BRA 40 * - Read Library log: BRA 41 * - Swap Devices: BRA 42 * - Long Busy: implemented 43 * - Special Intercept: BRA 44 * - Read Alternate: implemented 49 [0x10] = "Lost Sense", 58 [0x25] = "Read-Only Format", [all …]
|
H A D | tape_34xx.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Tuan Ngo-Anh <ngoanh@de.ibm.com> 54 * Medium sense for 34xx tapes. There is no 'real' medium sense call. 55 * So we just do a normal sense. 59 struct tape_device *device = request->device; in __tape_34xx_medium_sense() 60 unsigned char *sense; in __tape_34xx_medium_sense() local 62 if (request->rc == 0) { in __tape_34xx_medium_sense() 63 sense = request->cpdata; in __tape_34xx_medium_sense() 67 * means that the drive is 'neither ready nor on-line' it is in __tape_34xx_medium_sense() 71 if (sense[0] & SENSE_INTERVENTION_REQUIRED) in __tape_34xx_medium_sense() [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_lib_test.c | 1 // SPDX-License-Identifier: GPL-2.0 20 .sense = DATA_PROTECT, in scsi_lib_test_multiple_sense() 26 .sense = UNIT_ATTENTION, in scsi_lib_test_multiple_sense() 33 .sense = NOT_READY, in scsi_lib_test_multiple_sense() 40 .sense = ABORTED_COMMAND, in scsi_lib_test_multiple_sense() 47 .sense = HARDWARE_ERROR, in scsi_lib_test_multiple_sense() 53 .sense = ILLEGAL_REQUEST, in scsi_lib_test_multiple_sense() 64 u8 sense[SCSI_SENSE_BUFFERSIZE] = {}; in scsi_lib_test_multiple_sense() local 66 .sense_buffer = sense, in scsi_lib_test_multiple_sense() 79 KUNIT_EXPECT_EQ(test, -EAGAIN, scsi_check_passthrough(&sc, &failures)); in scsi_lib_test_multiple_sense() [all …]
|
/linux/include/uapi/linux/netfilter/ |
H A D | xt_tcpudp.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 11 __u8 option; /* TCP Option iff non-zero*/ 18 #define XT_TCP_INV_SRCPT 0x01 /* Invert the sense of source ports. */ 19 #define XT_TCP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */ 20 #define XT_TCP_INV_FLAGS 0x04 /* Invert the sense of TCP flags. */ 21 #define XT_TCP_INV_OPTION 0x08 /* Invert the sense of option test. */ 32 #define XT_UDP_INV_SRCPT 0x01 /* Invert the sense of source ports. */ 33 #define XT_UDP_INV_DSTPT 0x02 /* Invert the sense of dest ports. */
|
/linux/include/uapi/linux/netfilter_arp/ |
H A D | arp_tables.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 81 #define ARPT_INV_VIA_IN 0x0001 /* Invert the sense of IN IFACE. */ 82 #define ARPT_INV_VIA_OUT 0x0002 /* Invert the sense of OUT IFACE */ 83 #define ARPT_INV_SRCIP 0x0004 /* Invert the sense of SRC IP. */ 84 #define ARPT_INV_TGTIP 0x0008 /* Invert the sense of TGT IP. */ 85 #define ARPT_INV_SRCDEVADDR 0x0010 /* Invert the sense of SRC DEV ADDR. */ 86 #define ARPT_INV_TGTDEVADDR 0x0020 /* Invert the sense of TGT DEV ADDR. */ 87 #define ARPT_INV_ARPOP 0x0040 /* Invert the sense of ARP OP. */ 88 #define ARPT_INV_ARPHRD 0x0080 /* Invert the sense of ARP HRD. */ 89 #define ARPT_INV_ARPPRO 0x0100 /* Invert the sense of ARP PRO. */ [all …]
|
/linux/Documentation/hwmon/ |
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 ------------- 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. 62 curr1_input SENSE current (mA) [all …]
|
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 ------------- 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 | 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 ------------- 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 …]
|
/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 …]
|
/linux/drivers/s390/cio/ |
H A D | device_id.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * CCW device SENSE ID I/O handling. 32 * diag210_to_senseid - convert diag 0x210 data to sense id information 33 * @senseid: sense id 36 * Return 0 on success, non-zero otherwise. 76 if (diag->vrdcvcla == 0x02 && diag->vrdcvtyp == 0x20) { in diag210_to_senseid() 77 senseid->cu_type = 0x3088; in diag210_to_senseid() 78 senseid->cu_model = 0x60; in diag210_to_senseid() 79 senseid->reserved = 0xff; in diag210_to_senseid() 83 if (diag->vrdcvcla == vm_devices[i].class && in diag210_to_senseid() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-renesas-rza1.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <dt-bindings/interrupt-controller/arm-gic.h> 31 #define ICR1_IRQS(n, sense) ((sense) << ((n) * 2)) /* IRQ Sense Select */ argument 51 return data->domain->host_data; in irq_data_to_priv() 60 tmp = readw_relaxed(priv->base + IRQRR); in rza1_irqc_eoi() 62 writew_relaxed(GENMASK(IRQC_NUM_IRQ - 1, 0) & ~bit, in rza1_irqc_eoi() 63 priv->base + IRQRR); in rza1_irqc_eoi() 72 u16 sense, tmp; in rza1_irqc_set_type() local 76 sense = ICR1_IRQS_LEVEL_LOW; in rza1_irqc_set_type() 80 sense = ICR1_IRQS_EDGE_FALLING; in rza1_irqc_set_type() [all …]
|
H A D | irq-renesas-rzv2h.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Based on irq-renesas-rzg2l.c 17 #include <linux/irqchip/irq-renesas-rzv2h.h> 71 ICU_TSSR_TSSEL_PREP((GENMASK(((_field_width) - 2), 0)), (n), _field_width); \ 77 BIT((_field_width) - 1) << ((n) * (_field_width)); \ 93 * struct rzv2h_hw_info - Interrupt Control Unit controller hardware info structure. 116 * struct rzv2h_icu_priv - Interrupt Control Unit controller private data structure. 142 guard(raw_spinlock_irqsave)(&priv->lock); in rzv2h_icu_register_dma_req() 144 icu_dmksely = readl(priv->base + ICU_DMkSELy(dmac_index, y)); in rzv2h_icu_register_dma_req() 146 writel(icu_dmksely, priv->base + ICU_DMkSELy(dmac_index, y)); in rzv2h_icu_register_dma_req() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | busnv04.c | 32 u8 sense; member 39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_drive_scl() 40 u8 val = nvkm_rdvgac(device, 0, bus->drive); in nv04_i2c_bus_drive_scl() 43 nvkm_wrvgac(device, 0, bus->drive, val | 0x01); in nv04_i2c_bus_drive_scl() 50 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_drive_sda() 51 u8 val = nvkm_rdvgac(device, 0, bus->drive); in nv04_i2c_bus_drive_sda() 54 nvkm_wrvgac(device, 0, bus->drive, val | 0x01); in nv04_i2c_bus_drive_sda() 61 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_sense_scl() 62 return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x04); in nv04_i2c_bus_sense_scl() 69 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_sense_sda() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | i2c.c | 41 nvkm_warn(&bios->subdev, "ccb %02x not supported\n", *ver); in dcb_i2c_table() 73 struct nvkm_subdev *subdev = &bios->subdev; in dcb_i2c_parse() 83 info->type = DCB_I2C_UNUSED; in dcb_i2c_parse() 85 info->type = DCB_I2C_PMGR; in dcb_i2c_parse() 88 info->type = nvbios_rd08(bios, ent + 0x03); in dcb_i2c_parse() 90 info->type = nvbios_rd08(bios, ent + 0x03) & 0x07; in dcb_i2c_parse() 91 if (info->type == 0x07) in dcb_i2c_parse() 92 info->type = DCB_I2C_UNUSED; in dcb_i2c_parse() 95 info->drive = DCB_I2C_UNUSED; in dcb_i2c_parse() 96 info->sense = DCB_I2C_UNUSED; in dcb_i2c_parse() [all …]
|
/linux/drivers/media/rc/ |
H A D | serial_ir.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * serial_ir - Device driver that records pulse- and pause-lengths 6 * (space-lengths) between DDCD event on a serial port. 8 * Copyright (C) 1996,97 Ralph Metzler <rjkm@thp.uni-koeln.de> 13 * Copyright (C) 2016 Sean Young <sean@mess.org> (port to rc-core) 28 #include <media/rc-core.h> 56 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */ variable 145 /* the register is memory-mapped */ in sinp() 155 /* the register is memory-mapped */ in soutp() 190 for (i = 0, output = 0x7f; rawbits > 0; rawbits -= 3) { in send_pulse_irdeo() [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | starfive,jh71x0-temp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Emil Renner Berthing <kernel@esmil.dk> 18 - starfive,jh7100-temp 19 - starfive,jh7110-temp 28 clock-names: 30 - const: sense 31 - const: bus [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs42l42.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 13 The CS42L42 is a low-power audio codec designed for portable applications. 14 It provides a high-dynamic range, stereo DAC for audio playback and a mono 15 high-dynamic-range ADC for audio capture. There is an integrated headset 21 - cirrus,cs42l42 22 - cirrus,cs42l83 29 VP-supply: [all …]
|
/linux/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_trigger_diag.h | 7 * Copyright (C) 2012-2014 LSI Corporation 8 * Copyright (C) 2013-2014 Avago Technologies 9 * (mailto: MPT-FusionLinux.pdl@avagotech.com) 24 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 43 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 90 * struct SL_WH_EVENT_TRIGGER_T - Definition of an event trigger element 102 * struct SL_WH_EVENT_TRIGGERS_T - Structure passed to/from sysfs containing a 118 * struct SL_WH_SCSI_TRIGGER_T - Definition of a SCSI trigger element 119 * @ASCQ: Additional Sense Code Qualifier. Can be specific or 0xFF for 121 * @ASC: Additional Sense Code. Can be specific or 0xFF for wildcard [all …]
|
/linux/sound/soc/codecs/ |
H A D | max98373.c | 1 // SPDX-License-Identifier: GPL-2.0 23 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98373_dac_event() 28 regmap_update_bits(max98373->regmap, in max98373_dac_event() 34 regmap_update_bits(max98373->regmap, in max98373_dac_event() 38 max98373->tdm_mode = false; in max98373_dac_event() 70 SND_SOC_DAPM_AIF_OUT("Voltage Sense", "HiFi Capture", 0, 72 SND_SOC_DAPM_AIF_OUT("Current Sense", "HiFi Capture", 0, 74 SND_SOC_DAPM_AIF_OUT("Speaker FB Sense", "HiFi Capture", 0, 76 SND_SOC_DAPM_SWITCH("VI Sense", SND_SOC_NOPM, 0, 0, 78 SND_SOC_DAPM_SWITCH("SpkFB Sense", SND_SOC_NOPM, 0, 0, [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | lltc,ltc294x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 17 - Sebastian Reichel <sre@kernel.org> 20 - $ref: power-supply.yaml# 25 - lltc,ltc2941 26 - lltc,ltc2942 27 - lltc,ltc2943 28 - lltc,ltc2944 33 lltc,resistor-sense: [all …]
|