Lines Matching refs:spt
716 psp->swb_d.spt.DataIn = SCSI_IOCTL_DATA_UNSPECIFIED; in construct_scsi_pt_obj_with_fd()
717 psp->swb_d.spt.SenseInfoLength = SCSI_MAX_SENSE_LEN; in construct_scsi_pt_obj_with_fd()
718 psp->swb_d.spt.SenseInfoOffset = in construct_scsi_pt_obj_with_fd()
720 psp->swb_d.spt.TimeOutValue = DEF_TIMEOUT; in construct_scsi_pt_obj_with_fd()
722 psp->swb_i.spt.DataIn = SCSI_IOCTL_DATA_UNSPECIFIED; in construct_scsi_pt_obj_with_fd()
723 psp->swb_i.spt.SenseInfoLength = SCSI_MAX_SENSE_LEN; in construct_scsi_pt_obj_with_fd()
724 psp->swb_i.spt.SenseInfoOffset = in construct_scsi_pt_obj_with_fd()
726 psp->swb_i.spt.TimeOutValue = DEF_TIMEOUT; in construct_scsi_pt_obj_with_fd()
847 psp->swb_d.spt.DataIn = SCSI_IOCTL_DATA_UNSPECIFIED; in clear_scsi_pt_obj()
848 psp->swb_d.spt.SenseInfoLength = SCSI_MAX_SENSE_LEN; in clear_scsi_pt_obj()
849 psp->swb_d.spt.SenseInfoOffset = in clear_scsi_pt_obj()
851 psp->swb_d.spt.TimeOutValue = DEF_TIMEOUT; in clear_scsi_pt_obj()
853 psp->swb_i.spt.DataIn = SCSI_IOCTL_DATA_UNSPECIFIED; in clear_scsi_pt_obj()
854 psp->swb_i.spt.SenseInfoLength = SCSI_MAX_SENSE_LEN; in clear_scsi_pt_obj()
855 psp->swb_i.spt.SenseInfoOffset = in clear_scsi_pt_obj()
857 psp->swb_i.spt.TimeOutValue = DEF_TIMEOUT; in clear_scsi_pt_obj()
878 psp->swb_d.spt.DataIn = SCSI_IOCTL_DATA_UNSPECIFIED; in partial_clear_scsi_pt_obj()
879 psp->swb_d.spt.SenseInfoLength = SCSI_MAX_SENSE_LEN; in partial_clear_scsi_pt_obj()
880 psp->swb_d.spt.SenseInfoOffset = in partial_clear_scsi_pt_obj()
882 psp->swb_d.spt.TimeOutValue = DEF_TIMEOUT; in partial_clear_scsi_pt_obj()
884 psp->swb_i.spt.DataIn = SCSI_IOCTL_DATA_UNSPECIFIED; in partial_clear_scsi_pt_obj()
885 psp->swb_i.spt.SenseInfoLength = SCSI_MAX_SENSE_LEN; in partial_clear_scsi_pt_obj()
886 psp->swb_i.spt.SenseInfoOffset = in partial_clear_scsi_pt_obj()
888 psp->swb_i.spt.TimeOutValue = DEF_TIMEOUT; in partial_clear_scsi_pt_obj()
903 if (cdb_len > (int)sizeof(psp->swb_d.spt.Cdb)) { in set_scsi_pt_cdb()
907 memcpy(psp->swb_d.spt.Cdb, cdb, cdb_len); in set_scsi_pt_cdb()
908 psp->swb_d.spt.CdbLength = cdb_len; in set_scsi_pt_cdb()
910 if (cdb_len > (int)sizeof(psp->swb_i.spt.Cdb)) { in set_scsi_pt_cdb()
914 memcpy(psp->swb_i.spt.Cdb, cdb, cdb_len); in set_scsi_pt_cdb()
915 psp->swb_i.spt.CdbLength = cdb_len; in set_scsi_pt_cdb()
924 return spt_direct ? psp->swb_d.spt.CdbLength : psp->swb_i.spt.CdbLength; in get_scsi_pt_cdb_len()
933 if (psp->swb_d.spt.CdbLength > 0) in get_scsi_pt_cdb_buf()
934 return (uint8_t *)(psp->swb_d.spt.Cdb); in get_scsi_pt_cdb_buf()
938 if (psp->swb_i.spt.CdbLength > 0) in get_scsi_pt_cdb_buf()
939 return (uint8_t *)(psp->swb_i.spt.Cdb); in get_scsi_pt_cdb_buf()
970 psp->swb_d.spt.DataIn = SCSI_IOCTL_DATA_IN; in set_scsi_pt_data_in()
972 psp->swb_i.spt.DataIn = SCSI_IOCTL_DATA_IN; in set_scsi_pt_data_in()
989 psp->swb_d.spt.DataIn = SCSI_IOCTL_DATA_OUT; in set_scsi_pt_data_out()
991 psp->swb_i.spt.DataIn = SCSI_IOCTL_DATA_OUT; in set_scsi_pt_data_out()
1062 if (0 == psp->swb_d.spt.CdbLength) { in scsi_pt_direct()
1067 psp->swb_d.spt.Length = sizeof (SCSI_PASS_THROUGH_DIRECT); in scsi_pt_direct()
1068 psp->swb_d.spt.PathId = shp->bus; in scsi_pt_direct()
1069 psp->swb_d.spt.TargetId = shp->target; in scsi_pt_direct()
1070 psp->swb_d.spt.Lun = shp->lun; in scsi_pt_direct()
1071 psp->swb_d.spt.TimeOutValue = time_secs; in scsi_pt_direct()
1072 psp->swb_d.spt.DataTransferLength = psp->dxfer_len; in scsi_pt_direct()
1076 (int)psp->swb_d.spt.Length, (int)psp->swb_d.spt.ScsiStatus, in scsi_pt_direct()
1077 (int)psp->swb_d.spt.PathId, (int)psp->swb_d.spt.TargetId, in scsi_pt_direct()
1078 (int)psp->swb_d.spt.Lun); in scsi_pt_direct()
1081 (int)psp->swb_d.spt.CdbLength, in scsi_pt_direct()
1082 (int)psp->swb_d.spt.SenseInfoLength, in scsi_pt_direct()
1083 (int)psp->swb_d.spt.DataIn, in scsi_pt_direct()
1084 (unsigned int)psp->swb_d.spt.DataTransferLength); in scsi_pt_direct()
1086 (unsigned int)psp->swb_d.spt.TimeOutValue, in scsi_pt_direct()
1087 (unsigned int)psp->swb_d.spt.SenseInfoOffset); in scsi_pt_direct()
1089 psp->swb_d.spt.DataBuffer = psp->dxferp; in scsi_pt_direct()
1112 psp->scsi_status = psp->swb_d.spt.ScsiStatus; in scsi_pt_direct()
1119 if ((psp->dxfer_len > 0) && (psp->swb_d.spt.DataTransferLength > 0)) in scsi_pt_direct()
1120 psp->resid = psp->dxfer_len - psp->swb_d.spt.DataTransferLength; in scsi_pt_direct()
1139 if (0 == psp->swb_i.spt.CdbLength) { in scsi_pt_indirect()
1165 psp->swb_i.spt.Length = sizeof (SCSI_PASS_THROUGH); in scsi_pt_indirect()
1166 psp->swb_i.spt.DataBufferOffset = in scsi_pt_indirect()
1168 psp->swb_i.spt.PathId = shp->bus; in scsi_pt_indirect()
1169 psp->swb_i.spt.TargetId = shp->target; in scsi_pt_indirect()
1170 psp->swb_i.spt.Lun = shp->lun; in scsi_pt_indirect()
1171 psp->swb_i.spt.TimeOutValue = time_secs; in scsi_pt_indirect()
1172 psp->swb_i.spt.DataTransferLength = psp->dxfer_len; in scsi_pt_indirect()
1176 (int)psp->swb_i.spt.Length, (int)psp->swb_i.spt.ScsiStatus, in scsi_pt_indirect()
1177 (int)psp->swb_i.spt.PathId, (int)psp->swb_i.spt.TargetId, in scsi_pt_indirect()
1178 (int)psp->swb_i.spt.Lun); in scsi_pt_indirect()
1181 (int)psp->swb_i.spt.CdbLength, in scsi_pt_indirect()
1182 (int)psp->swb_i.spt.SenseInfoLength, in scsi_pt_indirect()
1183 (int)psp->swb_i.spt.DataIn, in scsi_pt_indirect()
1184 (unsigned int)psp->swb_i.spt.DataTransferLength); in scsi_pt_indirect()
1187 (unsigned int)psp->swb_i.spt.TimeOutValue, in scsi_pt_indirect()
1188 (unsigned int)psp->swb_i.spt.DataBufferOffset, in scsi_pt_indirect()
1189 (unsigned int)psp->swb_i.spt.SenseInfoOffset); in scsi_pt_indirect()
1192 (SCSI_IOCTL_DATA_OUT == psp->swb_i.spt.DataIn)) in scsi_pt_indirect()
1214 if ((psp->dxfer_len > 0) && (SCSI_IOCTL_DATA_IN == psp->swb_i.spt.DataIn)) in scsi_pt_indirect()
1217 psp->scsi_status = psp->swb_i.spt.ScsiStatus; in scsi_pt_indirect()
1224 if ((psp->dxfer_len > 0) && (psp->swb_i.spt.DataTransferLength > 0)) in scsi_pt_indirect()
1225 psp->resid = psp->dxfer_len - psp->swb_i.spt.DataTransferLength; in scsi_pt_indirect()
3057 if (psp->swb_d.spt.CdbLength > 0) { in nvme_pt()
3058 cdbp = psp->swb_d.spt.Cdb; in nvme_pt()
3059 cmd_len = psp->swb_d.spt.CdbLength; in nvme_pt()
3064 if (psp->swb_i.spt.CdbLength > 0) { in nvme_pt()
3065 cdbp = psp->swb_i.spt.Cdb; in nvme_pt()
3066 cmd_len = psp->swb_i.spt.CdbLength; in nvme_pt()