Home
last modified time | relevance | path

Searched refs:p_slot (Results 1 – 5 of 5) sorted by relevance

/linux-2.4.37.9/drivers/hotplug/
Dshpchp_ctrl.c61 struct slot *p_slot; in shpchp_handle_attention_button() local
74 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button()
76 p_slot->hpc_ops->get_adapter_status(p_slot, &(func->presence_save)); in shpchp_handle_attention_button()
77 p_slot->hpc_ops->get_latch_status(p_slot, &getstatus); in shpchp_handle_attention_button()
90 if ((p_slot->state == BLINKINGON_STATE) in shpchp_handle_attention_button()
91 || (p_slot->state == BLINKINGOFF_STATE)) { in shpchp_handle_attention_button()
98 } else if ((p_slot->state == POWERON_STATE) in shpchp_handle_attention_button()
99 || (p_slot->state == POWEROFF_STATE)) { in shpchp_handle_attention_button()
118 struct slot *p_slot; in shpchp_handle_switch_change() local
137 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_switch_change()
[all …]
Dpciehp_ctrl.c58 struct slot *p_slot; in pciehp_handle_attention_button() local
71 p_slot = pciehp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in pciehp_handle_attention_button()
73 p_slot->hpc_ops->get_adapter_status(p_slot, &(func->presence_save)); in pciehp_handle_attention_button()
74 p_slot->hpc_ops->get_latch_status(p_slot, &getstatus); in pciehp_handle_attention_button()
87 if ((p_slot->state == BLINKINGON_STATE) in pciehp_handle_attention_button()
88 || (p_slot->state == BLINKINGOFF_STATE)) { in pciehp_handle_attention_button()
95 } else if ((p_slot->state == POWERON_STATE) in pciehp_handle_attention_button()
96 || (p_slot->state == POWEROFF_STATE)) { in pciehp_handle_attention_button()
114 struct slot *p_slot; in pciehp_handle_switch_change() local
133 p_slot = pciehp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in pciehp_handle_switch_change()
[all …]
Dpciehp.h274 struct slot *p_slot, *tmp_slot = NULL; in pciehp_find_slot() local
279 p_slot = ctrl->slot; in pciehp_find_slot()
281 dbg("p_slot = %p\n", p_slot); in pciehp_find_slot()
283 while (p_slot && (p_slot->device != device)) { in pciehp_find_slot()
284 tmp_slot = p_slot; in pciehp_find_slot()
285 p_slot = p_slot->next; in pciehp_find_slot()
286 dbg("In while loop, p_slot = %p\n", p_slot); in pciehp_find_slot()
288 if (p_slot == NULL) { in pciehp_find_slot()
290 p_slot = tmp_slot; in pciehp_find_slot()
293 return (p_slot); in pciehp_find_slot()
Dcpqphp_ctrl.c165 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()
[all …]
Dshpchp.h355 struct slot *p_slot, *tmp_slot = NULL; in shpchp_find_slot() local
360 p_slot = ctrl->slot; in shpchp_find_slot()
362 dbg("p_slot = %p\n", p_slot); in shpchp_find_slot()
364 while (p_slot && (p_slot->device != device)) { in shpchp_find_slot()
365 tmp_slot = p_slot; in shpchp_find_slot()
366 p_slot = p_slot->next; in shpchp_find_slot()
367 dbg("In while loop, p_slot = %p\n", p_slot); in shpchp_find_slot()
369 if (p_slot == NULL) { in shpchp_find_slot()
371 p_slot = tmp_slot; in shpchp_find_slot()
374 return (p_slot); in shpchp_find_slot()