Lines Matching refs:slot

141 static void fas_test_abort(struct fas *fas, int slot);
144 static void fas_test_reset(struct fas *fas, int slot);
218 static void fas_runpoll(struct fas *fas, short slot, struct fas_cmd *sp);
258 static void fas_cmd_timeout(struct fas *fas, int slot);
260 int slot);
284 static int fas_alloc_active_slots(struct fas *fas, int slot, int flag);
287 static int fas_abort_cmd(struct fas *fas, struct fas_cmd *sp, int slot);
291 int slot);
292 static void fas_flush_readyQ(struct fas *fas, int slot);
293 static void fas_flush_tagQ(struct fas *fas, int slot);
299 struct fas_cmd *sp, uchar_t msg, int slot);
300 static void fas_mark_packets(struct fas *fas, int slot, uchar_t reason,
313 static void fas_reset_cleanup(struct fas *fas, int slot);
319 static void fas_set_throttles(struct fas *fas, int slot,
321 static void fas_set_all_lun_throttles(struct fas *fas, int slot, int what);
322 static void fas_full_throttle(struct fas *fas, int slot);
530 int instance, id, slot, i, hm_rev; in fas_attach() local
753 for (slot = 0; slot < N_SLOTS; slot += NLUNS_PER_TARGET) { in fas_attach()
754 (void) fas_alloc_active_slots(fas, slot, KM_SLEEP); in fas_attach()
1015 for (slot = 0; slot < N_SLOTS; slot++) { in fas_attach()
1016 struct f_slots *active = fas->f_active[slot]; in fas_attach()
1019 fas->f_active[slot] = NULL; in fas_attach()
1163 short slot; in fas_dr_detach() local
1228 for (slot = 0; slot < N_SLOTS; slot++) { in fas_dr_detach()
1229 struct f_slots *active = fas->f_active[slot]; in fas_dr_detach()
1245 fas->f_active[slot] = NULL; in fas_dr_detach()
1247 ASSERT(fas->f_tcmds[slot] == 0); in fas_dr_detach()
1293 int slot = i * NLUNS_PER_TARGET | j; in fas_dr_detach() local
1294 if (fas->f_arq_pkt[slot]) { in fas_dr_detach()
1448 uint_t slot; in fas_check_outstanding() local
1454 for (slot = 0; slot < N_SLOTS; slot += d) in fas_check_outstanding()
1455 ncmds += fas->f_tcmds[slot]; in fas_check_outstanding()
1909 int slot = 0; in fas_check_ncmds() local
1914 if (fas->f_active[slot]) { in fas_check_ncmds()
1915 struct fas_cmd *sp = fas->f_readyf[slot]; in fas_check_ncmds()
1916 t = fas->f_active[slot]->f_n_slots; in fas_check_ncmds()
1922 if (fas->f_active[slot]->f_slot[tag] != 0) { in fas_check_ncmds()
1927 ASSERT(n == fas->f_tcmds[slot]); in fas_check_ncmds()
1929 slot = NEXTSLOT(slot, fas->f_dslot); in fas_check_ncmds()
1930 } while (slot != 0); in fas_check_ncmds()
2589 int slot = sp->cmd_slot; in fas_prepare_pkt() local
2596 Tgt(sp), fas->f_tcmds[slot], (void *)sp, in fas_prepare_pkt()
2597 fas->f_throttle[slot]); in fas_prepare_pkt()
2757 short slot = sp->cmd_slot; in fas_accept_pkt() local
2764 ASSERT(fas->f_tcmds[slot] >= 0); in fas_accept_pkt()
2773 IPRINTF1("prepare pkt failed, slot=%x\n", slot); in fas_accept_pkt()
2783 if ((fas->f_active[slot] == NULL) || in fas_accept_pkt()
2784 ((fas->f_active[slot]->f_n_slots != NTAGS) && in fas_accept_pkt()
2786 (void) fas_alloc_active_slots(fas, slot, KM_NOSLEEP); in fas_accept_pkt()
2788 if ((fas->f_active[slot] == NULL) || in fas_accept_pkt()
2808 fas_runpoll(fas, slot, sp); in fas_accept_pkt()
2816 if ((fas->f_tcmds[slot] == 0) && in fas_accept_pkt()
2817 (fas->f_throttle[slot] == DRAIN_THROTTLE)) { in fas_accept_pkt()
2820 fas_full_throttle(fas, slot); in fas_accept_pkt()
2832 if ((fas->f_readyf[slot] == NULL) && (fas->f_state == STATE_FREE) && in fas_accept_pkt()
2833 (fas->f_throttle[slot] > fas->f_tcmds[slot])) { in fas_accept_pkt()
2845 struct fas_cmd *ssp = fas->f_readyf[slot]; in fas_accept_pkt()
2854 if (fas->f_readyb[slot] == ssp) { in fas_accept_pkt()
2855 fas->f_readyb[slot] = sp; in fas_accept_pkt()
2858 fas->f_readyf[slot] = fas->f_readyb[slot] = sp; in fas_accept_pkt()
2868 (fas->f_tcmds[slot] >= fas->f_throttle[slot]) && in fas_accept_pkt()
2869 (fas->f_throttle[slot] > HOLD_THROTTLE) && in fas_accept_pkt()
2873 slot, fas->f_ncmds); in fas_accept_pkt()
2882 } else if (fas->f_readyf[slot]) { in fas_accept_pkt()
2883 struct fas_cmd *dp = fas->f_readyb[slot]; in fas_accept_pkt()
2885 fas->f_readyb[slot] = sp; in fas_accept_pkt()
2889 fas->f_readyf[slot] = fas->f_readyb[slot] = sp; in fas_accept_pkt()
2922 short slot = sp->cmd_slot; in fas_alloc_tag() local
2927 tag_slots = fas->f_active[slot]; in fas_alloc_tag()
2931 tag = (fas->f_active[slot]->f_tags)++; in fas_alloc_tag()
2932 if (fas->f_active[slot]->f_tags >= NTAGS) { in fas_alloc_tag()
2936 fas->f_active[slot]->f_tags = 1; in fas_alloc_tag()
2952 (fas->f_tcmds[slot])++; in fas_alloc_tag()
2974 fas->f_throttle[slot] = DRAIN_THROTTLE; in fas_alloc_tag()
2980 tag = fas->f_active[slot]->f_tags; in fas_alloc_tag()
2985 if (++(fas->f_active[slot]->f_tags) >= NTAGS) { in fas_alloc_tag()
2989 fas->f_active[slot]->f_tags = 1; in fas_alloc_tag()
3000 IPRINTF1("slot %x: All tags in use!!!\n", slot); in fas_alloc_tag()
3038 short slot = fas->f_next_slot; in fas_ustart() local
3039 short start_slot = slot; in fas_ustart()
3047 ASSERT((slot % NLUNS_PER_TARGET) == 0); in fas_ustart()
3059 if (fas->f_throttle[slot] == DRAIN_THROTTLE && in fas_ustart()
3060 fas->f_tcmds[slot] == 0) { in fas_ustart()
3061 fas_full_throttle(fas, slot); in fas_ustart()
3064 if (fas->f_readyf[slot] && in fas_ustart()
3065 (fas->f_throttle[slot] > fas->f_tcmds[slot])) { in fas_ustart()
3066 sp = fas->f_readyf[slot]; in fas_ustart()
3067 fas->f_readyf[slot] = sp->cmd_forw; in fas_ustart()
3069 fas->f_readyb[slot] = NULL; in fas_ustart()
3071 fas->f_next_slot = NEXTSLOT(slot, dslot); in fas_ustart()
3077 slot = NEXTSLOT(slot, dslot); in fas_ustart()
3079 } while (slot != start_slot); in fas_ustart()
3082 fas->f_next_slot = NEXTSLOT(slot, dslot); in fas_ustart()
3100 int slot = sp->cmd_slot; in fas_startcmd() local
3101 struct f_slots *slots = fas->f_active[slot]; in fas_startcmd()
3114 ASSERT(fas->f_throttle[slot] > 0); in fas_startcmd()
3127 TAGGED(target) && fas->f_tcmds[slot] && in fas_startcmd()
3136 fas->f_throttle[slot] = DRAIN_THROTTLE; in fas_startcmd()
3138 dp = fas->f_readyf[slot]; in fas_startcmd()
3139 fas->f_readyf[slot] = sp; in fas_startcmd()
3141 if (fas->f_readyb[slot] == NULL) { in fas_startcmd()
3142 fas->f_readyb[slot] = sp; in fas_startcmd()
3163 ASSERT(fas->f_active[slot]->f_slot[0] == NULL); in fas_startcmd()
3164 fas->f_active[slot]->f_slot[0] = sp; in fas_startcmd()
3167 ASSERT(fas->f_tcmds[slot] == 0); in fas_startcmd()
3173 fas->f_throttle[slot] = 1; in fas_startcmd()
3175 (fas->f_tcmds[slot])++; in fas_startcmd()
3338 ASSERT(fas->f_tcmds[slot] >= 1); in fas_startcmd()
3640 int slot = sp->cmd_slot; in fas_remove_cmd() local
3641 struct f_slots *tag_slots = fas->f_active[slot]; in fas_remove_cmd()
3645 tag, slot, Tgt(sp), Lun(sp)); in fas_remove_cmd()
3649 fas->f_tcmds[slot]--; in fas_remove_cmd()
3674 if (fas->f_tcmds[slot]) { in fas_remove_cmd()
4087 uchar_t slot; in fas_reconnect() local
4151 fas->f_resel_slot = slot = (target * NLUNS_PER_TARGET) | lun; in fas_reconnect()
4163 if (TAGGED(target) && fas->f_tcmds[slot] && in fas_reconnect()
4164 (fas->f_active[slot]->f_slot[0] == NULL)) { in fas_reconnect()
4189 EPRINTF1("slow reconnect, slot=%x\n", slot); in fas_reconnect()
4213 fas->f_current_sp = sp = fas->f_active[slot]->f_slot[0]; in fas_reconnect()
4226 slot = fas->f_resel_slot; in fas_reconnect()
4227 target = slot/NLUNS_PER_TARGET; in fas_reconnect()
4231 IPRINTF1("no tag for slot %x\n", slot); in fas_reconnect()
4315 tag_slots = fas->f_active[slot]; in fas_reconnect()
4386 ASSERT(fas->f_resel_slot == slot); in fas_reconnect()
4407 EPRINTF2("Reconnecting %d.%d\n", target, slot % NLUNS_PER_TARGET); in fas_reconnect()
6400 int slot = sp->cmd_slot; in fas_next_window() local
6410 fas_sync_wide_backoff(fas, sp, slot); in fas_next_window()
6500 fas_set_throttles(struct fas *fas, int slot, int n, int what) in fas_set_throttles() argument
6516 ASSERT((slot + n) <= N_SLOTS); in fas_set_throttles()
6518 slot &= ~(NLUNS_PER_TARGET - 1); in fas_set_throttles()
6521 for (i = slot; i < (slot + n); i++) { in fas_set_throttles()
6537 fas_set_all_lun_throttles(struct fas *fas, int slot, int what) in fas_set_all_lun_throttles() argument
6542 fas_set_throttles(fas, slot, NLUNS_PER_TARGET, what); in fas_set_all_lun_throttles()
6546 fas_full_throttle(struct fas *fas, int slot) in fas_full_throttle() argument
6548 fas_set_throttles(fas, slot, 1, MAX_THROTTLE); in fas_full_throttle()
6555 fas_runpoll(struct fas *fas, short slot, struct fas_cmd *sp) in fas_runpoll() argument
6561 slot, *((uchar_t *)sp->cmd_pkt->pkt_cdbp), in fas_runpoll()
6562 (void *)fas->f_current_sp, fas->f_tcmds[slot]); in fas_runpoll()
6572 fas_set_all_lun_throttles(fas, slot, HOLD_THROTTLE); in fas_runpoll()
6597 if ((fas->f_tcmds[slot]) && in fas_runpoll()
6627 if (fas->f_reset_delay[slot/NLUNS_PER_TARGET]) { in fas_runpoll()
6628 IPRINTF1("reset delay set for slot %x\n", slot); in fas_runpoll()
6723 fas_set_all_lun_throttles(fas, slot, MAX_THROTTLE); in fas_runpoll()
6749 fas_set_all_lun_throttles(fas, slot, MAX_THROTTLE); in fas_runpoll()
6949 uchar_t slot = ap->a_target * NLUNS_PER_TARGET | ap->a_lun; in fas_create_arq_pkt() local
6956 if (fas->f_arq_pkt[slot] != 0) { in fas_create_arq_pkt()
6979 rqpktp->cmd_slot = slot; in fas_create_arq_pkt()
6981 fas->f_arq_pkt[slot] = rqpktp; in fas_create_arq_pkt()
7001 int slot = ap->a_target * NLUNS_PER_TARGET | ap->a_lun; in fas_delete_arq_pkt() local
7007 if ((rqpktp = fas->f_arq_pkt[slot]) != NULL) { in fas_delete_arq_pkt()
7020 fas->f_arq_pkt[slot] = 0; in fas_delete_arq_pkt()
7039 int slot = sp->cmd_slot; in fas_complete_arq_pkt() local
7042 ASSERT(sp == fas->f_arq_pkt[slot]); in fas_complete_arq_pkt()
7063 fas_sync_wide_backoff(fas, sp, slot); in fas_complete_arq_pkt()
7135 int slot = sp->cmd_slot; in fas_handle_qfull() local
7150 fas_set_all_lun_throttles(fas, slot, DRAIN_THROTTLE); in fas_handle_qfull()
7154 fas->f_throttle[slot] = in fas_handle_qfull()
7155 max((fas->f_tcmds[slot] - 2), 0); in fas_handle_qfull()
7158 "retrying\n", Tgt(sp), Lun(sp), fas->f_throttle[slot]); in fas_handle_qfull()
7170 if (fas->f_throttle[slot] == HOLD_THROTTLE) { in fas_handle_qfull()
7177 fas_set_all_lun_throttles(fas, slot, QFULL_THROTTLE); in fas_handle_qfull()
7310 short slot; in fas_watchsubr() local
7314 for (slot = 0; slot < N_SLOTS; slot += d) { in fas_watchsubr()
7322 if (fas_force_timeout && fas->f_tcmds[slot]) { in fas_watchsubr()
7323 fas_cmd_timeout(fas, slot); in fas_watchsubr()
7327 fas_test_reset(fas, slot); in fas_watchsubr()
7328 fas_test_abort(fas, slot); in fas_watchsubr()
7334 tag_slots = fas->f_active[slot]; in fas_watchsubr()
7337 slot, fas->f_tcmds[slot], tag_slots->f_timeout); in fas_watchsubr()
7339 if ((fas->f_tcmds[slot] > 0) && (tag_slots->f_timebase)) { in fas_watchsubr()
7351 fas_cmd_timeout(fas, slot); in fas_watchsubr()
7357 slot); in fas_watchsubr()
7370 fas_cmd_timeout(struct fas *fas, int slot) in fas_cmd_timeout() argument
7377 ASSERT(fas->f_tcmds[slot]); in fas_cmd_timeout()
7394 if (NOTAG(slot/NLUNS_PER_TARGET)) { in fas_cmd_timeout()
7395 sp = fas->f_active[slot]->f_slot[0]; in fas_cmd_timeout()
7407 slot = fas->f_current_sp->cmd_slot; in fas_cmd_timeout()
7412 target = slot / NLUNS_PER_TARGET; in fas_cmd_timeout()
7413 lun = slot % NLUNS_PER_TARGET; in fas_cmd_timeout()
7418 n = fas->f_active[slot]->f_n_slots; in fas_cmd_timeout()
7420 ssp = fas->f_active[slot]->f_slot[tag]; in fas_cmd_timeout()
7454 fas_sync_wide_backoff(fas, sp, slot); in fas_cmd_timeout()
7463 fas->f_tcmds[slot], target, lun); in fas_cmd_timeout()
7466 if (fas_abort_cmd(fas, sp, slot) == ACTION_SEARCH) { in fas_cmd_timeout()
7480 int slot) in fas_sync_wide_backoff() argument
7484 uchar_t tgt = slot / NLUNS_PER_TARGET; in fas_sync_wide_backoff()
7659 fas_abort_cmd(struct fas *fas, struct fas_cmd *sp, int slot) in fas_abort_cmd() argument
7664 ap.a_target = slot / NLUNS_PER_TARGET; in fas_abort_cmd()
7665 ap.a_lun = slot % NLUNS_PER_TARGET; in fas_abort_cmd()
7674 if ((fas->f_current_sp && (fas->f_current_sp->cmd_slot != slot)) || in fas_abort_cmd()
7710 short slot; in fas_do_scsi_abort() local
7717 slot = sp->cmd_slot; in fas_do_scsi_abort()
7718 ASSERT(slot == ((ap->a_target * NLUNS_PER_TARGET) | ap->a_lun)); in fas_do_scsi_abort()
7721 slot = (ap->a_target * NLUNS_PER_TARGET) | ap->a_lun; in fas_do_scsi_abort()
7734 slot, (void *)sp, (sp? sp->cmd_pkt_flags : 0), (void *)cur_sp); in fas_do_scsi_abort()
7743 rval = fas_remove_from_readyQ(fas, sp, slot); in fas_do_scsi_abort()
7752 fas->f_active[slot]->f_slot[sp->cmd_tag[1]])) { in fas_do_scsi_abort()
7763 fas_set_throttles(fas, slot, 1, HOLD_THROTTLE); in fas_do_scsi_abort()
7795 abort_msg, slot); in fas_do_scsi_abort()
7812 (cur_sp->cmd_slot == slot) && in fas_do_scsi_abort()
7819 NULL, abort_msg, slot); in fas_do_scsi_abort()
7849 fas_mark_packets(fas, slot, CMD_ABORTED, STAT_ABORTED); in fas_do_scsi_abort()
7850 fas_flush_tagQ(fas, slot); in fas_do_scsi_abort()
7851 fas_flush_readyQ(fas, slot); in fas_do_scsi_abort()
7853 fas_set_throttles(fas, slot, 1, MAX_THROTTLE); in fas_do_scsi_abort()
7874 fas_mark_packets(struct fas *fas, int slot, uchar_t reason, uint_t stat) in fas_mark_packets() argument
7876 struct fas_cmd *sp = fas->f_readyf[slot]; in fas_mark_packets()
7882 if (fas->f_tcmds[slot]) { in fas_mark_packets()
7886 for (tag = 0; tag < fas->f_active[slot]->f_n_slots; tag++) { in fas_mark_packets()
7887 if ((sp = fas->f_active[slot]->f_slot[tag]) != 0) { in fas_mark_packets()
7892 ASSERT(fas->f_tcmds[slot] == n); in fas_mark_packets()
7917 fas_remove_from_readyQ(struct fas *fas, struct fas_cmd *sp, int slot) in fas_remove_from_readyQ() argument
7929 for (psp = NULL, ssp = fas->f_readyf[slot]; ssp != NULL; in fas_remove_from_readyQ()
7932 if (fas->f_readyf[slot] == sp) { in fas_remove_from_readyQ()
7933 fas->f_readyf[slot] = sp->cmd_forw; in fas_remove_from_readyQ()
7937 if (fas->f_readyb[slot] == sp) { in fas_remove_from_readyQ()
7938 fas->f_readyb[slot] = psp; in fas_remove_from_readyQ()
7961 int slot = sp->cmd_slot; in fas_head_of_readyQ() local
7963 dp = fas->f_readyf[slot]; in fas_head_of_readyQ()
7964 fas->f_readyf[slot] = sp; in fas_head_of_readyQ()
7966 if (fas->f_readyb[slot] == NULL) { in fas_head_of_readyQ()
7967 fas->f_readyb[slot] = sp; in fas_head_of_readyQ()
7976 fas_flush_readyQ(struct fas *fas, int slot) in fas_flush_readyQ() argument
7978 if (fas->f_readyf[slot]) { in fas_flush_readyQ()
7981 IPRINTF1("flushing ready queue, slot=%x\n", slot); in fas_flush_readyQ()
7984 sp = fas->f_readyf[slot]; in fas_flush_readyQ()
7985 fas->f_readyf[slot] = fas->f_readyb[slot] = NULL; in fas_flush_readyQ()
7994 ASSERT(Tgt(sp) == slot/NLUNS_PER_TARGET); in fas_flush_readyQ()
8008 fas_flush_tagQ(struct fas *fas, int slot) in fas_flush_tagQ() argument
8012 struct f_slots *tagque = fas->f_active[slot]; in fas_flush_tagQ()
8019 slot, fas->f_tcmds[slot]); in fas_flush_tagQ()
8024 for (tag = 0; tag < fas->f_active[slot]->f_n_slots; tag++) { in fas_flush_tagQ()
8036 ASSERT(fas->f_tcmds[slot] == n); in fas_flush_tagQ()
8039 tag = starttag = fas->f_active[slot]->f_tags; in fas_flush_tagQ()
8046 (ushort_t)fas->f_active[slot]->f_n_slots; in fas_flush_tagQ()
8049 ASSERT(fas->f_tcmds[slot] == 0); in fas_flush_tagQ()
8061 short slot = sp->cmd_slot; in fas_flush_cmd() local
8065 ASSERT(sp == fas->f_active[slot]->f_slot[sp->cmd_tag[1]]); in fas_flush_cmd()
8202 struct fas_cmd *sp, uchar_t msg, int slot) in fas_abort_disconnected_cmd() argument
8219 ASSERT(sp->cmd_slot == slot); in fas_abort_disconnected_cmd()
8226 ASSERT(sp == fas->f_active[slot]->f_slot[tag]); in fas_abort_disconnected_cmd()
8247 short slot = (ap->a_target * NLUNS_PER_TARGET) | ap->a_lun; in fas_do_scsi_reset() local
8251 slot, level, fas->f_tcmds[slot]); in fas_do_scsi_reset()
8290 fas_set_all_lun_throttles(fas, slot, HOLD_THROTTLE); in fas_do_scsi_reset()
8337 fas_reset_cleanup(fas, slot); in fas_do_scsi_reset()
8339 IPRINTF1("fas_scsi_reset failed for slot %x\n", slot); in fas_do_scsi_reset()
8348 fas_set_all_lun_throttles(fas, slot, MAX_THROTTLE); in fas_do_scsi_reset()
8439 short slot, s; in fas_watch_reset_delay_subr() local
8443 for (slot = 0; slot < N_SLOTS; slot += NLUNS_PER_TARGET) { in fas_watch_reset_delay_subr()
8449 s = slot/NLUNS_PER_TARGET; in fas_watch_reset_delay_subr()
8460 slot, MAX_THROTTLE); in fas_watch_reset_delay_subr()
8462 slot); in fas_watch_reset_delay_subr()
8464 start_slot = slot; in fas_watch_reset_delay_subr()
8485 fas_reset_cleanup(struct fas *fas, int slot) in fas_reset_cleanup() argument
8492 int target = slot/NLUNS_PER_TARGET; in fas_reset_cleanup()
8494 start = slot & ~(NLUNS_PER_TARGET-1); in fas_reset_cleanup()
8497 slot, start, end, fas->f_tcmds[slot]); in fas_reset_cleanup()
8500 (fas->f_current_sp->cmd_slot == slot) && in fas_reset_cleanup()
8631 short slot, start_slot; in fas_reset_recovery() local
8710 slot = start_slot; in fas_reset_recovery()
8713 fas_mark_packets(fas, slot, CMD_RESET, STAT_BUS_RESET); in fas_reset_recovery()
8714 fas_flush_tagQ(fas, slot); in fas_reset_recovery()
8715 fas_flush_readyQ(fas, slot); in fas_reset_recovery()
8716 if (fas->f_arq_pkt[slot]) { in fas_reset_recovery()
8717 struct fas_cmd *sp = fas->f_arq_pkt[slot]; in fas_reset_recovery()
8725 slot = NEXTSLOT(slot, fas->f_dslot); in fas_reset_recovery()
8726 } while (slot != start_slot); in fas_reset_recovery()
8797 fas_test_reset(struct fas *fas, int slot) in fas_test_reset() argument
8800 char target = slot/NLUNS_PER_TARGET; in fas_test_reset()
8825 fas_test_abort(struct fas *fas, int slot) in fas_test_abort() argument
8829 char target = slot/NLUNS_PER_TARGET; in fas_test_abort()
8838 (sp->cmd_slot == slot) && in fas_test_abort()
8842 sp = fas->f_active[slot]->f_slot[0]; in fas_test_abort()
8848 (fas->f_tcmds[slot] != 0)) { in fas_test_abort()
8854 if ((sp = fas->f_active[slot]->f_slot[tag]) in fas_test_abort()
8860 ASSERT(sp->cmd_slot == slot); in fas_test_abort()
8865 (fas->f_tcmds[slot] != 0)) { in fas_test_abort()
8869 } else if (fas_atest_disc == 3 && fas->f_readyf[slot]) { in fas_test_abort()
8870 pkt = fas->f_readyf[slot]->cmd_pkt; in fas_test_abort()
8872 fas->f_readyf[slot] && fas->f_readyf[slot]->cmd_forw) { in fas_test_abort()
8873 pkt = fas->f_readyf[slot]->cmd_forw->cmd_pkt; in fas_test_abort()
8874 } else if (fas_atest_disc == 5 && fas->f_readyb[slot]) { in fas_test_abort()
8875 pkt = fas->f_readyb[slot]->cmd_pkt; in fas_test_abort()
8877 (sp->cmd_slot == slot) && in fas_test_abort()
8970 int slot = target * NLUNS_PER_TARGET | ap->a_lun; in fas_commoncap() local
8974 if (fas->f_tcmds[slot]) { in fas_commoncap()
8978 slot = target * NLUNS_PER_TARGET | ap->a_lun; in fas_commoncap()
8995 if (val && fas_alloc_active_slots(fas, slot, in fas_commoncap()
9001 fas_set_all_lun_throttles(fas, slot, MAX_THROTTLE); in fas_commoncap()
9054 int slot = target * NLUNS_PER_TARGET | ap->a_lun; in fas_commoncap() local
9096 if (tgtonly && fas->f_arq_pkt[slot]) { in fas_commoncap()
9189 fas_alloc_active_slots(struct fas *fas, int slot, int flag) in fas_alloc_active_slots() argument
9191 int target = slot / NLUNS_PER_TARGET; in fas_alloc_active_slots()
9192 struct f_slots *old_active = fas->f_active[slot]; in fas_alloc_active_slots()
9197 if (fas->f_tcmds[slot]) { in fas_alloc_active_slots()
9212 fas->f_active[slot] = new_active; in fas_alloc_active_slots()
9213 fas->f_active[slot]->f_n_slots = (NOTAG(target) ? 1 : NTAGS); in fas_alloc_active_slots()
9214 fas->f_active[slot]->f_size = size; in fas_alloc_active_slots()
9219 fas->f_active[slot]->f_tags = 1; in fas_alloc_active_slots()