Home
last modified time | relevance | path

Searched refs:sense_buf (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/drivers/ata/
H A Dlibata-zpodd.c106 u8 sense_key, *sense_buf; in zpready() local
115 sense_buf = dev->link->ap->sector_buf; in zpready()
116 ret = atapi_eh_request_sense(dev, sense_buf, sense_key); in zpready()
121 if ((sense_buf[0] & 0x7f) != 0x70) in zpready()
124 add_len = sense_buf[7]; in zpready()
129 asc = sense_buf[12]; in zpready()
130 ascq = sense_buf[13]; in zpready()
H A Dlibata.h166 u8 *sense_buf, u8 dfl_sense_key);
H A Dlibata-eh.c1477 u8 *sense_buf, u8 dfl_sense_key) in atapi_eh_request_sense() argument
1484 memset(sense_buf, 0, SCSI_SENSE_BUFFERSIZE); in atapi_eh_request_sense()
1489 sense_buf[0] = 0x70; in atapi_eh_request_sense()
1490 sense_buf[2] = dfl_sense_key; in atapi_eh_request_sense()
1509 sense_buf, SCSI_SENSE_BUFFERSIZE, 0); in atapi_eh_request_sense()
/openbmc/u-boot/common/
H A Dusb_storage.c895 srb->sense_buf[0], srb->sense_buf[2], in usb_stor_CB_transport()
896 srb->sense_buf[12], srb->sense_buf[13]); in usb_stor_CB_transport()
906 switch (srb->sense_buf[2]) { in usb_stor_CB_transport()
916 srb->sense_buf[0], srb->sense_buf[2], in usb_stor_CB_transport()
917 srb->sense_buf[12], srb->sense_buf[13]); in usb_stor_CB_transport()
928 srb->sense_buf[2], srb->sense_buf[12], in usb_stor_CB_transport()
929 srb->sense_buf[13]); in usb_stor_CB_transport()
1009 srb->sense_buf[2], srb->sense_buf[12], in usb_request_sense()
1010 srb->sense_buf[13]); in usb_request_sense()
1462 pccb->sense_buf[2], pccb->sense_buf[12], in usb_stor_get_info()
[all …]
/openbmc/qemu/hw/ufs/
H A Dlu.c198 uint8_t sense_buf[UFS_SENSE_SIZE]; in ufs_emulate_scsi_cmd() local
206 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()
235 scsi_build_sense(sense_buf, SENSE_CODE(INVALID_OPCODE)); in ufs_emulate_scsi_cmd()
246 ufs_build_scsi_response_upiu(req, sense_buf, sizeof(sense_buf), len, in ufs_emulate_scsi_cmd()
/openbmc/linux/drivers/scsi/
H A Dpmcraid.c2519 sense_buf[0] = 0x72; in pmcraid_frame_auto_sense()
2524 sense_buf[7] = 12; in pmcraid_frame_auto_sense()
2525 sense_buf[8] = 0; in pmcraid_frame_auto_sense()
2526 sense_buf[9] = 0x0A; in pmcraid_frame_auto_sense()
2527 sense_buf[10] = 0x80; in pmcraid_frame_auto_sense()
2534 sense_buf[15] = failing_lba & 0x000000ff; in pmcraid_frame_auto_sense()
2541 sense_buf[19] = failing_lba & 0x000000ff; in pmcraid_frame_auto_sense()
2543 sense_buf[0] = 0x70; in pmcraid_frame_auto_sense()
2553 sense_buf[0] |= 0x80; in pmcraid_frame_auto_sense()
2557 sense_buf[6] = failing_lba & 0xff; in pmcraid_frame_auto_sense()
[all …]
H A Dipr.c5991 sense_buf[0] = 0x72; in ipr_gen_sense()
5996 sense_buf[7] = 12; in ipr_gen_sense()
5997 sense_buf[8] = 0; in ipr_gen_sense()
5998 sense_buf[9] = 0x0A; in ipr_gen_sense()
5999 sense_buf[10] = 0x80; in ipr_gen_sense()
6006 sense_buf[15] = failing_lba & 0x000000ff; in ipr_gen_sense()
6015 sense_buf[0] = 0x70; in ipr_gen_sense()
6027 sense_buf[15] = 0xC0; in ipr_gen_sense()
6029 sense_buf[15] = 0x80; in ipr_gen_sense()
6031 sense_buf[16] = in ipr_gen_sense()
[all …]
H A Dwd719x.h40 __le32 sense_buf; /* 36-39 Auto request sense buffer address */ member
H A Dncr53c8xx.c1539 u_char sense_buf[64]; member
4811 memcpy(cmd->sense_buffer, cp->sense_buf, in ncr_complete()
4813 sizeof(cp->sense_buf))); in ncr_complete()
6462 cp->sensecmd[4] = sizeof(cp->sense_buf); in ncr_sir_to_redo()
6467 memset(cp->sense_buf, 0, sizeof(cp->sense_buf)); in ncr_sir_to_redo()
6468 cp->phys.sense.addr = cpu_to_scr(CCB_PHYS(cp,sense_buf[0])); in ncr_sir_to_redo()
6469 cp->phys.sense.size = cpu_to_scr(sizeof(cp->sense_buf)); in ncr_sir_to_redo()
H A DBusLogic.c2893 dma_addr_t sense_buf; in blogic_qcmd_lck() local
3040 sense_buf = dma_map_single(&adapter->pci_device->dev, in blogic_qcmd_lck()
3043 if (dma_mapping_error(&adapter->pci_device->dev, sense_buf)) { in blogic_qcmd_lck()
3049 ccb->sensedata = sense_buf; in blogic_qcmd_lck()
H A Dwd719x.c236 scb->sense_buf = cpu_to_le32(scb->dma_handle); in wd719x_queuecommand()
/openbmc/u-boot/include/
H A Dscsi.h12 unsigned char sense_buf[64] member
/openbmc/ipmitool/src/plugins/usb/
H A Dusb.c176 void *sense_buf, unsigned char slen, unsigned int timeout) in sendscsicmd_SGIO() argument
193 io_hdr.sbp = (unsigned char *)sense_buf; in sendscsicmd_SGIO()
/openbmc/qemu/hw/scsi/
H A Dmegasas.c355 uint8_t sense_buf[SCSI_SENSE_BUF_SIZE]; in megasas_write_sense() local
358 memset(sense_buf, 0, sense_len); in megasas_write_sense()
359 sense_buf[0] = 0xf0; in megasas_write_sense()
360 sense_buf[2] = sense.key; in megasas_write_sense()
361 sense_buf[7] = 10; in megasas_write_sense()
362 sense_buf[12] = sense.asc; in megasas_write_sense()
363 sense_buf[13] = sense.ascq; in megasas_write_sense()
364 megasas_build_sense(cmd, sense_buf, sense_len); in megasas_write_sense()
369 uint8_t sense_buf[SCSI_SENSE_BUF_SIZE]; in megasas_copy_sense() local
372 sense_len = scsi_req_get_sense(cmd->req, sense_buf, in megasas_copy_sense()
[all …]
H A Dmptsas.c1145 uint8_t sense_buf[SCSI_SENSE_BUF_SIZE]; in mptsas_command_complete() local
1154 sense_len = scsi_req_get_sense(sreq, sense_buf, SCSI_SENSE_BUF_SIZE); in mptsas_command_complete()
1156 pci_dma_write(PCI_DEVICE(s), sense_buffer_addr, sense_buf, in mptsas_command_complete()
/openbmc/linux/drivers/scsi/esas2r/
H A Desas2r_int.c890 if (rq->sense_buf) in esas2r_check_req_rsp_sense()
891 memcpy(rq->sense_buf, rq->data_buf, snslen); in esas2r_check_req_rsp_sense()
893 rq->sense_buf = (u8 *)rq->data_buf; in esas2r_check_req_rsp_sense()
H A Desas2r_main.c858 rq->sense_buf = cmd->sense_buffer; in esas2r_queuecommand()
1211 rq->sense_buf[2], rq->sense_buf[12], in esas2r_log_request_failure()
1212 rq->sense_buf[13], in esas2r_log_request_failure()
H A Desas2r.h657 u8 *sense_buf; member
/openbmc/linux/drivers/target/sbp/
H A Dsbp_target.h221 unsigned char sense_buf[TRANSPORT_SENSE_BUFFER]; member
H A Dsbp_target.c1222 req->sense_buf, unpacked_lun, data_length, in sbp_handle_command()
1358 u8 *sense = req->sense_buf; in sbp_sense_mangle()
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/
H A Dibmvscsi_tgt.h164 unsigned char sense_buf[TRANSPORT_SENSE_BUFFER]; member
/openbmc/linux/drivers/scsi/aacraid/
H A Daachba.c1179 u8 *sense_buf = (u8 *)sense_data; in set_sense() local
1181 sense_buf[0] = 0x70; /* No info field */ in set_sense()
1182 sense_buf[1] = 0; /* Segment number, always zero */ in set_sense()
1184 sense_buf[2] = sense_key; /* Sense key */ in set_sense()
1186 sense_buf[12] = sense_code; /* Additional sense code */ in set_sense()
1190 sense_buf[7] = 10; /* Additional sense length */ in set_sense()
1192 sense_buf[15] = bit_pointer; in set_sense()
1195 sense_buf[15] |= 0xc0;/* Std sense key specific field */ in set_sense()
1197 sense_buf[16] = field_pointer >> 8; /* MSB */ in set_sense()
1198 sense_buf[17] = field_pointer; /* LSB */ in set_sense()
[all …]
/openbmc/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_fw.c133 return mrioc->sense_buf + (phys_addr - mrioc->sense_buf_dma); in mpi3mr_get_sensebuf_virt_addr()
352 u8 *sense_buf = NULL; in mpi3mr_process_admin_reply_desc() local
381 sense_buf = mpi3mr_get_sensebuf_virt_addr(mrioc, in mpi3mr_process_admin_reply_desc()
405 if (sense_buf && cmdptr->sensebuf) { in mpi3mr_process_admin_reply_desc()
407 memcpy(cmdptr->sensebuf, sense_buf, in mpi3mr_process_admin_reply_desc()
418 if (sense_buf) in mpi3mr_process_admin_reply_desc()
3056 if (!mrioc->sense_buf) in mpi3mr_alloc_reply_sense_bufs()
3107 mrioc->sense_buf, mrioc->num_sense_bufs, MPI3MR_SENSE_BUF_SZ, in mpimr_initialize_reply_sbuf_queues()
4295 if (mrioc->sense_buf) in mpi3mr_free_mem()
4296 dma_pool_free(mrioc->sense_buf_pool, mrioc->sense_buf, in mpi3mr_free_mem()
[all …]
H A Dmpi3mr_os.c3133 u8 *sense_buf = NULL; in mpi3mr_process_op_reply_desc() local
3176 sense_buf = mpi3mr_get_sensebuf_virt_addr(mrioc, in mpi3mr_process_op_reply_desc()
3257 sense_buf) { in mpi3mr_process_op_reply_desc()
3260 memcpy(scmd->sense_buffer, sense_buf, sz); in mpi3mr_process_op_reply_desc()
3344 if (sense_buf) { in mpi3mr_process_op_reply_desc()
3345 scsi_normalize_sense(sense_buf, sense_count, &sshdr); in mpi3mr_process_op_reply_desc()
3361 if (sense_buf) in mpi3mr_process_op_reply_desc()
H A Dmpi3mr.h1116 u8 *sense_buf; member

12