Lines Matching refs:hp_slot

69 	int hp_slot;  in handle_switch_change()  local
81 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_switch_change()
82 if (change & (0x1L << hp_slot)) { in handle_switch_change()
87 (hp_slot + ctrl->slot_device_offset), 0); in handle_switch_change()
94 taskInfo->hp_slot = hp_slot; in handle_switch_change()
99 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_switch_change()
100 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_switch_change()
102 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in handle_switch_change()
143 int hp_slot; in handle_presence_change() local
160 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_presence_change()
161 if (change & (0x0101 << hp_slot)) { in handle_presence_change()
166 (hp_slot + ctrl->slot_device_offset), 0); in handle_presence_change()
170 taskInfo->hp_slot = hp_slot; in handle_presence_change()
174 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change()
183 temp_byte = (temp_word >> hp_slot) & 0x01; in handle_presence_change()
184 temp_byte |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_presence_change()
190 dbg("hp_slot %d button pressed\n", hp_slot); in handle_presence_change()
196 dbg("hp_slot %d button released\n", hp_slot); in handle_presence_change()
203 dbg("hp_slot %d button cancel\n", hp_slot); in handle_presence_change()
208 dbg("hp_slot %d button ignore\n", hp_slot); in handle_presence_change()
216 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_presence_change()
217 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_presence_change()
219 if ((!(ctrl->ctrl_int_comp & (0x010000 << hp_slot))) || in handle_presence_change()
220 (!(ctrl->ctrl_int_comp & (0x01000000 << hp_slot)))) { in handle_presence_change()
237 int hp_slot; in handle_power_fault() local
251 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_power_fault()
252 if (change & (0x01 << hp_slot)) { in handle_power_fault()
257 (hp_slot + ctrl->slot_device_offset), 0); in handle_power_fault()
261 taskInfo->hp_slot = hp_slot; in handle_power_fault()
265 if (ctrl->ctrl_int_comp & (0x00000100 << hp_slot)) { in handle_power_fault()
279 amber_LED_on (ctrl, hp_slot); in handle_power_fault()
280 green_LED_off (ctrl, hp_slot); in handle_power_fault()
298 info("power fault bit %x set\n", hp_slot); in handle_power_fault()
1129 static u8 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_slot) in set_controller_speed() argument
1145 if (slot->device == (hp_slot + ctrl->slot_device_offset)) in set_controller_speed()
1247 slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in set_controller_speed()
1273 u8 hp_slot; in board_replaced() local
1278 hp_slot = func->device - ctrl->slot_device_offset; in board_replaced()
1283 if (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot)) in board_replaced()
1288 else if (is_slot_enabled (ctrl, hp_slot)) in board_replaced()
1294 enable_slot_power (ctrl, hp_slot); in board_replaced()
1312 adapter_speed = get_adapter_speed(ctrl, hp_slot); in board_replaced()
1314 if (set_controller_speed(ctrl, adapter_speed, hp_slot)) in board_replaced()
1318 disable_slot_power (ctrl, hp_slot); in board_replaced()
1332 slot_enable (ctrl, hp_slot); in board_replaced()
1333 green_LED_blink (ctrl, hp_slot); in board_replaced()
1335 amber_LED_off (ctrl, hp_slot); in board_replaced()
1369 amber_LED_on (ctrl, hp_slot); in board_replaced()
1370 green_LED_off (ctrl, hp_slot); in board_replaced()
1371 slot_disable (ctrl, hp_slot); in board_replaced()
1395 amber_LED_on (ctrl, hp_slot); in board_replaced()
1396 green_LED_off (ctrl, hp_slot); in board_replaced()
1397 slot_disable (ctrl, hp_slot); in board_replaced()
1423 u8 hp_slot; in board_added() local
1434 hp_slot = func->device - ctrl->slot_device_offset; in board_added()
1436 __func__, func->device, ctrl->slot_device_offset, hp_slot); in board_added()
1441 enable_slot_power(ctrl, hp_slot); in board_added()
1460 adapter_speed = get_adapter_speed(ctrl, hp_slot); in board_added()
1462 if (set_controller_speed(ctrl, adapter_speed, hp_slot)) in board_added()
1466 disable_slot_power (ctrl, hp_slot); in board_added()
1478 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in board_added()
1487 slot_enable (ctrl, hp_slot); in board_added()
1490 green_LED_blink (ctrl, hp_slot); in board_added()
1493 amber_LED_off (ctrl, hp_slot); in board_added()
1560 amber_LED_on (ctrl, hp_slot); in board_added()
1561 green_LED_off (ctrl, hp_slot); in board_added()
1562 slot_disable (ctrl, hp_slot); in board_added()
1592 green_LED_on (ctrl, hp_slot); in board_added()
1603 amber_LED_on (ctrl, hp_slot); in board_added()
1604 green_LED_off (ctrl, hp_slot); in board_added()
1605 slot_disable (ctrl, hp_slot); in board_added()
1631 u8 hp_slot; in remove_board() local
1642 hp_slot = func->device - ctrl->slot_device_offset; in remove_board()
1643 dbg("In %s, hp_slot = %d\n", __func__, hp_slot); in remove_board()
1675 green_LED_off (ctrl, hp_slot); in remove_board()
1676 slot_disable (ctrl, hp_slot); in remove_board()
1682 temp_byte &= ~(0x01 << hp_slot); in remove_board()
1806 u8 hp_slot; in interrupt_event_handler() local
1815 hp_slot = ctrl->event_queue[loop].hp_slot; in interrupt_event_handler()
1817 func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0); in interrupt_event_handler()
1821 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1826 hp_slot, func, p_slot); in interrupt_event_handler()
1840 green_LED_on (ctrl, hp_slot); in interrupt_event_handler()
1844 green_LED_off (ctrl, hp_slot); in interrupt_event_handler()
1851 amber_LED_off (ctrl, hp_slot); in interrupt_event_handler()
1864 if (is_slot_enabled (ctrl, hp_slot)) { in interrupt_event_handler()
1877 amber_LED_off (ctrl, hp_slot); in interrupt_event_handler()
1878 green_LED_blink (ctrl, hp_slot); in interrupt_event_handler()
1887 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1925 u8 hp_slot; in cpqhp_pushbutton_thread() local
1932 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1936 if (is_slot_enabled(ctrl, hp_slot)) { in cpqhp_pushbutton_thread()
1947 amber_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1948 green_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1970 amber_LED_on(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1971 green_LED_off(ctrl, hp_slot); in cpqhp_pushbutton_thread()
1989 u8 device, hp_slot; in cpqhp_process_SI() local
1999 hp_slot = device - ctrl->slot_device_offset; in cpqhp_process_SI()
2007 if (tempdword & (0x01 << hp_slot)) in cpqhp_process_SI()
2028 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhp_process_SI()
2029 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in cpqhp_process_SI()
2031 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in cpqhp_process_SI()
2058 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhp_process_SI()
2060 (temp_word >> (hp_slot + 7)) & 0x02; in cpqhp_process_SI()
2062 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in cpqhp_process_SI()