Lines Matching refs:hpp
1799 static void program_hpp_type0(struct pci_dev *dev, struct hpp_type0 *hpp) in program_hpp_type0() argument
1803 if (!hpp) in program_hpp_type0()
1804 hpp = &pci_default_type0; in program_hpp_type0()
1806 if (hpp->revision > 1) { in program_hpp_type0()
1808 hpp->revision); in program_hpp_type0()
1809 hpp = &pci_default_type0; in program_hpp_type0()
1812 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, hpp->cache_line_size); in program_hpp_type0()
1813 pci_write_config_byte(dev, PCI_LATENCY_TIMER, hpp->latency_timer); in program_hpp_type0()
1815 if (hpp->enable_serr) in program_hpp_type0()
1817 if (hpp->enable_perr) in program_hpp_type0()
1824 hpp->latency_timer); in program_hpp_type0()
1826 if (hpp->enable_serr) in program_hpp_type0()
1828 if (hpp->enable_perr) in program_hpp_type0()
1834 static void program_hpp_type1(struct pci_dev *dev, struct hpp_type1 *hpp) in program_hpp_type1() argument
1838 if (!hpp) in program_hpp_type1()
1863 static void program_hpp_type2(struct pci_dev *dev, struct hpp_type2 *hpp) in program_hpp_type2() argument
1868 if (!hpp) in program_hpp_type2()
1874 if (hpp->revision > 1) { in program_hpp_type2()
1876 hpp->revision); in program_hpp_type2()
1885 hpp->pci_exp_devctl_and |= PCI_EXP_DEVCTL_PAYLOAD | in program_hpp_type2()
1887 hpp->pci_exp_devctl_or &= ~(PCI_EXP_DEVCTL_PAYLOAD | in program_hpp_type2()
1892 ~hpp->pci_exp_devctl_and, hpp->pci_exp_devctl_or); in program_hpp_type2()
1901 hpp->pci_exp_lnkctl_and |= PCI_EXP_LNKCTL_RCB; in program_hpp_type2()
1902 hpp->pci_exp_lnkctl_or &= ~PCI_EXP_LNKCTL_RCB; in program_hpp_type2()
1904 hpp->pci_exp_lnkctl_or |= PCI_EXP_LNKCTL_RCB; in program_hpp_type2()
1907 ~hpp->pci_exp_lnkctl_and, hpp->pci_exp_lnkctl_or); in program_hpp_type2()
1917 reg32 = (reg32 & hpp->unc_err_mask_and) | hpp->unc_err_mask_or; in program_hpp_type2()
1922 reg32 = (reg32 & hpp->unc_err_sever_and) | hpp->unc_err_sever_or; in program_hpp_type2()
1927 reg32 = (reg32 & hpp->cor_err_mask_and) | hpp->cor_err_mask_or; in program_hpp_type2()
1932 reg32 = (reg32 & hpp->adv_err_cap_and) | hpp->adv_err_cap_or; in program_hpp_type2()
2101 struct hotplug_params hpp; in pci_configure_device() local
2110 memset(&hpp, 0, sizeof(hpp)); in pci_configure_device()
2111 ret = pci_get_hp_params(dev, &hpp); in pci_configure_device()
2115 program_hpp_type2(dev, hpp.t2); in pci_configure_device()
2116 program_hpp_type1(dev, hpp.t1); in pci_configure_device()
2117 program_hpp_type0(dev, hpp.t0); in pci_configure_device()