Home
last modified time | relevance | path

Searched refs:SENSE_CODE (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/scsi/
H A Dsense_codes.h7 SENSE_CODE(0x0000, "No additional sense information")
8 SENSE_CODE(0x0001, "Filemark detected")
9 SENSE_CODE(0x0002, "End-of-partition/medium detected")
10 SENSE_CODE(0x0003, "Setmark detected")
11 SENSE_CODE(0x0004, "Beginning-of-partition/medium detected")
12 SENSE_CODE(0x0005, "End-of-data detected")
13 SENSE_CODE(0x0006, "I/O process terminated")
14 SENSE_CODE(0x0007, "Programmable early warning detected")
15 SENSE_CODE(0x0011, "Audio play operation in progress")
16 SENSE_CODE(0x0012, "Audio play operation paused")
[all …]
H A Dconstants.c309 #define SENSE_CODE(c, s) {c, sizeof(s)}, macro
311 #undef SENSE_CODE
315 #define SENSE_CODE(c, s) s "\0" macro
317 #undef SENSE_CODE
/openbmc/qemu/scsi/
H A Dutils.c104 return SENSE_CODE(IO_ERROR); in scsi_parse_sense_buf()
111 return SENSE_CODE(IO_ERROR); in scsi_parse_sense_buf()
342 return scsi_build_sense_buf(buf, len, SENSE_CODE(NO_SENSE), fixed); in scsi_convert_sense()
599 *sense = SENSE_CODE(READ_ERROR); in scsi_sense_from_errno()
602 *sense = SENSE_CODE(TARGET_FAILURE); in scsi_sense_from_errno()
606 *sense = SENSE_CODE(NO_MEDIUM); in scsi_sense_from_errno()
609 *sense = SENSE_CODE(TARGET_FAILURE); in scsi_sense_from_errno()
612 *sense = SENSE_CODE(INVALID_FIELD); in scsi_sense_from_errno()
615 *sense = SENSE_CODE(SPACE_ALLOC_FAILED); in scsi_sense_from_errno()
618 *sense = SENSE_CODE(IO_ERROR); in scsi_sense_from_errno()
[all …]
H A Dqemu-pr-helper.c306 return SENSE_CODE(NOT_READY); in mpath_generic_sense()
308 return SENSE_CODE(READ_ERROR); in mpath_generic_sense()
310 return SENSE_CODE(TARGET_FAILURE); in mpath_generic_sense()
312 return SENSE_CODE(IO_ERROR); in mpath_generic_sense()
346 scsi_build_sense(sense, SENSE_CODE(SCSI_BUS_RESET)); in mpath_reconstruct_sense()
350 scsi_build_sense(sense, SENSE_CODE(INVALID_OPCODE)); in mpath_reconstruct_sense()
354 scsi_build_sense(sense, SENSE_CODE(INVALID_PARAM)); in mpath_reconstruct_sense()
357 scsi_build_sense(sense, SENSE_CODE(NO_SENSE)); in mpath_reconstruct_sense()
365 scsi_build_sense(sense, SENSE_CODE(LUN_COMM_FAILURE)); in mpath_reconstruct_sense()
387 scsi_build_sense(sense, SENSE_CODE(INVALID_FIELD)); in multipath_pr_in()
[all …]
H A Dpr-manager-helper.c242 SENSE_CODE(LUN_COMM_FAILURE)); in pr_manager_helper_run()
/openbmc/qemu/hw/scsi/
H A Dscsi-disk.c228 SCSISense sense = SENSE_CODE(NO_SENSE); in scsi_handle_rw_error()
918 scsi_check_condition(r, SENSE_CODE(INVALID_FIELD)); in scsi_read_disc_information()
959 scsi_check_condition(r, SENSE_CODE(INVALID_FIELD)); in scsi_read_dvd_structure()
965 scsi_check_condition(r, SENSE_CODE(NO_MEDIUM)); in scsi_read_dvd_structure()
969 scsi_check_condition(r, SENSE_CODE(INCOMPATIBLE_FORMAT)); in scsi_read_dvd_structure()
1429 scsi_check_condition(r, SENSE_CODE(SAVING_PARAMS_NOT_SUPPORTED)); in scsi_disk_emulate_mode_sense()
1509 ? SENSE_CODE(ILLEGAL_REQ_REMOVAL_PREVENTED) in scsi_disk_emulate_start_stop()
1510 : SENSE_CODE(NOT_READY_REMOVAL_PREVENTED)); in scsi_disk_emulate_start_stop()
1646 scsi_check_condition(r, SENSE_CODE(INVALID_PARAM)); in mode_select_pages()
1650 scsi_check_condition(r, SENSE_CODE(INVALID_PARAM_LEN)); in mode_select_pages()
[all …]
H A Dscsi-bus.c370 scsi_device_purge_requests(dev, SENSE_CODE(NO_SENSE)); in scsi_qdev_unrealize()
461 scsi_req_build_sense(req, SENSE_CODE(INVALID_FIELD)); in scsi_invalid_field()
475 scsi_req_build_sense(req, SENSE_CODE(INVALID_OPCODE)); in scsi_invalid_command()
503 *ua = SENSE_CODE(NO_SENSE); in scsi_fetch_unit_attention_sense()
677 scsi_req_build_sense(req, SENSE_CODE(LUN_NOT_SUPPORTED)); in scsi_target_send_command()
695 const struct SCSISense sense = SENSE_CODE(LUN_NOT_SUPPORTED); in scsi_target_send_command()
713 scsi_req_build_sense(req, SENSE_CODE(INVALID_OPCODE)); in scsi_target_send_command()
717 scsi_req_build_sense(req, SENSE_CODE(INVALID_FIELD)); in scsi_target_send_command()
911 if (ua->asc == SENSE_CODE(REPORTED_LUNS_CHANGED).asc && in scsi_clear_reported_luns_changed()
912 ua->ascq == SENSE_CODE(REPORTED_LUNS_CHANGED).ascq) { in scsi_clear_reported_luns_changed()
[all …]
H A Dmegasas.c1739 megasas_write_sense(cmd, SENSE_CODE(INVALID_OPCODE)); in megasas_handle_scsi()
1746 megasas_write_sense(cmd, SENSE_CODE(TARGET_FAILURE)); in megasas_handle_scsi()
1756 megasas_write_sense(cmd, SENSE_CODE(NO_SENSE)); in megasas_handle_scsi()
1809 megasas_write_sense(cmd, SENSE_CODE(TARGET_FAILURE)); in megasas_handle_io()
1821 megasas_write_sense(cmd, SENSE_CODE(NO_SENSE)); in megasas_handle_io()
2263 sdev->unit_attention = SENSE_CODE(NO_SENSE); in megasas_soft_reset()
H A Dvirtio-scsi.c1088 scsi_bus_set_ua(&s->bus, SENSE_CODE(REPORTED_LUNS_CHANGED)); in virtio_scsi_hotplug()
1116 scsi_bus_set_ua(&s->bus, SENSE_CODE(REPORTED_LUNS_CHANGED)); in virtio_scsi_hotunplug()
H A Dscsi-generic.c677 scsi_device_purge_requests(s, SENSE_CODE(RESET)); in scsi_generic_reset()
/openbmc/qemu/hw/ufs/
H A Dlu.c206 scsi_build_sense(sense_buf, SENSE_CODE(INVALID_FIELD)); in ufs_emulate_scsi_cmd()
215 scsi_build_sense(sense_buf, SENSE_CODE(INVALID_FIELD)); in ufs_emulate_scsi_cmd()
223 len = scsi_build_sense_buf(outbuf, sizeof(outbuf), SENSE_CODE(NO_SENSE), in ufs_emulate_scsi_cmd()
235 scsi_build_sense(sense_buf, SENSE_CODE(INVALID_OPCODE)); in ufs_emulate_scsi_cmd()
/openbmc/qemu/include/scsi/
H A Dutils.h123 #define SENSE_CODE(x) sense_code_ ## x macro