Lines Matching defs:lun

328     int target, lun;
335 for( lun = 0; lun < 8; ++lun ) {
336 ta = &TagAlloc[target][lun];
360 if (hostdata->busy[cmd->device->id] & (1 << cmd->device->lun))
365 if (TagAlloc[cmd->device->id][cmd->device->lun].nr_allocated >=
366 TagAlloc[cmd->device->id][cmd->device->lun].queue_size ) {
367 TAG_PRINTK( "scsi%d: target %d lun %d: no free tags\n",
368 H_NO(cmd), cmd->device->id, cmd->device->lun );
390 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
391 TAG_PRINTK( "scsi%d: target %d lun %d now allocated by untagged "
392 "command\n", H_NO(cmd), cmd->device->id, cmd->device->lun );
395 TAG_ALLOC *ta = &TagAlloc[cmd->device->id][cmd->device->lun];
400 TAG_PRINTK( "scsi%d: using tag %d for target %d lun %d "
402 H_NO(cmd), cmd->tag, cmd->device->id, cmd->device->lun,
417 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);
418 TAG_PRINTK( "scsi%d: target %d lun %d untagged cmd finished\n",
419 H_NO(cmd), cmd->device->id, cmd->device->lun );
426 TAG_ALLOC *ta = &TagAlloc[cmd->device->id][cmd->device->lun];
429 TAG_PRINTK( "scsi%d: freed tag %d for target %d lun %d\n",
430 H_NO(cmd), cmd->tag, cmd->device->id, cmd->device->lun );
437 int target, lun;
444 for( lun = 0; lun < 8; ++lun ) {
445 ta = &TagAlloc[target][lun];
768 SPRINTF("scsi%d: destination target %d, lun %d\n",
769 H_NO(cmd), cmd->device->id, cmd->device->lun);
1044 printk("MAIN tmp=%p target=%d busy=%d lun=%d\n",
1046 tmp->lun);
1054 !(hostdata->busy[tmp->device->id] & (1 << tmp->device->lun))
1078 "lun %d removed from issue_queue\n",
1079 HOSTNO, tmp->target, tmp->lun);
1111 } /* if target/lun/target queue is not busy */
1629 tmp[0] = IDENTIFY(1, cmd->device->lun);
1651 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
2060 "lun %d to slow handshake\n", HOSTNO,
2061 cmd->device->id, cmd->device->lun);
2118 LNK_PRINTK("scsi%d: target %d lun %d linked command "
2119 "complete.\n", HOSTNO, cmd->device->id, cmd->device->lun);
2130 printk(KERN_NOTICE "scsi%d: target %d lun %d "
2132 HOSTNO, cmd->device->id, cmd->device->lun);
2143 LNK_PRINTK("scsi%d: target %d lun %d linked request "
2145 HOSTNO, cmd->device->id, cmd->device->lun);
2158 QU_PRINTK("scsi%d: command for target %d, lun %d "
2159 "completed\n", HOSTNO, cmd->device->id, cmd->device->lun);
2171 TAG_ALLOC *ta = &TagAlloc[cmd->device->id][cmd->device->lun];
2172 TAG_PRINTK("scsi%d: target %d lun %d returned "
2174 HOSTNO, cmd->device->id, cmd->device->lun,
2180 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);
2266 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
2268 TAG_PRINTK("scsi%d: target %d lun %d rejected "
2271 HOSTNO, cmd->device->id, cmd->device->lun);
2285 QU_PRINTK("scsi%d: command for target %d lun %d was "
2288 cmd->device->id, cmd->device->lun);
2389 "message %02x from target %d, lun %d\n",
2390 HOSTNO, tmp, cmd->device->id, cmd->device->lun);
2394 "code %02x, length %d from target %d, lun %d\n",
2396 cmd->device->id, cmd->device->lun);
2414 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);
2470 unsigned char lun;
2524 lun = (msg[0] & 0x07);
2533 if ((target_mask == (1 << tmp->device->id)) && (lun == tmp->device->lun)
2551 printk(KERN_WARNING "scsi%d: warning: target bitmask %02x lun %d "
2556 HOSTNO, target_mask, lun
2610 TAG_PRINTK("scsi%d: target mask %02x, lun %d sent tag %d at "
2611 "reselection\n", HOSTNO, target_mask, lun, tag);
2616 RSL_PRINTK("scsi%d: nexus established, target = %d, lun = %d, tag = %d\n",
2617 HOSTNO, tmp->target, tmp->lun, tmp->tag);
2690 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);
2795 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);