Lines Matching refs:pcs
950 struct pci_conf_state *pcs)
955 pcs->reg[off] = pci_conf_read(pc, tag, (off * 4));
959 pcs->x_csr = pci_conf_read(pc, tag, off + PCIX_CMD);
967 pcs->e_dcr = (uint16_t)pci_conf_read(pc, tag, off + PCIE_DCSR);
970 pcs->e_lcr = (uint16_t)pci_conf_read(pc, tag,
974 pcs->e_slcr = (uint16_t)pci_conf_read(pc, tag,
978 pcs->e_rcr = (uint16_t)pci_conf_read(pc, tag,
982 pcs->e_dcr2 = (uint16_t)pci_conf_read(pc, tag,
986 pcs->e_lcr2 = (uint16_t)pci_conf_read(pc, tag,
997 pcs->msi_ctl = pci_conf_read(pc, tag, off + PCI_MSI_CTL);
999 bit64 = pcs->msi_ctl & PCI_MSI_CTL_64BIT_ADDR;
1000 pvmask = pcs->msi_ctl & PCI_MSI_CTL_PERVEC_MASK;
1003 pcs->msi_maddr = pci_conf_read(pc, tag, off + PCI_MSI_MADDR);
1005 pcs->msi_maddr64_hi = pci_conf_read(pc, tag,
1009 pcs->msi_mdata = pci_conf_read(pc, tag,
1014 pcs->msi_mask = pci_conf_read(pc, tag,
1020 pcs->msix_ctl = pci_conf_read(pc, tag, off + PCI_MSIX_CTL);
1025 struct pci_conf_state *pcs)
1032 if (val != pcs->reg[off])
1033 pci_conf_write(pc, tag, (off * 4), pcs->reg[off]);
1038 pci_conf_write(pc, tag, off + PCIX_CMD, pcs->x_csr);
1046 pci_conf_write(pc, tag, off + PCIE_DCSR, pcs->e_dcr);
1053 pci_conf_write(pc, tag, off + PCIE_LCSR, pcs->e_lcr);
1056 pci_conf_write(pc, tag, off + PCIE_SLCSR, pcs->e_slcr);
1059 pci_conf_write(pc, tag, off + PCIE_RCR, pcs->e_rcr);
1062 pci_conf_write(pc, tag, off + PCIE_DCSR2, pcs->e_dcr2);
1066 pcs->e_lcr2);
1082 bit64 = pcs->msi_ctl & PCI_MSI_CTL_64BIT_ADDR;
1083 pvmask = pcs->msi_ctl & PCI_MSI_CTL_PERVEC_MASK;
1086 pci_conf_write(pc, tag, off + PCI_MSI_MADDR, pcs->msi_maddr);
1090 off + PCI_MSI_MADDR64_HI, pcs->msi_maddr64_hi);
1095 pcs->msi_mdata);
1101 pcs->msi_mask);
1104 pci_conf_write(pc, tag, off + PCI_MSI_CTL, pcs->msi_ctl);
1109 pci_conf_write(pc, tag, off + PCI_MSIX_CTL, pcs->msix_ctl);