Lines Matching refs:hp_slot

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