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()
1314 mptscsih_qcmd(struct scsi_cmnd *SCpnt) in mptscsih_qcmd() argument
1319 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd()
1328 hd = shost_priv(SCpnt->device->host); in mptscsih_qcmd()
1332 ioc->name, SCpnt)); in mptscsih_qcmd()
1356 if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) { in mptscsih_qcmd()
1357 datalen = scsi_bufflen(SCpnt); in mptscsih_qcmd()
1359 } else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) { in mptscsih_qcmd()
1360 datalen = scsi_bufflen(SCpnt); in mptscsih_qcmd()
1371 SCpnt->device->tagged_supported) in mptscsih_qcmd()
1386 pScsiReq->CDBLength = SCpnt->cmd_len; in mptscsih_qcmd()
1390 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN); in mptscsih_qcmd()
1396 cmd_len = SCpnt->cmd_len; in mptscsih_qcmd()
1398 pScsiReq->CDB[ii] = SCpnt->cmnd[ii]; in mptscsih_qcmd()
1420 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS) in mptscsih_qcmd()
1424 SCpnt->host_scribble = (unsigned char *)mf; in mptscsih_qcmd()
1425 mptscsih_set_scsi_lookup(ioc, my_idx, SCpnt); in mptscsih_qcmd()
1429 ioc->name, SCpnt, mf, my_idx)); in mptscsih_qcmd()
1682 mptscsih_abort(struct scsi_cmnd * SCpnt) in mptscsih_abort() argument
1694 if ((hd = shost_priv(SCpnt->device->host)) == NULL) { in mptscsih_abort()
1695 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1696 scsi_done(SCpnt); in mptscsih_abort()
1698 "can't locate host! (sc=%p)\n", SCpnt); in mptscsih_abort()
1704 ioc->name, SCpnt); in mptscsih_abort()
1705 scsi_print_command(SCpnt); in mptscsih_abort()
1707 vdevice = SCpnt->device->hostdata; in mptscsih_abort()
1711 ioc->name, SCpnt)); in mptscsih_abort()
1712 SCpnt->result = DID_NO_CONNECT << 16; in mptscsih_abort()
1713 scsi_done(SCpnt); in mptscsih_abort()
1723 ioc->name, SCpnt)); in mptscsih_abort()
1724 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1734 ioc->name, SCpnt)); in mptscsih_abort()
1735 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1742 if ((scpnt_idx = SCPNT_TO_LOOKUP_IDX(ioc, SCpnt)) < 0) { in mptscsih_abort()
1746 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1749 SCpnt)); in mptscsih_abort()
1775 if (SCPNT_TO_LOOKUP_IDX(ioc, SCpnt) == scpnt_idx) { in mptscsih_abort()
1778 ioc->name, SCpnt)); in mptscsih_abort()
1783 ioc->name, SCpnt)); in mptscsih_abort()
1790 SCpnt); in mptscsih_abort()
1805 mptscsih_dev_reset(struct scsi_cmnd * SCpnt) in mptscsih_dev_reset() argument
1814 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_dev_reset()
1816 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_dev_reset()
1822 ioc->name, SCpnt); in mptscsih_dev_reset()
1823 scsi_print_command(SCpnt); in mptscsih_dev_reset()
1825 vdevice = SCpnt->device->hostdata; in mptscsih_dev_reset()
1846 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_dev_reset()
1865 mptscsih_bus_reset(struct scsi_cmnd * SCpnt) in mptscsih_bus_reset() argument
1874 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_bus_reset()
1876 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_bus_reset()
1882 ioc->name, SCpnt); in mptscsih_bus_reset()
1883 scsi_print_command(SCpnt); in mptscsih_bus_reset()
1888 vdevice = SCpnt->device->hostdata; in mptscsih_bus_reset()
1897 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_bus_reset()
1915 mptscsih_host_reset(struct scsi_cmnd *SCpnt) in mptscsih_host_reset() argument
1923 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_host_reset()
1925 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_host_reset()
1934 ioc->name, SCpnt); in mptscsih_host_reset()
1946 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_host_reset()