Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/pci/hotplug/
Dshpchp_ctrl.c39 static int shpchp_enable_slot(struct slot *p_slot);
40 static int shpchp_disable_slot(struct slot *p_slot);
42 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event() argument
51 info->p_slot = p_slot; in queue_interrupt_event()
54 queue_work(p_slot->wq, &info->work); in queue_interrupt_event()
61 struct slot *p_slot; in shpchp_handle_attention_button() local
67 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button()
68 p_slot->hpc_ops->get_adapter_status(p_slot, &(p_slot->presence_save)); in shpchp_handle_attention_button()
73 ctrl_info(ctrl, "Button pressed on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_attention_button()
76 queue_interrupt_event(p_slot, event_type); in shpchp_handle_attention_button()
[all …]
Dpciehp_ctrl.c40 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event() argument
49 info->p_slot = p_slot; in queue_interrupt_event()
52 queue_work(p_slot->wq, &info->work); in queue_interrupt_event()
57 u8 pciehp_handle_attention_button(struct slot *p_slot) in pciehp_handle_attention_button() argument
60 struct controller *ctrl = p_slot->ctrl; in pciehp_handle_attention_button()
68 ctrl_info(ctrl, "Button pressed on Slot(%s)\n", slot_name(p_slot)); in pciehp_handle_attention_button()
71 queue_interrupt_event(p_slot, event_type); in pciehp_handle_attention_button()
76 u8 pciehp_handle_switch_change(struct slot *p_slot) in pciehp_handle_switch_change() argument
80 struct controller *ctrl = p_slot->ctrl; in pciehp_handle_switch_change()
85 pciehp_get_latch_status(p_slot, &getstatus); in pciehp_handle_switch_change()
[all …]
Dshpchp_pci.c37 int shpchp_configure_device(struct slot *p_slot) in shpchp_configure_device() argument
40 struct controller *ctrl = p_slot->ctrl; in shpchp_configure_device()
47 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
51 p_slot->bus, p_slot->device); in shpchp_configure_device()
57 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
65 if (PCI_SLOT(dev->devfn) != p_slot->device) in shpchp_configure_device()
80 int shpchp_unconfigure_device(struct slot *p_slot) in shpchp_unconfigure_device() argument
84 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; in shpchp_unconfigure_device()
86 struct controller *ctrl = p_slot->ctrl; in shpchp_unconfigure_device()
89 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); in shpchp_unconfigure_device()
[all …]
Dshpchp.h98 struct slot *p_slot; member
179 int shpchp_configure_device(struct slot *p_slot);
180 int shpchp_unconfigure_device(struct slot *p_slot);
252 static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot) in amd_pogo_errata_save_misc_reg() argument
257 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp); in amd_pogo_errata_save_misc_reg()
259 p_slot->ctrl->pcix_misc2_reg = pcix_misc2_temp; in amd_pogo_errata_save_misc_reg()
267 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); in amd_pogo_errata_save_misc_reg()
270 static inline void amd_pogo_errata_restore_misc_reg(struct slot *p_slot) in amd_pogo_errata_restore_misc_reg() argument
279 …pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, &pcix_bridge_errors_r… in amd_pogo_errata_restore_misc_reg()
282 ctrl_dbg(p_slot->ctrl, in amd_pogo_errata_restore_misc_reg()
[all …]
Dpciehp.h85 struct slot *p_slot; member
135 u8 pciehp_handle_attention_button(struct slot *p_slot);
136 u8 pciehp_handle_switch_change(struct slot *p_slot);
137 u8 pciehp_handle_presence_change(struct slot *p_slot);
138 u8 pciehp_handle_power_fault(struct slot *p_slot);
139 void pciehp_handle_linkstate_change(struct slot *p_slot);
140 int pciehp_configure_device(struct slot *p_slot);
141 int pciehp_unconfigure_device(struct slot *p_slot);
145 int pciehp_enable_slot(struct slot *p_slot);
146 int pciehp_disable_slot(struct slot *p_slot);
Dpciehp_pci.c37 int pciehp_configure_device(struct slot *p_slot) in pciehp_configure_device() argument
40 struct pci_dev *bridge = p_slot->ctrl->pcie->port; in pciehp_configure_device()
43 struct controller *ctrl = p_slot->ctrl; in pciehp_configure_device()
76 int pciehp_unconfigure_device(struct slot *p_slot) in pciehp_unconfigure_device() argument
82 struct pci_bus *parent = p_slot->ctrl->pcie->port->subordinate; in pciehp_unconfigure_device()
84 struct controller *ctrl = p_slot->ctrl; in pciehp_unconfigure_device()
88 pciehp_get_adapter_status(p_slot, &presence); in pciehp_unconfigure_device()
Dcpqphp_ctrl.c149 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
[all …]