Home
last modified time | relevance | path

Searched refs:sense (Results 1 – 25 of 678) sorted by relevance

12345678910>>...28

/openbmc/qemu/scsi/
H A Dutils.c98 SCSISense sense; in scsi_parse_sense_buf() local
118 return sense; in scsi_parse_sense_buf()
129 buf[2] = sense.key; in scsi_build_sense_buf()
131 buf[12] = sense.asc; in scsi_build_sense_buf()
136 buf[1] = sense.key; in scsi_build_sense_buf()
137 buf[2] = sense.asc; in scsi_build_sense_buf()
338 SCSISense sense; in scsi_convert_sense() local
437 SCSISense sense; in scsi_sense_buf_to_errno() local
443 return scsi_sense_to_errno(sense.key, sense.asc, sense.ascq); in scsi_sense_buf_to_errno()
448 SCSISense sense; in scsi_sense_buf_is_guest_recoverable() local
[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()
188 .sense = sense, in do_sgio()
357 scsi_build_sense(sense, SENSE_CODE(NO_SENSE)); in mpath_reconstruct_sense()
422 return mpath_reconstruct_sense(fd, r, sense); in multipath_pr_in()
539 return mpath_reconstruct_sense(fd, r, sense); in multipath_pr_out()
557 return do_sgio(fd, cdb, sense, data, resp_sz, in do_pr_in()
[all …]
/openbmc/linux/drivers/s390/block/
H A Ddasd_3990_erp.c319 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()
471 sense[8]); in dasd_3990_handle_env_data()
595 sense[8]); in dasd_3990_handle_env_data()
1435 char *sense; in dasd_3990_erp_inspect_alias() local
1445 && (sense[0] == 0x10) && (sense[7] == 0x0F) in dasd_3990_erp_inspect_alias()
2086 sense[23], sense[11], sense[12]); in dasd_3990_erp_handle_sim()
2091 sense[23], sense[11], sense[12]); in dasd_3990_erp_handle_sim()
2322 char *sense; in dasd_3990_erp_inspect() local
2334 if (!sense) in dasd_3990_erp_inspect()
[all …]
/openbmc/linux/drivers/s390/char/
H A Dtape_3590.c1091 sense->fmt.f71.md[1], sense->fmt.f71.md[2]); in tape_3590_print_io_sim_msg_f1()
1100 sense->fmt.f71.md[1], sense->fmt.f71.md[2]); in tape_3590_print_io_sim_msg_f1()
1110 sense->fmt.f71.md[1], sense->fmt.f71.md[2]); in tape_3590_print_io_sim_msg_f1()
1191 sense->fmt.f71.md[1], sense->fmt.f71.md[2]); in tape_3590_print_dev_sim_msg_f2()
1200 sense->fmt.f71.md[1], sense->fmt.f71.md[2]); in tape_3590_print_dev_sim_msg_f2()
1209 sense->fmt.f71.md[1], sense->fmt.f71.md[2]); in tape_3590_print_dev_sim_msg_f2()
1222 sense->fmt.f71.md[1], sense->fmt.f71.md[2]); in tape_3590_print_dev_sim_msg_f2()
1265 sense->fmt.f70.emc, sense->fmt.f70.smc, in tape_3590_print_era_msg()
1266 sense->fmt.f70.refcode, sense->fmt.f70.mid, in tape_3590_print_era_msg()
1276 sense->mc, sense->fmt.f71.emc, sense->fmt.f71.smc, in tape_3590_print_era_msg()
[all …]
H A Dtape_34xx.c59 unsigned char *sense; in __tape_34xx_medium_sense() local
62 sense = request->cpdata; in __tape_34xx_medium_sense()
75 if (sense[1] & SENSE_WRITE_PROTECT) in __tape_34xx_medium_sense()
321 __u8* sense; in tape_34xx_unit_check() local
324 sense = irb->ecw; in tape_34xx_unit_check()
328 sense[1] & SENSE_WRITE_PROTECT in tape_34xx_unit_check()
359 sense[1] == SENSE_DRIVE_ONLINE || in tape_34xx_unit_check()
413 switch (sense[3]) { in tape_34xx_unit_check()
470 if (sense[0] & SENSE_OVERRUN) in tape_34xx_unit_check()
477 switch (sense[3]) { in tape_34xx_unit_check()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dsense.c68 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()
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()
135 struct mlx4_sense *sense = &priv->sense; in mlx4_sense_init() local
138 sense->dev = dev; in mlx4_sense_init()
140 sense->do_sense_port[port] = 1; in mlx4_sense_init()
[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#
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:
41 - sense-resistor-micro-ohms
48 compatible = "current-sense-amplifier";
51 sense-resistor-micro-ohms = <20000>;
[all …]
H A Dcurrent-sense-shunt.yaml4 $id: http://devicetree.org/schemas/iio/afe/current-sense-shunt.yaml#
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";
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 */
/openbmc/linux/include/scsi/
H A Dscsi.h127 #define sense_class(sense) (((sense) >> 4) & 0x7) argument
128 #define sense_error(sense) ((sense) & 0xf) argument
129 #define sense_valid(sense) ((sense) & 0x80) argument
/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()
/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,
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/qemu/hw/scsi/
H A Dscsi-bus.c953 sense.key, sense.asc, sense.ascq); in scsi_req_build_sense()
954 req->sense_len = scsi_build_sense(req->sense, sense); in scsi_req_build_sense()
1552 SCSISense sense; in scsi_req_complete_failed() local
1589 memcpy(req->dev->sense, req->sense, req->sense_len); in scsi_req_complete()
1669 if (sense.asc == 0x29 && sense.ascq == 0x04) { in scsi_ua_precedence()
1672 } else if (sense.asc == 0x3F && sense.ascq == 0x01) { in scsi_ua_precedence()
1675 } else if (sense.asc == 0x29 && (sense.ascq == 0x05 || sense.ascq == 0x06)) { in scsi_ua_precedence()
1678 } else if (sense.asc == 0x29 && sense.ascq <= 0x07) { in scsi_ua_precedence()
1686 } else if (sense.asc == 0x2F && sense.ascq == 0x01) { in scsi_ua_precedence()
1690 return (sense.asc << 8) | sense.ascq; in scsi_ua_precedence()
[all …]
H A Dspapr_vscsi.c81 uint8_t sense[SCSI_SENSE_BUF_SIZE]; member
222 req->sense[0] = (0x1 << 7 | 0x70); in vscsi_makeup_sense()
224 req->sense[2] = key; in vscsi_makeup_sense()
226 req->sense[7] = 0xa; /* 10 bytes */ in vscsi_makeup_sense()
228 req->sense[12] = asc; in vscsi_makeup_sense()
229 req->sense[13] = ascq; in vscsi_makeup_sense()
569 req->sense[0], req->sense[1], req->sense[2], req->sense[3], in vscsi_command_complete()
570 req->sense[4], req->sense[5], req->sense[6], req->sense[7]); in vscsi_command_complete()
572 req->sense[8], req->sense[9], req->sense[10], req->sense[11], in vscsi_command_complete()
573 req->sense[12], req->sense[13], req->sense[14], req->sense[15]); in vscsi_command_complete()
[all …]
/openbmc/linux/drivers/media/rc/
H A Dserial_ir.c342 sense != -1) { in serial_ir_irq_handler()
358 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler()
366 if (!(dcd ^ sense)) { in serial_ir_irq_handler()
376 sense = sense ? 0 : 1; in serial_ir_irq_handler()
571 if (sense == -1) { in serial_ir_probe()
588 sense = nlow >= nhigh ? 1 : 0; in serial_ir_probe()
590 sense ? "low" : "high"); in serial_ir_probe()
593 sense ? "low" : "high"); in serial_ir_probe()
792 if (sense != -1) in serial_ir_init_module()
793 sense = !!sense; in serial_ir_init_module()
[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()
H A Dirq-renesas-rzg2l.c50 #define IITSR_IITSEL(n, sense) ((sense) << ((n) * 2)) argument
188 u16 sense, tmp; in rzg2l_irq_set_type() local
192 sense = IITSR_IITSEL_LEVEL_LOW; in rzg2l_irq_set_type()
196 sense = IITSR_IITSEL_EDGE_FALLING; in rzg2l_irq_set_type()
201 sense = IITSR_IITSEL_EDGE_RISING; in rzg2l_irq_set_type()
206 sense = IITSR_IITSEL_EDGE_BOTH; in rzg2l_irq_set_type()
217 tmp |= IITSR_IITSEL(iitseln, sense); in rzg2l_irq_set_type()
248 u8 index, sense; in rzg2l_tint_set_edge() local
253 sense = TITSR_TITSEL_EDGE_RISING; in rzg2l_tint_set_edge()
257 sense = TITSR_TITSEL_EDGE_FALLING; in rzg2l_tint_set_edge()
[all …]
H A Dirq-aspeed-vic.c60 u32 sense; in vic_init_hw() local
78 sense = readl(vic->base + AVIC_INT_SENSE); in vic_init_hw()
79 vic->edge_sources[0] = ~sense; in vic_init_hw()
80 sense = readl(vic->base + AVIC_INT_SENSE + 4); in vic_init_hw()
81 vic->edge_sources[1] = ~sense; in vic_init_hw()
/openbmc/linux/Documentation/devicetree/bindings/hwmon/
H A Dstarfive,jh71x0-temp.yaml30 - const: sense
42 - const: sense
65 clock-names = "sense", "bus";
69 reset-names = "sense", "bus";
/openbmc/qemu/include/hw/scsi/
H A Dscsi.h43 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);
235 void scsi_device_report_change(SCSIDevice *dev, SCSISense sense);
/openbmc/linux/drivers/video/fbdev/
H A Dvalkyriefb.c87 int sense; member
268 p->sense = read_valkyrie_sense(p); in valkyrie_choose_mode()
269 printk(KERN_INFO "Monitor sense value = 0x%x\n", p->sense); in valkyrie_choose_mode()
278 default_vmode = mac_map_monitor_sense(p->sense); in valkyrie_choose_mode()
401 int sense, in; in read_valkyrie_sense() local
405 sense = ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4; in read_valkyrie_sense()
409 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x30); in read_valkyrie_sense()
412 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x40) >> 3; in read_valkyrie_sense()
413 sense |= (in & 0x10) >> 2; in read_valkyrie_sense()
416 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5; in read_valkyrie_sense()
[all …]
/openbmc/qemu/tests/qtest/
H A Dvirtio-scsi-test.c151 g_assert_cmpint(resp.sense[0], ==, 0x70); /* Fixed format sense buffer */ in qvirtio_scsi_init()
152 g_assert_cmpint(resp.sense[2], ==, UNIT_ATTENTION); in qvirtio_scsi_init()
153 g_assert_cmpint(resp.sense[12], ==, 0x29); /* POWER ON */ in qvirtio_scsi_init()
154 g_assert_cmpint(resp.sense[13], ==, 0x00); in qvirtio_scsi_init()
257 g_assert_cmphex(resp.sense[0], ==, 0x70); in test_write_to_cdrom()
258 g_assert_cmphex(resp.sense[2], ==, DATA_PROTECT); in test_write_to_cdrom()
259 g_assert_cmphex(resp.sense[12], ==, 0x27); /* WRITE PROTECTED */ in test_write_to_cdrom()
260 g_assert_cmphex(resp.sense[13], ==, 0x00); /* WRITE PROTECTED */ in test_write_to_cdrom()
/openbmc/qemu/hw/usb/
H A Ddev-uas.c101 uas_iu_sense sense; member
420 st->status.sense.status = status; in usb_uas_queue_sense()
421 st->status.sense.status_qualifier = cpu_to_be16(0); in usb_uas_queue_sense()
425 st->status.sense.sense_length = cpu_to_be16(slen); in usb_uas_queue_sense()
437 st->status.sense.status = CHECK_CONDITION; in usb_uas_queue_fake_sense()
438 st->status.sense.status_qualifier = cpu_to_be16(0); in usb_uas_queue_fake_sense()
439 st->status.sense.sense_data[0] = 0x70; in usb_uas_queue_fake_sense()
440 st->status.sense.sense_data[2] = sense.key; in usb_uas_queue_fake_sense()
441 st->status.sense.sense_data[7] = 10; in usb_uas_queue_fake_sense()
442 st->status.sense.sense_data[12] = sense.asc; in usb_uas_queue_fake_sense()
[all …]
/openbmc/qemu/hw/intc/
H A Drx_icu.c104 switch (src->sense) { in rxicu_set_irq()
125 if (issue == 0 && src->sense == TRG_LEVEL) { in rxicu_set_irq()
152 if (icu->src[n_IRQ].sense != TRG_LEVEL) { in rxicu_ack_irq()
203 return icu->src[64 + reg].sense << R_IRQCR_IRQMD_SHIFT; in icu_read()
234 if (icu->src[reg].sense != TRG_LEVEL && val == 0) { in icu_write()
264 icu->src[64 + reg].sense = val >> R_IRQCR_IRQMD_SHIFT; in icu_write()
312 icu->src[i].sense = TRG_PEDGE; in rxicu_realize()
316 icu->src[irqno].sense = TRG_LEVEL; in rxicu_realize()

12345678910>>...28