Lines Matching refs:unit_number
2110 * according to unit_type, unit_number, and led_type.
2129 suip->unit_type, suip->unit_number,
2135 * So except for SLOTs, if the unit_number check fails, we now
2141 if (suip->unit_number < 1 || suip->unit_number >
2147 code = FRU_UNIT_TO_EVCODE(SLOT, suip->unit_number);
2151 if (suip->unit_number < 1 || suip->unit_number >
2157 "is out of range", suip->unit_number);
2162 code = FRU_UNIT_TO_EVCODE(PDU, suip->unit_number);
2166 if ((suip->unit_number < 1 || suip->unit_number >
2172 "is out of range", suip->unit_number);
2177 code = FRU_UNIT_TO_EVCODE(PS, suip->unit_number);
2181 if ((suip->unit_number < 1 || suip->unit_number >
2187 "is out of range", suip->unit_number);
2194 code = FRU_UNIT_TO_EVCODE(DISK, suip->unit_number);
2198 if (suip->unit_number < 1 || suip->unit_number >
2204 "is out of range", suip->unit_number);
2209 code = FRU_UNIT_TO_EVCODE(FAN, suip->unit_number);
2213 if (suip->unit_number < 1 || suip->unit_number >
2219 "is out of range", suip->unit_number);
2224 code = FRU_UNIT_TO_EVCODE(CFTM, suip->unit_number);
2228 if (suip->unit_number < 1 || suip->unit_number >
2234 "is out of range", suip->unit_number);
2239 code = FRU_UNIT_TO_EVCODE(SCB, suip->unit_number);
2337 if (suip->unit_number < 1 || suip->unit_number > TG_MAX_SLOTS) {
2343 suip->unit_number, psl2ssl[suip->unit_number]);
2346 suip->unit_number = psl2ssl[suip->unit_number];
2454 int unit_number;
2480 suip->unit_number);
2490 if ((error = scsb_get_led_regnum(scsb, suip, ®, &unit_number,
2494 if (scsb->scsb_data_reg[index] & (1 << unit_number)) {
2498 suip->unit_number);
2502 (1 << unit_number))
2517 int unit_number;
2565 unit_type_name[suip->unit_type], suip->unit_number,
2579 if ((error = scsb_get_led_regnum(scsb, suip, ®, &unit_number,
2584 scsb->scsb_data_reg[index] |= (1 << unit_number);
2586 scsb->scsb_data_reg[index] &= ~(1 << unit_number);
2609 code = FRU_UNIT_TO_EVCODE(suip->unit_type, suip->unit_number);
2613 scsb->scsb_data_reg[index] |= (1 << unit_number);
2615 scsb->scsb_data_reg[index] &= ~(1 << unit_number);
3761 int base, code, unit_number;
3775 suip->unit_number);
3776 if (suip->unit_number > mct_system_info.max_units[SLOT]) {
3784 code = FRU_UNIT_TO_EVCODE(suip->unit_type, suip->unit_number);
3785 unit_number = FRU_OFFSET(code, base);
3795 if (scsb->scsb_data_reg[index] & (1 << unit_number))
3811 int unit_number;
3819 scsb->scsb_instance, suip->unit_number,
3834 if (suip->unit_number != 1)
3836 code = FRU_UNIT_TO_EVCODE(suip->unit_type, suip->unit_number);
3837 unit_number = FRU_OFFSET(code, SCTRL_RESET_BASE);
3843 slotnum = suip->unit_number;
3866 scsb->scsb_data_reg[index] |= (1 << unit_number);
3868 scsb->scsb_data_reg[index] &= ~(1 << unit_number);
3899 if (suip->unit_number !=
3909 if (suip->unit_number < 1 || suip->unit_number >
3915 saved_unit_number = suip->unit_number;