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()
1417 struct slot *p_slot; in board_added() local
1464 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in board_added()
1794 struct slot *p_slot; in interrupt_event_handler() local
1808 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1809 if (!p_slot) in interrupt_event_handler()
1813 hp_slot, func, p_slot); in interrupt_event_handler()
1820 del_timer(&p_slot->task_event); in interrupt_event_handler()
1824 if (p_slot->state == BLINKINGOFF_STATE) { in interrupt_event_handler()
1828 } else if (p_slot->state == BLINKINGON_STATE) { in interrupt_event_handler()
1834 info(msg_button_cancel, p_slot->number); in interrupt_event_handler()
1836 p_slot->state = STATIC_STATE; in interrupt_event_handler()
1853 p_slot->state = BLINKINGOFF_STATE; in interrupt_event_handler()
1854 info(msg_button_off, p_slot->number); in interrupt_event_handler()
1857 p_slot->state = BLINKINGON_STATE; in interrupt_event_handler()
1858 info(msg_button_on, p_slot->number); in interrupt_event_handler()
1873 timer_setup(&p_slot->task_event, in interrupt_event_handler()
1876 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1877 p_slot->ctrl = ctrl; in interrupt_event_handler()
1879 p_slot->task_event.expires = jiffies + 5 * HZ; /* 5 second delay */ in interrupt_event_handler()
1881 dbg("add_timer p_slot = %p\n", p_slot); in interrupt_event_handler()
1882 add_timer(&p_slot->task_event); in interrupt_event_handler()
1889 update_slot_info(ctrl, p_slot); in interrupt_event_handler()
1915 struct slot *p_slot = from_timer(p_slot, t, task_event); in cpqhp_pushbutton_thread() local
1916 struct controller *ctrl = (struct controller *) p_slot->ctrl; in cpqhp_pushbutton_thread()
1919 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1921 device = p_slot->device; in cpqhp_pushbutton_thread()
1924 p_slot->state = POWEROFF_STATE; in cpqhp_pushbutton_thread()
1926 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1943 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1945 p_slot->state = POWERON_STATE; in cpqhp_pushbutton_thread()
1948 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1967 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1980 struct slot *p_slot; in cpqhp_process_SI() local
1987 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SI()
1988 if (p_slot) in cpqhp_process_SI()
1989 physical_slot = p_slot->number; in cpqhp_process_SI()
2060 if (p_slot) in cpqhp_process_SI()
2061 update_slot_info(ctrl, p_slot); in cpqhp_process_SI()
2074 struct slot *p_slot; in cpqhp_process_SS() local
2080 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SS()
2081 if (p_slot) in cpqhp_process_SS()
2082 physical_slot = p_slot->number; in cpqhp_process_SS()
2128 if (p_slot) in cpqhp_process_SS()
2129 update_slot_info(ctrl, p_slot); in cpqhp_process_SS()