Lines Matching refs:hpx
162 static void program_hpx_type0(struct pci_dev *dev, struct hpx_type0 *hpx) in program_hpx_type0() argument
166 if (!hpx) in program_hpx_type0()
167 hpx = &pci_default_type0; in program_hpx_type0()
169 if (hpx->revision > 1) { in program_hpx_type0()
171 hpx->revision); in program_hpx_type0()
172 hpx = &pci_default_type0; in program_hpx_type0()
175 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, hpx->cache_line_size); in program_hpx_type0()
176 pci_write_config_byte(dev, PCI_LATENCY_TIMER, hpx->latency_timer); in program_hpx_type0()
178 if (hpx->enable_serr) in program_hpx_type0()
180 if (hpx->enable_perr) in program_hpx_type0()
187 hpx->latency_timer); in program_hpx_type0()
189 if (hpx->enable_perr) in program_hpx_type0()
231 static void program_hpx_type1(struct pci_dev *dev, struct hpx_type1 *hpx) in program_hpx_type1() argument
235 if (!hpx) in program_hpx_type1()
308 static void program_hpx_type2(struct pci_dev *dev, struct hpx_type2 *hpx) in program_hpx_type2() argument
313 if (!hpx) in program_hpx_type2()
319 if (hpx->revision > 1) { in program_hpx_type2()
321 hpx->revision); in program_hpx_type2()
330 hpx->pci_exp_devctl_and |= PCI_EXP_DEVCTL_PAYLOAD | in program_hpx_type2()
332 hpx->pci_exp_devctl_or &= ~(PCI_EXP_DEVCTL_PAYLOAD | in program_hpx_type2()
337 ~hpx->pci_exp_devctl_and, hpx->pci_exp_devctl_or); in program_hpx_type2()
346 hpx->pci_exp_lnkctl_and |= PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
347 hpx->pci_exp_lnkctl_or &= ~PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
349 hpx->pci_exp_lnkctl_or |= PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
352 ~hpx->pci_exp_lnkctl_and, hpx->pci_exp_lnkctl_or); in program_hpx_type2()
362 reg32 = (reg32 & hpx->unc_err_mask_and) | hpx->unc_err_mask_or; in program_hpx_type2()
367 reg32 = (reg32 & hpx->unc_err_sever_and) | hpx->unc_err_sever_or; in program_hpx_type2()
372 reg32 = (reg32 & hpx->cor_err_mask_and) | hpx->cor_err_mask_or; in program_hpx_type2()
377 reg32 = (reg32 & hpx->adv_err_cap_and) | hpx->adv_err_cap_or; in program_hpx_type2()
581 static void program_hpx_type3(struct pci_dev *dev, struct hpx_type3 *hpx) in program_hpx_type3() argument
583 if (!hpx) in program_hpx_type3()
589 program_hpx_type3_register(dev, hpx); in program_hpx_type3()