Lines Matching defs:tgt_id
1354 int tgt_id, i;
1767 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++) {
1770 adapter->drvr_opts->qdepth[tgt_id] > 0)
1771 qdepth = adapter->drvr_opts->qdepth[tgt_id];
1774 adapter->qdepth[tgt_id] = qdepth;
1837 int tgt_id;
1891 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1892 syncstr[tgt_id] = ((!(sync_ok & (1 << tgt_id))) ? 'N' : (!(fast_ok & (1 << tgt_id)) ? 'S' : (!(ultra_ok & (1 << tgt_id)) ? 'F' : 'U')));
1904 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1905 widestr[tgt_id] = ((wide_ok & (1 << tgt_id)) ? 'Y' : 'N');
1915 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1916 discon_str[tgt_id] = ((discon_ok & (1 << tgt_id)) ? 'Y' : 'N');
1926 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
1927 tagq_str[tgt_id] = ((tagq_ok & (1 << tgt_id)) ? 'Y' : 'N');
1942 for (tgt_id = 1; tgt_id < adapter->maxdev; tgt_id++)
1943 if (adapter->qdepth[tgt_id] != adapter->qdepth[0]) {
2058 int tgt_id;
2072 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++) {
2073 adapter->bdr_pend[tgt_id] = NULL;
2074 adapter->tgt_flags[tgt_id].tagq_active = false;
2075 adapter->tgt_flags[tgt_id].cmd_good = false;
2076 adapter->active_cmds[tgt_id] = 0;
2077 adapter->cmds_since_rst[tgt_id] = 0;
2178 int tgt_id;
2221 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2222 adapter->tgt_flags[tgt_id].tgt_exists =
2223 (installed_devs & (1 << tgt_id) ? true : false);
2238 for (tgt_id = 0; tgt_id < 8; tgt_id++)
2239 adapter->tgt_flags[tgt_id].tgt_exists =
2240 installed_devs0to7[tgt_id] != 0;
2250 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2251 adapter->sync_offset[tgt_id] = (tgt_id < 8 ? setupinfo.sync0to7[tgt_id].offset : setupinfo.sync8to15[tgt_id - 8].offset);
2253 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2254 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));
2271 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2272 adapter->sync_period[tgt_id] = sync_period[tgt_id];
2274 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2275 if (setupinfo.sync0to7[tgt_id].offset > 0)
2276 adapter->sync_period[tgt_id] = 20 + 5 * setupinfo.sync0to7[tgt_id].tx_period;
2318 int tgt_id = dev->id;
2319 int qdepth = adapter->qdepth[tgt_id];
2321 if (adapter->tgt_flags[tgt_id].tagq_ok &&
2322 (adapter->tagq_ok & (1 << tgt_id))) {
2325 adapter->qdepth[tgt_id] = qdepth;
2328 adapter->tagq_ok &= ~(1 << tgt_id);
2330 adapter->qdepth[tgt_id] = qdepth;
2334 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++)
2335 if (adapter->tgt_flags[tgt_id].tgt_exists)
2336 qdepth += adapter->qdepth[tgt_id];
2609 adapter->active_cmds[ccb->tgt_id]--;
2754 int tgt_id = ccb->tgt_id;
2756 blogic_warn("Bus Device Reset CCB #%ld to Target %d Completed\n", adapter, ccb->serial, tgt_id);
2757 blogic_inc_count(&adapter->tgt_stats[tgt_id].bdr_done);
2758 adapter->tgt_flags[tgt_id].tagq_active = false;
2759 adapter->cmds_since_rst[tgt_id] = 0;
2760 adapter->last_resetdone[tgt_id] = jiffies;
2791 ccb->tgt_id == tgt_id) {
2794 adapter->active_cmds[tgt_id]--;
2798 adapter->bdr_pend[tgt_id] = NULL;
2809 blogic_warn("CCB #%ld to Target %d Impossible State\n", adapter, ccb->serial, ccb->tgt_id);
2812 adapter->tgt_stats[ccb->tgt_id]
2814 adapter->tgt_flags[ccb->tgt_id]
2820 adapter, ccb->serial, ccb->tgt_id);
2821 blogic_inc_count(&adapter->tgt_stats[ccb->tgt_id].aborts_done);
2828 adapter->tgt_stats[ccb->tgt_id]
2833 "Adapter Status %02X Target Status %02X\n", adapter, ccb->serial, ccb->tgt_id, command->result, ccb->adapter_status, ccb->tgt_status);
2854 &adapter->tgt_flags[ccb->tgt_id];
2987 adapter->active_cmds[ccb->tgt_id]++;
2989 adapter->tgt_stats[ccb->tgt_id].cmds_tried++;
3031 int tgt_id = command->device->id;
3101 tgt_stats[tgt_id].read_cmds++;
3102 blogic_addcount(&tgt_stats[tgt_id].bytesread, buflen);
3103 blogic_incszbucket(tgt_stats[tgt_id].read_sz_buckets, buflen);
3108 tgt_stats[tgt_id].write_cmds++;
3109 blogic_addcount(&tgt_stats[tgt_id].byteswritten, buflen);
3110 blogic_incszbucket(tgt_stats[tgt_id].write_sz_buckets, buflen);
3119 ccb->tgt_id = tgt_id;
3139 if (adapter->cmds_since_rst[tgt_id]++ >= BLOGIC_MAX_TAG_DEPTH &&
3141 adapter->active_cmds[tgt_id] == 0
3143 (adapter->tagq_ok & (1 << tgt_id))) {
3146 adapter, tgt_id);
3165 if (adapter->active_cmds[tgt_id] == 0)
3166 adapter->last_seqpoint[tgt_id] = jiffies;
3168 adapter->last_seqpoint[tgt_id] + 4 * HZ)) {
3169 adapter->last_seqpoint[tgt_id] = jiffies;
3224 adapter->active_cmds[tgt_id]++;
3225 tgt_stats[tgt_id].cmds_tried++;
3250 int tgt_id = command->device->id;
3252 blogic_inc_count(&adapter->tgt_stats[tgt_id].aborts_request);
3262 blogic_warn("Unable to Abort Command to Target %d - No CCB Found\n", adapter, tgt_id);
3265 blogic_warn("Unable to Abort Command to Target %d - CCB Completed\n", adapter, tgt_id);
3268 blogic_warn("Unable to Abort Command to Target %d - CCB Reset\n", adapter, tgt_id);
3284 if (adapter->tgt_flags[tgt_id].tagq_active &&
3286 blogic_warn("Unable to Abort CCB #%ld to Target %d - Abort Tag Not Supported\n", adapter, ccb->serial, tgt_id);
3291 adapter, ccb->serial, tgt_id);
3292 blogic_inc_count(&adapter->tgt_stats[tgt_id].aborts_tried);
3295 blogic_warn("Unable to Abort CCB #%ld to Target %d - No Outgoing Mailboxes\n", adapter, ccb->serial, tgt_id);
3304 ccb->serial, tgt_id);
3305 blogic_inc_count(&adapter->tgt_stats[tgt_id].aborts_tried);
3328 int tgt_id;
3361 for (tgt_id = 0; tgt_id < adapter->maxdev; tgt_id++) {
3362 adapter->last_resettried[tgt_id] = jiffies;
3363 adapter->last_resetdone[tgt_id] = jiffies;
3665 int tgt_id;
3712 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++) {
3718 drvr_opts->qdepth[tgt_id] = qdepth;
3741 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++)
3742 drvr_opts->qdepth[tgt_id] = qdepth;
3756 for (tgt_id = 0, tgt_bit = 1;
3757 tgt_id < BLOGIC_MAXDEV;
3758 tgt_id++, tgt_bit <<= 1)
3772 tgt_id = BLOGIC_MAXDEV;
3822 for (tgt_id = 0; tgt_id < BLOGIC_MAXDEV; tgt_id++)
3823 if (drvr_opts->qdepth[tgt_id] == 1) {
3824 unsigned short tgt_bit = 1 << tgt_id;