Lines Matching refs:SCpnt

92 static int	mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt,
179 mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, in mptscsih_AddSGE() argument
210 sges_left = scsi_dma_map(SCpnt); in mptscsih_AddSGE()
216 sg = scsi_sglist(SCpnt); in mptscsih_AddSGE()
350 ioc->name, pReq->CDB[0], SCpnt)); in mptscsih_AddSGE()
1311 mptscsih_qcmd(struct scsi_cmnd *SCpnt) in mptscsih_qcmd() argument
1316 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd()
1325 hd = shost_priv(SCpnt->device->host); in mptscsih_qcmd()
1329 ioc->name, SCpnt)); in mptscsih_qcmd()
1353 if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) { in mptscsih_qcmd()
1354 datalen = scsi_bufflen(SCpnt); in mptscsih_qcmd()
1356 } else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) { in mptscsih_qcmd()
1357 datalen = scsi_bufflen(SCpnt); in mptscsih_qcmd()
1368 SCpnt->device->tagged_supported) in mptscsih_qcmd()
1383 pScsiReq->CDBLength = SCpnt->cmd_len; in mptscsih_qcmd()
1387 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN); in mptscsih_qcmd()
1393 cmd_len = SCpnt->cmd_len; in mptscsih_qcmd()
1395 pScsiReq->CDB[ii] = SCpnt->cmnd[ii]; in mptscsih_qcmd()
1417 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS) in mptscsih_qcmd()
1421 SCpnt->host_scribble = (unsigned char *)mf; in mptscsih_qcmd()
1422 mptscsih_set_scsi_lookup(ioc, my_idx, SCpnt); in mptscsih_qcmd()
1426 ioc->name, SCpnt, mf, my_idx)); in mptscsih_qcmd()
1680 mptscsih_abort(struct scsi_cmnd * SCpnt) in mptscsih_abort() argument
1692 if ((hd = shost_priv(SCpnt->device->host)) == NULL) { in mptscsih_abort()
1693 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1694 SCpnt->scsi_done(SCpnt); in mptscsih_abort()
1696 "can't locate host! (sc=%p)\n", SCpnt); in mptscsih_abort()
1702 ioc->name, SCpnt); in mptscsih_abort()
1703 scsi_print_command(SCpnt); in mptscsih_abort()
1705 vdevice = SCpnt->device->hostdata; in mptscsih_abort()
1709 ioc->name, SCpnt)); in mptscsih_abort()
1710 SCpnt->result = DID_NO_CONNECT << 16; in mptscsih_abort()
1711 SCpnt->scsi_done(SCpnt); in mptscsih_abort()
1721 ioc->name, SCpnt)); in mptscsih_abort()
1722 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1732 ioc->name, SCpnt)); in mptscsih_abort()
1733 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1740 if ((scpnt_idx = SCPNT_TO_LOOKUP_IDX(ioc, SCpnt)) < 0) { in mptscsih_abort()
1744 SCpnt->result = DID_RESET << 16; in mptscsih_abort()
1747 SCpnt)); in mptscsih_abort()
1773 if (SCPNT_TO_LOOKUP_IDX(ioc, SCpnt) == scpnt_idx) { in mptscsih_abort()
1776 ioc->name, SCpnt)); in mptscsih_abort()
1781 ioc->name, SCpnt)); in mptscsih_abort()
1788 SCpnt); in mptscsih_abort()
1803 mptscsih_dev_reset(struct scsi_cmnd * SCpnt) in mptscsih_dev_reset() argument
1812 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_dev_reset()
1814 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_dev_reset()
1820 ioc->name, SCpnt); in mptscsih_dev_reset()
1821 scsi_print_command(SCpnt); in mptscsih_dev_reset()
1823 vdevice = SCpnt->device->hostdata; in mptscsih_dev_reset()
1844 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_dev_reset()
1863 mptscsih_bus_reset(struct scsi_cmnd * SCpnt) in mptscsih_bus_reset() argument
1872 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_bus_reset()
1874 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_bus_reset()
1880 ioc->name, SCpnt); in mptscsih_bus_reset()
1881 scsi_print_command(SCpnt); in mptscsih_bus_reset()
1886 vdevice = SCpnt->device->hostdata; in mptscsih_bus_reset()
1895 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_bus_reset()
1913 mptscsih_host_reset(struct scsi_cmnd *SCpnt) in mptscsih_host_reset() argument
1921 if ((hd = shost_priv(SCpnt->device->host)) == NULL){ in mptscsih_host_reset()
1923 "Can't locate host! (sc=%p)\n", SCpnt); in mptscsih_host_reset()
1932 ioc->name, SCpnt); in mptscsih_host_reset()
1944 ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); in mptscsih_host_reset()