Lines Matching refs:SDp
287 static char * st_incompatible(struct scsi_device* SDp)
292 if (!strncmp(rp->vendor, SDp->vendor, strlen(rp->vendor)) &&
293 !strncmp(rp->model, SDp->model, strlen(rp->model)) &&
294 !strncmp(rp->rev, SDp->rev, strlen(rp->rev))) {
4106 struct scsi_device *SDp = to_scsi_device(dev);
4115 if (SDp->type != TYPE_TAPE)
4117 if ((stp = st_incompatible(SDp))) {
4118 sdev_printk(KERN_INFO, SDp, "Found incompatible tape\n");
4119 sdev_printk(KERN_INFO, SDp,
4124 scsi_autopm_get_device(SDp);
4125 i = queue_max_segments(SDp->request_queue);
4128 buffer = new_tape_buffer((SDp->host)->unchecked_isa_dma, i);
4130 sdev_printk(KERN_ERR, SDp,
4138 sdev_printk(KERN_ERR, SDp,
4145 sdev_printk(KERN_ERR, SDp,
4152 disk->queue = SDp->request_queue;
4159 tpnt->device = SDp;
4160 if (SDp->scsi_level <= 2)
4172 tpnt->restr_dma = (SDp->host)->unchecked_isa_dma;
4173 tpnt->use_pf = (SDp->scsi_level >= SCSI_2);
4176 tpnt->can_bsr = (SDp->scsi_level > 2 ? 1 : ST_IN_FILE_POS); /* BSR mandatory in SCSI3 */
4190 tpnt->try_dio = try_direct_io && !SDp->host->unchecked_isa_dma;
4241 scsi_autopm_put_device(SDp);
4243 sdev_printk(KERN_NOTICE, SDp,
4245 sdev_printk(KERN_INFO, SDp, "%s: try direct i/o: %s (alignment %d B)\n",
4247 queue_dma_alignment(SDp->request_queue) + 1);
4264 scsi_autopm_put_device(SDp);