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()
1233 slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in set_controller_speed()
1259 u8 hp_slot; in board_replaced() local
1264 hp_slot = func->device - ctrl->slot_device_offset; in board_replaced()
1269 if (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot)) in board_replaced()
1274 else if (is_slot_enabled(ctrl, hp_slot)) in board_replaced()
1280 enable_slot_power(ctrl, hp_slot); in board_replaced()
1298 adapter_speed = get_adapter_speed(ctrl, hp_slot); in board_replaced()
1300 if (set_controller_speed(ctrl, adapter_speed, hp_slot)) in board_replaced()
1304 disable_slot_power(ctrl, hp_slot); in board_replaced()
1318 slot_enable(ctrl, hp_slot); in board_replaced()
1319 green_LED_blink(ctrl, hp_slot); in board_replaced()
1321 amber_LED_off(ctrl, hp_slot); in board_replaced()
1355 amber_LED_on(ctrl, hp_slot); in board_replaced()
1356 green_LED_off(ctrl, hp_slot); in board_replaced()
1357 slot_disable(ctrl, hp_slot); in board_replaced()
1381 amber_LED_on(ctrl, hp_slot); in board_replaced()
1382 green_LED_off(ctrl, hp_slot); in board_replaced()
1383 slot_disable(ctrl, hp_slot); in board_replaced()
1409 u8 hp_slot; in board_added() local
1420 hp_slot = func->device - ctrl->slot_device_offset; in board_added()
1422 __func__, func->device, ctrl->slot_device_offset, hp_slot); in board_added()
1427 enable_slot_power(ctrl, hp_slot); in board_added()
1446 adapter_speed = get_adapter_speed(ctrl, hp_slot); in board_added()
1448 if (set_controller_speed(ctrl, adapter_speed, hp_slot)) in board_added()
1452 disable_slot_power(ctrl, hp_slot); in board_added()
1464 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in board_added()
1473 slot_enable(ctrl, hp_slot); in board_added()
1476 green_LED_blink(ctrl, hp_slot); in board_added()
1479 amber_LED_off(ctrl, hp_slot); in board_added()
1546 amber_LED_on(ctrl, hp_slot); in board_added()
1547 green_LED_off(ctrl, hp_slot); in board_added()
1548 slot_disable(ctrl, hp_slot); in board_added()
1578 green_LED_on(ctrl, hp_slot); in board_added()
1589 amber_LED_on(ctrl, hp_slot); in board_added()
1590 green_LED_off(ctrl, hp_slot); in board_added()
1591 slot_disable(ctrl, hp_slot); in board_added()
1617 u8 hp_slot; in remove_board() local
1628 hp_slot = func->device - ctrl->slot_device_offset; in remove_board()
1629 dbg("In %s, hp_slot = %d\n", __func__, hp_slot); in remove_board()
1661 green_LED_off(ctrl, hp_slot); in remove_board()
1662 slot_disable(ctrl, hp_slot); in remove_board()
1668 temp_byte &= ~(0x01 << hp_slot); in remove_board()
1793 u8 hp_slot; in interrupt_event_handler() local
1802 hp_slot = ctrl->event_queue[loop].hp_slot; in interrupt_event_handler()
1804 func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0); in interrupt_event_handler()
1808 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1813 hp_slot, func, p_slot); in interrupt_event_handler()
1827 green_LED_on(ctrl, hp_slot); in interrupt_event_handler()
1831 green_LED_off(ctrl, hp_slot); in interrupt_event_handler()
1838 amber_LED_off(ctrl, hp_slot); in interrupt_event_handler()
1851 if (is_slot_enabled(ctrl, hp_slot)) { in interrupt_event_handler()
1864 amber_LED_off(ctrl, hp_slot); in interrupt_event_handler()
1865 green_LED_blink(ctrl, hp_slot); in interrupt_event_handler()
1876 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1912 u8 hp_slot; in cpqhp_pushbutton_thread() local
1919 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1923 if (is_slot_enabled(ctrl, hp_slot)) { in cpqhp_pushbutton_thread()
1934 amber_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1935 green_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1957 amber_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1958 green_LED_off(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1976 u8 device, hp_slot; in cpqhp_process_SI() local
1986 hp_slot = device - ctrl->slot_device_offset; in cpqhp_process_SI()
1994 if (tempdword & (0x01 << hp_slot)) in cpqhp_process_SI()
2015 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhp_process_SI()
2016 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in cpqhp_process_SI()
2018 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in cpqhp_process_SI()
2045 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhp_process_SI()
2047 (temp_word >> (hp_slot + 7)) & 0x02; in cpqhp_process_SI()
2049 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in cpqhp_process_SI()