Lines Matching refs:SCpnt

92 static int	mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
173 * @SCpnt: Pointer to scsi_cmnd structure
179 mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
210 sges_left = scsi_dma_map(SCpnt);
216 sg = scsi_sglist(SCpnt);
350 ioc->name, pReq->CDB[0], SCpnt));
1304 * @SCpnt: Pointer to scsi_cmnd structure
1313 mptscsih_qcmd(struct scsi_cmnd *SCpnt)
1318 VirtDevice *vdevice = SCpnt->device->hostdata;
1327 hd = shost_priv(SCpnt->device->host);
1330 dmfprintk(ioc, printk(MYIOC_s_DEBUG_FMT "qcmd: SCpnt=%p\n",
1331 ioc->name, SCpnt));
1355 if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) {
1356 datalen = scsi_bufflen(SCpnt);
1358 } else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) {
1359 datalen = scsi_bufflen(SCpnt);
1370 && (SCpnt->device->tagged_supported)) {
1372 if (SCpnt->request && SCpnt->request->ioprio) {
1373 if (((SCpnt->request->ioprio & 0x7) == 1) ||
1374 !(SCpnt->request->ioprio & 0x7))
1390 pScsiReq->CDBLength = SCpnt->cmd_len;
1394 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN);
1400 cmd_len = SCpnt->cmd_len;
1402 pScsiReq->CDB[ii] = SCpnt->cmnd[ii];
1424 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS)
1428 SCpnt->host_scribble = (unsigned char *)mf;
1429 mptscsih_set_scsi_lookup(ioc, my_idx, SCpnt);
1433 ioc->name, SCpnt, mf, my_idx));
1680 * @SCpnt: Pointer to scsi_cmnd structure, IO to be aborted
1687 mptscsih_abort(struct scsi_cmnd * SCpnt)
1699 if ((hd = shost_priv(SCpnt->device->host)) == NULL) {
1700 SCpnt->result = DID_RESET << 16;
1701 SCpnt->scsi_done(SCpnt);
1703 "can't locate host! (sc=%p)\n", SCpnt);
1709 ioc->name, SCpnt);
1710 scsi_print_command(SCpnt);
1712 vdevice = SCpnt->device->hostdata;
1716 ioc->name, SCpnt));
1717 SCpnt->result = DID_NO_CONNECT << 16;
1718 SCpnt->scsi_done(SCpnt);
1728 ioc->name, SCpnt));
1729 SCpnt->result = DID_RESET << 16;
1739 ioc->name, SCpnt));
1740 SCpnt->result = DID_RESET << 16;
1747 if ((scpnt_idx = SCPNT_TO_LOOKUP_IDX(ioc, SCpnt)) < 0) {
1751 SCpnt->result = DID_RESET << 16;
1754 SCpnt));
1765 /* Most important! Set TaskMsgContext to SCpnt's MsgContext!
1780 if (SCPNT_TO_LOOKUP_IDX(ioc, SCpnt) == scpnt_idx) {
1783 ioc->name, SCpnt));
1788 ioc->name, SCpnt));
1795 SCpnt);
1803 * @SCpnt: Pointer to scsi_cmnd structure, IO which reset is due to
1810 mptscsih_dev_reset(struct scsi_cmnd * SCpnt)
1819 if ((hd = shost_priv(SCpnt->device->host)) == NULL){
1821 "Can't locate host! (sc=%p)\n", SCpnt);
1827 ioc->name, SCpnt);
1828 scsi_print_command(SCpnt);
1830 vdevice = SCpnt->device->hostdata;
1851 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt);
1863 * @SCpnt: Pointer to scsi_cmnd structure, IO which reset is due to
1870 mptscsih_bus_reset(struct scsi_cmnd * SCpnt)
1879 if ((hd = shost_priv(SCpnt->device->host)) == NULL){
1881 "Can't locate host! (sc=%p)\n", SCpnt);
1887 ioc->name, SCpnt);
1888 scsi_print_command(SCpnt);
1893 vdevice = SCpnt->device->hostdata;
1902 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt);
1913 * @SCpnt: Pointer to scsi_cmnd structure, IO which reset is due to
1920 mptscsih_host_reset(struct scsi_cmnd *SCpnt)
1928 if ((hd = shost_priv(SCpnt->device->host)) == NULL){
1930 "Can't locate host! (sc=%p)\n", SCpnt);
1939 ioc->name, SCpnt);
1951 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt);