/linux-2.4.37.9/drivers/usb/storage/ |
D | dpcm.c | 51 US_DEBUGP("dpcm_transport: LUN=%d\n", srb->lun); in dpcm_transport() 53 switch(srb->lun) { in dpcm_transport() 71 srb->lun = 0; us->srb->lun = 0; in dpcm_transport() 73 srb->lun = 1; us->srb->lun = 1; in dpcm_transport() 79 US_DEBUGP("dpcm_transport: Invalid LUN %d\n", srb->lun); in dpcm_transport()
|
/linux-2.4.37.9/drivers/scsi/ |
D | 53c700.c | 381 NCR_700_identify(int can_disconnect, __u8 lun) in NCR_700_identify() argument 385 (lun & NCR_700_LUN_MASK); in NCR_700_identify() 516 hash = hash_ITLQ(slot->cmnd->target, slot->cmnd->lun, in free_slot() 531 hash = hash_ITL(slot->cmnd->target, slot->cmnd->lun); in free_slot() 573 find_ITL_Nexus(struct NCR_700_Host_Parameters *hostdata, __u8 pun, __u8 lun) in find_ITL_Nexus() argument 575 int hash = hash_ITL(pun, lun); in find_ITL_Nexus() 578 slot->cmnd->lun == lun)) in find_ITL_Nexus() 585 __u8 lun, __u8 tag) in find_ITLQ_Nexus() argument 587 int hash = hash_ITLQ(pun, lun, tag); in find_ITLQ_Nexus() 591 && slot->cmnd->lun == lun && slot->tag == tag)) in find_ITLQ_Nexus() [all …]
|
D | ibmmca.c | 684 if ((cmd->target == TIMEOUT_PUN)&&(cmd->lun == TIMEOUT_LUN)) { in interrupt_handler() 686 cmd->target, cmd->lun); in interrupt_handler() 873 unsigned int lun, unsigned int ldn, in immediate_assign() argument 884 imm_cmd |= (unsigned long)((lun & 7) << 24); in immediate_assign() 893 imm_cmd |= (unsigned long)((lun & 7) << 24); in immediate_assign() 1097 int id, lun, ldn, ticks; in check_devices() local 1120 for (lun=0; lun<8; lun++) { in check_devices() 1122 get_scsi(host_index)[subsystem_pun(host_index)][lun] = TYPE_IBM_SCSI_ADAPTER; in check_devices() 1123 get_ldn(host_index)[subsystem_pun(host_index)][lun] = MAX_LOG_DEV; /* make sure, the subsystem in check_devices() 1180 lun = 0; /* default lun is 0 */ in check_devices() [all …]
|
D | scsi_scan.c | 45 unsigned int lun, int lun0_scsi_level, 354 unsigned int lun; in scan_scsis() local 430 lun = hlun; in scan_scsis() 431 if (lun >= shpnt->max_lun) in scan_scsis() 433 if ((0 == lun) || (lun > 7)) in scan_scsis() 437 scan_scsis_single(channel, dev, lun, lun0_sl, &max_dev_lun, in scan_scsis() 494 for (lun = 0, lun0_sl = SCSI_2; lun < max_dev_lun; ++lun) { in scan_scsis() 496 if ((lun0_sl < SCSI_3) && (lun > 7)) in scan_scsis() 499 if (!scan_scsis_single(channel, order_dev, lun, lun0_sl, in scan_scsis() 504 if (SDpnt && (0 == lun)) { in scan_scsis() [all …]
|
D | atari_NCR5380.c | 323 int target, lun; in init_tags() local 330 for( lun = 0; lun < 8; ++lun ) { in init_tags() 331 ta = &TagAlloc[target][lun]; in init_tags() 355 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy() 360 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy() 361 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy() 363 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy() 385 hostdata->busy[cmd->target] |= (1 << cmd->lun); in cmd_get_tag() 387 "command\n", H_NO(cmd), cmd->target, cmd->lun ); in cmd_get_tag() 390 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag() [all …]
|
D | mac_NCR5380.c | 346 int target, lun; in init_tags() local 353 for( lun = 0; lun < 8; ++lun ) { in init_tags() 354 ta = &TagAlloc[target][lun]; in init_tags() 378 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy() 383 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy() 384 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy() 386 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy() 408 hostdata->busy[cmd->target] |= (1 << cmd->lun); in cmd_get_tag() 410 "command\n", H_NO(cmd), cmd->target, cmd->lun ); in cmd_get_tag() 413 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag() [all …]
|
D | sun3_NCR5380.c | 330 int target, lun; in init_tags() local 337 for( lun = 0; lun < 8; ++lun ) { in init_tags() 338 ta = &TagAlloc[target][lun]; in init_tags() 362 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy() 367 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy() 368 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy() 370 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy() 392 hostdata->busy[cmd->target] |= (1 << cmd->lun); in cmd_get_tag() 394 "command\n", H_NO(cmd), cmd->target, cmd->lun ); in cmd_get_tag() 397 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag() [all …]
|
D | wd33c93.c | 449 if (!(hostdata->busy[cmd->target] & (1 << cmd->lun))) in wd33c93_execute() 520 if ((prev->target != cmd->target) || (prev->lun != cmd->lun)) { in wd33c93_execute() 540 write_wd33c93(regs, WD_TARGET_LUN, cmd->lun); in wd33c93_execute() 542 hostdata->busy[cmd->target] |= (1 << cmd->lun); in wd33c93_execute() 759 uchar asr, sr, phs, id, lun, *ucp, msg; in wd33c93_intr() local 818 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in wd33c93_intr() 852 hostdata->outgoing_msg[0] = (0x80 | 0x00 | cmd->lun); in wd33c93_intr() 1102 lun = read_wd33c93(regs, WD_TARGET_LUN); in wd33c93_intr() 1103 DB(DB_INTR,printk(":%d.%d",cmd->SCp.Status,lun)) in wd33c93_intr() 1105 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in wd33c93_intr() [all …]
|
D | cpqfc.Readme | 26 * initialize DumCmnd.lun (used as LUN index in fcFindLoggedInPort()) 138 Detected scsi disk sdb at scsi4, channel 0, id 0, lun 0 141 Detected scsi disk sdc at scsi4, channel 0, id 1, lun 0 144 Detected scsi disk sdd at scsi4, channel 0, id 2, lun 0 147 Detected scsi disk sde at scsi4, channel 0, id 3, lun 0 150 Detected scsi disk sdf at scsi4, channel 0, id 4, lun 0 153 Detected scsi disk sdg at scsi4, channel 0, id 5, lun 0 156 Detected scsi disk sdh at scsi4, channel 0, id 6, lun 0 159 Detected scsi disk sdi at scsi4, channel 0, id 7, lun 0 162 Detected scsi disk sdj at scsi4, channel 0, id 8, lun 0 [all …]
|
D | sr_vendor.c | 128 (scsi_CDs[minor].device->lun << 5) : 0; in sr_set_blocklength() 179 (scsi_CDs[minor].device->lun << 5) : 0; in sr_cd_check() 205 (scsi_CDs[minor].device->lun << 5) : 0; in sr_cd_check() 232 (scsi_CDs[minor].device->lun << 5) : 0; in sr_cd_check() 257 (scsi_CDs[minor].device->lun << 5) : 0; in sr_cd_check() 271 (scsi_CDs[minor].device->lun << 5) : 0; in sr_cd_check()
|
D | qla1280.h | 513 uint8_t lun; /* SCSI LUN */ member 599 uint8_t lun; /* SCSI LUN */ member 620 uint8_t lun; /* SCSI LUN */ member 640 uint8_t lun; /* SCSI LUN */ member 686 uint16_t lun; /* Bit 15 is bus number. */ member 714 uint8_t lun; /* SCSI LUN */ member 739 uint8_t lun; member 765 uint8_t lun; member 786 uint8_t lun; member 809 uint8_t lun; /* SCSI LUN */ member [all …]
|
D | sr_ioctl.c | 197 ((scsi_CDs[minor].device->lun) << 5) : 0; in test_unit_ready() 208 ((scsi_CDs[MINOR(cdi->dev)].device->lun) << 5) : 0; in sr_tray_move() 281 ((scsi_CDs[MINOR(cdi->dev)].device->lun) << 5) : 0; in sr_get_mcn() 316 ((scsi_CDs[MINOR(cdi->dev)].device->lun) << 5) : 0; in sr_select_speed() 346 ((scsi_CDs[target].device->lun) << 5) : 0; in sr_audio_ioctl() 364 ((scsi_CDs[target].device->lun) << 5) : 0; in sr_audio_ioctl() 391 (scsi_CDs[target].device->lun << 5) : 0; in sr_audio_ioctl() 442 (scsi_CDs[minor].device->lun << 5) : 0; in sr_read_cd() 496 (scsi_CDs[minor].device->lun << 5) : 0; in sr_read_sector()
|
D | tmscsim.c | 466 void dc390_initDCB( PACB pACB, PDCB *ppDCB, UCHAR id, UCHAR lun); 819 static PDCB __inline__ dc390_findDCB ( PACB pACB, UCHAR id, UCHAR lun) in dc390_findDCB() argument 822 while (pDCB->TargetID != id || pDCB->TargetLUN != lun) in dc390_findDCB() 1190 pDCB = dc390_findDCB (pACB, pcmd->target, pcmd->lun); in dc390_Query_to_Waiting() 1234 cmd->cmnd[0],cmd->target,cmd->lun,cmd->pid);) in DC390_queue_command() 1252 (cmd->lun >= pACB->pScsiHost->max_lun) ) in DC390_queue_command() 1263 !(pACB->DCBmap[cmd->target] & (1 << cmd->lun)) ) in DC390_queue_command() 1267 dc390_initDCB( pACB, &pDCB, cmd->target, cmd->lun ); in DC390_queue_command() 1271 cmd->target, cmd->lun); in DC390_queue_command() 1283 else if( !(pACB->scan_devices) && !(pACB->DCBmap[cmd->target] & (1 << cmd->lun)) ) in DC390_queue_command() [all …]
|
D | gdth_ioctl.h | 103 unchar lun; /* LUN */ member 122 unchar lun; /* LUN */ member 219 unchar lun; /* LUN */ member 266 unchar lun; /* LUN */ member 335 unchar lun; /* LUN */ member
|
D | in2000.c | 465 if (!(hostdata->busy[cmd->target] & (1 << cmd->lun))) in in2000_execute() 536 if ((prev->target != cmd->target) || (prev->lun != cmd->lun)) { in in2000_execute() 555 write_3393(hostdata,WD_TARGET_LUN, cmd->lun); in in2000_execute() 557 hostdata->busy[cmd->target] |= (1 << cmd->lun); in in2000_execute() 839 uchar asr, sr, phs, id, lun, *ucp, msg; in in2000_intr() local 1089 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in in2000_intr() 1111 hostdata->outgoing_msg[0] = (0x80 | 0x00 | cmd->lun); in in2000_intr() 1350 lun = read_3393(hostdata,WD_TARGET_LUN); in in2000_intr() 1351 DB(DB_INTR,printk(":%d.%d",cmd->SCp.Status,lun)) in in2000_intr() 1353 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in in2000_intr() [all …]
|
/linux-2.4.37.9/drivers/block/ |
D | acsi.c | 113 unsigned lun; /* LUN in target controller */ member 276 #define CMDSET_TARG_LUN(cmd,targ,lun) \ argument 279 cmd[1] = (cmd[1] & ~0xe0) | (lun)<<5; \ 350 static int acsi_reqsense( char *buffer, int targ, int lun); 368 static int acsi_change_blk_size( int target, int lun); 369 static int acsi_mode_sense( int target, int lun, SENSE_DATA *sd ); 384 extern int attach_slm( int target, int lun ); 588 static int acsi_reqsense( char *buffer, int targ, int lun) in acsi_reqsense() argument 591 CMDSET_TARG_LUN( reqsense_cmd, targ, lun); in acsi_reqsense() 790 acsi_info[dev].lun)) in read_intr() [all …]
|
D | acsi_slm.c | 100 #define CMDSET_TARG_LUN(cmd,targ,lun) \ argument 103 cmd[1] = (cmd[1] & ~0xe0) | (lun)<<5; \ 123 unsigned lun; /* LUN in target controller */ member 415 CMDSET_TARG_LUN( slmprint_cmd, sip->target, sip->lun ); in start_print() 827 CMDSET_TARG_LUN( slmreqsense_cmd, sip->target, sip->lun ); in slm_req_sense() 848 CMDSET_TARG_LUN( slmmsense_cmd, sip->target, sip->lun ); in slm_mode_sense() 893 CMDSET_TARG_LUN( slmmselect_cmd, sip->target, sip->lun ); 945 int attach_slm( int target, int lun ) in attach_slm() argument 957 CMDSET_TARG_LUN( slminquiry_cmd, target, lun ); in attach_slm() 986 slm_info[N_SLM_Printers].lun = lun; in attach_slm() [all …]
|
/linux-2.4.37.9/drivers/message/i2o/ |
D | i2o_scsi.c | 304 static int i2o_find_lun(struct i2o_controller *c, struct i2o_device *d, int *target, int *lun) in i2o_find_lun() argument 316 *lun=reply[1]; in i2o_find_lun() 318 dprintk(("SCSI (%d,%d)\n", *target, *lun)); in i2o_find_lun() 326 int lun; in i2o_scsi_init() local 333 for(lun=0;lun<8;lun++) in i2o_scsi_init() 334 h->task[target][lun] = -1; in i2o_scsi_init() 355 if(i2o_find_lun(c, unit, &target, &lun)==-1) in i2o_scsi_init() 360 dprintk(("Found disk %d %d.\n", target, lun)); in i2o_scsi_init() 361 h->task[target][lun]=unit->lct_data.tid; in i2o_scsi_init() 362 h->tagclock[target][lun]=jiffies; in i2o_scsi_init() [all …]
|
/linux-2.4.37.9/drivers/acorn/scsi/ |
D | queue.c | 173 if (!test_bit(q->SCpnt->target * 8 + q->SCpnt->lun, exclude)) { in queue_remove_exclude() 211 Scsi_Cmnd *queue_remove_tgtluntag (Queue_t *queue, int target, int lun, int tag) in queue_remove_tgtluntag() argument 220 if (q->SCpnt->target == target && q->SCpnt->lun == lun && in queue_remove_tgtluntag() 261 int queue_probetgtlun (Queue_t *queue, int target, int lun) in queue_probetgtlun() argument 270 if (q->SCpnt->target == target && q->SCpnt->lun == lun) { in queue_probetgtlun()
|
/linux-2.4.37.9/drivers/scsi/aic7xxx/ |
D | aic79xx.h | 95 ((scb)->hscb->lun) 115 #define BUILD_TCL(scsiid, lun) \ argument 116 ((lun) | (((scsiid) & TID) << 4)) 117 #define BUILD_TCL_RAW(target, channel, lun) \ argument 118 ((lun) | ((target) << 8)) 128 #define AHD_BUILD_COL_IDX(target, lun) \ argument 129 (((lun) << 4) | target) 137 (scb)->hscb->lun = ((col_idx) >> 4) & (AHD_NUM_LUNS_NONPKT-1); \ 143 dst->hscb->lun = src->hscb->lun; \ 503 /*20*/ uint8_t lun; member [all …]
|
D | aic79xx_proc.c | 172 int lun; in ahd_dump_target_state() local 189 for (lun = 0; lun < AHD_NUM_LUNS; lun++) { in ahd_dump_target_state() 192 dev = targ->devices[lun]; in ahd_dump_target_state() 205 dev->target->channel + 'A', dev->target->target, dev->lun); in ahd_dump_device_state()
|
D | aic7xxx.h | 96 ((scb)->hscb->lun & LID) 113 #define BUILD_TCL(scsiid, lun) \ argument 114 ((lun) | (((scsiid) & TID) << 4)) 474 /*26*/ uint8_t lun; member 1129 u_int lun; member 1189 int target, char channel, int lun, 1230 char channel, int lun, u_int tag, 1236 int lun, uint32_t status, 1239 char channel, int lun, u_int tag, 1246 char channel, int lun, u_int tag, [all …]
|
D | aic79xx_osm.c | 558 u_int target, u_int lun, int alloc); 616 u_int lun, int alloc) in ahd_linux_get_device() argument 634 dev = targ->devices[lun]; in ahd_linux_get_device() 636 dev = ahd_linux_alloc_device(ahd, targ, lun); in ahd_linux_get_device() 1027 cmd->device->id, cmd->device->lun, in ahd_linux_queue() 1080 device->id, device->lun, in ahd_linux_slave_configure() 1104 device->id, device->lun, in ahd_linux_slave_destroy() 1151 && ldev->lun == device->lun) in ahd_linux_select_queue_depth() 1167 device->id, device->lun, in ahd_linux_select_queue_depth() 1289 cmd->device->lun, cmd); [all …]
|
/linux-2.4.37.9/drivers/usb/gadget/ |
D | file_storage.c | 276 #define LDBG(lun,fmt,args...) \ argument 277 yprintk(lun , KERN_DEBUG , fmt , ## args) 283 #define LDBG(lun,fmt,args...) \ argument 297 #define VLDBG(lun,fmt,args...) \ argument 303 #define LERROR(lun,fmt,args...) \ argument 304 yprintk(lun , KERN_ERR , fmt , ## args) 308 #define LWARN(lun,fmt,args...) \ argument 309 yprintk(lun , KERN_WARNING , fmt , ## args) 313 #define LINFO(lun,fmt,args...) \ argument 314 yprintk(lun , KERN_INFO , fmt , ## args) [all …]
|
/linux-2.4.37.9/drivers/block/paride/ |
D | pf.c | 282 int lun; member 334 PF.lun = DU[D_LUN]; in pf_init_units() 556 #define LUN (0x20*PF.lun) 765 PF.name,PF.drive,PF.lun,bs); in pf_get_capacity() 784 PF.name,PF.drive,PF.lun,dt); in pf_identify() 800 PF.name,mf,id,ms[PF.drive],PF.lun,dt); in pf_identify() 820 if (PF.lun != -1) return pf_identify(unit); in pf_probe() 821 else for (PF.lun=0;PF.lun<8;PF.lun++) in pf_probe() 826 if (PF.lun != -1) return pf_identify(unit); in pf_probe() 827 for (PF.lun=0;PF.lun<8;PF.lun++) in pf_probe()
|