Lines Matching refs:SDp
296 static char * st_incompatible(struct scsi_device* SDp) in st_incompatible() argument
301 if (!strncmp(rp->vendor, SDp->vendor, strlen(rp->vendor)) && in st_incompatible()
302 !strncmp(rp->model, SDp->model, strlen(rp->model)) && in st_incompatible()
303 !strncmp(rp->rev, SDp->rev, strlen(rp->rev))) { in st_incompatible()
4245 struct scsi_device *SDp = to_scsi_device(dev); in st_probe() local
4252 if (SDp->type != TYPE_TAPE) in st_probe()
4254 if (st_incompatible(SDp)) { in st_probe()
4255 sdev_printk(KERN_INFO, SDp, in st_probe()
4257 sdev_printk(KERN_INFO, SDp, in st_probe()
4262 scsi_autopm_get_device(SDp); in st_probe()
4263 i = queue_max_segments(SDp->request_queue); in st_probe()
4268 sdev_printk(KERN_ERR, SDp, in st_probe()
4276 sdev_printk(KERN_ERR, SDp, in st_probe()
4282 tpnt->device = SDp; in st_probe()
4283 if (SDp->scsi_level <= 2) in st_probe()
4295 tpnt->use_pf = (SDp->scsi_level >= SCSI_2); in st_probe()
4298 tpnt->can_bsr = (SDp->scsi_level > 2 ? 1 : ST_IN_FILE_POS); /* BSR mandatory in SCSI3 */ in st_probe()
4358 sdev_printk(KERN_ERR, SDp, in st_probe()
4369 scsi_autopm_put_device(SDp); in st_probe()
4371 sdev_printk(KERN_NOTICE, SDp, in st_probe()
4373 sdev_printk(KERN_INFO, SDp, "%s: try direct i/o: %s (alignment %d B)\n", in st_probe()
4375 queue_dma_alignment(SDp->request_queue) + 1); in st_probe()
4391 scsi_autopm_put_device(SDp); in st_probe()