Lines Matching refs:hpx

137 static void program_hpx_type0(struct pci_dev *dev, struct hpx_type0 *hpx)  in program_hpx_type0()  argument
141 if (!hpx) in program_hpx_type0()
142 hpx = &pci_default_type0; in program_hpx_type0()
144 if (hpx->revision > 1) { in program_hpx_type0()
146 hpx->revision); in program_hpx_type0()
147 hpx = &pci_default_type0; in program_hpx_type0()
150 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, hpx->cache_line_size); in program_hpx_type0()
151 pci_write_config_byte(dev, PCI_LATENCY_TIMER, hpx->latency_timer); in program_hpx_type0()
153 if (hpx->enable_serr) in program_hpx_type0()
155 if (hpx->enable_perr) in program_hpx_type0()
162 hpx->latency_timer); in program_hpx_type0()
164 if (hpx->enable_perr) in program_hpx_type0()
206 static void program_hpx_type1(struct pci_dev *dev, struct hpx_type1 *hpx) in program_hpx_type1() argument
210 if (!hpx) in program_hpx_type1()
283 static void program_hpx_type2(struct pci_dev *dev, struct hpx_type2 *hpx) in program_hpx_type2() argument
288 if (!hpx) in program_hpx_type2()
294 if (hpx->revision > 1) { in program_hpx_type2()
296 hpx->revision); in program_hpx_type2()
305 hpx->pci_exp_devctl_and |= PCI_EXP_DEVCTL_PAYLOAD | in program_hpx_type2()
307 hpx->pci_exp_devctl_or &= ~(PCI_EXP_DEVCTL_PAYLOAD | in program_hpx_type2()
312 ~hpx->pci_exp_devctl_and, hpx->pci_exp_devctl_or); in program_hpx_type2()
321 hpx->pci_exp_lnkctl_and |= PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
322 hpx->pci_exp_lnkctl_or &= ~PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
324 hpx->pci_exp_lnkctl_or |= PCI_EXP_LNKCTL_RCB; in program_hpx_type2()
327 ~hpx->pci_exp_lnkctl_and, hpx->pci_exp_lnkctl_or); in program_hpx_type2()
337 reg32 = (reg32 & hpx->unc_err_mask_and) | hpx->unc_err_mask_or; in program_hpx_type2()
342 reg32 = (reg32 & hpx->unc_err_sever_and) | hpx->unc_err_sever_or; in program_hpx_type2()
347 reg32 = (reg32 & hpx->cor_err_mask_and) | hpx->cor_err_mask_or; in program_hpx_type2()
352 reg32 = (reg32 & hpx->adv_err_cap_and) | hpx->adv_err_cap_or; in program_hpx_type2()
556 static void program_hpx_type3(struct pci_dev *dev, struct hpx_type3 *hpx) in program_hpx_type3() argument
558 if (!hpx) in program_hpx_type3()
564 program_hpx_type3_register(dev, hpx); in program_hpx_type3()