Lines Matching refs:hpx
139 static void program_hpx_type0(struct pci_dev *dev, struct hpx_type0 *hpx) in program_hpx_type0() argument
143 if (!hpx) in program_hpx_type0()
144 hpx = &pci_default_type0; in program_hpx_type0()
146 if (hpx->revision > 1) { in program_hpx_type0()
148 hpx->revision); in program_hpx_type0()
149 hpx = &pci_default_type0; in program_hpx_type0()
152 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, hpx->cache_line_size); in program_hpx_type0()
153 pci_write_config_byte(dev, PCI_LATENCY_TIMER, hpx->latency_timer); in program_hpx_type0()
155 if (hpx->enable_serr) in program_hpx_type0()
157 if (hpx->enable_perr) in program_hpx_type0()
164 hpx->latency_timer); in program_hpx_type0()
166 if (hpx->enable_perr) in program_hpx_type0()
208 static void program_hpx_type1(struct pci_dev *dev, struct hpx_type1 *hpx) in program_hpx_type1() argument
212 if (!hpx) in program_hpx_type1()
285 static void program_hpx_type2(struct pci_dev *dev, struct hpx_type2 *hpx) in program_hpx_type2() argument
290 if (!hpx) in program_hpx_type2()
296 if (hpx->revision > 1) { in program_hpx_type2()
298 hpx->revision); in program_hpx_type2()
307 hpx->pci_exp_devctl_and |= PCI_EXP_DEVCTL_PAYLOAD | in program_hpx_type2()
309 hpx->pci_exp_devctl_or &= ~(PCI_EXP_DEVCTL_PAYLOAD | in program_hpx_type2()
314 ~hpx->pci_exp_devctl_and, hpx->pci_exp_devctl_or); in program_hpx_type2()
323 hpx->pci_exp_lnkctl_and |= PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
324 hpx->pci_exp_lnkctl_or &= ~PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
326 hpx->pci_exp_lnkctl_or |= PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
329 ~hpx->pci_exp_lnkctl_and, hpx->pci_exp_lnkctl_or); in program_hpx_type2()
339 reg32 = (reg32 & hpx->unc_err_mask_and) | hpx->unc_err_mask_or; in program_hpx_type2()
344 reg32 = (reg32 & hpx->unc_err_sever_and) | hpx->unc_err_sever_or; in program_hpx_type2()
349 reg32 = (reg32 & hpx->cor_err_mask_and) | hpx->cor_err_mask_or; in program_hpx_type2()
354 reg32 = (reg32 & hpx->adv_err_cap_and) | hpx->adv_err_cap_or; in program_hpx_type2()
558 static void program_hpx_type3(struct pci_dev *dev, struct hpx_type3 *hpx) in program_hpx_type3() argument
560 if (!hpx) in program_hpx_type3()
566 program_hpx_type3_register(dev, hpx); in program_hpx_type3()