Lines Matching refs:SDp
293 static char * st_incompatible(struct scsi_device* SDp) in st_incompatible() argument
298 if (!strncmp(rp->vendor, SDp->vendor, strlen(rp->vendor)) && in st_incompatible()
299 !strncmp(rp->model, SDp->model, strlen(rp->model)) && in st_incompatible()
300 !strncmp(rp->rev, SDp->rev, strlen(rp->rev))) { in st_incompatible()
4257 struct scsi_device *SDp = to_scsi_device(dev); in st_probe() local
4266 if (SDp->type != TYPE_TAPE) in st_probe()
4268 if ((stp = st_incompatible(SDp))) { in st_probe()
4269 sdev_printk(KERN_INFO, SDp, in st_probe()
4271 sdev_printk(KERN_INFO, SDp, in st_probe()
4276 scsi_autopm_get_device(SDp); in st_probe()
4277 i = queue_max_segments(SDp->request_queue); in st_probe()
4280 buffer = new_tape_buffer((SDp->host)->unchecked_isa_dma, i); in st_probe()
4282 sdev_printk(KERN_ERR, SDp, in st_probe()
4290 sdev_printk(KERN_ERR, SDp, in st_probe()
4297 sdev_printk(KERN_ERR, SDp, in st_probe()
4306 if (!blk_get_queue(SDp->request_queue)) in st_probe()
4308 disk->queue = SDp->request_queue; in st_probe()
4311 tpnt->device = SDp; in st_probe()
4312 if (SDp->scsi_level <= 2) in st_probe()
4324 tpnt->restr_dma = (SDp->host)->unchecked_isa_dma; in st_probe()
4325 tpnt->use_pf = (SDp->scsi_level >= SCSI_2); in st_probe()
4328 tpnt->can_bsr = (SDp->scsi_level > 2 ? 1 : ST_IN_FILE_POS); /* BSR mandatory in SCSI3 */ in st_probe()
4342 tpnt->try_dio = try_direct_io && !SDp->host->unchecked_isa_dma; in st_probe()
4388 sdev_printk(KERN_ERR, SDp, in st_probe()
4399 scsi_autopm_put_device(SDp); in st_probe()
4401 sdev_printk(KERN_NOTICE, SDp, in st_probe()
4403 sdev_printk(KERN_INFO, SDp, "%s: try direct i/o: %s (alignment %d B)\n", in st_probe()
4405 queue_dma_alignment(SDp->request_queue) + 1); in st_probe()
4424 scsi_autopm_put_device(SDp); in st_probe()