Lines Matching refs:slotnum
266 static int tonga_psl_to_ssl(scsb_state_t *scsb, int slotnum);
2353 tonga_psl_to_ssl(scsb_state_t *scsb, int slotnum) in tonga_psl_to_ssl() argument
2357 return (slotnum); in tonga_psl_to_ssl()
2359 if (slotnum < 1 || slotnum > TG_MAX_SLOTS) { in tonga_psl_to_ssl()
2360 return (slotnum); in tonga_psl_to_ssl()
2365 slotnum, psl2ssl[slotnum]); in tonga_psl_to_ssl()
2368 return (psl2ssl[slotnum]); in tonga_psl_to_ssl()
2375 tonga_ssl_to_psl(scsb_state_t *scsb, int slotnum) in tonga_ssl_to_psl() argument
2379 return (slotnum); in tonga_ssl_to_psl()
2381 if (slotnum < 1 || slotnum > TG_MAX_SLOTS) { in tonga_ssl_to_psl()
2382 return (slotnum); in tonga_ssl_to_psl()
2387 slotnum, ssl2psl[slotnum]); in tonga_ssl_to_psl()
2390 return (ssl2psl[slotnum]); in tonga_ssl_to_psl()
3748 int slotnum = tonga_psl_to_ssl(scsb, pslotnum); in scsb_read_slot_health() local
3749 return (scsb_fru_op(scsb, SLOT, slotnum, in scsb_read_slot_health()
3813 int index, slotnum, reset_state; in scsb_reset_unit() local
3843 slotnum = suip->unit_number; in scsb_reset_unit()
3847 if (slotnum > TG_MAX_SLOTS || in scsb_reset_unit()
3848 slotnum == SC_TG_CPU_SLOT) { in scsb_reset_unit()
3852 if (slotnum > MC_MAX_SLOTS || in scsb_reset_unit()
3853 slotnum == SC_MC_CPU_SLOT || in scsb_reset_unit()
3855 slotnum == SC_MC_CTC_SLOT)) { in scsb_reset_unit()
3859 return (scsb_reset_slot(scsb, slotnum, reset_state)); in scsb_reset_unit()
4165 int unit, slotnum; in scsb_freeze_check() local
4189 slotnum = tonga_psl_to_ssl(scsb, unit); in scsb_freeze_check()
4191 slotnum = unit; in scsb_freeze_check()
4193 code = FRU_UNIT_TO_EVCODE(SLOT, slotnum); in scsb_freeze_check()
4373 int intr_idx, index, offset_base, retval, slotnum, val; in scsb_intr() local
4859 slotnum = tonga_ssl_to_psl(scsb, unit); in scsb_intr()
4863 unit, slotnum); in scsb_intr()
4870 if (slotnum > TG_MAX_SLOTS || in scsb_intr()
4871 slotnum == SC_TG_CPU_SLOT) { in scsb_intr()
4880 slotnum); in scsb_intr()
4882 if (slotnum > MC_MAX_SLOTS || in scsb_intr()
4883 slotnum == SC_MC_CPU_SLOT || in scsb_intr()
4886 slotnum == SC_MC_CTC_SLOT)) { in scsb_intr()
4936 if (slotnum > TG_MAX_SLOTS || in scsb_intr()
4937 slotnum == SC_TG_CPU_SLOT) { in scsb_intr()
4941 if (slotnum > MC_MAX_SLOTS || in scsb_intr()
4942 slotnum == SC_MC_CPU_SLOT || in scsb_intr()
4944 slotnum == SC_MC_CTC_SLOT)) { in scsb_intr()
4948 if (scsb_is_alarm_card_slot(scsb, slotnum) == B_TRUE) { in scsb_intr()
4949 DEBUG2("AC slot Intr %d(%d)\n", slotnum, idx+1); in scsb_intr()
4976 DEBUG1("AC insertion on slot %d!\n", slotnum); in scsb_intr()
4979 "AC_PRES slot %d", slotnum); in scsb_intr()
4985 DEBUG1("IO Insertion on slot %d!\n", slotnum); in scsb_intr()
4993 (void) scsb_connect_slot(scsb, slotnum, B_FALSE); in scsb_intr()
4998 DEBUG1("AC Removal on slot %d!\n", slotnum); in scsb_intr()
5003 slotnum); in scsb_intr()
5010 DEBUG1("IO Removal on slot %d!\n", slotnum); in scsb_intr()
5012 (void) scsb_disconnect_slot(scsb, B_FALSE, slotnum); in scsb_intr()
5079 slotnum = tonga_ssl_to_psl(scsb, idx + 1); in scsb_intr()
5081 if (slotnum > TG_MAX_SLOTS || in scsb_intr()
5082 slotnum == SC_TG_CPU_SLOT) { in scsb_intr()
5086 if (slotnum > MC_MAX_SLOTS || in scsb_intr()
5087 slotnum == SC_MC_CPU_SLOT || in scsb_intr()
5090 slotnum == SC_MC_CTC_SLOT)) { in scsb_intr()
5094 scsb_healthy_intr(scsb, slotnum); in scsb_intr()
5885 int i, val, error = DDI_SUCCESS, slotnum; in update_ks_topology() local
5946 slotnum = tonga_psl_to_ssl(scsb, i+1); in update_ks_topology()
5947 val = scsb_fru_op(scsb, SLOT, slotnum, SCTRL_BHLTHY_BASE, in update_ks_topology()
6693 int slotnum, val = 0, rc; in scsb_get_slot_state() local
6707 slotnum = tonga_psl_to_ssl(scsb, pslotnum); in scsb_get_slot_state()
6708 val = scsb_fru_op(scsb, SLOT, slotnum, SCTRL_SYSCFG_BASE, in scsb_get_slot_state()
6722 val = scsb_fru_op(scsb, SLOT, slotnum, SCTRL_RESET_BASE, in scsb_get_slot_state()
6727 if (scsb_fru_op(scsb, SLOT, slotnum, SCTRL_BHLTHY_BASE, in scsb_get_slot_state()
6734 ddi_get_instance(scsb->scsb_dev), slotnum); in scsb_get_slot_state()
6744 int slotnum, error, val, alarm_card = 0; in scsb_reset_slot() local
6758 slotnum = tonga_psl_to_ssl(scsb, pslotnum); in scsb_reset_slot()
6806 val = scsb_fru_op(scsb, SLOT, slotnum, SCTRL_RESET_BASE, in scsb_reset_slot()
6851 i2cxferp->i2c_wbuf[0] = scsb_fru_op(scsb, SLOT, slotnum, in scsb_reset_slot()
6855 scsb_fru_op(scsb, SLOT, slotnum, in scsb_reset_slot()
6858 scsb_fru_op(scsb, SLOT, slotnum, in scsb_reset_slot()
6870 scsb_fru_op(scsb, SLOT, slotnum, in scsb_reset_slot()
6873 ~(scsb_fru_op(scsb, SLOT, slotnum, in scsb_reset_slot()
6933 val = scsb_fru_op(scsb, SLOT, slotnum, SCTRL_RESET_BASE, in scsb_reset_slot()
6943 scsb_fru_op(scsb, SLOT, slotnum, in scsb_reset_slot()
6958 scsb_fru_op(scsb, SLOT, slotnum, in scsb_reset_slot()
6980 int slotnum, count = 0, val; in scsb_connect_slot() local
6991 slotnum = tonga_psl_to_ssl(scsb, pslotnum); in scsb_connect_slot()
7005 val = scsb_fru_op(scsb, SLOT, slotnum, SCTRL_BHLTHY_BASE, in scsb_connect_slot()
7029 scsb_disconnect_slot(scsb_state_t *scsb, int occupied, int slotnum) in scsb_disconnect_slot() argument
7034 if (scsb_reset_slot(scsb, slotnum, SCSB_RESET_SLOT) != 0) { in scsb_disconnect_slot()
7050 if ((scsb_is_alarm_card_slot(scsb, slotnum) == B_TRUE) && in scsb_disconnect_slot()
7053 return (hsc_slot_occupancy(slotnum, occupied, slot_flag, B_FALSE)); in scsb_disconnect_slot()
7057 scsb_is_alarm_card_slot(scsb_state_t *scsb, int slotnum) in scsb_is_alarm_card_slot() argument
7059 return ((scsb->ac_slotnum == slotnum)? B_TRUE:B_FALSE); in scsb_is_alarm_card_slot()
7169 int val, slotnum; in scsb_healthy_intr() local
7201 slotnum = tonga_psl_to_ssl(scsb, pslotnum); in scsb_healthy_intr()
7206 val = scsb_fru_op(scsb, SLOT, slotnum, SCTRL_BHLTHY_BASE, in scsb_healthy_intr()