| /freebsd-12.1/sys/mips/atheros/ |
| H A D | ar724x_pci.c | 232 ar724x_pci_write(AR724X_PCI_CRP_BASE, PCIR_COMMAND, reg, 2); in ar724x_pci_setup() 299 val = ar724x_pci_read_config(dev, 0, 0, 0, PCIR_COMMAND, 2); in ar724x_pci_fixup() 301 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, val, 2); in ar724x_pci_fixup() 318 val = ar724x_pci_read_config(dev, 0, 0, 0, PCIR_COMMAND, 2); in ar724x_pci_fixup() 320 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, val, 2); in ar724x_pci_fixup() 434 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, in ar724x_pci_attach()
|
| H A D | ar71xx_pci.c | 307 val = ar71xx_pci_read_config(dev, bus, slot, func, PCIR_COMMAND, 2); in ar71xx_pci_fixup() 309 ar71xx_pci_write_config(dev, bus, slot, func, PCIR_COMMAND, val, 2); in ar71xx_pci_fixup() 324 val = ar71xx_pci_read_config(dev, bus, slot, func, PCIR_COMMAND, 2); in ar71xx_pci_fixup() 326 ar71xx_pci_write_config(dev, bus, slot, func, PCIR_COMMAND, val, 2); in ar71xx_pci_fixup() 450 ar71xx_pci_local_write(dev, PCIR_COMMAND, in ar71xx_pci_attach()
|
| H A D | qca955x_pci.c | 230 qca955x_pci_write(sc->sc_pci_crp_base, PCIR_COMMAND, reg, 2); in qca955x_pci_setup() 358 qca955x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, in qca955x_pci_attach()
|
| /freebsd-12.1/sys/dev/e1000/ |
| H A D | e1000_osdep.c | 59 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_set_mwi() 66 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_clear_mwi()
|
| H A D | e1000_osdep.h | 121 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /freebsd-12.1/sys/arm/versatile/ |
| H A D | versatile_pci.c | 211 val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND); in versatile_pci_attach() 213 versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val); in versatile_pci_attach() 249 val = versatile_pci_conf_read_4((12 << 11) + PCIR_COMMAND); in versatile_pci_attach() 262 val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND); in versatile_pci_attach() 264 versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val); in versatile_pci_attach()
|
| /freebsd-12.1/sys/dev/aic7xxx/ |
| H A D | aic79xx_pci.c | 409 command = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahd_pci_config() 411 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahd_pci_config() 474 cmd = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahd_pci_test_register_access() 475 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, in ahd_pci_test_register_access() 545 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahd_pci_test_register_access() 995 aic_pci_write_config(pci, PCIR_COMMAND, 0, /*bytes*/2); in ahd_aic790X_setup()
|
| H A D | aic7xxx_pci.c | 842 command = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_config() 845 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahc_pci_config() 1015 aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1); in ahc_pci_config() 1271 cmd = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_test_register_access() 1272 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_test_register_access() 1338 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahc_pci_test_register_access() 2132 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_resume() 2357 command = aic_pci_read_config(pci, PCIR_COMMAND, /*bytes*/1); in ahc_aic7895_setup() 2359 aic_pci_write_config(pci, PCIR_COMMAND, command, /*bytes*/1); in ahc_aic7895_setup()
|
| /freebsd-12.1/sys/dev/mpt/ |
| H A D | mpt_pci.c | 389 val = pci_read_config(dev, PCIR_COMMAND, 2); in mpt_pci_attach() 392 pci_write_config(dev, PCIR_COMMAND, val, 2); in mpt_pci_attach() 738 mpt->pci_cfg.Command = pci_read_config(mpt->dev, PCIR_COMMAND, 2); 766 MPT_CHECK(Command, PCIR_COMMAND, 2); 779 pci_write_config(mpt->dev, PCIR_COMMAND, mpt->pci_cfg.Command, 2);
|
| /freebsd-12.1/sys/powerpc/mpc85xx/ |
| H A D | pci_mpc85xx.c | 341 cfgreg = fsl_pcib_cfgread(sc, 0, 0, 0, PCIR_COMMAND, 2); in fsl_pcib_attach() 344 fsl_pcib_cfgwrite(sc, 0, 0, 0, PCIR_COMMAND, cfgreg, 2); in fsl_pcib_attach() 591 func, PCIR_COMMAND, 1); in fsl_pcib_init() 594 PCIR_COMMAND, command, 1); in fsl_pcib_init()
|
| /freebsd-12.1/sys/i386/i386/ |
| H A D | mp_clock.c | 117 d = pci_read_config(dev, PCIR_COMMAND, 2); in piix_probe()
|
| /freebsd-12.1/sys/dev/pci/ |
| H A D | pci.c | 685 cfg->cmdreg = REG(PCIR_COMMAND, 2); in pci_fill_devinfo() 3024 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_read_bar() 3025 pci_write_config(dev, PCIR_COMMAND, in pci_read_bar() 3056 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_read_bar() 3109 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_bar_enabled() 3261 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_add_map() 3263 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_add_map() 3266 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_add_map() 3268 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_add_map() 5399 pci_write_config(child, PCIR_COMMAND, in pci_reserve_map() [all …]
|
| H A D | vga_pci.c | 128 config = pci_read_config(dev, PCIR_COMMAND, 2); in vga_pci_is_boot_display() 137 pci_write_config(dev, PCIR_COMMAND, config | PCIM_CMD_INTxDIS, 2); in vga_pci_is_boot_display()
|
| /freebsd-12.1/sys/mips/cavium/ |
| H A D | octopci.c | 566 command = octopci_read_config(dev, b, s, f, PCIR_COMMAND, 1); in octopci_init_device() 568 octopci_write_config(dev, b, s, f, PCIR_COMMAND, command, 1); in octopci_init_device() 597 octopci_write_config(dev, b, s, f, PCIR_COMMAND, command, 1); in octopci_init_device() 654 octopci_write_config(dev, b, s, f, PCIR_COMMAND, command, 1); in octopci_init_device()
|
| /freebsd-12.1/sys/dev/firewire/ |
| H A D | fwohci_pci.c | 213 cmd = pci_read_config(self, PCIR_COMMAND, 2); in fwohci_pci_init() 218 pci_write_config(self, PCIR_COMMAND, cmd, 2); in fwohci_pci_init()
|
| /freebsd-12.1/sys/arm/mv/ |
| H A D | mv_pci.c | 603 val = bus_space_read_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND); in mv_pcib_enable() 606 bus_space_write_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND, val); in mv_pcib_enable() 827 func, PCIR_COMMAND, 1); in mv_pcib_init() 830 PCIR_COMMAND, command, 1); in mv_pcib_init() 841 PCIR_COMMAND, command, 1); in mv_pcib_init()
|
| /freebsd-12.1/usr.sbin/bhyve/ |
| H A D | pci_emul.c | 527 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in porten() 538 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in memen() 759 pci_set_cfgdata8(pdi, PCIR_COMMAND, in pci_emul_init() 1479 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in pci_lintr_permitted() 1693 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); /* stash old value */ in pci_emul_cmdsts_write() 1710 cmd2 = pci_get_cfgdata16(pi, PCIR_COMMAND); /* get updated value */ in pci_emul_cmdsts_write() 1885 } else if (coff >= PCIR_COMMAND && coff < PCIR_REVID) { in pci_cfgrw()
|
| /freebsd-12.1/sys/dev/aacraid/ |
| H A D | aacraid_pci.c | 174 command = pci_read_config(sc->aac_dev, PCIR_COMMAND, 2); in aacraid_pci_attach()
|
| /freebsd-12.1/sys/dev/ixgbe/ |
| H A D | ixgbe_osdep.h | 123 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /freebsd-12.1/sys/dev/advansys/ |
| H A D | adw_pci.c | 294 command = pci_read_config(dev, PCIR_COMMAND, /*bytes*/2); in adw_pci_attach()
|
| /freebsd-12.1/sys/dev/ixl/ |
| H A D | i40e_osdep.h | 94 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /freebsd-12.1/sys/dev/mn/ |
| H A D | if_mn.c | 1350 u = pci_read_config(self, PCIR_COMMAND, 2); in mn_attach() 1352 pci_write_config(self, PCIR_COMMAND, u | PCIM_CMD_PERRESPEN | PCIM_CMD_BUSMASTEREN, 2); in mn_attach() 1354 pci_write_config(self, PCIR_COMMAND, 0x02800046, 4); in mn_attach() 1356 u = pci_read_config(self, PCIR_COMMAND, 1); in mn_attach()
|
| /freebsd-12.1/sys/dev/ath/ |
| H A D | if_ath_pci.c | 321 (void) pci_read_config(dev, PCIR_COMMAND, 4); in ath_pci_detach()
|
| /freebsd-12.1/sys/sparc64/ebus/ |
| H A D | ebus.c | 317 pci_write_config(dev, PCIR_COMMAND, in ebus_pci_attach() 318 pci_read_config(dev, PCIR_COMMAND, 2) | PCIM_CMD_SERRESPEN | in ebus_pci_attach()
|
| /freebsd-12.1/sys/dev/ocs_fc/ |
| H A D | ocs_pci.c | 841 val = pci_read_config(ocs->dev, PCIR_COMMAND, 2); in ocs_pci_intx_filter() 843 pci_write_config(ocs->dev, PCIR_COMMAND, val, 2); in ocs_pci_intx_filter()
|