Lines Matching refs:p_slot

149 	struct slot *p_slot;  in handle_presence_change()  local
174 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change()
175 if (!p_slot) in handle_presence_change()
200 if ((p_slot->state == BLINKINGON_STATE) in handle_presence_change()
201 || (p_slot->state == BLINKINGOFF_STATE)) { in handle_presence_change()
204 } else if ((p_slot->state == POWERON_STATE) in handle_presence_change()
205 || (p_slot->state == POWEROFF_STATE)) { in handle_presence_change()
1431 struct slot *p_slot; in board_added() local
1478 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in board_added()
1807 struct slot *p_slot; in interrupt_event_handler() local
1821 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1822 if (!p_slot) in interrupt_event_handler()
1826 hp_slot, func, p_slot); in interrupt_event_handler()
1833 del_timer(&p_slot->task_event); in interrupt_event_handler()
1837 if (p_slot->state == BLINKINGOFF_STATE) { in interrupt_event_handler()
1841 } else if (p_slot->state == BLINKINGON_STATE) { in interrupt_event_handler()
1847 info(msg_button_cancel, p_slot->number); in interrupt_event_handler()
1849 p_slot->state = STATIC_STATE; in interrupt_event_handler()
1866 p_slot->state = BLINKINGOFF_STATE; in interrupt_event_handler()
1867 info(msg_button_off, p_slot->number); in interrupt_event_handler()
1870 p_slot->state = BLINKINGON_STATE; in interrupt_event_handler()
1871 info(msg_button_on, p_slot->number); in interrupt_event_handler()
1886 init_timer(&p_slot->task_event); in interrupt_event_handler()
1887 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1888 p_slot->ctrl = ctrl; in interrupt_event_handler()
1890 p_slot->task_event.expires = jiffies + 5 * HZ; /* 5 second delay */ in interrupt_event_handler()
1891 p_slot->task_event.function = pushbutton_helper_thread; in interrupt_event_handler()
1892 p_slot->task_event.data = (u32) p_slot; in interrupt_event_handler()
1894 dbg("add_timer p_slot = %p\n", p_slot); in interrupt_event_handler()
1895 add_timer(&p_slot->task_event); in interrupt_event_handler()
1902 update_slot_info(ctrl, p_slot); in interrupt_event_handler()
1928 struct slot *p_slot = (struct slot *) slot; in cpqhp_pushbutton_thread() local
1929 struct controller *ctrl = (struct controller *) p_slot->ctrl; in cpqhp_pushbutton_thread()
1932 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1934 device = p_slot->device; in cpqhp_pushbutton_thread()
1937 p_slot->state = POWEROFF_STATE; in cpqhp_pushbutton_thread()
1939 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1956 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1958 p_slot->state = POWERON_STATE; in cpqhp_pushbutton_thread()
1961 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1980 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1993 struct slot *p_slot; in cpqhp_process_SI() local
2000 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SI()
2001 if (p_slot) in cpqhp_process_SI()
2002 physical_slot = p_slot->number; in cpqhp_process_SI()
2073 if (p_slot) in cpqhp_process_SI()
2074 update_slot_info(ctrl, p_slot); in cpqhp_process_SI()
2087 struct slot *p_slot; in cpqhp_process_SS() local
2093 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SS()
2094 if (p_slot) in cpqhp_process_SS()
2095 physical_slot = p_slot->number; in cpqhp_process_SS()
2141 if (p_slot) in cpqhp_process_SS()
2142 update_slot_info(ctrl, p_slot); in cpqhp_process_SS()