• Home
  • Raw
  • Download

Lines Matching refs:target

453 	unsigned char	target  = scmd_id(SCpnt);  in nsp32_selection_autopara()  local
522 param->target_id = BIT(host_id) | BIT(target); in nsp32_selection_autopara()
585 unsigned char target = scmd_id(SCpnt); in nsp32_selection_autoscsi() local
632 BIT(host_id) | BIT(target)); in nsp32_selection_autoscsi()
844 data->cur_target = &(data->target[newid]); in nsp32_reselection()
911 nsp32_target *target; in nsp32_queuecommand_lck() local
985 target = &data->target[scmd_id(SCpnt)]; in nsp32_queuecommand_lck()
986 data->cur_target = target; in nsp32_queuecommand_lck()
988 if (!(target->sync_flag & (SDTR_DONE | SDTR_INITIATOR | SDTR_TARGET))) { in nsp32_queuecommand_lck()
992 nsp32_set_max_sync(data, target, &period, &offset); in nsp32_queuecommand_lck()
994 target->sync_flag |= SDTR_INITIATOR; in nsp32_queuecommand_lck()
996 nsp32_set_async(data, target); in nsp32_queuecommand_lck()
997 target->sync_flag |= SDTR_DONE; in nsp32_queuecommand_lck()
1002 target->limit_entry, period, offset); in nsp32_queuecommand_lck()
1003 } else if (target->sync_flag & SDTR_INITIATOR) { in nsp32_queuecommand_lck()
1009 nsp32_set_async(data, target); in nsp32_queuecommand_lck()
1010 target->sync_flag &= ~SDTR_INITIATOR; in nsp32_queuecommand_lck()
1011 target->sync_flag |= SDTR_DONE; in nsp32_queuecommand_lck()
1015 } else if (target->sync_flag & SDTR_TARGET) { in nsp32_queuecommand_lck()
1021 nsp32_set_async(data, target); in nsp32_queuecommand_lck()
1022 target->sync_flag &= ~SDTR_TARGET; in nsp32_queuecommand_lck()
1023 target->sync_flag |= SDTR_DONE; in nsp32_queuecommand_lck()
1031 SCpnt->device->id, target->sync_flag, target->syncreg, in nsp32_queuecommand_lck()
1032 target->ackwidth); in nsp32_queuecommand_lck()
1492 for (id = 0; id < ARRAY_SIZE(data->target); id++) { in nsp32_show_info()
1501 if (data->target[id].sync_flag == SDTR_DONE) { in nsp32_show_info()
1502 if (data->target[id].period == 0 && in nsp32_show_info()
1503 data->target[id].offset == ASYNC_OFFSET ) { in nsp32_show_info()
1512 if (data->target[id].period != 0) { in nsp32_show_info()
1514 speed = 1000000 / (data->target[id].period * 4); in nsp32_show_info()
1519 data->target[id].offset in nsp32_show_info()
2233 nsp32_target *target = data->cur_target; in nsp32_analyze_sdtr() local
2247 if (target->sync_flag & SDTR_INITIATOR) { in nsp32_analyze_sdtr()
2254 target->sync_flag &= ~SDTR_INITIATOR; in nsp32_analyze_sdtr()
2255 target->sync_flag |= SDTR_DONE; in nsp32_analyze_sdtr()
2294 entry = nsp32_search_period_entry(data, target, get_period); in nsp32_analyze_sdtr()
2307 nsp32_set_sync_entry(data, target, entry, get_offset); in nsp32_analyze_sdtr()
2312 target->sync_flag |= SDTR_INITIATOR; in nsp32_analyze_sdtr()
2325 entry = nsp32_search_period_entry(data, target, get_period); in nsp32_analyze_sdtr()
2328 nsp32_set_async(data, target); in nsp32_analyze_sdtr()
2331 nsp32_set_sync_entry(data, target, entry, get_offset); in nsp32_analyze_sdtr()
2336 target->period = get_period; in nsp32_analyze_sdtr()
2348 nsp32_set_async(data, target); /* set as ASYNC transfer mode */ in nsp32_analyze_sdtr()
2350 target->period = 0; in nsp32_analyze_sdtr()
2361 nsp32_target *target, in nsp32_search_period_entry() argument
2366 if (target->limit_entry >= data->syncnum) { in nsp32_search_period_entry()
2368 target->limit_entry = 0; in nsp32_search_period_entry()
2371 for (i = target->limit_entry; i < data->syncnum; i++) { in nsp32_search_period_entry()
2393 static void nsp32_set_async(nsp32_hw_data *data, nsp32_target *target) in nsp32_set_async() argument
2395 unsigned char period = data->synct[target->limit_entry].period_num; in nsp32_set_async()
2397 target->offset = ASYNC_OFFSET; in nsp32_set_async()
2398 target->period = 0; in nsp32_set_async()
2399 target->syncreg = TO_SYNCREG(period, ASYNC_OFFSET); in nsp32_set_async()
2400 target->ackwidth = 0; in nsp32_set_async()
2401 target->sample_reg = 0; in nsp32_set_async()
2411 nsp32_target *target, in nsp32_set_max_sync() argument
2417 period_num = data->synct[target->limit_entry].period_num; in nsp32_set_max_sync()
2418 *period = data->synct[target->limit_entry].start_period; in nsp32_set_max_sync()
2419 ackwidth = data->synct[target->limit_entry].ackwidth; in nsp32_set_max_sync()
2422 target->syncreg = TO_SYNCREG(period_num, *offset); in nsp32_set_max_sync()
2423 target->ackwidth = ackwidth; in nsp32_set_max_sync()
2424 target->offset = *offset; in nsp32_set_max_sync()
2425 target->sample_reg = 0; /* disable SREQ sampling */ in nsp32_set_max_sync()
2433 nsp32_target *target, in nsp32_set_sync_entry() argument
2443 target->syncreg = TO_SYNCREG(period, offset); in nsp32_set_sync_entry()
2444 target->ackwidth = ackwidth; in nsp32_set_sync_entry()
2445 target->offset = offset; in nsp32_set_sync_entry()
2446 target->sample_reg = sample_rate | SAMPLING_ENABLE; in nsp32_set_sync_entry()
2683 for (i = 0; i < ARRAY_SIZE(data->target); i++) { in nsp32_detect()
2684 nsp32_target *target = &(data->target[i]); in nsp32_detect() local
2686 target->limit_entry = 0; in nsp32_detect()
2687 target->sync_flag = 0; in nsp32_detect()
2688 nsp32_set_async(data, target); in nsp32_detect()
2865 for (i = 0; i < ARRAY_SIZE(data->target); i++) { in nsp32_do_bus_reset()
2866 nsp32_target *target = &data->target[i]; in nsp32_do_bus_reset() local
2868 target->sync_flag = 0; in nsp32_do_bus_reset()
2869 nsp32_set_async(data, target); in nsp32_do_bus_reset()
2994 nsp32_target *target; in nsp32_getprom_at24() local
3039 target = &data->target[i]; in nsp32_getprom_at24()
3041 target->limit_entry = 0; /* set as ULTRA20M */ in nsp32_getprom_at24()
3044 entry = nsp32_search_period_entry(data, target, ret); in nsp32_getprom_at24()
3049 target->limit_entry = entry; in nsp32_getprom_at24()
3080 nsp32_target *target; in nsp32_getprom_c16() local
3094 target = &data->target[i]; in nsp32_getprom_c16()
3113 entry = nsp32_search_period_entry(data, target, val); in nsp32_getprom_c16()
3118 target->limit_entry = entry; in nsp32_getprom_c16()