Lines Matching refs:SCpnt
92 static int mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
177 mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, in mptscsih_AddSGE() argument
208 sges_left = scsi_dma_map(SCpnt); in mptscsih_AddSGE()
214 sg = scsi_sglist(SCpnt); in mptscsih_AddSGE()
348 ioc->name, pReq->CDB[0], SCpnt)); in mptscsih_AddSGE()
1313 mptscsih_qcmd(struct scsi_cmnd *SCpnt) in mptscsih_qcmd() argument
1318 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd()
1327 hd = shost_priv(SCpnt->device->host); in mptscsih_qcmd()
1331 ioc->name, SCpnt)); in mptscsih_qcmd()
1355 if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) { in mptscsih_qcmd()
1356 datalen = scsi_bufflen(SCpnt); in mptscsih_qcmd()
1358 } else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) { in mptscsih_qcmd()
1359 datalen = scsi_bufflen(SCpnt); in mptscsih_qcmd()
1370 SCpnt->device->tagged_supported) in mptscsih_qcmd()
1385 pScsiReq->CDBLength = SCpnt->cmd_len; in mptscsih_qcmd()
1389 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN); in mptscsih_qcmd()
1395 cmd_len = SCpnt->cmd_len; in mptscsih_qcmd()
1397 pScsiReq->CDB[ii] = SCpnt->cmnd[ii]; in mptscsih_qcmd()
1419 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS) in mptscsih_qcmd()
1423 SCpnt->host_scribble = (unsigned char *)mf; in mptscsih_qcmd()
1424 mptscsih_set_scsi_lookup(ioc, my_idx, SCpnt); in mptscsih_qcmd()
1428 ioc->name, SCpnt, mf, my_idx)); in mptscsih_qcmd()
1681 mptscsih_abort(struct scsi_cmnd * SCpnt) in mptscsih_abort() argument
1693 if ((hd = shost_priv(SCpnt->device->host)) == NULL) { in mptscsih_abort()
1694 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1695 scsi_done(SCpnt); in mptscsih_abort()
1697 "can't locate host! (sc=%p)\n", SCpnt); in mptscsih_abort()
1703 ioc->name, SCpnt); in mptscsih_abort()
1704 scsi_print_command(SCpnt); in mptscsih_abort()
1706 vdevice = SCpnt->device->hostdata; in mptscsih_abort()
1710 ioc->name, SCpnt)); in mptscsih_abort()
1711 SCpnt->result = DID_NO_CONNECT << 16; in mptscsih_abort()
1712 scsi_done(SCpnt); in mptscsih_abort()
1722 ioc->name, SCpnt)); in mptscsih_abort()
1723 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1733 ioc->name, SCpnt)); in mptscsih_abort()
1734 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1741 if ((scpnt_idx = SCPNT_TO_LOOKUP_IDX(ioc, SCpnt)) < 0) { in mptscsih_abort()
1745 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1748 SCpnt)); in mptscsih_abort()
1774 if (SCPNT_TO_LOOKUP_IDX(ioc, SCpnt) == scpnt_idx) { in mptscsih_abort()
1777 ioc->name, SCpnt)); in mptscsih_abort()
1782 ioc->name, SCpnt)); in mptscsih_abort()
1789 SCpnt); in mptscsih_abort()
1804 mptscsih_dev_reset(struct scsi_cmnd * SCpnt) in mptscsih_dev_reset() argument
1813 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_dev_reset()
1815 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_dev_reset()
1821 ioc->name, SCpnt); in mptscsih_dev_reset()
1822 scsi_print_command(SCpnt); in mptscsih_dev_reset()
1824 vdevice = SCpnt->device->hostdata; in mptscsih_dev_reset()
1845 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_dev_reset()
1864 mptscsih_bus_reset(struct scsi_cmnd * SCpnt) in mptscsih_bus_reset() argument
1873 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_bus_reset()
1875 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_bus_reset()
1881 ioc->name, SCpnt); in mptscsih_bus_reset()
1882 scsi_print_command(SCpnt); in mptscsih_bus_reset()
1887 vdevice = SCpnt->device->hostdata; in mptscsih_bus_reset()
1896 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_bus_reset()
1914 mptscsih_host_reset(struct scsi_cmnd *SCpnt) in mptscsih_host_reset() argument
1922 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_host_reset()
1924 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_host_reset()
1933 ioc->name, SCpnt); in mptscsih_host_reset()
1945 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_host_reset()