Lines Matching refs:spt
691 struct atto_hba_scsi_pass_thru *spt = &hi->data.scsi_pass_thru; in scsi_passthru_comp_cb() local
694 spt->scsi_status = rq->func_rsp.scsi_rsp.scsi_stat; in scsi_passthru_comp_cb()
695 spt->sense_length = rq->sense_len; in scsi_passthru_comp_cb()
696 spt->residual_length = in scsi_passthru_comp_cb()
734 spt->req_status = sts; in scsi_passthru_comp_cb()
737 spt->target_id = in scsi_passthru_comp_cb()
738 esas2r_targ_db_find_next_present(a, (u16)spt->target_id); in scsi_passthru_comp_cb()
981 struct atto_hba_scsi_pass_thru *spt = &hi->data.scsi_pass_thru; in hba_ioctl_callback() local
984 memcpy(&lun, spt->lun, sizeof(struct scsi_lun)); in hba_ioctl_callback()
999 if (spt->target_id >= ESAS2R_MAX_TARGETS || !check_lun(lun)) { in hba_ioctl_callback()
1011 rq->target_id = (u16)spt->target_id; in hba_ioctl_callback()
1012 rq->vrq->scsi.flags |= cpu_to_le32(spt->lun[1]); in hba_ioctl_callback()
1013 memcpy(rq->vrq->scsi.cdb, spt->cdb, 16); in hba_ioctl_callback()
1015 rq->sense_len = spt->sense_length; in hba_ioctl_callback()
1016 rq->sense_buf = (u8 *)spt->sense_data; in hba_ioctl_callback()
1028 if (spt->flags & ATTO_SPTF_DATA_IN) { in hba_ioctl_callback()
1030 } else if (spt->flags & ATTO_SPTF_DATA_OUT) { in hba_ioctl_callback()
1039 if (spt->flags & ATTO_SPTF_ORDERED_Q) in hba_ioctl_callback()
1042 else if (spt->flags & ATTO_SPTF_HEAD_OF_Q) in hba_ioctl_callback()