Searched refs:p_slot (Results 1 – 7 of 7) sorted by relevance
/linux-4.19.296/drivers/pci/hotplug/ |
D | shpchp_ctrl.c | 25 static int shpchp_enable_slot(struct slot *p_slot); 26 static int shpchp_disable_slot(struct slot *p_slot); 28 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event() argument 37 info->p_slot = p_slot; in queue_interrupt_event() 40 queue_work(p_slot->wq, &info->work); in queue_interrupt_event() 47 struct slot *p_slot; in shpchp_handle_attention_button() local 53 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button() 54 p_slot->hpc_ops->get_adapter_status(p_slot, &(p_slot->presence_save)); in shpchp_handle_attention_button() 59 ctrl_info(ctrl, "Button pressed on Slot(%s)\n", slot_name(p_slot)); in shpchp_handle_attention_button() 62 queue_interrupt_event(p_slot, event_type); in shpchp_handle_attention_button() [all …]
|
D | pciehp_ctrl.c | 54 static int board_added(struct slot *p_slot) in board_added() argument 57 struct controller *ctrl = p_slot->ctrl; in board_added() 62 retval = pciehp_power_on_slot(p_slot); in board_added() 67 pciehp_green_led_blink(p_slot); in board_added() 77 if (ctrl->power_fault_detected || pciehp_query_power_fault(p_slot)) { in board_added() 78 ctrl_err(ctrl, "Slot(%s): Power fault\n", slot_name(p_slot)); in board_added() 83 retval = pciehp_configure_device(p_slot); in board_added() 92 pciehp_green_led_on(p_slot); in board_added() 93 pciehp_set_attention_status(p_slot, 0); in board_added() 97 set_slot_off(ctrl, p_slot); in board_added() [all …]
|
D | shpchp_pci.c | 23 int shpchp_configure_device(struct slot *p_slot) in shpchp_configure_device() argument 26 struct controller *ctrl = p_slot->ctrl; in shpchp_configure_device() 33 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 37 p_slot->bus, p_slot->device); in shpchp_configure_device() 43 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 51 if (PCI_SLOT(dev->devfn) == p_slot->device) in shpchp_configure_device() 64 int shpchp_unconfigure_device(struct slot *p_slot) in shpchp_unconfigure_device() argument 67 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; in shpchp_unconfigure_device() 69 struct controller *ctrl = p_slot->ctrl; in shpchp_unconfigure_device() 72 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); in shpchp_unconfigure_device() [all …]
|
D | shpchp.h | 84 struct slot *p_slot; member 164 int shpchp_configure_device(struct slot *p_slot); 165 int shpchp_unconfigure_device(struct slot *p_slot); 226 static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot) in amd_pogo_errata_save_misc_reg() argument 231 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp); in amd_pogo_errata_save_misc_reg() 233 p_slot->ctrl->pcix_misc2_reg = pcix_misc2_temp; in amd_pogo_errata_save_misc_reg() 241 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); in amd_pogo_errata_save_misc_reg() 244 static inline void amd_pogo_errata_restore_misc_reg(struct slot *p_slot) in amd_pogo_errata_restore_misc_reg() argument 253 …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() 256 ctrl_dbg(p_slot->ctrl, in amd_pogo_errata_restore_misc_reg() [all …]
|
D | pciehp_pci.c | 23 int pciehp_configure_device(struct slot *p_slot) in pciehp_configure_device() argument 26 struct pci_dev *bridge = p_slot->ctrl->pcie->port; in pciehp_configure_device() 29 struct controller *ctrl = p_slot->ctrl; in pciehp_configure_device() 72 void pciehp_unconfigure_device(struct slot *p_slot) in pciehp_unconfigure_device() argument 76 struct pci_bus *parent = p_slot->ctrl->pcie->port->subordinate; in pciehp_unconfigure_device() 78 struct controller *ctrl = p_slot->ctrl; in pciehp_unconfigure_device() 82 pciehp_get_adapter_status(p_slot, &presence); in pciehp_unconfigure_device()
|
D | cpqphp_ctrl.c | 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 [all …]
|
D | pciehp.h | 188 int pciehp_configure_device(struct slot *p_slot); 189 void pciehp_unconfigure_device(struct slot *p_slot);
|