Home
last modified time | relevance | path

Searched full:sense (Results 1 – 25 of 2076) sorted by relevance

12345678910>>...84

/openbmc/linux/drivers/s390/block/
H A Ddasd_3990_erp.c34 * 24 and 32 byte sense ERP functions
294 * sense sense data of the actual error
302 dasd_3990_erp_action_4(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_action_4() argument
319 if (sense && (sense[25] == 0x1D)) { /* state change pending */ in dasd_3990_erp_action_4()
328 } else if (sense && (sense[25] == 0x1E)) { /* busy */ in dasd_3990_erp_action_4()
350 * 24 byte sense ERP functions (only)
385 * Does a analysis of the sense data (message Format)
389 * sense current sense data
395 dasd_3990_handle_env_data(struct dasd_ccw_req * erp, char *sense) in dasd_3990_handle_env_data() argument
399 char msg_format = (sense[7] & 0xF0); in dasd_3990_handle_env_data()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/afe/
H A Dcurrent-sense-amplifier.yaml4 $id: http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml#
7 title: Current Sense Amplifier
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
27 sense-resistor-micro-ohms:
28 description: The sense resistance.
30 sense-gain-mult:
34 sense-gain-div:
[all …]
H A Dtemperature-transducer.yaml64 sense-offset-millicelsius:
68 In that case, sense-offset-millicelsius would be set to <(-273150)>.
71 sense-resistor-ohms:
73 The sense resistor.
74 By default sense-resistor-ohms cancels out the resistor making the
101 sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */
102 sense-resistor-ohms = <8060>;
111 sense-offset-millicelsius = <(-273150)>; /* Kelvin to degrees Celsius */
H A Dcurrent-sense-shunt.yaml4 $id: http://devicetree.org/schemas/iio/afe/current-sense-shunt.yaml#
7 title: Current Sense Shunt
13 When an io-channel measures the voltage over a current sense shunt,
16 sense circuit.
20 const: current-sense-shunt
61 compatible = "current-sense-shunt";
/openbmc/qemu/scsi/
H A Dutils.c98 SCSISense sense; in scsi_parse_sense_buf() local
106 sense.key = in_buf[2]; in scsi_parse_sense_buf()
107 sense.asc = in_buf[12]; in scsi_parse_sense_buf()
108 sense.ascq = in_buf[13]; in scsi_parse_sense_buf()
113 sense.key = in_buf[1]; in scsi_parse_sense_buf()
114 sense.asc = in_buf[2]; in scsi_parse_sense_buf()
115 sense.ascq = in_buf[3]; in scsi_parse_sense_buf()
118 return sense; in scsi_parse_sense_buf()
121 int scsi_build_sense_buf(uint8_t *out_buf, size_t size, SCSISense sense, in scsi_build_sense_buf() argument
129 buf[2] = sense.key; in scsi_build_sense_buf()
[all …]
H A Dqemu-pr-helper.c128 uint8_t *sense; member
142 memset(data->sense, 0, PR_HELPER_SENSE_SIZE); in do_sgio_worker()
147 io_hdr.sbp = data->sense; in do_sgio_worker()
158 scsi_build_sense(data->sense, sense_code); in do_sgio_worker()
163 scsi_build_sense(data->sense, sense_code); in do_sgio_worker()
180 static int coroutine_fn do_sgio(int fd, const uint8_t *cdb, uint8_t *sense, in do_sgio() argument
188 .sense = sense, in do_sgio()
318 static int coroutine_fn mpath_reconstruct_sense(int fd, int r, uint8_t *sense) in mpath_reconstruct_sense() argument
328 /* libmpathpersist ate the exact sense. Try to find it by in mpath_reconstruct_sense()
333 int ret = do_sgio(fd, cdb, sense, NULL, &sz, SG_DXFER_NONE); in mpath_reconstruct_sense()
[all …]
/openbmc/linux/drivers/s390/char/
H A Dtape_3590.c48 [0x10] = "Lost Sense",
491 * SENSE Medium: Get Sense data about medium state
585 * 1. A unit check is presented, when attention sense is present (e.g. when
586 * a medium has been unloaded). The attention sense comes then
669 struct tape_3590_med_sense *sense) in tape_3590_med_state_set() argument
675 DBF_EVENT(6, "medium state: %x:%x\n", sense->macst, sense->masst); in tape_3590_med_state_set()
676 switch (sense->macst) { in tape_3590_med_state_set()
692 if (sense->flags & MSENSE_CRYPT_MASK) { in tape_3590_med_state_set()
693 DBF_EVENT(6, "Medium is encrypted (%04x)\n", sense->flags); in tape_3590_med_state_set()
696 DBF_EVENT(6, "Medium is not encrypted %04x\n", sense->flags); in tape_3590_med_state_set()
[all …]
H A Dtape_34xx.c53 * Medium sense for 34xx tapes. There is no 'real' medium sense call.
54 * So we just do a normal sense.
59 unsigned char *sense; in __tape_34xx_medium_sense() local
62 sense = request->cpdata; in __tape_34xx_medium_sense()
70 if (sense[0] & SENSE_INTERVENTION_REQUIRED) in __tape_34xx_medium_sense()
75 if (sense[1] & SENSE_WRITE_PROTECT) in __tape_34xx_medium_sense()
80 DBF_EVENT(4, "tape_34xx: medium sense failed with rc=%d\n", in __tape_34xx_medium_sense()
97 tape_ccw_end(request->cpaddr, SENSE, 32, request->cpdata); in tape_34xx_medium_sense()
114 tape_ccw_end(request->cpaddr, SENSE, 32, request->cpdata); in tape_34xx_medium_sense_async()
312 * This function analyses the tape's sense-data in case of a unit-check.
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dsense.c51 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()
68 struct mlx4_sense *sense = &mlx4_priv(dev)->sense; in mlx4_do_sense_ports() local
74 if (sense->do_sense_port[i] && sense->sense_allowed[i] && in mlx4_do_sense_ports()
94 struct mlx4_sense *sense = container_of(delay, struct mlx4_sense, in mlx4_sense_port() local
96 struct mlx4_dev *dev = sense->dev; in mlx4_sense_port()
111 queue_delayed_work(mlx4_wq , &sense->sense_poll, in mlx4_sense_port()
118 struct mlx4_sense *sense = &priv->sense; in mlx4_start_sense() local
123 queue_delayed_work(mlx4_wq , &sense->sense_poll, in mlx4_start_sense()
129 cancel_delayed_work_sync(&mlx4_priv(dev)->sense.sense_poll); in mlx4_stop_sense()
[all …]
/openbmc/linux/drivers/scsi/
H A Dscsi_common.c173 * descriptor sense data format into a common format.
175 * @sense_buffer: byte array containing sense data returned by device
181 * The "main elements" from sense data are: response_code, sense_key,
188 * true if valid sense data information found, else false;
235 * scsi_sense_desc_find - search for a given descriptor type in descriptor sense data format.
236 * @sense_buffer: byte array of descriptor format sense data
242 * only valid when sense data is in descriptor format
274 * scsi_build_sense_buffer - build sense data in a buffer
275 * @desc: Sense format (non-zero == descriptor format,
277 * @buf: Where to build sense data
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dssm4567.c176 SND_SOC_DAPM_SIGGEN("Sense"),
178 SND_SOC_DAPM_PGA("Current Sense", SSM4567_REG_POWER_CTRL, 4, 1, NULL, 0),
179 SND_SOC_DAPM_PGA("Voltage Sense", SSM4567_REG_POWER_CTRL, 5, 1, NULL, 0),
180 SND_SOC_DAPM_PGA("VBAT Sense", SSM4567_REG_POWER_CTRL, 6, 1, NULL, 0),
190 { "Current Sense", NULL, "Sense" },
191 { "Voltage Sense", NULL, "Sense" },
192 { "VBAT Sense", NULL, "Sense" },
193 { "Capture Sense", NULL, "Current Sense" },
194 { "Capture Sense", NULL, "Voltage Sense" },
195 { "Capture Sense", NULL, "VBAT Sense" },
[all …]
/openbmc/linux/include/uapi/linux/netfilter/
H A Dxt_tcpudp.h18 #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. */
/openbmc/linux/include/uapi/linux/netfilter_arp/
H A Darp_tables.h81 #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. */
90 #define ARPT_INV_ARPHLN 0x0200 /* Invert the sense of ARP HLN. */
/openbmc/qemu/include/scsi/
H A Dutils.h49 int scsi_build_sense(uint8_t *buf, SCSISense sense);
51 int scsi_build_sense_buf(uint8_t *buf, size_t max_size, SCSISense sense,
55 * Predefined sense codes
58 /* No sense data available */
126 int scsi_sense_buf_to_errno(const uint8_t *sense, size_t sense_size);
127 bool scsi_sense_buf_is_guest_recoverable(const uint8_t *sense, size_t sense_size);
144 int scsi_sense_from_errno(int errno_value, SCSISense *sense);
145 int scsi_sense_from_host_status(uint8_t host_status, SCSISense *sense);
/openbmc/linux/Documentation/hwmon/
H A Dltc4260.rst50 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)
63 curr1_alarm SENSE overcurrent alarm
H A Dltc2945.rst50 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.
56 SENSE+ or VDD pin depending on chip configuration.
74 curr1_input SENSE current (mA)
83 power1_input Power (in uW). Power is calculated based on SENSE+/VDD
H A Dltc4261.rst50 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.
69 curr1_input SENSE current (mA)
70 curr1_alarm SENSE overcurrent alarm
/openbmc/qemu/include/hw/scsi/
H A Dscsi.h38 * - fields before sense are initialized by scsi_req_alloc;
39 * - sense[] is uninitialized;
40 * - fields after sense are memset to 0 by scsi_req_alloc.
43 uint8_t sense[SCSI_SENSE_BUF_SIZE]; member
76 uint8_t sense[SCSI_SENSE_BUF_SIZE]; member
136 void (*change)(SCSIBus *bus, SCSIDevice *dev, SCSISense sense);
204 void scsi_bus_set_ua(SCSIBus *bus, SCSISense sense);
219 void scsi_req_build_sense(SCSIRequest *req, SCSISense sense);
233 void scsi_device_purge_requests(SCSIDevice *sdev, SCSISense sense);
234 void scsi_device_set_ua(SCSIDevice *sdev, SCSISense sense);
[all …]
/openbmc/linux/drivers/iio/afe/
H A Diio-rescale.c311 * Using .read_avail() is fringe to begin with and makes no sense in rescale_configure_channel()
325 u32 sense; in rescale_current_sense_amplifier_props() local
331 ret = device_property_read_u32(dev, "sense-resistor-micro-ohms", in rescale_current_sense_amplifier_props()
332 &sense); in rescale_current_sense_amplifier_props()
334 dev_err(dev, "failed to read the sense resistance: %d\n", ret); in rescale_current_sense_amplifier_props()
338 device_property_read_u32(dev, "sense-gain-mult", &gain_mult); in rescale_current_sense_amplifier_props()
339 device_property_read_u32(dev, "sense-gain-div", &gain_div); in rescale_current_sense_amplifier_props()
342 * Calculate the scaling factor, 1 / (gain * sense), or in rescale_current_sense_amplifier_props()
343 * gain_div / (gain_mult * sense), while trying to keep the in rescale_current_sense_amplifier_props()
346 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
[all …]
/openbmc/linux/drivers/s390/cio/
H A Ddevice_id.c3 * CCW device SENSE ID I/O handling.
31 * diag210_to_senseid - convert diag 0x210 data to sense id information
32 * @senseid: sense id
132 * Initialize SENSE ID data.
144 * Check for complete SENSE ID data.
151 /* Check for incomplete SENSE ID data. */ in snsid_check()
156 /* Check for incompatible SENSE ID data. */ in snsid_check()
170 * Process SENSE ID request result.
194 * ccw_device_sense_id_start - perform SENSE ID
197 * Execute a SENSE ID channel program on @cdev to update its sense id
H A Ddevice_status.c7 * Status accumulation and basic sense functions.
90 /* Copy concurrent sense / model dependent information. */ in ccw_device_accumulate_ecw()
184 /* Copy concurrent sense bit. */ in ccw_device_accumulate_esw()
292 * Check whether we must issue a SENSE CCW ourselves if there is no in ccw_device_accumulate_irb()
293 * concurrent sense facility installed for the subchannel. in ccw_device_accumulate_irb()
294 * No sense is required if no delayed sense is pending in ccw_device_accumulate_irb()
295 * and we did not get a unit check without sense information. in ccw_device_accumulate_irb()
300 * sense facility available/supported when enabling the in ccw_device_accumulate_irb()
301 * concurrent sense facility. in ccw_device_accumulate_irb()
309 * Do a basic sense.
[all …]
/openbmc/qemu/hw/scsi/
H A Dscsi-bus.c498 * Fetch the unit attention sense immediately so that another in scsi_fetch_unit_attention_sense()
597 * with an additional sense code of REPORTED LUNS DATA HAS CHANGED. in scsi_target_emulate_report_luns()
695 const struct SCSISense sense = SENSE_CODE(LUN_NOT_SUPPORTED); in scsi_target_send_command() local
698 sense, fixed_sense); in scsi_target_send_command()
781 const int memset_off = offsetof(SCSIRequest, sense) in scsi_req_alloc()
782 + sizeof(req->sense); in scsi_req_alloc()
926 ret = scsi_convert_sense(req->sense, req->sense_len, buf, len, true); in scsi_req_get_sense()
947 return scsi_convert_sense(dev->sense, dev->sense_len, buf, len, fixed); in scsi_device_get_sense()
950 void scsi_req_build_sense(SCSIRequest *req, SCSISense sense) in scsi_req_build_sense() argument
953 sense.key, sense.asc, sense.ascq); in scsi_req_build_sense()
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-renesas-rza1.c31 #define ICR1_IRQS(n, sense) ((sense) << ((n) * 2)) /* IRQ Sense Select */ argument
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()
84 sense = ICR1_IRQS_EDGE_RISING; in rza1_irqc_set_type()
88 sense = ICR1_IRQS_EDGE_BOTH; in rza1_irqc_set_type()
97 tmp |= ICR1_IRQS(hw_irq, sense); in rza1_irqc_set_type()
159 /* Check interrupt number, ignore sense */ in rza1_irqc_parse_map()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dbusnv04.c32 u8 sense; member
62 return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x04); in nv04_i2c_bus_sense_scl()
70 return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x08); in nv04_i2c_bus_sense_sda()
83 nv04_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, u8 sense, in nv04_i2c_bus_new() argument
94 bus->sense = sense; in nv04_i2c_bus_new()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Di2c.c96 info->sense = DCB_I2C_UNUSED; in dcb_i2c_parse()
103 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse()
148 info->sense = nvbios_rd08(bios, ent + 5); in dcb_i2c_parse()
149 if (!info->sense) info->sense = 0x3e; in dcb_i2c_parse()
154 info->sense = nvbios_rd08(bios, ent + 7); in dcb_i2c_parse()
155 if (!info->sense) info->sense = 0x36; in dcb_i2c_parse()

12345678910>>...84