Lines Matching refs:p_slot

135 	struct slot *p_slot;  in handle_presence_change()  local
160 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change()
161 if (!p_slot) in handle_presence_change()
186 if ((p_slot->state == BLINKINGON_STATE) in handle_presence_change()
187 || (p_slot->state == BLINKINGOFF_STATE)) { in handle_presence_change()
190 } else if ((p_slot->state == POWERON_STATE) in handle_presence_change()
191 || (p_slot->state == POWEROFF_STATE)) { in handle_presence_change()
1415 struct slot *p_slot; in board_added() local
1462 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in board_added()
1774 struct slot *p_slot; in interrupt_event_handler() local
1788 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1789 if (!p_slot) in interrupt_event_handler()
1793 hp_slot, func, p_slot); in interrupt_event_handler()
1800 del_timer(&p_slot->task_event); in interrupt_event_handler()
1804 if (p_slot->state == BLINKINGOFF_STATE) { in interrupt_event_handler()
1808 } else if (p_slot->state == BLINKINGON_STATE) { in interrupt_event_handler()
1814 info(msg_button_cancel, p_slot->number); in interrupt_event_handler()
1816 p_slot->state = STATIC_STATE; in interrupt_event_handler()
1833 p_slot->state = BLINKINGOFF_STATE; in interrupt_event_handler()
1834 info(msg_button_off, p_slot->number); in interrupt_event_handler()
1837 p_slot->state = BLINKINGON_STATE; in interrupt_event_handler()
1838 info(msg_button_on, p_slot->number); in interrupt_event_handler()
1853 timer_setup(&p_slot->task_event, in interrupt_event_handler()
1856 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1857 p_slot->ctrl = ctrl; in interrupt_event_handler()
1859 p_slot->task_event.expires = jiffies + 5 * HZ; /* 5 second delay */ in interrupt_event_handler()
1861 dbg("add_timer p_slot = %p\n", p_slot); in interrupt_event_handler()
1862 add_timer(&p_slot->task_event); in interrupt_event_handler()
1890 struct slot *p_slot = from_timer(p_slot, t, task_event); in cpqhp_pushbutton_thread() local
1891 struct controller *ctrl = (struct controller *) p_slot->ctrl; in cpqhp_pushbutton_thread()
1894 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1896 device = p_slot->device; in cpqhp_pushbutton_thread()
1899 p_slot->state = POWEROFF_STATE; in cpqhp_pushbutton_thread()
1901 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1918 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1920 p_slot->state = POWERON_STATE; in cpqhp_pushbutton_thread()
1923 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1942 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1953 struct slot *p_slot; in cpqhp_process_SI() local
1960 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SI()
1961 if (p_slot) in cpqhp_process_SI()
1962 physical_slot = p_slot->number; in cpqhp_process_SI()
2044 struct slot *p_slot; in cpqhp_process_SS() local
2050 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SS()
2051 if (p_slot) in cpqhp_process_SS()
2052 physical_slot = p_slot->number; in cpqhp_process_SS()