• Home
  • Raw
  • Download

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()
1771 struct slot *p_slot; in interrupt_event_handler() local
1785 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in interrupt_event_handler()
1786 if (!p_slot) in interrupt_event_handler()
1790 hp_slot, func, p_slot); in interrupt_event_handler()
1797 del_timer(&p_slot->task_event); in interrupt_event_handler()
1801 if (p_slot->state == BLINKINGOFF_STATE) { in interrupt_event_handler()
1805 } else if (p_slot->state == BLINKINGON_STATE) { in interrupt_event_handler()
1811 info(msg_button_cancel, p_slot->number); in interrupt_event_handler()
1813 p_slot->state = STATIC_STATE; in interrupt_event_handler()
1830 p_slot->state = BLINKINGOFF_STATE; in interrupt_event_handler()
1831 info(msg_button_off, p_slot->number); in interrupt_event_handler()
1834 p_slot->state = BLINKINGON_STATE; in interrupt_event_handler()
1835 info(msg_button_on, p_slot->number); in interrupt_event_handler()
1850 timer_setup(&p_slot->task_event, in interrupt_event_handler()
1853 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
1854 p_slot->ctrl = ctrl; in interrupt_event_handler()
1856 p_slot->task_event.expires = jiffies + 5 * HZ; /* 5 second delay */ in interrupt_event_handler()
1858 dbg("add_timer p_slot = %p\n", p_slot); in interrupt_event_handler()
1859 add_timer(&p_slot->task_event); in interrupt_event_handler()
1886 struct slot *p_slot = from_timer(p_slot, t, task_event); in cpqhp_pushbutton_thread() local
1887 struct controller *ctrl = (struct controller *) p_slot->ctrl; in cpqhp_pushbutton_thread()
1890 hp_slot = p_slot->hp_slot; in cpqhp_pushbutton_thread()
1893 p_slot->state = POWEROFF_STATE; in cpqhp_pushbutton_thread()
1895 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1912 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1914 p_slot->state = POWERON_STATE; in cpqhp_pushbutton_thread()
1917 func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); in cpqhp_pushbutton_thread()
1936 p_slot->state = STATIC_STATE; in cpqhp_pushbutton_thread()
1947 struct slot *p_slot; in cpqhp_process_SI() local
1953 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SI()
2035 struct slot *p_slot; in cpqhp_process_SS() local
2040 p_slot = cpqhp_find_slot(ctrl, device); in cpqhp_process_SS()