Lines Matching refs:p_slot

165 	struct slot *p_slot;  in handle_presence_change()  local
189 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change()
212 if ((p_slot->state == BLINKINGON_STATE) in handle_presence_change()
213 || (p_slot->state == BLINKINGOFF_STATE)) { in handle_presence_change()
216 } else if ((p_slot->state == POWERON_STATE) in handle_presence_change()
217 || (p_slot->state == POWEROFF_STATE)) { in handle_presence_change()
1393 struct slot *p_slot; in board_added() local
1442 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in board_added()
1813 struct slot *p_slot; in interrupt_event_handler() local
1825 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1828 hp_slot, func, p_slot); in interrupt_event_handler()
1835 del_timer(&p_slot->task_event); in interrupt_event_handler()
1840 if (p_slot->state == BLINKINGOFF_STATE) { in interrupt_event_handler()
1845 } else if (p_slot->state == BLINKINGON_STATE) { in interrupt_event_handler()
1852 info(msg_button_cancel, p_slot->number); in interrupt_event_handler()
1854 p_slot->state = STATIC_STATE; in interrupt_event_handler()
1873 p_slot->state = BLINKINGOFF_STATE; in interrupt_event_handler()
1874 info(msg_button_off, p_slot->number); in interrupt_event_handler()
1878 p_slot->state = BLINKINGON_STATE; in interrupt_event_handler()
1879 info(msg_button_on, p_slot->number); in interrupt_event_handler()
1895 init_timer(&p_slot->task_event); in interrupt_event_handler()
1896 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1897 p_slot->ctrl = ctrl; in interrupt_event_handler()
1899 p_slot->task_event.expires = jiffies + 5 * HZ; // 5 second delay in interrupt_event_handler()
1900 p_slot->task_event.function = pushbutton_helper_thread; in interrupt_event_handler()
1901 p_slot->task_event.data = (u32) p_slot; in interrupt_event_handler()
1903 dbg("add_timer p_slot = %p\n", p_slot); in interrupt_event_handler()
1904 add_timer(&p_slot->task_event); in interrupt_event_handler()
1911 if (p_slot) in interrupt_event_handler()
1912 update_slot_info(ctrl, p_slot); in interrupt_event_handler()
1938 struct slot *p_slot = (struct slot *) slot; in cpqhp_pushbutton_thread() local
1939 struct controller *ctrl = (struct controller *) p_slot->ctrl; in cpqhp_pushbutton_thread()
1942 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1944 device = p_slot->device; in cpqhp_pushbutton_thread()
1947 p_slot->state = POWEROFF_STATE; in cpqhp_pushbutton_thread()
1949 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1968 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1970 p_slot->state = POWERON_STATE; in cpqhp_pushbutton_thread()
1973 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1992 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
2005 struct slot* p_slot; in cpqhp_process_SI() local
2015 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SI()
2016 if (p_slot) { in cpqhp_process_SI()
2017 physical_slot = p_slot->number; in cpqhp_process_SI()
2094 if (p_slot) in cpqhp_process_SI()
2095 update_slot_info(ctrl, p_slot); in cpqhp_process_SI()
2107 struct slot* p_slot; in cpqhp_process_SS() local
2112 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SS()
2113 if (p_slot) { in cpqhp_process_SS()
2114 physical_slot = p_slot->number; in cpqhp_process_SS()
2158 if (p_slot) in cpqhp_process_SS()
2159 update_slot_info(ctrl, p_slot); in cpqhp_process_SS()