Lines Matching refs:target
304 static int i2o_find_lun(struct i2o_controller *c, struct i2o_device *d, int *target, int *lun) in i2o_find_lun() argument
311 *target=reply[0]; in i2o_find_lun()
318 dprintk(("SCSI (%d,%d)\n", *target, *lun)); in i2o_find_lun()
327 int target; in i2o_scsi_init() local
332 for(target=0;target<16;target++) 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()
532 if(SCpnt->target > 15) in i2o_scsi_queuecommand()
534 printk(KERN_ERR "i2o_scsi: Wild target %d.\n", SCpnt->target); in i2o_scsi_queuecommand()
538 tid = hostdata->task[SCpnt->target][SCpnt->lun]; in i2o_scsi_queuecommand()
626 if((jiffies - hostdata->tagclock[SCpnt->target][SCpnt->lun]) > (5*HZ)) in i2o_scsi_queuecommand()
629 hostdata->tagclock[SCpnt->target][SCpnt->lun]=jiffies; in i2o_scsi_queuecommand()
792 tid = hostdata->task[SCpnt->target][SCpnt->lun]; in i2o_scsi_abort()