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