Lines Matching refs:srb
316 tw_dev->srb[request_id] = NULL; in twa_aen_drain_queue()
449 tw_dev->srb[request_id] = NULL; in twa_aen_read_queue()
513 tw_dev->srb[request_id] = NULL; in twa_aen_sync_time()
701 tw_dev->srb[request_id] = NULL; in twa_chrdev_ioctl()
1018 …memcpy(tw_dev->srb[request_id]->sense_buffer, full_command_packet->header.sense_data, TW_SENSE_DAT… in twa_fill_sense()
1019 tw_dev->srb[request_id]->result = (full_command_packet->command.newcommand.status << 1); in twa_fill_sense()
1301 if (tw_dev->srb[request_id] != NULL) { in twa_interrupt()
1313 if (tw_dev->srb[request_id] != NULL) { in twa_interrupt()
1321 if (tw_dev->srb[request_id] == NULL) { in twa_interrupt()
1332 cmd = tw_dev->srb[request_id]; in twa_interrupt()
1348 …if (full_command_packet->command.newcommand.sg_list[0].length < scsi_bufflen(tw_dev->srb[request_i… in twa_interrupt()
1593 if (tw_dev->srb[i]) { in twa_reset_device_extension()
1594 struct scsi_cmnd *cmd = tw_dev->srb[i]; in twa_reset_device_extension()
1776 tw_dev->srb[request_id] = SCpnt; in twa_scsi_queue_lck()
1807 struct scsi_cmnd *srb = NULL; in DEF_SCSI_QCMD() local
1811 if (tw_dev->srb[request_id]) { in DEF_SCSI_QCMD()
1812 srb = tw_dev->srb[request_id]; in DEF_SCSI_QCMD()
1813 if (scsi_sglist(srb)) in DEF_SCSI_QCMD()
1814 sglist = scsi_sglist(srb); in DEF_SCSI_QCMD()
1829 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1833 if (srb) { in DEF_SCSI_QCMD()
1834 command_packet->unit = srb->device->id; in DEF_SCSI_QCMD()
1836 cpu_to_le16(TW_REQ_LUN_IN(srb->device->lun, request_id)); in DEF_SCSI_QCMD()
1848 if (scsi_sg_count(srb)) { in DEF_SCSI_QCMD()
1849 if (!twa_command_mapped(srb)) { in DEF_SCSI_QCMD()
1850 if (srb->sc_data_direction == DMA_TO_DEVICE || in DEF_SCSI_QCMD()
1851 srb->sc_data_direction == DMA_BIDIRECTIONAL) in DEF_SCSI_QCMD()
1852 scsi_sg_copy_to_buffer(srb, in DEF_SCSI_QCMD()
1858 sg_count = scsi_dma_map(srb); in DEF_SCSI_QCMD()
1862 scsi_for_each_sg(srb, sg, sg_count, i) { in DEF_SCSI_QCMD()
1871 …ket->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->… in DEF_SCSI_QCMD()
1886 if (srb) { in DEF_SCSI_QCMD()
1887 if (srb->cmnd[0] == READ_6 || srb->cmnd[0] == WRITE_6) in DEF_SCSI_QCMD()
1888 num_sectors = (u32)srb->cmnd[4]; in DEF_SCSI_QCMD()
1890 if (srb->cmnd[0] == READ_10 || srb->cmnd[0] == WRITE_10) in DEF_SCSI_QCMD()
1891 num_sectors = (u32)srb->cmnd[8] | ((u32)srb->cmnd[7] << 8); in DEF_SCSI_QCMD()
1900 if (srb) { in DEF_SCSI_QCMD()
1901 tw_dev->sgl_entries = scsi_sg_count(tw_dev->srb[request_id]); in DEF_SCSI_QCMD()
1907 if (srb) { in DEF_SCSI_QCMD()
1920 struct scsi_cmnd *cmd = tw_dev->srb[request_id]; in twa_scsiop_execute_scsi_complete()