| /src/sys/dev/e1000/ |
| H A D | e1000_osdep.c | 68 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_set_mwi() 75 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_clear_mwi()
|
| H A D | e1000_osdep.h | 120 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /src/sys/amd64/vmm/io/ |
| H A D | ppt.c | 168 cmd1 = cmd = pci_read_config(dev, PCIR_COMMAND, 2); in ppt_attach() 170 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in ppt_attach() 173 pci_write_config(dev, PCIR_COMMAND, cmd1, 2); in ppt_attach() 440 cmd = pci_read_config(ppt->dev, PCIR_COMMAND, 2); in ppt_assign_device() 442 pci_write_config(ppt->dev, PCIR_COMMAND, cmd, 2); in ppt_assign_device() 460 cmd = pci_read_config(ppt->dev, PCIR_COMMAND, 2); in ppt_unassign_device() 462 pci_write_config(ppt->dev, PCIR_COMMAND, cmd, 2); in ppt_unassign_device()
|
| /src/sys/dev/mpt/ |
| H A D | mpt_pci.c | 382 val = pci_read_config(dev, PCIR_COMMAND, 2); in mpt_pci_attach() 385 pci_write_config(dev, PCIR_COMMAND, val, 2); in mpt_pci_attach() 731 mpt->pci_cfg.Command = pci_read_config(mpt->dev, PCIR_COMMAND, 2); 759 MPT_CHECK(Command, PCIR_COMMAND, 2); 772 pci_write_config(mpt->dev, PCIR_COMMAND, mpt->pci_cfg.Command, 2);
|
| /src/sys/dev/aic7xxx/ |
| H A D | aic79xx_pci.c | 402 command = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahd_pci_config() 404 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahd_pci_config() 467 cmd = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahd_pci_test_register_access() 468 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, in ahd_pci_test_register_access() 537 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahd_pci_test_register_access() 984 aic_pci_write_config(pci, PCIR_COMMAND, 0, /*bytes*/2); in ahd_aic790X_setup()
|
| H A D | aic7xxx_pci.c | 832 command = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_config() 835 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahc_pci_config() 1003 aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1); in ahc_pci_config() 1259 cmd = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_test_register_access() 1260 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_test_register_access() 1326 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2); in ahc_pci_test_register_access() 2119 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, in ahc_pci_resume() 2344 command = aic_pci_read_config(pci, PCIR_COMMAND, /*bytes*/1); in ahc_aic7895_setup() 2346 aic_pci_write_config(pci, PCIR_COMMAND, command, /*bytes*/1); in ahc_aic7895_setup()
|
| /src/usr.sbin/bhyve/ |
| H A D | pci_passthru.c | 683 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in cfginit() 690 pci_set_cfgdata16(pi, PCIR_COMMAND, cmd); in cfginit() 1023 if ((error = set_pcir_handler(sc, PCIR_COMMAND, 0x04, NULL, NULL)) != 0) in passthru_init() 1093 if (coff == PCIR_COMMAND) { in passthru_cfgread_default() 1099 *rv = (st << 16) | pci_get_cfgdata16(pi, PCIR_COMMAND); in passthru_cfgread_default() 1182 if (coff == PCIR_COMMAND) { in passthru_cfgwrite_default() 1190 cmd_old = pci_get_cfgdata16(pi, PCIR_COMMAND); in passthru_cfgwrite_default() 1191 pci_set_cfgdata16(pi, PCIR_COMMAND, val & 0xffff); in passthru_cfgwrite_default()
|
| H A D | pci_emul.c | 742 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in porten() 753 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in memen() 887 const uint16_t cmd = pci_get_cfgdata16(pdi, PCIR_COMMAND); in pci_emul_alloc_bar() 888 pci_set_cfgdata16(pdi, PCIR_COMMAND, cmd | enbit); in pci_emul_alloc_bar() 1167 pci_set_cfgdata8(pdi, PCIR_COMMAND, PCIM_CMD_BUSMASTEREN); in pci_emul_init() 1988 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in pci_lintr_permitted() 2190 new = pci_get_cfgdata16(pi, PCIR_COMMAND); in pci_emul_cmd_changed() 2244 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); /* stash old value */ in pci_emul_cmdsts_write() 2419 } else if (coff >= PCIR_COMMAND && coff < PCIR_REVID) { in pci_cfgrw()
|
| /src/sys/i386/i386/ |
| H A D | mp_clock.c | 116 d = pci_read_config(dev, PCIR_COMMAND, 2); in piix_probe()
|
| /src/sys/dev/firewire/ |
| H A D | fwohci_pci.c | 207 cmd = pci_read_config(self, PCIR_COMMAND, 2); in fwohci_pci_init() 212 pci_write_config(self, PCIR_COMMAND, cmd, 2); in fwohci_pci_init()
|
| /src/sys/dev/pci/ |
| H A D | pci.c | 759 cfg->cmdreg = REG(PCIR_COMMAND, 2); in pci_fill_devinfo() 3009 command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2); in pci_set_command_bit() 3011 PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2); in pci_set_command_bit() 3019 command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2); in pci_clear_command_bit() 3021 PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2); in pci_clear_command_bit() 3144 return (pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_PORTEN) != 0; in pci_porten() 3150 return (pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_MEMEN) != 0; in pci_memen() 3190 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_read_bar() 3191 pci_write_config(dev, PCIR_COMMAND, in pci_read_bar() 3222 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_read_bar() [all …]
|
| H A D | vga_pci.c | 125 config = pci_read_config(dev, PCIR_COMMAND, 2); in vga_pci_is_boot_display() 134 pci_write_config(dev, PCIR_COMMAND, config | PCIM_CMD_INTxDIS, 2); in vga_pci_is_boot_display()
|
| /src/sys/arm/mv/ |
| H A D | mv_pci.c | 609 val = bus_space_read_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND); in mv_pcib_enable() 612 bus_space_write_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND, val); in mv_pcib_enable() 833 func, PCIR_COMMAND, 1); in mv_pcib_init() 836 PCIR_COMMAND, command, 1); in mv_pcib_init() 847 PCIR_COMMAND, command, 1); in mv_pcib_init()
|
| /src/sys/dev/aacraid/ |
| H A D | aacraid_pci.c | 170 command = pci_read_config(sc->aac_dev, PCIR_COMMAND, 2); in aacraid_pci_attach()
|
| /src/sys/dev/ixl/ |
| H A D | i40e_osdep.h | 93 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /src/sys/dev/isp/ |
| H A D | isp_pci.c | 125 #ifndef PCIR_COMMAND 126 #define PCIR_COMMAND 0x04 macro 595 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in isp_pci_attach() 598 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in isp_pci_attach()
|
| /src/sys/dev/ath/ |
| H A D | if_ath_pci.c | 314 (void) pci_read_config(dev, PCIR_COMMAND, 4); in ath_pci_detach()
|
| /src/sys/dev/ixgbe/ |
| H A D | ixgbe_osdep.h | 118 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
| /src/sys/dev/aac/ |
| H A D | aac_pci.c | 356 if (!(pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_BUSMASTEREN)) { in aac_pci_attach()
|
| /src/sys/dev/ocs_fc/ |
| H A D | ocs_pci.c | 887 val = pci_read_config(ocs->dev, PCIR_COMMAND, 2); in ocs_pci_intx_filter() 889 pci_write_config(ocs->dev, PCIR_COMMAND, val, 2); in ocs_pci_intx_filter()
|
| /src/sys/powerpc/mpc85xx/ |
| H A D | pci_mpc85xx.c | 371 cfgreg = fsl_pcib_cfgread(sc, 0, 0, 0, PCIR_COMMAND, 2); in fsl_pcib_attach() 374 fsl_pcib_cfgwrite(sc, 0, 0, 0, PCIR_COMMAND, cfgreg, 2); in fsl_pcib_attach()
|
| /src/sys/dev/smartpqi/ |
| H A D | smartpqi_main.c | 271 command = pci_read_config(softs->os_specific.pqi_dev, PCIR_COMMAND, 2); in smartpqi_attach()
|
| /src/sys/dev/thunderbolt/ |
| H A D | nhi_pci.c | 175 (pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_BUSMASTEREN) in nhi_pci_attach()
|
| H A D | tb_pcib.c | 239 (pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_BUSMASTEREN) in tb_pcib_attach_common()
|
| /src/sys/compat/linuxkpi/common/include/linux/ |
| H A D | pci.h | 101 #define PCI_COMMAND PCIR_COMMAND 1535 return ((pci_read_config(pdev->dev.bsddev, PCIR_COMMAND, 2) & in pci_is_enabled()
|