Lines Matching refs:p_slot
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()
260 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, perr_set); in amd_pogo_errata_restore_misc_reg()
264 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MEM_BASE_LIMIT_OFFSET, &pcix_mem_base_reg); in amd_pogo_errata_restore_misc_reg()
267 ctrl_dbg(p_slot->ctrl, "Memory_Base_Limit[ RSE ] (W1C)\n"); in amd_pogo_errata_restore_misc_reg()
269 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MEM_BASE_LIMIT_OFFSET, rse_set); in amd_pogo_errata_restore_misc_reg()
272 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp); in amd_pogo_errata_restore_misc_reg()
274 if (p_slot->ctrl->pcix_misc2_reg & SERRFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
279 if (p_slot->ctrl->pcix_misc2_reg & SERRNONFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
284 if (p_slot->ctrl->pcix_misc2_reg & PERRFLOODENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
289 if (p_slot->ctrl->pcix_misc2_reg & PERRFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
294 if (p_slot->ctrl->pcix_misc2_reg & PERRNONFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
298 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); in amd_pogo_errata_restore_misc_reg()