taglinefilesource code
target553kernel/blk_drv/hd.cint target;
target554kernel/blk_drv/hd.ctarget =  DEVICE_NR(MINOR(inode->i_rdev));
target556kernel/blk_drv/hd.cwhile (busy[target])
target558kernel/blk_drv/hd.caccess_count[target]++;
target568kernel/blk_drv/hd.cint target;
target571kernel/blk_drv/hd.ctarget =  DEVICE_NR(MINOR(inode->i_rdev));
target572kernel/blk_drv/hd.caccess_count[target]--;
target720kernel/blk_drv/hd.c#define DEVICE_BUSY busy[target]
target721kernel/blk_drv/hd.c#define USAGE access_count[target]
target722kernel/blk_drv/hd.c#define CAPACITY (hd_info[target].head*hd_info[target].sect*hd_info[target].cyl)
target738kernel/blk_drv/hd.cint target, major;
target744kernel/blk_drv/hd.ctarget =  DEVICE_NR(MINOR(dev));
target756kernel/blk_drv/hd.cstart = target << gdev->minor_shift;
target772kernel/blk_drv/hd.cresetup_one_dev(gdev, target);
target363kernel/blk_drv/scsi/aha1542.cunchar target = SCpnt->target;
target371kernel/blk_drv/scsi/aha1542.cDEB(if (target > 1) {
target395kernel/blk_drv/scsi/aha1542.cprintk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
target397kernel/blk_drv/scsi/aha1542.cprintk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
target486kernel/blk_drv/scsi/aha1542.cccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/
target241kernel/blk_drv/scsi/aha1740.cunchar target = SCpnt->target;
target267kernel/blk_drv/scsi/aha1740.cprintk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
target389kernel/blk_drv/scsi/aha1740.coutb(ATTN_START | (target & 7), ATTN);  /* Start it up */
target489kernel/blk_drv/scsi/fdomain.cSCinit.target = i;
target608kernel/blk_drv/scsi/fdomain.cstatic int fdomain_select( int target )
target614kernel/blk_drv/scsi/fdomain.coutb( 0x40 | (1 << target), SCSI_Data_NoACK_port );
target636kernel/blk_drv/scsi/fdomain.cif (!target) printk( "Selection failed\n" );
target639kernel/blk_drv/scsi/fdomain.cif (!target) printk( "SCSI (Future Domain): Selection failed" );
target719kernel/blk_drv/scsi/fdomain.coutb( 0x40 | (1 << current_SC->target), SCSI_Data_NoACK_port );
target735kernel/blk_drv/scsi/fdomain.cif (fdomain_select( current_SC->target )) {
target868kernel/blk_drv/scsi/fdomain.ccurrent_SC->target, current_SC->cmnd[0], current_SC->SCp.Status );
target990kernel/blk_drv/scsi/fdomain.cSCpnt->target,
target1040kernel/blk_drv/scsi/fdomain.cunsigned char  target = SCpnt->target;
target1055kernel/blk_drv/scsi/fdomain.cprintk( "fdomain_command(%d, %x): ", target, (unsigned char)*the_command );
target1061kernel/blk_drv/scsi/fdomain.ctarget, (unsigned char)*the_command );
target1066kernel/blk_drv/scsi/fdomain.cif (fdomain_select( target )) {
target1068kernel/blk_drv/scsi/fdomain.cif (!target) printk( ", target = %d, command = %x\n",
target1069kernel/blk_drv/scsi/fdomain.ctarget, (unsigned char)*the_command );
target1148kernel/blk_drv/scsi/fdomain.ctarget, (unsigned char)*the_command, Status );
target1174kernel/blk_drv/scsi/fdomain.cstatus, target, (unsigned char)*the_command );
target1233kernel/blk_drv/scsi/fdomain.ccurrent_SC->target,
target191kernel/blk_drv/scsi/scsi.cSCmd.target = dev;
target430kernel/blk_drv/scsi/scsi.cif(SCpnt->target == scsi_devices[index].id &&
target484kernel/blk_drv/scsi/scsi.cif(SCpnt->target == scsi_devices[index].id &&
target560kernel/blk_drv/scsi/scsi.c"bufflen = %d, done = %08x)\n", SCpnt->host, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done);
target629kernel/blk_drv/scsi/scsi.cint target = SCpnt->target;
target632kernel/blk_drv/scsi/scsi.c"command : " , host, target, buffer, bufflen, done, timeout, retries);
target679kernel/blk_drv/scsi/scsi.cSCpnt->target = target;
target1392kernel/blk_drv/scsi/scsi.cSCpnt->target = scsi_devices[i].id;
target344kernel/blk_drv/scsi/scsi.hunsigned char target, lun,  index;
target61kernel/blk_drv/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){  \
target62kernel/blk_drv/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);      \
target147kernel/blk_drv/scsi/scsi_debug.cint target = SCpnt->target;
target153kernel/blk_drv/scsi/scsi_debug.cDEB(if (target > 1) { SCpnt->result = DID_TIME_OUT << 16;done(SCpnt);return 0;});
target157kernel/blk_drv/scsi/scsi_debug.cif(target>=2 || SCpnt->lun != 0) {
target237kernel/blk_drv/scsi/scsi_debug.cif(block == 0 && target == 0) {
target274kernel/blk_drv/scsi/scsi_debug.cmemcpy(buff, &target, sizeof(target));
target275kernel/blk_drv/scsi/scsi_debug.cmemcpy(buff+sizeof(target), cmd, 24);
target61kernel/blk_drv/scsi/sd.cint target;
target62kernel/blk_drv/scsi/sd.ctarget =  DEVICE_NR(MINOR(inode->i_rdev));
target64kernel/blk_drv/scsi/sd.cif(target >= NR_SD || !rscsi_disks[target].device)
target70kernel/blk_drv/scsi/sd.cwhile (rscsi_disks[target].device->busy);
target72kernel/blk_drv/scsi/sd.cif(rscsi_disks[target].device->removable) {
target75kernel/blk_drv/scsi/sd.cif(!rscsi_disks[target].device->access_count)
target78kernel/blk_drv/scsi/sd.crscsi_disks[target].device->access_count++;
target84kernel/blk_drv/scsi/sd.cint target;
target87kernel/blk_drv/scsi/sd.ctarget =  DEVICE_NR(MINOR(inode->i_rdev));
target89kernel/blk_drv/scsi/sd.crscsi_disks[target].device->access_count--;
target91kernel/blk_drv/scsi/sd.cif(rscsi_disks[target].device->removable) {
target92kernel/blk_drv/scsi/sd.cif(!rscsi_disks[target].device->access_count)
target624kernel/blk_drv/scsi/sd.cint target;
target627kernel/blk_drv/scsi/sd.ctarget =  DEVICE_NR(MINOR(full_dev));
target629kernel/blk_drv/scsi/sd.cif (target >= NR_SD) {
target634kernel/blk_drv/scsi/sd.cif(!rscsi_disks[target].device->removable) return 0;
target644kernel/blk_drv/scsi/sd.crscsi_disks[target].device->changed = 1;
target649kernel/blk_drv/scsi/sd.cretval = rscsi_disks[target].device->changed;
target650kernel/blk_drv/scsi/sd.cif(!flag) rscsi_disks[target].device->changed = 0;
target853kernel/blk_drv/scsi/sd.c#define DEVICE_BUSY rscsi_disks[target].device->busy
target854kernel/blk_drv/scsi/sd.c#define USAGE rscsi_disks[target].device->access_count
target855kernel/blk_drv/scsi/sd.c#define CAPACITY rscsi_disks[target].capacity
target856kernel/blk_drv/scsi/sd.c#define MAYBE_REINIT  sd_init_onedisk(target)
target867kernel/blk_drv/scsi/sd.cint target, major;
target873kernel/blk_drv/scsi/sd.ctarget =  DEVICE_NR(MINOR(dev));
target886kernel/blk_drv/scsi/sd.cstart = target << gdev->minor_shift;
target902kernel/blk_drv/scsi/sd.cresetup_one_dev(gdev, target);
target42kernel/blk_drv/scsi/seagate.cstatic int internal_command(unsigned char target, unsigned char lun,
target391kernel/blk_drv/scsi/seagate.ccurrent_target = SCpnt->target;
target433kernel/blk_drv/scsi/seagate.cresult = internal_command (SCint->target, SCint->lun, SCint->cmnd, SCint->request_buffer,
target447kernel/blk_drv/scsi/seagate.creturn internal_command (SCpnt->target, SCpnt->lun, SCpnt->cmnd, SCpnt->request_buffer,
target452kernel/blk_drv/scsi/seagate.cstatic int internal_command(unsigned char target, unsigned char lun, const void *cmnd,
target481kernel/blk_drv/scsi/seagate.cprintk ("scsi%d : target = %d, command = ", hostno, target);
target510kernel/blk_drv/scsi/seagate.cif (target == (controller_type == SEAGATE ? 7 : 6))
target674kernel/blk_drv/scsi/seagate.cDATA = (unsigned char) ((1 << target) | (controller_type == SEAGATE ? 0x80 : 0x40));
target711kernel/blk_drv/scsi/seagate.chostno, target, STATUS);
target871kernel/blk_drv/scsi/seagate.chostno, target, lun);
target998kernel/blk_drv/scsi/seagate.chostno, target, lun);
target1240kernel/blk_drv/scsi/seagate.chostno, target, message & 7);
target1252kernel/blk_drv/scsi/seagate.chostno,  message,   target);
target76kernel/blk_drv/scsi/sr.cint retval, target;
target79kernel/blk_drv/scsi/sr.ctarget =  MINOR(full_dev);
target81kernel/blk_drv/scsi/sr.cif (target >= NR_SR) {
target94kernel/blk_drv/scsi/sr.cscsi_CDs[target].device->changed = 1;
target99kernel/blk_drv/scsi/sr.cretval = scsi_CDs[target].device->changed;
target100kernel/blk_drv/scsi/sr.cif(!flag) scsi_CDs[target].device->changed = 0;
target40kernel/blk_drv/scsi/sr_ioctl.cstatic int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength)
target45kernel/blk_drv/scsi/sr_ioctl.cSCpnt = allocate_device(NULL, scsi_CDs[target].device->index, 1);
target63kernel/blk_drv/scsi/sr_ioctl.cscsi_CDs[target].device->changed = 1;
target74kernel/blk_drv/scsi/sr_ioctl.cscsi_CDs[target].device->host_no, 
target75kernel/blk_drv/scsi/sr_ioctl.cscsi_CDs[target].device->id,
target76kernel/blk_drv/scsi/sr_ioctl.cscsi_CDs[target].device->lun,
target97kernel/blk_drv/scsi/sr_ioctl.cint result, target;
target99kernel/blk_drv/scsi/sr_ioctl.ctarget = MINOR(dev);
target100kernel/blk_drv/scsi/sr_ioctl.cif (target >= NR_SR) return -ENODEV;
target108kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
target114kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, NULL, 255);
target120kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
target126kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, NULL, 255);
target136kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
target146kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, NULL, 255);
target156kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
target166kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, NULL, 255);
target177kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
target184kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, buffer, sizeof (buffer));
target204kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
target211kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl (target, sr_cmd, buffer, sizeof (buffer));
target230kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
target234kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, NULL, 255);
target239kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
target243kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, NULL, 255);
target247kernel/blk_drv/scsi/sr_ioctl.cif (scsi_CDs[target].device -> access_count == 1)
target251kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1;
target255kernel/blk_drv/scsi/sr_ioctl.cif (!(result = do_ioctl(target, sr_cmd, NULL, 255)))
target256kernel/blk_drv/scsi/sr_ioctl.cscsi_CDs[target].device -> changed = 1;
target271kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
target277kernel/blk_drv/scsi/sr_ioctl.cif ((result = do_ioctl (target, sr_cmd, buffer, sizeof (buffer)))) {
target283kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
target289kernel/blk_drv/scsi/sr_ioctl.cif ((result = do_ioctl (target, sr_cmd, mask, sizeof (mask)))) {
target302kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10;    /* Params are SCSI-2 */
target307kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl (target, sr_cmd, buffer, sizeof (buffer));
target317kernel/blk_drv/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
target326kernel/blk_drv/scsi/sr_ioctl.cresult = do_ioctl(target, sr_cmd, buffer, sizeof (buffer));
target353kernel/blk_drv/scsi/sr_ioctl.creturn scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg);
target388kernel/blk_drv/scsi/ultrastor.cmscp.target_id = SCpnt->target;
target361kernel/blk_drv/scsi/wd7000.cidlun = ((SCpnt->target << 5) & 0xe0) | (SCpnt->lun & 7);
target581kernel/blk_drv/scsi/wd7000.cprintk("id %d lun %d cdb", SCpnt->target, SCpnt->lun);
target241kernel/blk_drv/xd.cint target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition;
target243kernel/blk_drv/xd.ccli(); xd_valid[target] = (xd_access[target] != 1); sti();
target244kernel/blk_drv/xd.cif (xd_valid[target])
target255kernel/blk_drv/xd.cxd_gendisk.part[start].nr_sects = xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors;
target256kernel/blk_drv/xd.cresetup_one_dev(&xd_gendisk,target);
target258kernel/blk_drv/xd.cxd_valid[target] = 1;