Lines Matching refs:SDp
291 static char * st_incompatible(struct scsi_device* SDp)
296 if (!strncmp(rp->vendor, SDp->vendor, strlen(rp->vendor)) &&
297 !strncmp(rp->model, SDp->model, strlen(rp->model)) &&
298 !strncmp(rp->rev, SDp->rev, strlen(rp->rev))) {
3985 struct scsi_device *SDp = to_scsi_device(dev);
3995 if (SDp->type != TYPE_TAPE)
3997 if ((stp = st_incompatible(SDp))) {
3998 sdev_printk(KERN_INFO, SDp, "Found incompatible tape\n");
4003 i = queue_max_segments(SDp->request_queue);
4006 buffer = new_tape_buffer((SDp->host)->unchecked_isa_dma, i);
4067 disk->queue = SDp->request_queue;
4072 tpnt->device = SDp;
4073 if (SDp->scsi_level <= 2)
4085 tpnt->restr_dma = (SDp->host)->unchecked_isa_dma;
4086 tpnt->use_pf = (SDp->scsi_level >= SCSI_2);
4089 tpnt->can_bsr = (SDp->scsi_level > 2 ? 1 : ST_IN_FILE_POS); /* BSR mandatory in SCSI3 */
4102 tpnt->try_dio = try_direct_io && !SDp->host->unchecked_isa_dma;
4167 sdev_printk(KERN_NOTICE, SDp,
4169 sdev_printk(KERN_INFO, SDp, "%s: try direct i/o: %s (alignment %d B)\n",
4171 queue_dma_alignment(SDp->request_queue) + 1);
4209 struct scsi_device *SDp = to_scsi_device(dev);
4216 if (tpnt != NULL && tpnt->device == SDp) {