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);
1109 * @hp_slot: the slot number where the adapter is installed.
1114 static u8 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_slot)
1130 if (slot->device == (hp_slot + ctrl->slot_device_offset))
1230 slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
1256 u8 hp_slot;
1261 hp_slot = func->device - ctrl->slot_device_offset;
1266 if (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot))
1271 else if (is_slot_enabled(ctrl, hp_slot))
1277 enable_slot_power(ctrl, hp_slot);
1295 adapter_speed = get_adapter_speed(ctrl, hp_slot);
1297 if (set_controller_speed(ctrl, adapter_speed, hp_slot))
1301 disable_slot_power(ctrl, hp_slot);
1315 slot_enable(ctrl, hp_slot);
1316 green_LED_blink(ctrl, hp_slot);
1318 amber_LED_off(ctrl, hp_slot);
1352 amber_LED_on(ctrl, hp_slot);
1353 green_LED_off(ctrl, hp_slot);
1354 slot_disable(ctrl, hp_slot);
1378 amber_LED_on(ctrl, hp_slot);
1379 green_LED_off(ctrl, hp_slot);
1380 slot_disable(ctrl, hp_slot);
1406 u8 hp_slot;
1416 hp_slot = func->device - ctrl->slot_device_offset;
1417 dbg("%s: func->device, slot_offset, hp_slot = %d, %d ,%d\n",
1418 __func__, func->device, ctrl->slot_device_offset, hp_slot);
1423 enable_slot_power(ctrl, hp_slot);
1442 adapter_speed = get_adapter_speed(ctrl, hp_slot);
1444 if (set_controller_speed(ctrl, adapter_speed, hp_slot))
1448 disable_slot_power(ctrl, hp_slot);
1460 cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
1469 slot_enable(ctrl, hp_slot);
1472 green_LED_blink(ctrl, hp_slot);
1475 amber_LED_off(ctrl, hp_slot);
1542 amber_LED_on(ctrl, hp_slot);
1543 green_LED_off(ctrl, hp_slot);
1544 slot_disable(ctrl, hp_slot);
1574 green_LED_on(ctrl, hp_slot);
1585 amber_LED_on(ctrl, hp_slot);
1586 green_LED_off(ctrl, hp_slot);
1587 slot_disable(ctrl, hp_slot);
1613 u8 hp_slot;
1623 hp_slot = func->device - ctrl->slot_device_offset;
1624 dbg("In %s, hp_slot = %d\n", __func__, hp_slot);
1656 green_LED_off(ctrl, hp_slot);
1657 slot_disable(ctrl, hp_slot);
1663 temp_byte &= ~(0x01 << hp_slot);
1770 u8 hp_slot;
1779 hp_slot = ctrl->event_queue[loop].hp_slot;
1781 func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0);
1785 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
1789 dbg("hp_slot %d, func %p, p_slot %p\n",
1790 hp_slot, func, p_slot);
1804 green_LED_on(ctrl, hp_slot);
1808 green_LED_off(ctrl, hp_slot);
1815 amber_LED_off(ctrl, hp_slot);
1828 if (is_slot_enabled(ctrl, hp_slot)) {
1841 amber_LED_off(ctrl, hp_slot);
1842 green_LED_blink(ctrl, hp_slot);
1853 p_slot->hp_slot = hp_slot;
1884 u8 hp_slot;
1890 hp_slot = p_slot->hp_slot;
1892 if (is_slot_enabled(ctrl, hp_slot)) {
1903 amber_LED_on(ctrl, hp_slot);
1904 green_LED_on(ctrl, hp_slot);
1926 amber_LED_on(ctrl, hp_slot);
1927 green_LED_off(ctrl, hp_slot);
1943 u8 device, hp_slot;
1952 hp_slot = device - ctrl->slot_device_offset;
1958 if (tempdword & (0x01 << hp_slot))
1979 func->presence_save = (temp_word >> hp_slot) & 0x01;
1980 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02;
1982 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) {
2009 func->presence_save = (temp_word >> hp_slot) & 0x01;
2011 (temp_word >> (hp_slot + 7)) & 0x02;
2013 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) {