tag | line | file | source code |
target | 553 | kernel/blk_drv/hd.c | int target; |
target | 554 | kernel/blk_drv/hd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 556 | kernel/blk_drv/hd.c | while (busy[target]) |
target | 558 | kernel/blk_drv/hd.c | access_count[target]++; |
target | 568 | kernel/blk_drv/hd.c | int target; |
target | 571 | kernel/blk_drv/hd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 572 | kernel/blk_drv/hd.c | access_count[target]--; |
target | 720 | kernel/blk_drv/hd.c | #define DEVICE_BUSY busy[target] |
target | 721 | kernel/blk_drv/hd.c | #define USAGE access_count[target] |
target | 722 | kernel/blk_drv/hd.c | #define CAPACITY (hd_info[target].head*hd_info[target].sect*hd_info[target].cyl) |
target | 738 | kernel/blk_drv/hd.c | int target, major; |
target | 744 | kernel/blk_drv/hd.c | target = DEVICE_NR(MINOR(dev)); |
target | 756 | kernel/blk_drv/hd.c | start = target << gdev->minor_shift; |
target | 772 | kernel/blk_drv/hd.c | resetup_one_dev(gdev, target); |
target | 363 | kernel/blk_drv/scsi/aha1542.c | unchar target = SCpnt->target; |
target | 371 | kernel/blk_drv/scsi/aha1542.c | DEB(if (target > 1) { |
target | 395 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 397 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 486 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
target | 241 | kernel/blk_drv/scsi/aha1740.c | unchar target = SCpnt->target; |
target | 267 | kernel/blk_drv/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 389 | kernel/blk_drv/scsi/aha1740.c | outb(ATTN_START | (target & 7), ATTN); /* Start it up */ |
target | 489 | kernel/blk_drv/scsi/fdomain.c | SCinit.target = i; |
target | 608 | kernel/blk_drv/scsi/fdomain.c | static int fdomain_select( int target ) |
target | 614 | kernel/blk_drv/scsi/fdomain.c | outb( 0x40 | (1 << target), SCSI_Data_NoACK_port ); |
target | 636 | kernel/blk_drv/scsi/fdomain.c | if (!target) printk( "Selection failed\n" ); |
target | 639 | kernel/blk_drv/scsi/fdomain.c | if (!target) printk( "SCSI (Future Domain): Selection failed" ); |
target | 719 | kernel/blk_drv/scsi/fdomain.c | outb( 0x40 | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
target | 735 | kernel/blk_drv/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
target | 868 | kernel/blk_drv/scsi/fdomain.c | current_SC->target, current_SC->cmnd[0], current_SC->SCp.Status ); |
target | 990 | kernel/blk_drv/scsi/fdomain.c | SCpnt->target, |
target | 1040 | kernel/blk_drv/scsi/fdomain.c | unsigned char target = SCpnt->target; |
target | 1055 | kernel/blk_drv/scsi/fdomain.c | printk( "fdomain_command(%d, %x): ", target, (unsigned char)*the_command ); |
target | 1061 | kernel/blk_drv/scsi/fdomain.c | target, (unsigned char)*the_command ); |
target | 1066 | kernel/blk_drv/scsi/fdomain.c | if (fdomain_select( target )) { |
target | 1068 | kernel/blk_drv/scsi/fdomain.c | if (!target) printk( ", target = %d, command = %x\n", |
target | 1069 | kernel/blk_drv/scsi/fdomain.c | target, (unsigned char)*the_command ); |
target | 1148 | kernel/blk_drv/scsi/fdomain.c | target, (unsigned char)*the_command, Status ); |
target | 1174 | kernel/blk_drv/scsi/fdomain.c | status, target, (unsigned char)*the_command ); |
target | 1233 | kernel/blk_drv/scsi/fdomain.c | current_SC->target, |
target | 191 | kernel/blk_drv/scsi/scsi.c | SCmd.target = dev; |
target | 430 | kernel/blk_drv/scsi/scsi.c | if(SCpnt->target == scsi_devices[index].id && |
target | 484 | kernel/blk_drv/scsi/scsi.c | if(SCpnt->target == scsi_devices[index].id && |
target | 560 | kernel/blk_drv/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
target | 629 | kernel/blk_drv/scsi/scsi.c | int target = SCpnt->target; |
target | 632 | kernel/blk_drv/scsi/scsi.c | "command : " , host, target, buffer, bufflen, done, timeout, retries); |
target | 679 | kernel/blk_drv/scsi/scsi.c | SCpnt->target = target; |
target | 1392 | kernel/blk_drv/scsi/scsi.c | SCpnt->target = scsi_devices[i].id; |
target | 344 | kernel/blk_drv/scsi/scsi.h | unsigned char target, lun, index; |
target | 61 | kernel/blk_drv/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){ \ |
target | 62 | kernel/blk_drv/scsi/scsi_debug.c | printk("Dev #s %x %x ",SCpnt->request.dev, target); \ |
target | 147 | kernel/blk_drv/scsi/scsi_debug.c | int target = SCpnt->target; |
target | 153 | kernel/blk_drv/scsi/scsi_debug.c | DEB(if (target > 1) { SCpnt->result = DID_TIME_OUT << 16;done(SCpnt);return 0;}); |
target | 157 | kernel/blk_drv/scsi/scsi_debug.c | if(target>=2 || SCpnt->lun != 0) { |
target | 237 | kernel/blk_drv/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
target | 274 | kernel/blk_drv/scsi/scsi_debug.c | memcpy(buff, &target, sizeof(target)); |
target | 275 | kernel/blk_drv/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
target | 61 | kernel/blk_drv/scsi/sd.c | int target; |
target | 62 | kernel/blk_drv/scsi/sd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 64 | kernel/blk_drv/scsi/sd.c | if(target >= NR_SD || !rscsi_disks[target].device) |
target | 70 | kernel/blk_drv/scsi/sd.c | while (rscsi_disks[target].device->busy); |
target | 72 | kernel/blk_drv/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
target | 75 | kernel/blk_drv/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
target | 78 | kernel/blk_drv/scsi/sd.c | rscsi_disks[target].device->access_count++; |
target | 84 | kernel/blk_drv/scsi/sd.c | int target; |
target | 87 | kernel/blk_drv/scsi/sd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 89 | kernel/blk_drv/scsi/sd.c | rscsi_disks[target].device->access_count--; |
target | 91 | kernel/blk_drv/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
target | 92 | kernel/blk_drv/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
target | 624 | kernel/blk_drv/scsi/sd.c | int target; |
target | 627 | kernel/blk_drv/scsi/sd.c | target = DEVICE_NR(MINOR(full_dev)); |
target | 629 | kernel/blk_drv/scsi/sd.c | if (target >= NR_SD) { |
target | 634 | kernel/blk_drv/scsi/sd.c | if(!rscsi_disks[target].device->removable) return 0; |
target | 644 | kernel/blk_drv/scsi/sd.c | rscsi_disks[target].device->changed = 1; |
target | 649 | kernel/blk_drv/scsi/sd.c | retval = rscsi_disks[target].device->changed; |
target | 650 | kernel/blk_drv/scsi/sd.c | if(!flag) rscsi_disks[target].device->changed = 0; |
target | 853 | kernel/blk_drv/scsi/sd.c | #define DEVICE_BUSY rscsi_disks[target].device->busy |
target | 854 | kernel/blk_drv/scsi/sd.c | #define USAGE rscsi_disks[target].device->access_count |
target | 855 | kernel/blk_drv/scsi/sd.c | #define CAPACITY rscsi_disks[target].capacity |
target | 856 | kernel/blk_drv/scsi/sd.c | #define MAYBE_REINIT sd_init_onedisk(target) |
target | 867 | kernel/blk_drv/scsi/sd.c | int target, major; |
target | 873 | kernel/blk_drv/scsi/sd.c | target = DEVICE_NR(MINOR(dev)); |
target | 886 | kernel/blk_drv/scsi/sd.c | start = target << gdev->minor_shift; |
target | 902 | kernel/blk_drv/scsi/sd.c | resetup_one_dev(gdev, target); |
target | 42 | kernel/blk_drv/scsi/seagate.c | static int internal_command(unsigned char target, unsigned char lun, |
target | 391 | kernel/blk_drv/scsi/seagate.c | current_target = SCpnt->target; |
target | 433 | kernel/blk_drv/scsi/seagate.c | result = internal_command (SCint->target, SCint->lun, SCint->cmnd, SCint->request_buffer, |
target | 447 | kernel/blk_drv/scsi/seagate.c | return internal_command (SCpnt->target, SCpnt->lun, SCpnt->cmnd, SCpnt->request_buffer, |
target | 452 | kernel/blk_drv/scsi/seagate.c | static int internal_command(unsigned char target, unsigned char lun, const void *cmnd, |
target | 481 | kernel/blk_drv/scsi/seagate.c | printk ("scsi%d : target = %d, command = ", hostno, target); |
target | 510 | kernel/blk_drv/scsi/seagate.c | if (target == (controller_type == SEAGATE ? 7 : 6)) |
target | 674 | kernel/blk_drv/scsi/seagate.c | DATA = (unsigned char) ((1 << target) | (controller_type == SEAGATE ? 0x80 : 0x40)); |
target | 711 | kernel/blk_drv/scsi/seagate.c | hostno, target, STATUS); |
target | 871 | kernel/blk_drv/scsi/seagate.c | hostno, target, lun); |
target | 998 | kernel/blk_drv/scsi/seagate.c | hostno, target, lun); |
target | 1240 | kernel/blk_drv/scsi/seagate.c | hostno, target, message & 7); |
target | 1252 | kernel/blk_drv/scsi/seagate.c | hostno, message, target); |
target | 76 | kernel/blk_drv/scsi/sr.c | int retval, target; |
target | 79 | kernel/blk_drv/scsi/sr.c | target = MINOR(full_dev); |
target | 81 | kernel/blk_drv/scsi/sr.c | if (target >= NR_SR) { |
target | 94 | kernel/blk_drv/scsi/sr.c | scsi_CDs[target].device->changed = 1; |
target | 99 | kernel/blk_drv/scsi/sr.c | retval = scsi_CDs[target].device->changed; |
target | 100 | kernel/blk_drv/scsi/sr.c | if(!flag) scsi_CDs[target].device->changed = 0; |
target | 40 | kernel/blk_drv/scsi/sr_ioctl.c | static int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength) |
target | 45 | kernel/blk_drv/scsi/sr_ioctl.c | SCpnt = allocate_device(NULL, scsi_CDs[target].device->index, 1); |
target | 63 | kernel/blk_drv/scsi/sr_ioctl.c | scsi_CDs[target].device->changed = 1; |
target | 74 | kernel/blk_drv/scsi/sr_ioctl.c | scsi_CDs[target].device->host_no, |
target | 75 | kernel/blk_drv/scsi/sr_ioctl.c | scsi_CDs[target].device->id, |
target | 76 | kernel/blk_drv/scsi/sr_ioctl.c | scsi_CDs[target].device->lun, |
target | 97 | kernel/blk_drv/scsi/sr_ioctl.c | int result, target; |
target | 99 | kernel/blk_drv/scsi/sr_ioctl.c | target = MINOR(dev); |
target | 100 | kernel/blk_drv/scsi/sr_ioctl.c | if (target >= NR_SR) return -ENODEV; |
target | 108 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 114 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 120 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 126 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 136 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 146 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 156 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 166 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 177 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 184 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, sizeof (buffer)); |
target | 204 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 211 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, sizeof (buffer)); |
target | 230 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
target | 234 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 239 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
target | 243 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 247 | kernel/blk_drv/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count == 1) |
target | 251 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
target | 255 | kernel/blk_drv/scsi/sr_ioctl.c | if (!(result = do_ioctl(target, sr_cmd, NULL, 255))) |
target | 256 | kernel/blk_drv/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
target | 271 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
target | 277 | kernel/blk_drv/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, sizeof (buffer)))) { |
target | 283 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
target | 289 | kernel/blk_drv/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, mask, sizeof (mask)))) { |
target | 302 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
target | 307 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, sizeof (buffer)); |
target | 317 | kernel/blk_drv/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 326 | kernel/blk_drv/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, sizeof (buffer)); |
target | 353 | kernel/blk_drv/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
target | 388 | kernel/blk_drv/scsi/ultrastor.c | mscp.target_id = SCpnt->target; |
target | 361 | kernel/blk_drv/scsi/wd7000.c | idlun = ((SCpnt->target << 5) & 0xe0) | (SCpnt->lun & 7); |
target | 581 | kernel/blk_drv/scsi/wd7000.c | printk("id %d lun %d cdb", SCpnt->target, SCpnt->lun); |
target | 241 | kernel/blk_drv/xd.c | int target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition; |
target | 243 | kernel/blk_drv/xd.c | cli(); xd_valid[target] = (xd_access[target] != 1); sti(); |
target | 244 | kernel/blk_drv/xd.c | if (xd_valid[target]) |
target | 255 | kernel/blk_drv/xd.c | xd_gendisk.part[start].nr_sects = xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors; |
target | 256 | kernel/blk_drv/xd.c | resetup_one_dev(&xd_gendisk,target); |
target | 258 | kernel/blk_drv/xd.c | xd_valid[target] = 1; |