Lines Matching refs:hp_slot

55 	int hp_slot;  in handle_switch_change()  local
67 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_switch_change()
68 if (change & (0x1L << hp_slot)) { in handle_switch_change()
73 (hp_slot + ctrl->slot_device_offset), 0); in handle_switch_change()
80 taskInfo->hp_slot = hp_slot; in handle_switch_change()
85 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_switch_change()
86 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_switch_change()
88 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in handle_switch_change()
129 int hp_slot; in handle_presence_change() local
146 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_presence_change()
147 if (change & (0x0101 << hp_slot)) { in handle_presence_change()
152 (hp_slot + ctrl->slot_device_offset), 0); in handle_presence_change()
156 taskInfo->hp_slot = hp_slot; in handle_presence_change()
160 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change()
169 temp_byte = (temp_word >> hp_slot) & 0x01; in handle_presence_change()
170 temp_byte |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_presence_change()
176 dbg("hp_slot %d button pressed\n", hp_slot); in handle_presence_change()
182 dbg("hp_slot %d button released\n", hp_slot); in handle_presence_change()
189 dbg("hp_slot %d button cancel\n", hp_slot); in handle_presence_change()
194 dbg("hp_slot %d button ignore\n", hp_slot); in handle_presence_change()
202 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_presence_change()
203 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_presence_change()
205 if ((!(ctrl->ctrl_int_comp & (0x010000 << hp_slot))) || in handle_presence_change()
206 (!(ctrl->ctrl_int_comp & (0x01000000 << hp_slot)))) { in handle_presence_change()
223 int hp_slot; in handle_power_fault() local
237 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_power_fault()
238 if (change & (0x01 << hp_slot)) { in handle_power_fault()
243 (hp_slot + ctrl->slot_device_offset), 0); in handle_power_fault()
247 taskInfo->hp_slot = hp_slot; in handle_power_fault()
251 if (ctrl->ctrl_int_comp & (0x00000100 << hp_slot)) { in handle_power_fault()
265 amber_LED_on(ctrl, hp_slot); in handle_power_fault()
266 green_LED_off(ctrl, hp_slot); in handle_power_fault()
284 info("power fault bit %x set\n", hp_slot); in handle_power_fault()
1115 static u8 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_slot) in set_controller_speed() argument
1131 if (slot->device == (hp_slot + ctrl->slot_device_offset)) in set_controller_speed()
1231 slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in set_controller_speed()
1257 u8 hp_slot; in board_replaced() local
1262 hp_slot = func->device - ctrl->slot_device_offset; in board_replaced()
1267 if (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot)) in board_replaced()
1272 else if (is_slot_enabled(ctrl, hp_slot)) in board_replaced()
1278 enable_slot_power(ctrl, hp_slot); in board_replaced()
1296 adapter_speed = get_adapter_speed(ctrl, hp_slot); in board_replaced()
1298 if (set_controller_speed(ctrl, adapter_speed, hp_slot)) in board_replaced()
1302 disable_slot_power(ctrl, hp_slot); in board_replaced()
1316 slot_enable(ctrl, hp_slot); in board_replaced()
1317 green_LED_blink(ctrl, hp_slot); in board_replaced()
1319 amber_LED_off(ctrl, hp_slot); in board_replaced()
1353 amber_LED_on(ctrl, hp_slot); in board_replaced()
1354 green_LED_off(ctrl, hp_slot); in board_replaced()
1355 slot_disable(ctrl, hp_slot); in board_replaced()
1379 amber_LED_on(ctrl, hp_slot); in board_replaced()
1380 green_LED_off(ctrl, hp_slot); in board_replaced()
1381 slot_disable(ctrl, hp_slot); in board_replaced()
1407 u8 hp_slot; in board_added() local
1418 hp_slot = func->device - ctrl->slot_device_offset; in board_added()
1420 __func__, func->device, ctrl->slot_device_offset, hp_slot); in board_added()
1425 enable_slot_power(ctrl, hp_slot); in board_added()
1444 adapter_speed = get_adapter_speed(ctrl, hp_slot); in board_added()
1446 if (set_controller_speed(ctrl, adapter_speed, hp_slot)) in board_added()
1450 disable_slot_power(ctrl, hp_slot); in board_added()
1462 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in board_added()
1471 slot_enable(ctrl, hp_slot); in board_added()
1474 green_LED_blink(ctrl, hp_slot); in board_added()
1477 amber_LED_off(ctrl, hp_slot); in board_added()
1544 amber_LED_on(ctrl, hp_slot); in board_added()
1545 green_LED_off(ctrl, hp_slot); in board_added()
1546 slot_disable(ctrl, hp_slot); in board_added()
1576 green_LED_on(ctrl, hp_slot); in board_added()
1587 amber_LED_on(ctrl, hp_slot); in board_added()
1588 green_LED_off(ctrl, hp_slot); in board_added()
1589 slot_disable(ctrl, hp_slot); in board_added()
1615 u8 hp_slot; in remove_board() local
1626 hp_slot = func->device - ctrl->slot_device_offset; in remove_board()
1627 dbg("In %s, hp_slot = %d\n", __func__, hp_slot); in remove_board()
1659 green_LED_off(ctrl, hp_slot); in remove_board()
1660 slot_disable(ctrl, hp_slot); in remove_board()
1666 temp_byte &= ~(0x01 << hp_slot); in remove_board()
1773 u8 hp_slot; in interrupt_event_handler() local
1782 hp_slot = ctrl->event_queue[loop].hp_slot; in interrupt_event_handler()
1784 func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0); in interrupt_event_handler()
1788 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1793 hp_slot, func, p_slot); in interrupt_event_handler()
1807 green_LED_on(ctrl, hp_slot); in interrupt_event_handler()
1811 green_LED_off(ctrl, hp_slot); in interrupt_event_handler()
1818 amber_LED_off(ctrl, hp_slot); in interrupt_event_handler()
1831 if (is_slot_enabled(ctrl, hp_slot)) { in interrupt_event_handler()
1844 amber_LED_off(ctrl, hp_slot); in interrupt_event_handler()
1845 green_LED_blink(ctrl, hp_slot); in interrupt_event_handler()
1856 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1887 u8 hp_slot; in cpqhp_pushbutton_thread() local
1894 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1898 if (is_slot_enabled(ctrl, hp_slot)) { in cpqhp_pushbutton_thread()
1909 amber_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1910 green_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1932 amber_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1933 green_LED_off(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1949 u8 device, hp_slot; in cpqhp_process_SI() local
1959 hp_slot = device - ctrl->slot_device_offset; in cpqhp_process_SI()
1967 if (tempdword & (0x01 << hp_slot)) in cpqhp_process_SI()
1988 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhp_process_SI()
1989 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in cpqhp_process_SI()
1991 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in cpqhp_process_SI()
2018 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhp_process_SI()
2020 (temp_word >> (hp_slot + 7)) & 0x02; in cpqhp_process_SI()
2022 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in cpqhp_process_SI()