Lines Matching refs:SDp
295 static char * st_incompatible(struct scsi_device* SDp) in st_incompatible() argument
300 if (!strncmp(rp->vendor, SDp->vendor, strlen(rp->vendor)) && in st_incompatible()
301 !strncmp(rp->model, SDp->model, strlen(rp->model)) && in st_incompatible()
302 !strncmp(rp->rev, SDp->rev, strlen(rp->rev))) { in st_incompatible()
4247 struct scsi_device *SDp = to_scsi_device(dev); in st_probe() local
4254 if (SDp->type != TYPE_TAPE) in st_probe()
4256 if (st_incompatible(SDp)) { in st_probe()
4257 sdev_printk(KERN_INFO, SDp, in st_probe()
4259 sdev_printk(KERN_INFO, SDp, in st_probe()
4264 scsi_autopm_get_device(SDp); in st_probe()
4265 i = queue_max_segments(SDp->request_queue); in st_probe()
4270 sdev_printk(KERN_ERR, SDp, in st_probe()
4278 sdev_printk(KERN_ERR, SDp, in st_probe()
4284 tpnt->device = SDp; in st_probe()
4285 if (SDp->scsi_level <= 2) in st_probe()
4297 tpnt->use_pf = (SDp->scsi_level >= SCSI_2); in st_probe()
4300 tpnt->can_bsr = (SDp->scsi_level > 2 ? 1 : ST_IN_FILE_POS); /* BSR mandatory in SCSI3 */ in st_probe()
4360 sdev_printk(KERN_ERR, SDp, in st_probe()
4371 scsi_autopm_put_device(SDp); in st_probe()
4373 sdev_printk(KERN_NOTICE, SDp, in st_probe()
4375 sdev_printk(KERN_INFO, SDp, "%s: try direct i/o: %s (alignment %d B)\n", in st_probe()
4377 queue_dma_alignment(SDp->request_queue) + 1); in st_probe()
4393 scsi_autopm_put_device(SDp); in st_probe()