Lines Matching defs:slotnum

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