Searched refs:WREG (Results 1 – 1 of 1) sorted by relevance
| /src/sys/dev/pci/ |
| H A D | pci.c | 889 #define WREG(n, v, w) PCIB_WRITE_CONFIG(pcib, cfg->bus, cfg->slot, cfg->func, n, v, w) in pci_read_cap() macro 1034 WREG(cfg->ht.ht_msimap + PCIR_HT_COMMAND, cfg->ht.ht_msictrl, in pci_read_cap() 1054 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg, 2); in pci_read_vpd_reg() 1074 WREG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, data, 4); 1075 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg | 0x8000, 2); 1402 #undef WREG in pci_read_vpd() 6238 #define WREG(n, v) pci_write_config(dev, pos + (n), (v), 2) in pci_cfg_restore_pcie() macro 6247 WREG(PCIER_DEVICE_CTL, cfg->pcie_device_ctl); in pci_cfg_restore_pcie() 6252 WREG(PCIER_LINK_CTL, cfg->pcie_link_ctl); in pci_cfg_restore_pcie() 6257 WREG(PCIER_SLOT_CTL, cfg->pcie_slot_ctl); in pci_cfg_restore_pcie() [all …]
|