Lines Matching refs:target

286  	int target;  in sd_find_queue()  local
287 target = DEVICE_NR(dev); in sd_find_queue()
289 dpnt = &rscsi_disks[target]; in sd_find_queue()
447 int target, retval = -ENXIO; in sd_open() local
449 target = DEVICE_NR(inode->i_rdev); in sd_open()
451 SCSI_LOG_HLQUEUE(1, printk("target=%d, max=%d\n", target, sd_template.dev_max)); in sd_open()
453 if (target >= sd_template.dev_max || !rscsi_disks[target].device) in sd_open()
460 if (!scsi_block_when_processing_errors(rscsi_disks[target].device)) { in sd_open()
469 while (rscsi_disks[target].device->busy) { in sd_open()
477 SDev = rscsi_disks[target].device; in sd_open()
484 if (rscsi_disks[target].device->removable) { in sd_open()
492 if ((!rscsi_disks[target].ready) && !(filp->f_flags & O_NDELAY)) { in sd_open()
502 if ((rscsi_disks[target].write_prot) && (filp->f_mode & 2)) { in sd_open()
543 int target; in sd_release() local
546 target = DEVICE_NR(inode->i_rdev); in sd_release()
547 SDev = rscsi_disks[target].device; in sd_release()
707 int target; in check_scsidisk_media_change() local
711 target = DEVICE_NR(full_dev); in check_scsidisk_media_change()
712 SDev = rscsi_disks[target].device; in check_scsidisk_media_change()
714 if (target >= sd_template.dev_max || !SDev) { in check_scsidisk_media_change()
728 rscsi_disks[target].ready = 0; in check_scsidisk_media_change()
752 rscsi_disks[target].ready = 0; in check_scsidisk_media_change()
763 rscsi_disks[target].ready = 1; /* FLOPTICAL */ in check_scsidisk_media_change()
1347 #define DEVICE_BUSY rscsi_disks[target].device->busy
1348 #define ALLOW_REVALIDATE rscsi_disks[target].device->allow_revalidate
1349 #define USAGE rscsi_disks[target].device->access_count
1350 #define CAPACITY rscsi_disks[target].capacity
1351 #define MAYBE_REINIT sd_init_onedisk(target)
1363 int target; in revalidate_scsidisk() local
1368 target = DEVICE_NR(dev); in revalidate_scsidisk()
1376 sdgd = &SD_GENDISK(target); in revalidate_scsidisk()
1378 start = target << sd_gendisk.minor_shift; in revalidate_scsidisk()
1392 if (rscsi_disks[target].device->sector_size == 2048) in revalidate_scsidisk()
1402 grok_partitions(&SD_GENDISK(target), target % SCSI_DISKS_PER_MAJOR, in revalidate_scsidisk()