Lines Matching refs:target
250 return '0' + info->SCpnt->target; in fas216_target()
256 fas216_do_log(FAS216_Info *info, char target, char *fmt, va_list ap) in fas216_do_log() argument
261 printk("scsi%d.%c: %s", info->host->host_no, target, buf); in fas216_do_log()
273 fas216_do_log(info, '0' + SCpnt->target, fmt, args); in fas216_log_command()
281 fas216_log_target(FAS216_Info *info, int level, int target, char *fmt, ...) in fas216_log_target() argument
288 if (target < 0) in fas216_log_target()
289 target = 'H'; in fas216_log_target()
291 target += '0'; in fas216_log_target()
294 fas216_do_log(info, target, fmt, args); in fas216_log_target()
435 static void fas216_set_sync(FAS216_Info *info, int target) in fas216_set_sync() argument
439 fas216_writeb(info, REG_SOF, info->device[target].sof); in fas216_set_sync()
440 fas216_writeb(info, REG_STP, info->device[target].stp); in fas216_set_sync()
443 if (info->device[target].period >= (200 / 4)) in fas216_set_sync()
482 struct fas216_device *dev = &info->device[info->SCpnt->target]; in fas216_handlesync()
565 fas216_set_sync(info, info->SCpnt->target); in fas216_handlesync()
578 fas216_set_sync(info, info->SCpnt->target); in fas216_handlesync()
613 info->host->host_no, '0' + info->SCpnt->target); in fas216_updateptrs()
736 if (info->device[info->SCpnt->target].sof) in fas216_transfer()
907 unsigned char target, lun, tag; in fas216_reselected_intr() local
937 target = msg[0] & ~(1 << info->host->this_id); in fas216_reselected_intr()
938 target = ffs(target) - 1; in fas216_reselected_intr()
950 fas216_writeb(info, REG_SDID, target); in fas216_reselected_intr()
951 fas216_set_sync(info, target); in fas216_reselected_intr()
955 target, lun, tag); in fas216_reselected_intr()
959 if (info->SCpnt->target == target && in fas216_reselected_intr()
971 target, lun, tag); in fas216_reselected_intr()
1432 if (info->device[info->SCpnt->target].parity_check) { in fas216_busservice_intr()
1437 info->device[info->SCpnt->target].parity_check = 0; in fas216_busservice_intr()
1438 info->device[info->SCpnt->target].parity_enabled = 1; in fas216_busservice_intr()
1639 fas216_writeb(info, REG_SDID, BUSID(SCpnt->target)); in __fas216_start_command()
1643 fas216_set_sync(info, SCpnt->target); in __fas216_start_command()
1653 info->host->host_no, '0' + SCpnt->target); in __fas216_start_command()
1708 static int parity_test(FAS216_Info *info, int target) in parity_test() argument
1711 if (target == 3) { in parity_test()
1712 info->device[target].parity_check = 0; in parity_test()
1716 return info->device[target].parity_check; in parity_test()
1731 if (parity_test(info, SCpnt->target)) in fas216_start_command()
1740 info->device[SCpnt->target].disconnect_ok; in fas216_start_command()
1756 if ((info->device[SCpnt->target].sync_state == neg_wait || in fas216_start_command()
1757 info->device[SCpnt->target].sync_state == neg_complete) && in fas216_start_command()
1760 info->device[SCpnt->target].sync_state = neg_inprogress; in fas216_start_command()
1787 set_bit(SCpnt->target * 8 + SCpnt->lun, info->busyluns); in fas216_allocate_tag()
1832 fas216_writeb(info, REG_SDID, BUSID(SCpnt->target)); in fas216_do_bus_device_reset()
1836 fas216_set_sync(info, SCpnt->target); in fas216_do_bus_device_reset()
1911 info->SCpnt->target); in fas216_kick()
1963 fas216_log_target(info, LOG_CONNECT, SCpnt->target, in fas216_rq_sns_done()
2043 info->host->host_no, '0' + SCpnt->target, in fas216_std_done()
2067 fas216_log_target(info, LOG_CONNECT, SCpnt->target, in fas216_std_done()
2093 info->host->host_no, '0' + SCpnt->target); in fas216_std_done()
2132 info->host->host_no, '0' + SCpnt->target, in fas216_done()
2143 info->device[SCpnt->target].parity_check = 0; in fas216_done()
2144 clear_bit(SCpnt->target * 8 + SCpnt->lun, info->busyluns); in fas216_done()
2362 clear_bit(SCpnt->target * 8 + SCpnt->lun, info->busyluns); in fas216_find_command()
2440 int i, res = FAILED, target = SCpnt->target; in fas216_eh_device_reset() local
2442 fas216_log(info, LOG_ERROR, "device reset for target %d", target); in fas216_eh_device_reset()
2454 info->SCpnt->target == SCpnt->target) in fas216_eh_device_reset()
2463 queue_remove_all_target(&info->queues.issue, target); in fas216_eh_device_reset()
2464 queue_remove_all_target(&info->queues.disconnected, target); in fas216_eh_device_reset()
2465 if (info->origSCpnt && info->origSCpnt->target == target) in fas216_eh_device_reset()
2467 if (info->reqSCpnt && info->reqSCpnt->target == target) in fas216_eh_device_reset()
2470 clear_bit(target * 8 + i, info->busyluns); in fas216_eh_device_reset()
2557 if (info->origSCpnt && info->origSCpnt->target == SDpnt->id) in fas216_eh_bus_reset()
2559 if (info->reqSCpnt && info->reqSCpnt->target == SDpnt->id) in fas216_eh_bus_reset()
2624 info->host->host_no, '0' + SCpnt->target, __FUNCTION__); in fas216_eh_host_reset()