Home
last modified time | relevance | path

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

12345678910>>...17

/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/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/qemu/include/hw/scsi/
H A Dscsi.h39 * - fields before sense are initialized by scsi_req_alloc;
40 * - sense[] is uninitialized;
41 * - fields after sense are memset to 0 by scsi_req_alloc.
44 uint8_t sense[SCSI_SENSE_BUF_SIZE]; member
79 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/openbmc/meta-raspberrypi/dynamic-layers/meta-python/recipes-devtools/python/
H A Dpython3-sense-hat_2.2.0.bb1 SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission"
2 HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
9 PYPI_PACKAGE = "sense-hat"
/openbmc/qemu/hw/scsi/
H A Dscsi-bus.c544 * Fetch the unit attention sense immediately so that another in scsi_fetch_unit_attention_sense()
643 * with an additional sense code of REPORTED LUNS DATA HAS CHANGED. in scsi_target_emulate_report_luns()
741 const struct SCSISense sense = SENSE_CODE(LUN_NOT_SUPPORTED); in scsi_target_send_command() local
744 sense, fixed_sense); in scsi_target_send_command()
827 const int memset_off = offsetof(SCSIRequest, sense) in scsi_req_alloc()
828 + sizeof(req->sense); in scsi_req_alloc()
973 ret = scsi_convert_sense(req->sense, req->sense_len, buf, len, true); in scsi_req_get_sense()
994 return scsi_convert_sense(dev->sense, dev->sense_len, buf, len, fixed); in scsi_device_get_sense()
997 void scsi_req_build_sense(SCSIRequest *req, SCSISense sense) in scsi_req_build_sense() argument
1000 sense.key, sense.asc, sense.ascq); in scsi_req_build_sense()
[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()
223 /* Sense key */ in vscsi_makeup_sense()
224 req->sense[2] = key; in vscsi_makeup_sense()
225 /* Additional sense length */ in vscsi_makeup_sense()
226 req->sense[7] = 0xa; /* 10 bytes */ in vscsi_makeup_sense()
227 /* Additional sense code */ in vscsi_makeup_sense()
228 req->sense[12] = asc; in vscsi_makeup_sense()
229 req->sense[13] = ascq; in vscsi_makeup_sense()
276 memcpy(iu->srp.rsp.data, req->sense, sense_data_len); in vscsi_send_rsp()
[all …]
H A Dscsi-generic.c77 SCSISense sense; in scsi_command_complete_noio() local
87 status = scsi_sense_from_errno(-ret, &sense); in scsi_command_complete_noio()
89 scsi_req_build_sense(&r->req, sense); in scsi_command_complete_noio()
131 r->io_header.mx_sb_len = sizeof(r->req.sense); in execute_command()
132 r->io_header.sbp = r->req.sense; in execute_command()
257 * io_header can report a sense error coming from in scsi_generic_emulate_block_limits()
287 SCSISense sense = in scsi_read_complete() local
288 scsi_parse_sense_buf(r->req.sense, r->io_header.sb_len_wr); in scsi_read_complete()
292 * resulted in sense error but would need emulation. in scsi_read_complete()
295 if (sense.key == ILLEGAL_REQUEST && in scsi_read_complete()
[all …]
/openbmc/qemu/hw/display/
H A Dmacfb.c48 * Quadra sense codes taken from Apple Technical Note HW26:
49 * "Macintosh Quadra Built-In Video". The sense codes and
50 * extended sense codes have different meanings:
52 * Sense:
60 * Extended Sense:
68 * Reads from the sense register appear to be active low, i.e. a 1 indicates
71 * Writes to the sense register appear to activate pulldowns i.e. a 1 enables
75 * determine if extended sense is to be used, and then check which pins are
81 uint8_t sense; member
346 uint8_t sense; in macfb_sense_read() local
[all …]
/openbmc/u-boot/include/
H A Dscsi.h11 /* for request sense */
22 unsigned char sensecmdlen; /* Sense command len */
23 unsigned long sensedatalen; /* Sense data len */
24 unsigned char sensecmd[6]; /* Sense command */
114 #define SCSI_LOG_SENSE 0x4D /* Log Sense (O) */
117 #define SCSI_MODE_SEN6 0x1A /* Mode Sense 6-byte (Device Specific) */
118 #define SCSI_MODE_SEN10 0x5A /* Mode Sense 10-byte (Device Specific) */
120 #define SCSI_REQ_SENSE 0x03 /* Request Sense (MANDATORY) */
/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()
216 * if check_lba_range incorrectly using 512 bytes, will trigger sense error in test_unmap_large_lba()
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()
423 slen = scsi_req_get_sense(req->req, st->status.sense.sense_data, in usb_uas_queue_sense()
424 sizeof(st->status.sense.sense_data)); in usb_uas_queue_sense()
425 st->status.sense.sense_length = cpu_to_be16(slen); in usb_uas_queue_sense()
427 len = sizeof(uas_iu_sense) - sizeof(st->status.sense.sense_data) + slen; in usb_uas_queue_sense()
432 struct SCSISense sense) in usb_uas_queue_fake_sense() argument
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()
[all …]
/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_scsi.h32 /* Default values of the CDB and sense data size configuration fields */
65 /* Response, followed by sense data and data-in */
67 __virtio32 sense_len; /* Sense data length */
72 uint8_t sense[VIRTIO_SCSI_SENSE_SIZE]; member
/openbmc/u-boot/doc/
H A DREADME.fuse32 fuse sense <bank> <word> [<cnt>]
33 Sense - i.e. read directly from the fusebox, skipping the shadow cache -
56 may differ from the fusebox values. Read or sense operations can then be
H A DREADME.fsl_iim32 Sense
33 Sense operations are implemented as explained in 30.4.5.2.
H A DREADME.mxc_ocotp35 Sense
36 Sense operations are implemented as the direct fusebox read explained by
/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()
H A Daspeed_vic.c74 if (s->sense & irq_mask) { in aspeed_vic_set_irq()
149 val = s->sense; in aspeed_vic_read()
160 val = s->raw & ~s->sense; in aspeed_vic_read()
258 s->raw &= ~(data & ~s->sense); in aspeed_vic_write()
303 s->sense = 0x1F07FFF8FFFFULL; in aspeed_vic_reset()
335 VMSTATE_UINT64(sense, AspeedVICState),
/openbmc/qemu/scripts/coccinelle/
H A Dqobject.cocci1 // Use QDict macros where they make sense
28 // Use QList macros where they make sense
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/
H A D0002-interface-remove-C-reserved-keyword.patch252 memset(sense,0,sizeof(sense));
287 handle_scsi_cmd(d, cmd, 6, 0, 56, 0,0, sense);
299 if (handle_scsi_cmd (d, cmd, 10, 0, size+4,'\377',1,sense)) return(1);
407 if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
416 if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
425 if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
434 if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
443 if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
452 if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
461 if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
[all …]
/openbmc/qemu/contrib/vhost-user-scsi/
H A Dvhost-user-scsi.c145 memset(rsp->sense, 0, sizeof(rsp->sense)); in handle_cmd_sync()
147 rsp->sense[0] = 0x70; in handle_cmd_sync()
148 rsp->sense[2] = SCSI_SENSE_ILLEGAL_REQUEST; in handle_cmd_sync()
149 rsp->sense[7] = 10; in handle_cmd_sync()
150 rsp->sense[12] = 0x24; in handle_cmd_sync()
201 memcpy(rsp->sense, &task->datain.data[2], rsp->sense_len); in handle_cmd_sync()
/openbmc/u-boot/doc/device-tree-bindings/gpio/
H A Dintel,x86-broadwell-pinctrl.txt21 - sense-disable - the input state sense is disabled
54 sense-disable;
92 sense-disable;
100 sense-disable;
/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio-scsi.c55 resp->sense_len ? scsi_cdb_asc_msg(resp->sense) in virtio_scsi_verify_response()
56 : "no sense data", in virtio_scsi_verify_response()
57 scsi_sense_response(resp->sense) == 0x70 ? ", sure" : "?", in virtio_scsi_verify_response()
373 uint8_t code = resp.sense[0] & SCSI_SENSE_CODE_MASK; in virtio_scsi_setup()
374 uint8_t sense_key = resp.sense[2] & SCSI_SENSE_KEY_MASK; in virtio_scsi_setup()
377 puts("virtio-scsi: setup: no SENSE data"); in virtio_scsi_setup()
487 puts("Config: sense size mismatch"); in virtio_scsi_setup_device()
/openbmc/u-boot/cmd/
H A Dfuse.c75 } else if (!strcmp(op, "sense")) { in do_fuse()
139 "fuse sense <bank> <word> [<cnt>] - sense 1 or 'cnt' fuse words,\n"
/openbmc/qemu/hw/ufs/
H A Dlu.c24 static void ufs_build_upiu_sense_data(UfsRequest *req, uint8_t *sense, in ufs_build_upiu_sense_data() argument
29 memcpy(req->rsp_upiu.sr.sense_data, sense, sense_len); in ufs_build_upiu_sense_data()
32 static void ufs_build_scsi_response_upiu(UfsRequest *req, uint8_t *sense, in ufs_build_scsi_response_upiu() argument
52 ufs_build_upiu_sense_data(req, sense, sense_len); in ufs_build_scsi_response_upiu()
69 ufs_build_scsi_response_upiu(req, scsi_req->sense, scsi_req->sense_len, in ufs_scsi_command_complete()
222 /* Just return no sense data */ in ufs_emulate_scsi_cmd()

12345678910>>...17