tag | line | file | source code |
target | 175 | drivers/block/cdu31a.c | int retval, target; |
target | 178 | drivers/block/cdu31a.c | target = MINOR(full_dev); |
target | 180 | drivers/block/cdu31a.c | if (target > 0) { |
target | 576 | drivers/block/hd.c | int target; |
target | 577 | drivers/block/hd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 579 | drivers/block/hd.c | while (busy[target]) |
target | 581 | drivers/block/hd.c | access_count[target]++; |
target | 591 | drivers/block/hd.c | int target; |
target | 594 | drivers/block/hd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 595 | drivers/block/hd.c | access_count[target]--; |
target | 745 | drivers/block/hd.c | #define DEVICE_BUSY busy[target] |
target | 746 | drivers/block/hd.c | #define USAGE access_count[target] |
target | 747 | drivers/block/hd.c | #define CAPACITY (hd_info[target].head*hd_info[target].sect*hd_info[target].cyl) |
target | 763 | drivers/block/hd.c | int target, major; |
target | 769 | drivers/block/hd.c | target = DEVICE_NR(MINOR(dev)); |
target | 781 | drivers/block/hd.c | start = target << gdev->minor_shift; |
target | 797 | drivers/block/hd.c | resetup_one_dev(gdev, target); |
target | 108 | drivers/block/mcd.c | int retval, target; |
target | 114 | drivers/block/mcd.c | target = MINOR(full_dev); |
target | 116 | drivers/block/mcd.c | if (target > 0) { |
target | 254 | drivers/block/xd.c | int target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition; |
target | 256 | drivers/block/xd.c | cli(); xd_valid[target] = (xd_access[target] != 1); sti(); |
target | 257 | drivers/block/xd.c | if (xd_valid[target]) |
target | 268 | drivers/block/xd.c | xd_gendisk.part[start].nr_sects = xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors; |
target | 269 | drivers/block/xd.c | resetup_one_dev(&xd_gendisk,target); |
target | 271 | drivers/block/xd.c | xd_valid[target] = 1; |
target | 835 | drivers/scsi/NCR5380.c | if (!(hostdata->busy[tmp->target] & (1 << tmp->lun))) { |
target | 853 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun); |
target | 1088 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
target | 1127 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
target | 1179 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
target | 1217 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
target | 1530 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1572 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1582 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1595 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1606 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1608 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
target | 1658 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
target | 1674 | drivers/scsi/NCR5380.c | cmd->target, cmd->lun); |
target | 1717 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
target | 1872 | drivers/scsi/NCR5380.c | if ((target_mask == (1 << tmp->target)) && (lun == tmp->lun) |
target | 1912 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun, cmd->tag); |
target | 377 | drivers/scsi/aha152x.c | static inline Scsi_Cmnd *remove_SC( Scsi_Cmnd **SC, int target, int lun ) |
target | 382 | drivers/scsi/aha152x.c | ptr && ((ptr->target!=target) || (ptr->lun!=lun)); |
target | 717 | drivers/scsi/aha152x.c | SCpnt->target, |
target | 850 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
target | 1090 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
target | 1115 | drivers/scsi/aha152x.c | target=0; |
target | 1117 | drivers/scsi/aha152x.c | for( ; (i & 1)==0; target++, i>>=1) |
target | 1123 | drivers/scsi/aha152x.c | printk("SELID=%02x, target=%d, ", GETPORT(SELID), target ); |
target | 1125 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | target ); |
target | 1148 | drivers/scsi/aha152x.c | target, identify_msg); |
target | 1164 | drivers/scsi/aha152x.c | target, |
target | 1204 | drivers/scsi/aha152x.c | printk("selecting %d, ", current_SC->target); |
target | 1206 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
target | 2322 | drivers/scsi/aha152x.c | (unsigned long) ptr, ptr->target, ptr->lun); |
target | 391 | drivers/scsi/aha1542.c | unchar target = SCpnt->target; |
target | 404 | drivers/scsi/aha1542.c | DEB(if (target > 1) { |
target | 428 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 430 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 523 | drivers/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
target | 242 | drivers/scsi/aha1740.c | unchar target = SCpnt->target; |
target | 268 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 390 | drivers/scsi/aha1740.c | outb(ATTN_START | (target & 7), ATTN); /* Start it up */ |
target | 648 | drivers/scsi/fdomain.c | SCinit.target = i; |
target | 744 | drivers/scsi/fdomain.c | static int fdomain_select( int target ) |
target | 751 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << target), SCSI_Data_NoACK_port ); |
target | 768 | drivers/scsi/fdomain.c | if (!target) printk( "Selection failed\n" ); |
target | 771 | drivers/scsi/fdomain.c | if (!target) printk( "Future Domain: Selection failed" ); |
target | 840 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
target | 852 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
target | 912 | drivers/scsi/fdomain.c | current_SC->target, current_SC->cmnd[0], |
target | 1226 | drivers/scsi/fdomain.c | SCpnt->target, |
target | 1311 | drivers/scsi/fdomain.c | SCpnt->target, |
target | 233 | drivers/scsi/scsi.c | SCmd.target = dev; |
target | 536 | drivers/scsi/scsi.c | if(SCpnt->target == scsi_devices[index].id && |
target | 619 | drivers/scsi/scsi.c | if(SCpnt->target == scsi_devices[index].id && |
target | 722 | drivers/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
target | 793 | drivers/scsi/scsi.c | int target = SCpnt->target; |
target | 796 | drivers/scsi/scsi.c | "command : " , host->host_no, target, buffer, bufflen, done, timeout, retries); |
target | 842 | drivers/scsi/scsi.c | SCpnt->target = target; |
target | 1008 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->target, SCpnt->lun); |
target | 1598 | drivers/scsi/scsi.c | SCpnt->target = scsi_devices[i].id; |
target | 339 | drivers/scsi/scsi.h | unsigned char target, lun, index; |
target | 61 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){ \ |
target | 62 | drivers/scsi/scsi_debug.c | printk("Dev #s %x %x ",SCpnt->request.dev, target); \ |
target | 147 | drivers/scsi/scsi_debug.c | int target = SCpnt->target; |
target | 153 | drivers/scsi/scsi_debug.c | DEB(if (target > 1) { SCpnt->result = DID_TIME_OUT << 16;done(SCpnt);return 0;}); |
target | 157 | drivers/scsi/scsi_debug.c | if(target>=2 || SCpnt->lun != 0) { |
target | 237 | drivers/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
target | 274 | drivers/scsi/scsi_debug.c | memcpy(buff, &target, sizeof(target)); |
target | 275 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
target | 58 | drivers/scsi/sd.c | int target; |
target | 59 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 61 | drivers/scsi/sd.c | if(target >= NR_SD || !rscsi_disks[target].device) |
target | 67 | drivers/scsi/sd.c | while (rscsi_disks[target].device->busy); |
target | 69 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
target | 72 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
target | 75 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count++; |
target | 81 | drivers/scsi/sd.c | int target; |
target | 84 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 86 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count--; |
target | 88 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
target | 89 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
target | 618 | drivers/scsi/sd.c | int target; |
target | 621 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(full_dev)); |
target | 623 | drivers/scsi/sd.c | if (target >= NR_SD) { |
target | 628 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->removable) return 0; |
target | 638 | drivers/scsi/sd.c | rscsi_disks[target].device->changed = 1; |
target | 643 | drivers/scsi/sd.c | retval = rscsi_disks[target].device->changed; |
target | 644 | drivers/scsi/sd.c | if(!flag) rscsi_disks[target].device->changed = 0; |
target | 917 | drivers/scsi/sd.c | #define DEVICE_BUSY rscsi_disks[target].device->busy |
target | 918 | drivers/scsi/sd.c | #define USAGE rscsi_disks[target].device->access_count |
target | 919 | drivers/scsi/sd.c | #define CAPACITY rscsi_disks[target].capacity |
target | 920 | drivers/scsi/sd.c | #define MAYBE_REINIT sd_init_onedisk(target) |
target | 931 | drivers/scsi/sd.c | int target, major; |
target | 937 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(dev)); |
target | 950 | drivers/scsi/sd.c | start = target << gdev->minor_shift; |
target | 966 | drivers/scsi/sd.c | resetup_one_dev(gdev, target); |
target | 85 | drivers/scsi/seagate.c | static int internal_command(unsigned char target, unsigned char lun, |
target | 520 | drivers/scsi/seagate.c | current_target = SCpnt->target; |
target | 562 | drivers/scsi/seagate.c | result = internal_command (SCint->target, SCint->lun, SCint->cmnd, SCint->request_buffer, |
target | 576 | drivers/scsi/seagate.c | return internal_command (SCpnt->target, SCpnt->lun, SCpnt->cmnd, SCpnt->request_buffer, |
target | 581 | drivers/scsi/seagate.c | static int internal_command(unsigned char target, unsigned char lun, const void *cmnd, |
target | 622 | drivers/scsi/seagate.c | printk ("scsi%d : target = %d, command = ", hostno, target); |
target | 650 | drivers/scsi/seagate.c | if (target == (controller_type == SEAGATE ? 7 : 6)) |
target | 844 | drivers/scsi/seagate.c | DATA = (unsigned char) ((1 << target) | (controller_type == SEAGATE ? 0x80 : 0x40)); |
target | 871 | drivers/scsi/seagate.c | hostno, target, STATUS); |
target | 1036 | drivers/scsi/seagate.c | hostno, target, lun); |
target | 1351 | drivers/scsi/seagate.c | printk("scsi%d : target %d requested MSGOUT, sent NOP message.\n", hostno, target); |
target | 1424 | drivers/scsi/seagate.c | hostno, target, message & 7); |
target | 1436 | drivers/scsi/seagate.c | hostno, message, target); |
target | 80 | drivers/scsi/sr.c | int retval, target; |
target | 83 | drivers/scsi/sr.c | target = MINOR(full_dev); |
target | 85 | drivers/scsi/sr.c | if (target >= NR_SR) { |
target | 98 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 1; |
target | 103 | drivers/scsi/sr.c | retval = scsi_CDs[target].device->changed; |
target | 104 | drivers/scsi/sr.c | if(!flag) scsi_CDs[target].device->changed = 0; |
target | 41 | drivers/scsi/sr_ioctl.c | static int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength) |
target | 46 | drivers/scsi/sr_ioctl.c | SCpnt = allocate_device(NULL, scsi_CDs[target].device->index, 1); |
target | 64 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->changed = 1; |
target | 75 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->host->host_no, |
target | 76 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->id, |
target | 77 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->lun, |
target | 98 | drivers/scsi/sr_ioctl.c | int result, target; |
target | 100 | drivers/scsi/sr_ioctl.c | target = MINOR(dev); |
target | 101 | drivers/scsi/sr_ioctl.c | if (target >= NR_SR) return -ENODEV; |
target | 109 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 115 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 121 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 127 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 137 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 147 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 157 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
target | 167 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 178 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 188 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 12); |
target | 210 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 220 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 12); |
target | 241 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
target | 245 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 250 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
target | 254 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 258 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count == 1) |
target | 262 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
target | 266 | drivers/scsi/sr_ioctl.c | if (!(result = do_ioctl(target, sr_cmd, NULL, 255))) |
target | 267 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
target | 282 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
target | 291 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
target | 298 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
target | 310 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, mask, 28))) { |
target | 325 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
target | 330 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
target | 342 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 354 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |
target | 383 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
target | 700 | drivers/scsi/ultrastor.c | my_mscp->target_id = SCpnt->target; |
target | 363 | drivers/scsi/wd7000.c | idlun = ((SCpnt->target << 5) & 0xe0) | (SCpnt->lun & 7); |
target | 585 | drivers/scsi/wd7000.c | printk("id %d lun %d cdb", SCpnt->target, SCpnt->lun); |
target | 913 | drivers/sound/gus_wave.c | int current, target, rate; |
target | 919 | drivers/sound/gus_wave.c | target = voices[voice].initial_volume; |
target | 924 | drivers/sound/gus_wave.c | gus_voice_volume (target); |
target | 934 | drivers/sound/gus_wave.c | if ((target - current) / 64 == 0) /* Too close */ |
target | 937 | drivers/sound/gus_wave.c | gus_voice_volume (target); |
target | 941 | drivers/sound/gus_wave.c | if (target > current) |
target | 943 | drivers/sound/gus_wave.c | if (target > (4095 - 65)) |
target | 944 | drivers/sound/gus_wave.c | target = 4095 - 65; |
target | 945 | drivers/sound/gus_wave.c | gus_ramp_range (current, target); |
target | 950 | drivers/sound/gus_wave.c | if (target < 65) |
target | 951 | drivers/sound/gus_wave.c | target = 65; |
target | 953 | drivers/sound/gus_wave.c | gus_ramp_range (target, current); |
target | 1270 | drivers/sound/gus_wave.c | unsigned long blk_size, blk_end, left, src_offs, target; |
target | 1391 | drivers/sound/gus_wave.c | target = free_mem_ptr; |
target | 1402 | drivers/sound/gus_wave.c | blk_end = target + blk_size; |
target | 1404 | drivers/sound/gus_wave.c | if ((target >> 18) != (blk_end >> 18)) |
target | 1408 | drivers/sound/gus_wave.c | blk_size = blk_end - target; |
target | 1426 | drivers/sound/gus_wave.c | gus_poke (target + i, data); |
target | 1450 | drivers/sound/gus_wave.c | address = target; |
target | 1493 | drivers/sound/gus_wave.c | target += blk_size; |
target | 59 | drivers/sound/os.h | #define GET_BYTE_FROM_USER(target, addr, offs) target = get_fs_byte(&((addr)[offs])) |
target | 60 | drivers/sound/os.h | #define GET_SHORT_FROM_USER(target, addr, offs) target = get_fs_word(&((addr)[offs])) |
target | 61 | drivers/sound/os.h | #define GET_WORD_FROM_USER(target, addr, offs) target = get_fs_long((long*)&((addr)[offs])) |