| /freebsd-13.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 | 119 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /freebsd-13.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() 449 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-13.1/sys/arm/versatile/ |
| H A D | versatile_pci.c | 213 val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND); in versatile_pci_attach() 215 versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val); in versatile_pci_attach() 251 val = versatile_pci_conf_read_4((12 << 11) + PCIR_COMMAND); in versatile_pci_attach() 264 val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND); in versatile_pci_attach() 266 versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val); in versatile_pci_attach()
|
| /freebsd-13.1/usr.sbin/bhyve/ |
| H A D | pci_passthru.c | 597 write_config(&sc->psc_sel, PCIR_COMMAND, 2, in cfginit() 598 pci_get_cfgdata16(pi, PCIR_COMMAND)); in cfginit() 782 if (coff == PCIR_COMMAND) { in passthru_cfgread() 786 pci_get_cfgdata16(pi, PCIR_COMMAND); in passthru_cfgread() 859 if (coff == PCIR_COMMAND && bytes == 2) in passthru_cfgwrite() 865 if (coff == PCIR_COMMAND) { in passthru_cfgwrite() 866 cmd_old = pci_get_cfgdata16(pi, PCIR_COMMAND); in passthru_cfgwrite() 868 pci_set_cfgdata8(pi, PCIR_COMMAND, val); in passthru_cfgwrite() 870 pci_set_cfgdata16(pi, PCIR_COMMAND, val); in passthru_cfgwrite()
|
| H A D | pci_emul.c | 592 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in porten() 603 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in memen() 725 const uint16_t cmd = pci_get_cfgdata16(pdi, PCIR_COMMAND); in pci_emul_alloc_bar() 726 pci_set_cfgdata16(pdi, PCIR_COMMAND, cmd | enbit); in pci_emul_alloc_bar() 895 pci_set_cfgdata8(pdi, PCIR_COMMAND, PCIM_CMD_BUSMASTEREN); in pci_emul_init() 1663 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in pci_lintr_permitted() 1881 new = pci_get_cfgdata16(pi, PCIR_COMMAND); in pci_emul_cmd_changed() 1930 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); /* stash old value */ in pci_emul_cmdsts_write() 2081 } else if (coff >= PCIR_COMMAND && coff < PCIR_REVID) { in pci_cfgrw()
|
| /freebsd-13.1/sys/dev/mpt/ |
| H A D | mpt_pci.c | 385 val = pci_read_config(dev, PCIR_COMMAND, 2); in mpt_pci_attach() 388 pci_write_config(dev, PCIR_COMMAND, val, 2); in mpt_pci_attach() 734 mpt->pci_cfg.Command = pci_read_config(mpt->dev, PCIR_COMMAND, 2); 762 MPT_CHECK(Command, PCIR_COMMAND, 2); 775 pci_write_config(mpt->dev, PCIR_COMMAND, mpt->pci_cfg.Command, 2);
|
| /freebsd-13.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() 544 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahd_pci_test_register_access() 991 aic_pci_write_config(pci, PCIR_COMMAND, 0, /*bytes*/2); in ahd_aic790X_setup()
|
| H A D | aic7xxx_pci.c | 840 command = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_config() 843 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahc_pci_config() 1011 aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1); in ahc_pci_config() 1267 cmd = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_test_register_access() 1268 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_test_register_access() 1334 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahc_pci_test_register_access() 2127 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_resume() 2352 command = aic_pci_read_config(pci, PCIR_COMMAND, /*bytes*/1); in ahc_aic7895_setup() 2354 aic_pci_write_config(pci, PCIR_COMMAND, command, /*bytes*/1); in ahc_aic7895_setup()
|
| /freebsd-13.1/sys/i386/i386/ |
| H A D | mp_clock.c | 118 d = pci_read_config(dev, PCIR_COMMAND, 2); in piix_probe()
|
| /freebsd-13.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-13.1/sys/dev/firewire/ |
| H A D | fwohci_pci.c | 209 cmd = pci_read_config(self, PCIR_COMMAND, 2); in fwohci_pci_init() 214 pci_write_config(self, PCIR_COMMAND, cmd, 2); in fwohci_pci_init()
|
| /freebsd-13.1/sys/dev/pci/ |
| H A D | pci.c | 718 cfg->cmdreg = REG(PCIR_COMMAND, 2); in pci_fill_devinfo() 3099 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_read_bar() 3100 pci_write_config(dev, PCIR_COMMAND, in pci_read_bar() 3131 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_read_bar() 3194 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_bar_enabled() 3346 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_add_map() 3348 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_add_map() 3351 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_add_map() 3353 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_add_map() 5514 pci_write_config(child, PCIR_COMMAND, in pci_reserve_map() [all …]
|
| H A D | vga_pci.c | 127 config = pci_read_config(dev, PCIR_COMMAND, 2); in vga_pci_is_boot_display() 136 pci_write_config(dev, PCIR_COMMAND, config | PCIM_CMD_INTxDIS, 2); in vga_pci_is_boot_display()
|
| /freebsd-13.1/sys/arm/mv/ |
| H A D | mv_pci.c | 601 val = bus_space_read_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND); in mv_pcib_enable() 604 bus_space_write_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND, val); in mv_pcib_enable() 825 func, PCIR_COMMAND, 1); in mv_pcib_init() 828 PCIR_COMMAND, command, 1); in mv_pcib_init() 839 PCIR_COMMAND, command, 1); in mv_pcib_init()
|
| /freebsd-13.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-13.1/sys/dev/ixgbe/ |
| H A D | ixgbe_osdep.h | 119 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /freebsd-13.1/sys/dev/isp/ |
| H A D | isp_pci.c | 118 #ifndef PCIR_COMMAND 119 #define PCIR_COMMAND 0x04 macro 572 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in isp_pci_attach() 575 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in isp_pci_attach()
|
| /freebsd-13.1/sys/dev/ixl/ |
| H A D | i40e_osdep.h | 94 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /freebsd-13.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-13.1/sys/dev/mn/ |
| H A D | if_mn.c | 1347 u = pci_read_config(self, PCIR_COMMAND, 2); in mn_attach() 1349 pci_write_config(self, PCIR_COMMAND, u | PCIM_CMD_PERRESPEN | PCIM_CMD_BUSMASTEREN, 2); in mn_attach() 1351 pci_write_config(self, PCIR_COMMAND, 0x02800046, 4); in mn_attach() 1353 u = pci_read_config(self, PCIR_COMMAND, 1); in mn_attach()
|
| /freebsd-13.1/sys/dev/aac/ |
| H A D | aac_pci.c | 360 if (!(pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_BUSMASTEREN)) { in aac_pci_attach()
|
| /freebsd-13.1/sys/dev/ocs_fc/ |
| H A D | ocs_pci.c | 889 val = pci_read_config(ocs->dev, PCIR_COMMAND, 2); in ocs_pci_intx_filter() 891 pci_write_config(ocs->dev, PCIR_COMMAND, val, 2); in ocs_pci_intx_filter()
|