Lines Matching refs:p_slot
98 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()
286 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, perr_set); in amd_pogo_errata_restore_misc_reg()
290 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()
293 ctrl_dbg(p_slot->ctrl, "Memory_Base_Limit[ RSE ] (W1C)\n"); in amd_pogo_errata_restore_misc_reg()
295 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MEM_BASE_LIMIT_OFFSET, rse_set); in amd_pogo_errata_restore_misc_reg()
298 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp ); in amd_pogo_errata_restore_misc_reg()
300 if (p_slot->ctrl->pcix_misc2_reg & SERRFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
305 if (p_slot->ctrl->pcix_misc2_reg & SERRNONFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
310 if (p_slot->ctrl->pcix_misc2_reg & PERRFLOODENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
315 if (p_slot->ctrl->pcix_misc2_reg & PERRFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
320 if (p_slot->ctrl->pcix_misc2_reg & PERRNONFATALENABLE_MASK) in amd_pogo_errata_restore_misc_reg()
324 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); in amd_pogo_errata_restore_misc_reg()