Lines Matching refs:srb

299 	struct scsi_cmnd *srb = NULL;  in twl_scsiop_execute_scsi()  local
303 if (tw_dev->srb[request_id]) { in twl_scsiop_execute_scsi()
304 srb = tw_dev->srb[request_id]; in twl_scsiop_execute_scsi()
305 if (scsi_sglist(srb)) in twl_scsiop_execute_scsi()
306 sglist = scsi_sglist(srb); in twl_scsiop_execute_scsi()
321 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
325 if (srb) { in twl_scsiop_execute_scsi()
326 command_packet->unit = srb->device->id; in twl_scsiop_execute_scsi()
328 cpu_to_le16(TW_REQ_LUN_IN(srb->device->lun, request_id)); in twl_scsiop_execute_scsi()
339 if (scsi_sg_count(srb)) { in twl_scsiop_execute_scsi()
340 sg_count = scsi_dma_map(srb); in twl_scsiop_execute_scsi()
344 scsi_for_each_sg(srb, sg, sg_count, i) { in twl_scsiop_execute_scsi()
348 …ket->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev-> in twl_scsiop_execute_scsi()
360 if (srb) { in twl_scsiop_execute_scsi()
361 tw_dev->sector_count = scsi_bufflen(srb) / 512; in twl_scsiop_execute_scsi()
364 tw_dev->sgl_entries = scsi_sg_count(srb); in twl_scsiop_execute_scsi()
398 tw_dev->srb[request_id] = NULL; in twl_aen_read_queue()
448 tw_dev->srb[request_id] = NULL; in twl_aen_sync_time()
590 tw_dev->srb[request_id] = NULL; in twl_aen_drain_queue()
774 tw_dev->srb[request_id] = NULL; in twl_chrdev_ioctl()
896 memcpy(tw_dev->srb[request_id]->sense_buffer, header->sense_data, TW_SENSE_DATA_LENGTH); in twl_fill_sense()
897 tw_dev->srb[request_id]->result = (full_command_packet->command.newcommand.status << 1); in twl_fill_sense()
1173 if (tw_dev->srb[request_id] != NULL) in twl_interrupt()
1196 if (tw_dev->srb[request_id] != NULL) { in twl_interrupt()
1204 if (tw_dev->srb[request_id] == NULL) { in twl_interrupt()
1213 cmd = tw_dev->srb[request_id]; in twl_interrupt()
1220 …if (full_command_packet->command.newcommand.sg_list[0].length < scsi_bufflen(tw_dev->srb[request_i… in twl_interrupt()
1374 struct scsi_cmnd *cmd = tw_dev->srb[i]; in twl_reset_device_extension()
1481 tw_dev->srb[request_id] = SCpnt; in twl_scsi_queue_lck()