/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/usb/storage/ |
H A D | dpcm.c | 51 US_DEBUGP("dpcm_transport: LUN=%d\n", srb->lun); 53 switch(srb->lun) { 71 srb->lun = 0; us->srb->lun = 0; 73 srb->lun = 1; us->srb->lun = 1; 79 US_DEBUGP("dpcm_transport: Invalid LUN %d\n", srb->lun);
|
H A D | datafab.h | 32 char lun; // used for dual-slot readers member in struct:datafab_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/acorn/scsi/ |
H A D | queue.h | 66 * Function: Scsi_Cmnd *queue_remove_tgtluntag (queue, target, lun, tag) 67 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag 70 * lun - lun on device 74 extern Scsi_Cmnd *queue_remove_tgtluntag (Queue_t *queue, int target, int lun, int tag); 77 * Function: int queue_probetgtlun (queue, target, lun) 79 * target/lun. 82 * lun - lun on target 85 extern int queue_probetgtlun (Queue_t *queue, int target, int lun); [all...] |
H A D | queue.c | 161 * exclude - bit array of target&lun which is busy 173 if (!test_bit(q->SCpnt->target * 8 + q->SCpnt->lun, exclude)) { 203 * Function: Scsi_Cmnd *queue_remove_tgtluntag (queue, target, lun, tag) 204 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag 207 * lun - lun on device 211 Scsi_Cmnd *queue_remove_tgtluntag (Queue_t *queue, int target, int lun, int tag) argument 220 if (q->SCpnt->target == target && q->SCpnt->lun == lun && 232 * Function: int queue_probetgtlun (queue, target, lun) 240 queue_probetgtlun(Queue_t *queue, int target, int lun) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/block/ |
H A D | acsi.c | 113 unsigned lun; /* LUN in target controller */ member in struct:acsi_info_struct 276 #define CMDSET_TARG_LUN(cmd,targ,lun) \ 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 ); 589 static int acsi_reqsense( char *buffer, int targ, int lun) 592 CMDSET_TARG_LUN( reqsense_cmd, targ, lun); 791 acsi_info[dev].lun)) 588 acsi_reqsense( char *buffer, int targ, int lun) argument 951 { unsigned block, dev, target, lun, nsect; local 1288 acsi_change_blk_size( int target, int lun) argument 1308 acsi_mode_sense( int target, int lun, SENSE_DATA *sd ) argument 1661 int i, target, lun; local [all...] |
H A D | cciss_scsi.h | 87 int bus, target, lun; /* as presented to the OS */ member in struct:cciss_scsi_dev_t
|
H A D | acsi_slm.c | 100 #define CMDSET_TARG_LUN(cmd,targ,lun) \ 103 cmd[1] = (cmd[1] & ~0xe0) | (lun)<<5; \ 120 unsigned lun; /* LUN in target controller */ member in struct:slm 407 CMDSET_TARG_LUN( slmprint_cmd, sip->target, sip->lun ); 819 CMDSET_TARG_LUN( slmreqsense_cmd, sip->target, sip->lun ); 840 CMDSET_TARG_LUN( slmmsense_cmd, sip->target, sip->lun ); 899 int attach_slm( int target, int lun ) 911 CMDSET_TARG_LUN( slminquiry_cmd, target, lun ); 940 slm_info[N_SLM_Printers].lun = lun; [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/ |
H A D | 53c700.c | 381 NCR_700_identify(int can_disconnect, __u8 lun) argument 385 (lun & NCR_700_LUN_MASK); 516 hash = hash_ITLQ(slot->cmnd->target, slot->cmnd->lun, 531 hash = hash_ITL(slot->cmnd->target, slot->cmnd->lun); 573 find_ITL_Nexus(struct NCR_700_Host_Parameters *hostdata, __u8 pun, __u8 lun) argument 575 int hash = hash_ITL(pun, lun); 578 slot->cmnd->lun == lun)) 585 __u8 lun, __u8 tag) 587 int hash = hash_ITLQ(pun, lun, ta 584 find_ITLQ_Nexus(struct NCR_700_Host_Parameters *hostdata, __u8 pun, __u8 lun, __u8 tag) argument 859 __u8 pun = 0xff, lun = 0xff; local 940 __u8 pun = 0xff, lun = 0xff; local 1022 __u8 pun = 0xff, lun=0xff; local 1150 __u8 lun; local 1537 __u8 pun = 0xff, lun = 0xff; local [all...] |
H A D | scsi_scan.c | 43 unsigned int lun, int lun0_scsi_level, 64 /* The following devices are known not to tolerate a lun != 0 scan for 68 {"Aashima", "IMAGERY 2400SP", "1.03", BLIST_NOLUN}, /* Locks up if polled for lun != 0 */ 69 {"CHINON", "CD-ROM CDS-431", "H42", BLIST_NOLUN}, /* Locks up if polled for lun != 0 */ 70 {"CHINON", "CD-ROM CDS-535", "Q14", BLIST_NOLUN}, /* Locks up if polled for lun != 0 */ 71 {"DENON", "DRD-25X", "V", BLIST_NOLUN}, /* Locks up if probed for lun != 0 */ 72 {"HITACHI", "DK312C", "CM81", BLIST_NOLUN}, /* Responds to all lun - dtg */ 73 {"HITACHI", "DK314C", "CR21", BLIST_NOLUN}, /* responds to all lun */ 80 {"MEDIAVIS", "RENO CD-ROMX2A", "2.03", BLIST_NOLUN}, /*Responds to all lun */ 82 {"PHILIPS", "PCA80SC", "V4-2", BLIST_NOLUN}, /* Responds to all lun */ 305 unsigned int lun; local 517 scan_scsis_single(unsigned int channel, unsigned int dev, unsigned int lun, int lun0_scsi_level, unsigned int *max_dev_lun, unsigned int *sparse_lun, Scsi_Device ** SDpnt2, struct Scsi_Host *shpnt, char *scsi_result) argument [all...] |
H A D | ibmmca.c | 238 done dynamically and the ldn <-> pun,lun maps can be looked-up at boottime 329 int total_scsi_devices; /* number of physical pun,lun */ 340 /* array to convert (pun, lun) into logical device number: */ 684 if ((cmd->target == TIMEOUT_PUN)&&(cmd->lun == TIMEOUT_LUN)) { 685 printk("IBM MCA SCSI: Ignoring interrupt from pun=%x, lun=%x.\n", 686 cmd->target, cmd->lun); 873 unsigned int lun, unsigned int ldn, 884 imm_cmd |= (unsigned long)((lun & 7) << 24); 893 imm_cmd |= (unsigned long)((lun & 7) << 24); 1097 int id, lun, ld local 872 immediate_assign(int host_index, unsigned int pun, unsigned int lun, unsigned int ldn, unsigned int operation) argument 1862 int id,lun; local 2452 int i,id,lun,host_index; local [all...] |
H A D | atari_NCR5380.c | 229 int target, lun; local 236 for( lun = 0; lun < 8; ++lun ) { 237 ta = &TagAlloc[target][lun]; 261 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) 266 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= 267 TagAlloc[cmd->target][cmd->lun].queue_size ) { 268 TAG_PRINTK( "scsi%d: target %d lun %d: no free tags\n", 269 H_NO(cmd), cmd->target, cmd->lun ); 338 int target, lun; local 2327 unsigned char lun, phase; local [all...] |
H A D | mac_NCR5380.c | 247 int target, lun; local 254 for( lun = 0; lun < 8; ++lun ) { 255 ta = &TagAlloc[target][lun]; 279 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) 284 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= 285 TagAlloc[cmd->target][cmd->lun].queue_size ) { 286 TAG_PRINTK( "scsi%d: target %d lun %d: no free tags\n", 287 H_NO(cmd), cmd->target, cmd->lun ); 356 int target, lun; local 2427 unsigned char lun, phase; local [all...] |
H A D | sun3_NCR5380.c | 231 int target, lun; local 238 for( lun = 0; lun < 8; ++lun ) { 239 ta = &TagAlloc[target][lun]; 263 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) 268 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= 269 TagAlloc[cmd->target][cmd->lun].queue_size ) { 270 TAG_PRINTK( "scsi%d: target %d lun %d: no free tags\n", 271 H_NO(cmd), cmd->target, cmd->lun ); 340 int target, lun; local 2316 unsigned char lun; local [all...] |
H A D | gdth_ioctl.h | 57 unchar lun; /* LUN */ member in struct:__anon2405::__anon2406::__anon2411 104 unchar lun; /* LUN */ member in struct:__anon2413::__anon2414::__anon2421
|
H A D | sr_vendor.c | 120 (scsi_CDs[minor].device->lun << 5) : 0; 171 (scsi_CDs[minor].device->lun << 5) : 0; 197 (scsi_CDs[minor].device->lun << 5) : 0; 224 (scsi_CDs[minor].device->lun << 5) : 0; 249 (scsi_CDs[minor].device->lun << 5) : 0; 263 (scsi_CDs[minor].device->lun << 5) : 0;
|
H A D | hosts.h | 255 * command block per lun, 2 for two, etc. Do not set this to 0. 309 uint lun; member in struct:Scsi_Host_hot_queue 379 * or lun (i.e. 8 for normal systems). 569 extern void scsi_rescan_drive(Scsi_Host_Template * tpnt, uint channel, uint id, uint lun); 570 extern void scsi_remove_drive(Scsi_Host_Template * tpnt, uint channel, uint id, uint lun);
|
H A D | wd33c93.c | 405 * for a currently non-busy target/lun. 429 * for an idle target/lun. 435 if (!(hostdata->busy[cmd->target] & (1 << cmd->lun))) 485 * for a different target/lun. In this case, the other commands 506 if ((prev->target != cmd->target) || (prev->lun != cmd->lun)) { 526 write_wd33c93(regs, WD_TARGET_LUN, cmd->lun); 528 hostdata->busy[cmd->target] |= (1 << cmd->lun); 745 uchar asr, sr, phs, id, lun, *ucp, msg; local 804 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); [all...] |
H A 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) argument 822 while (pDCB->TargetID != id || pDCB->TargetLUN != lun) 1164 pDCB = dc390_findDCB (pACB, pcmd->target, pcmd->lun); 1208 cmd->cmnd[0],cmd->target,cmd->lun,cmd->pid);) 1226 (cmd->lun >= pACB->pScsiHost->max_lun) ) 1228 /* printk ("DC390: Ignore target %d lun %d\n", 1229 cmd->target, cmd->lun); */ 1237 !(pACB->DCBmap[cmd->target] & (1 << cmd->lun)) ) 1241 dc390_initDCB( pACB, &pDCB, cmd->target, cmd->lun ); 2477 int dev, id, lun; char* pdec; local 2681 int id, lun; local 2696 int id, lun; local [all...] |
H A D | in2000.c | 418 * for a currently non-busy target/lun. 445 * for an idle target/lun. 451 if (!(hostdata->busy[cmd->target] & (1 << cmd->lun))) 501 * for a different target/lun. In this case, the other commands 522 if ((prev->target != cmd->target) || (prev->lun != cmd->lun)) { 541 write_3393(hostdata,WD_TARGET_LUN, cmd->lun); 543 hostdata->busy[cmd->target] |= (1 << cmd->lun); 825 uchar asr, sr, phs, id, lun, *ucp, msg; local 1075 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/aic7xxx/ |
H A D | scsi_message.h | 47 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
|
H A D | aic7xxx_proc.c | 227 int lun; local 244 for (lun = 0; lun < AHC_NUM_LUNS; lun++) { 247 dev = targ->devices[lun]; 260 dev->target->channel + 'A', dev->target->target, dev->lun);
|
H A D | aic7xxx.h | 96 ((scb)->hscb->lun) 105 #define BUILD_TCL(scsiid, lun) \ 106 ((lun) | (((scsiid) & TID) << 4)) 463 /*26*/ uint8_t lun; member in struct:hardware_scb 640 * Per enabled lun target mode state. 688 * Pointers to lun target state as well as sync/wide negotiation information 921 * Target mode related state kept on a per enabled lun basis. 1052 u_int lun; member in struct:ahc_devinfo 1111 int target, char channel, int lun, 1152 char channel, int lun, u_in [all...] |
H A D | aic7xxx_osm.c | 472 u_int target, u_int lun, int alloc); 492 u_int lun, int alloc) 510 dev = targ->devices[lun]; 512 dev = ahc_linux_alloc_device(ahc, targ, lun); 1425 devinfo->lun, /*alloc*/FALSE); 1466 int lun, u_int tag, role_t role, uint32_t status) 1494 if (lun != CAM_LUN_WILDCARD) { 1495 clun = lun; 1602 device->id, device->lun, 1613 devinfo.target, devinfo.lun, tag 491 ahc_linux_get_device(struct ahc_softc *ahc, u_int channel, u_int target, u_int lun, int alloc) argument 1465 ahc_platform_abort_scbs(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, role_t role, uint32_t status) argument 1933 ahc_linux_alloc_device(struct ahc_softc *ahc, struct ahc_linux_target *targ, u_int lun) argument 2009 ahc_send_async(struct ahc_softc *ahc, char channel, u_int target, u_int lun, ac_code code, void *arg) argument 2996 int lun; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/aic7xxx_old/ |
H A D | scsi_message.h | 30 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/message/i2o/ |
H A D | i2o_scsi.c | 14 * o Each (bus,lun) is a logical device in I2O. We keep a map 297 static int i2o_find_lun(struct i2o_controller *c, struct i2o_device *d, int *target, int *lun) argument 309 *lun=reply[1]; 311 dprintk(("SCSI (%d,%d)\n", *target, *lun)); 319 int lun; local 326 for(lun=0;lun<8;lun++) 327 h->task[target][lun] = -1; 348 if(i2o_find_lun(c, unit, &target, &lun) [all...] |