Lines Matching refs:target
346 int target, lun; in init_tags() local
352 for( target = 0; target < 8; ++target ) { 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()
420 H_NO(cmd), cmd->tag, cmd->target, cmd->lun, in cmd_get_tag()
435 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in cmd_free_tag()
437 H_NO(cmd), cmd->target, cmd->lun ); in cmd_free_tag()
444 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_free_tag()
448 H_NO(cmd), cmd->tag, cmd->target, cmd->lun ); in cmd_free_tag()
455 int target, lun; in free_all_tags() local
461 for( target = 0; target < 8; ++target ) { in free_all_tags()
463 ta = &TagAlloc[target][lun]; in free_all_tags()
846 H_NO(cmd), cmd->target, cmd->lun); in lprint_Scsi_Cmnd()
973 hostdata->time_write[cmd->target] -= (jiffies - hostdata->timebase); in NCR5380_queue_command()
974 hostdata->bytes_write[cmd->target] += cmd->request_bufflen; in NCR5380_queue_command()
980 hostdata->time_read[cmd->target] -= (jiffies - hostdata->timebase); in NCR5380_queue_command()
981 hostdata->bytes_read[cmd->target] += cmd->request_bufflen; in NCR5380_queue_command()
1107 tmp, tmp->target, hostdata->busy[tmp->target], in NCR5380_main()
1115 !(hostdata->busy[tmp->target] & (1 << tmp->lun)) in NCR5380_main()
1139 HOSTNO, tmp->target, tmp->lun); in NCR5380_main()
1369 hostdata->time_write[cmd->target] += (jiffies - hostdata->timebase); in collect_stats()
1376 hostdata->time_read[cmd->target] += (jiffies - hostdata->timebase); in collect_stats()
1539 NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); in NCR5380_select()
1592 SEL_PRINTK("scsi%d: selecting target %d\n", HOSTNO, cmd->target); in NCR5380_select()
1643 if (hostdata->targets_present & (1 << cmd->target)) { in NCR5380_select()
1665 hostdata->targets_present |= (1 << cmd->target); in NCR5380_select()
1686 HOSTNO, cmd->target); in NCR5380_select()
1709 hostdata->busy[cmd->target] |= (1 << cmd->lun); in NCR5380_select()
2248 cmd->target, cmd->lun); in NCR5380_information_transfer()
2308 "complete.\n", HOSTNO, cmd->target, cmd->lun); in NCR5380_information_transfer()
2321 HOSTNO, cmd->target, cmd->lun); in NCR5380_information_transfer()
2334 HOSTNO, cmd->target, cmd->lun); in NCR5380_information_transfer()
2348 "completed\n", HOSTNO, cmd->target, cmd->lun); in NCR5380_information_transfer()
2360 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in NCR5380_information_transfer()
2363 HOSTNO, cmd->target, cmd->lun, in NCR5380_information_transfer()
2369 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in NCR5380_information_transfer()
2460 hostdata->busy[cmd->target] |= (1 << cmd->lun); in NCR5380_information_transfer()
2465 HOSTNO, cmd->target, cmd->lun); in NCR5380_information_transfer()
2483 cmd->target, cmd->lun); in NCR5380_information_transfer()
2582 HOSTNO, tmp, cmd->target, cmd->lun); in NCR5380_information_transfer()
2588 cmd->target, cmd->lun); in NCR5380_information_transfer()
2606 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in NCR5380_information_transfer()
2741 if ((target_mask == (1 << tmp->target)) && (lun == tmp->lun) in NCR5380_reselect()
2782 HOSTNO, tmp->target, tmp->lun, tmp->tag); in NCR5380_reselect()
2859 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in NCR5380_abort()
2965 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in NCR5380_abort()