Lines Matching defs:tgt_id

1247 	int tgt_id, i;
1642 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++) {
1645 adapter->drvr_opts->qdepth[tgt_id] > 0)
1646 qdepth = adapter->drvr_opts->qdepth[tgt_id];
1647 adapter->qdepth[tgt_id] = qdepth;
1707 int tgt_id;
1757 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1758 syncstr[tgt_id] = ((!(sync_ok & (1 << tgt_id))) ? 'N' : (!(fast_ok & (1 << tgt_id)) ? 'S' : (!(ultra_ok & (1 << tgt_id)) ? 'F' : 'U')));
1770 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1771 widestr[tgt_id] = ((wide_ok & (1 << tgt_id)) ? 'Y' : 'N');
1781 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1782 discon_str[tgt_id] = ((discon_ok & (1 << tgt_id)) ? 'Y' : 'N');
1792 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1793 tagq_str[tgt_id] = ((tagq_ok & (1 << tgt_id)) ? 'Y' : 'N');
1808 for (tgt_id = 1; tgt_id < adapter->maxdev; tgt_id++)
1809 if (adapter->qdepth[tgt_id] != adapter->qdepth[0]) {
1907 int tgt_id;
1921 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++) {
1922 adapter->bdr_pend[tgt_id] = NULL;
1923 adapter->tgt_flags[tgt_id].tagq_active = false;
1924 adapter->tgt_flags[tgt_id].cmd_good = false;
1925 adapter->active_cmds[tgt_id] = 0;
1926 adapter->cmds_since_rst[tgt_id] = 0;
2027 int tgt_id;
2070 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2071 adapter->tgt_flags[tgt_id].tgt_exists =
2072 (installed_devs & (1 << tgt_id) ? true : false);
2087 for (tgt_id = 0; tgt_id < 8; tgt_id++)
2088 adapter->tgt_flags[tgt_id].tgt_exists =
2089 installed_devs0to7[tgt_id] != 0;
2099 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2100 adapter->sync_offset[tgt_id] = (tgt_id < 8 ? setupinfo.sync0to7[tgt_id].offset : setupinfo.sync8to15[tgt_id - 8].offset);
2102 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2103 adapter->tgt_flags[tgt_id].wide_active = (tgt_id < 8 ? (setupinfo.wide_tx_active0to7 & (1 << tgt_id) ? true : false) : (setupinfo.wide_tx_active8to15 & (1 << (tgt_id - 8)) ? true : false));
2120 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2121 adapter->sync_period[tgt_id] = sync_period[tgt_id];
2123 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2124 if (setupinfo.sync0to7[tgt_id].offset > 0)
2125 adapter->sync_period[tgt_id] = 20 + 5 * setupinfo.sync0to7[tgt_id].tx_period;
2166 int tgt_id = dev->id;
2167 int qdepth = adapter->qdepth[tgt_id];
2169 if (adapter->tgt_flags[tgt_id].tagq_ok &&
2170 (adapter->tagq_ok & (1 << tgt_id))) {
2173 adapter->qdepth[tgt_id] = qdepth;
2176 adapter->tagq_ok &= ~(1 << tgt_id);
2178 adapter->qdepth[tgt_id] = qdepth;
2182 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2183 if (adapter->tgt_flags[tgt_id].tgt_exists)
2184 qdepth += adapter->qdepth[tgt_id];
2455 adapter->active_cmds[ccb->tgt_id]--;
2611 int tgt_id = ccb->tgt_id;
2613 blogic_warn("Bus Device Reset CCB #%ld to Target %d Completed\n", adapter, ccb->serial, tgt_id);
2614 blogic_inc_count(&adapter->tgt_stats[tgt_id].bdr_done);
2615 adapter->tgt_flags[tgt_id].tagq_active = false;
2616 adapter->cmds_since_rst[tgt_id] = 0;
2617 adapter->last_resetdone[tgt_id] = jiffies;
2648 ccb->tgt_id == tgt_id) {
2651 adapter->active_cmds[tgt_id]--;
2655 adapter->bdr_pend[tgt_id] = NULL;
2666 blogic_warn("CCB #%ld to Target %d Impossible State\n", adapter, ccb->serial, ccb->tgt_id);
2669 adapter->tgt_stats[ccb->tgt_id]
2671 adapter->tgt_flags[ccb->tgt_id]
2677 adapter, ccb->serial, ccb->tgt_id);
2678 blogic_inc_count(&adapter->tgt_stats[ccb->tgt_id].aborts_done);
2685 adapter->tgt_stats[ccb->tgt_id]
2690 "Adapter Status %02X Target Status %02X\n", adapter, ccb->serial, ccb->tgt_id, command->result, ccb->adapter_status, ccb->tgt_status);
2711 &adapter->tgt_flags[ccb->tgt_id];
2844 adapter->active_cmds[ccb->tgt_id]++;
2846 adapter->tgt_stats[ccb->tgt_id].cmds_tried++;
2888 int tgt_id = command->device->id;
2958 tgt_stats[tgt_id].read_cmds++;
2959 blogic_addcount(&tgt_stats[tgt_id].bytesread, buflen);
2960 blogic_incszbucket(tgt_stats[tgt_id].read_sz_buckets, buflen);
2965 tgt_stats[tgt_id].write_cmds++;
2966 blogic_addcount(&tgt_stats[tgt_id].byteswritten, buflen);
2967 blogic_incszbucket(tgt_stats[tgt_id].write_sz_buckets, buflen);
2976 ccb->tgt_id = tgt_id;
2996 if (adapter->cmds_since_rst[tgt_id]++ >= BLOGIC_MAX_TAG_DEPTH &&
2998 adapter->active_cmds[tgt_id] == 0
3000 (adapter->tagq_ok & (1 << tgt_id))) {
3003 adapter, tgt_id);
3022 if (adapter->active_cmds[tgt_id] == 0)
3023 adapter->last_seqpoint[tgt_id] = jiffies;
3025 adapter->last_seqpoint[tgt_id] + 4 * HZ)) {
3026 adapter->last_seqpoint[tgt_id] = jiffies;
3080 adapter->active_cmds[tgt_id]++;
3081 tgt_stats[tgt_id].cmds_tried++;
3106 int tgt_id = command->device->id;
3108 blogic_inc_count(&adapter->tgt_stats[tgt_id].aborts_request);
3118 blogic_warn("Unable to Abort Command to Target %d - No CCB Found\n", adapter, tgt_id);
3121 blogic_warn("Unable to Abort Command to Target %d - CCB Completed\n", adapter, tgt_id);
3124 blogic_warn("Unable to Abort Command to Target %d - CCB Reset\n", adapter, tgt_id);
3140 if (adapter->tgt_flags[tgt_id].tagq_active &&
3142 blogic_warn("Unable to Abort CCB #%ld to Target %d - Abort Tag Not Supported\n", adapter, ccb->serial, tgt_id);
3147 adapter, ccb->serial, tgt_id);
3148 blogic_inc_count(&adapter->tgt_stats[tgt_id].aborts_tried);
3151 blogic_warn("Unable to Abort CCB #%ld to Target %d - No Outgoing Mailboxes\n", adapter, ccb->serial, tgt_id);
3160 ccb->serial, tgt_id);
3161 blogic_inc_count(&adapter->tgt_stats[tgt_id].aborts_tried);
3184 int tgt_id;
3217 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++) {
3218 adapter->last_resettried[tgt_id] = jiffies;
3219 adapter->last_resetdone[tgt_id] = jiffies;
3521 int tgt_id;
3538 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++) {
3544 drvr_opts->qdepth[tgt_id] = qdepth;
3567 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++)
3568 drvr_opts->qdepth[tgt_id] = qdepth;
3582 for (tgt_id = 0, tgt_bit = 1;
3583 tgt_id < BLOGIC_MAXDEV;
3584 tgt_id++, tgt_bit <<= 1)
3598 tgt_id = BLOGIC_MAXDEV;
3648 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++)
3649 if (drvr_opts->qdepth[tgt_id] == 1) {
3650 unsigned short tgt_bit = 1 << tgt_id;