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