tag | line | file | source code |
target | 183 | drivers/block/cdu31a.c | int retval, target; |
target | 186 | drivers/block/cdu31a.c | target = MINOR(full_dev); |
target | 188 | 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 | 298 | drivers/block/xd.c | int target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition; |
target | 300 | drivers/block/xd.c | cli(); xd_valid[target] = (xd_access[target] != 1); sti(); |
target | 301 | drivers/block/xd.c | if (xd_valid[target]) |
target | 312 | drivers/block/xd.c | xd_gendisk.part[start].nr_sects = xd_info[target].heads * xd_info[target].cylinders * xd_info[target].sectors; |
target | 313 | drivers/block/xd.c | resetup_one_dev(&xd_gendisk,target); |
target | 315 | drivers/block/xd.c | xd_valid[target] = 1; |
target | 880 | drivers/scsi/NCR5380.c | if (!(hostdata->busy[tmp->target] & (1 << tmp->lun))) { |
target | 898 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun); |
target | 1164 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
target | 1203 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
target | 1255 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
target | 1293 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
target | 1813 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1854 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1864 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1877 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1888 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
target | 1890 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
target | 1955 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
target | 1971 | drivers/scsi/NCR5380.c | cmd->target, cmd->lun); |
target | 2019 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
target | 2175 | drivers/scsi/NCR5380.c | if ((target_mask == (1 << tmp->target)) && (lun == tmp->lun) |
target | 2215 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun, cmd->tag); |
target | 380 | drivers/scsi/aha152x.c | static inline Scsi_Cmnd *remove_SC( Scsi_Cmnd **SC, int target, int lun ) |
target | 385 | drivers/scsi/aha152x.c | ptr && ((ptr->target!=target) || (ptr->lun!=lun)); |
target | 712 | drivers/scsi/aha152x.c | SCpnt->target, |
target | 845 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
target | 1075 | drivers/scsi/aha152x.c | int identify_msg, target, i; |
target | 1100 | drivers/scsi/aha152x.c | target=0; |
target | 1102 | drivers/scsi/aha152x.c | for( ; (i & 1)==0; target++, i>>=1) |
target | 1108 | drivers/scsi/aha152x.c | printk("SELID=%02x, target=%d, ", GETPORT(SELID), target ); |
target | 1110 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | target ); |
target | 1133 | drivers/scsi/aha152x.c | target, identify_msg); |
target | 1149 | drivers/scsi/aha152x.c | target, |
target | 1189 | drivers/scsi/aha152x.c | printk("selecting %d, ", current_SC->target); |
target | 1191 | drivers/scsi/aha152x.c | SETPORT( SCSIID, (this_host << OID_) | current_SC->target ); |
target | 2296 | drivers/scsi/aha152x.c | (unsigned int) ptr, ptr->target, ptr->lun); |
target | 416 | drivers/scsi/aha1542.c | unchar target = SCpnt->target; |
target | 429 | drivers/scsi/aha1542.c | DEB(if (target > 1) { |
target | 453 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 455 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
target | 548 | 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 | 682 | drivers/scsi/fdomain.c | SCinit.target = i; |
target | 778 | drivers/scsi/fdomain.c | static int fdomain_select( int target ) |
target | 785 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << target), SCSI_Data_NoACK_port ); |
target | 806 | drivers/scsi/fdomain.c | if (!target) printk( "Selection failed\n" ); |
target | 809 | drivers/scsi/fdomain.c | if (!target) printk( "Future Domain: Selection failed\n" ); |
target | 878 | drivers/scsi/fdomain.c | outb( adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port ); |
target | 890 | drivers/scsi/fdomain.c | if (fdomain_select( current_SC->target )) { |
target | 950 | drivers/scsi/fdomain.c | current_SC->target, current_SC->cmnd[0], |
target | 1264 | drivers/scsi/fdomain.c | SCpnt->target, |
target | 1349 | drivers/scsi/fdomain.c | SCpnt->target, |
target | 241 | drivers/scsi/scsi.c | SCmd.target = dev; |
target | 547 | drivers/scsi/scsi.c | if(SCpnt->target == scsi_devices[index].id && |
target | 632 | drivers/scsi/scsi.c | if(SCpnt->target == scsi_devices[index].id && |
target | 737 | drivers/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
target | 808 | drivers/scsi/scsi.c | int target = SCpnt->target; |
target | 811 | drivers/scsi/scsi.c | "command : " , host->host_no, target, buffer, bufflen, done, timeout, retries); |
target | 857 | drivers/scsi/scsi.c | SCpnt->target = target; |
target | 1027 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->target, SCpnt->lun); |
target | 1620 | drivers/scsi/scsi.c | SCpnt->target = scsi_devices[i].id; |
target | 343 | drivers/scsi/scsi.h | unsigned char target, lun, index; |
target | 77 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){ \ |
target | 78 | drivers/scsi/scsi_debug.c | printk("Dev #s %x %x ",SCpnt->request.dev, target); \ |
target | 164 | drivers/scsi/scsi_debug.c | int target = SCpnt->target; |
target | 170 | drivers/scsi/scsi_debug.c | DEB(if (target > 1) { SCpnt->result = DID_TIME_OUT << 16;done(SCpnt);return 0;}); |
target | 174 | drivers/scsi/scsi_debug.c | if(target>=1 || SCpnt->lun != 0) { |
target | 272 | drivers/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
target | 313 | drivers/scsi/scsi_debug.c | memcpy(buff, &target, sizeof(target)); |
target | 314 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
target | 62 | drivers/scsi/sd.c | int target; |
target | 63 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 65 | drivers/scsi/sd.c | if(target >= NR_SD || !rscsi_disks[target].device) |
target | 71 | drivers/scsi/sd.c | while (rscsi_disks[target].device->busy); |
target | 73 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
target | 76 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
target | 79 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count++; |
target | 85 | drivers/scsi/sd.c | int target; |
target | 88 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(inode->i_rdev)); |
target | 90 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count--; |
target | 92 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
target | 93 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
target | 737 | drivers/scsi/sd.c | int target; |
target | 740 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(full_dev)); |
target | 742 | drivers/scsi/sd.c | if (target >= NR_SD) { |
target | 747 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->removable) return 0; |
target | 757 | drivers/scsi/sd.c | rscsi_disks[target].device->changed = 1; |
target | 762 | drivers/scsi/sd.c | retval = rscsi_disks[target].device->changed; |
target | 763 | drivers/scsi/sd.c | if(!flag) rscsi_disks[target].device->changed = 0; |
target | 1038 | drivers/scsi/sd.c | #define DEVICE_BUSY rscsi_disks[target].device->busy |
target | 1039 | drivers/scsi/sd.c | #define USAGE rscsi_disks[target].device->access_count |
target | 1040 | drivers/scsi/sd.c | #define CAPACITY rscsi_disks[target].capacity |
target | 1041 | drivers/scsi/sd.c | #define MAYBE_REINIT sd_init_onedisk(target) |
target | 1052 | drivers/scsi/sd.c | int target, major; |
target | 1058 | drivers/scsi/sd.c | target = DEVICE_NR(MINOR(dev)); |
target | 1071 | drivers/scsi/sd.c | start = target << gdev->minor_shift; |
target | 1087 | 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 | 105 | drivers/scsi/sr.c | scsi_CDs[target].device->changed = 0; |
target | 108 | drivers/scsi/sr.c | if (retval) scsi_CDs[target].needs_sector_size = 1; |
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, err; |
target | 100 | drivers/scsi/sr_ioctl.c | target = MINOR(dev); |
target | 101 | drivers/scsi/sr_ioctl.c | if (target >= NR_SR) return -ENXIO; |
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 | 212 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 222 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 12); |
target | 245 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
target | 249 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 254 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
target | 258 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
target | 262 | drivers/scsi/sr_ioctl.c | if (scsi_CDs[target].device -> access_count == 1) |
target | 266 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
target | 270 | drivers/scsi/sr_ioctl.c | if (!(result = do_ioctl(target, sr_cmd, NULL, 255))) |
target | 271 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device -> changed = 1; |
target | 286 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
target | 295 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
target | 302 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
target | 314 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, mask, 28))) { |
target | 330 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
target | 335 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
target | 347 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
target | 359 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |
target | 396 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
target | 686 | drivers/scsi/ultrastor.c | my_mscp->target_id = SCpnt->target; |
target | 379 | drivers/scsi/wd7000.c | idlun = ((SCpnt->target << 5) & 0xe0) | (SCpnt->lun & 7); |
target | 602 | drivers/scsi/wd7000.c | printk("id %d lun %d cdb", SCpnt->target, SCpnt->lun); |
target | 1175 | drivers/sound/gus_wave.c | int current, target, rate; |
target | 1189 | drivers/sound/gus_wave.c | target = voices[voice].initial_volume; |
target | 1194 | drivers/sound/gus_wave.c | gus_voice_volume (target); |
target | 1205 | drivers/sound/gus_wave.c | if ((target - current) / 64 == 0) /* |
target | 1210 | drivers/sound/gus_wave.c | gus_voice_volume (target); |
target | 1215 | drivers/sound/gus_wave.c | if (target > current) |
target | 1217 | drivers/sound/gus_wave.c | if (target > (4095 - 65)) |
target | 1218 | drivers/sound/gus_wave.c | target = 4095 - 65; |
target | 1219 | drivers/sound/gus_wave.c | gus_ramp_range (current, target); |
target | 1226 | drivers/sound/gus_wave.c | if (target < 65) |
target | 1227 | drivers/sound/gus_wave.c | target = 65; |
target | 1229 | drivers/sound/gus_wave.c | gus_ramp_range (target, current); |
target | 1686 | drivers/sound/gus_wave.c | unsigned long blk_size, blk_end, left, src_offs, target; |
target | 1818 | drivers/sound/gus_wave.c | target = free_mem_ptr; |
target | 1831 | drivers/sound/gus_wave.c | blk_end = target + blk_size; |
target | 1833 | drivers/sound/gus_wave.c | if ((target >> 18) != (blk_end >> 18)) |
target | 1839 | drivers/sound/gus_wave.c | blk_size = blk_end - target; |
target | 1859 | drivers/sound/gus_wave.c | gus_poke (target + i, data); |
target | 1888 | drivers/sound/gus_wave.c | address = target; |
target | 1945 | drivers/sound/gus_wave.c | target += blk_size; |
target | 60 | drivers/sound/os.h | #define GET_BYTE_FROM_USER(target, addr, offs) target = get_fs_byte(&((addr)[offs])) |
target | 61 | drivers/sound/os.h | #define GET_SHORT_FROM_USER(target, addr, offs) target = get_fs_word(&((addr)[offs])) |
target | 62 | drivers/sound/os.h | #define GET_WORD_FROM_USER(target, addr, offs) target = get_fs_long((long*)&((addr)[offs])) |