/freebsd/sys/dev/e1000/ |
H A D | e1000_osdep.c | 58 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_set_mwi() 65 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND, in e1000_pci_clear_mwi()
|
H A D | e1000_osdep.h | 118 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
/freebsd/usr.sbin/bhyve/ |
H A D | pci_passthru.c | 646 pci_host_write_config(&sc->psc_sel, PCIR_COMMAND, 2, in cfginit() 647 pci_get_cfgdata16(pi, PCIR_COMMAND)); in cfginit() 923 if ((error = set_pcir_handler(sc, PCIR_COMMAND, 0x04, NULL, NULL)) != 0) in passthru_init() 993 if (coff == PCIR_COMMAND) { in passthru_cfgread_default() 997 pci_get_cfgdata16(pi, PCIR_COMMAND); in passthru_cfgread_default() 1083 if (coff == PCIR_COMMAND && bytes == 2) in passthru_cfgwrite_default() 1089 if (coff == PCIR_COMMAND) { in passthru_cfgwrite_default() 1090 cmd_old = pci_get_cfgdata16(pi, PCIR_COMMAND); in passthru_cfgwrite_default() 1092 pci_set_cfgdata8(pi, PCIR_COMMAND, val); in passthru_cfgwrite_default() 1094 pci_set_cfgdata16(pi, PCIR_COMMAND, val); in passthru_cfgwrite_default()
|
H A D | pci_emul.c | 738 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in porten() 749 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in memen() 875 const uint16_t cmd = pci_get_cfgdata16(pdi, PCIR_COMMAND); in pci_emul_alloc_bar() 876 pci_set_cfgdata16(pdi, PCIR_COMMAND, cmd | enbit); in pci_emul_alloc_bar() 1143 pci_set_cfgdata8(pdi, PCIR_COMMAND, PCIM_CMD_BUSMASTEREN); in pci_emul_init() 1964 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); in pci_lintr_permitted() 2166 new = pci_get_cfgdata16(pi, PCIR_COMMAND); in pci_emul_cmd_changed() 2220 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); /* stash old value */ in pci_emul_cmdsts_write() 2395 } else if (coff >= PCIR_COMMAND && coff < PCIR_REVID) { in pci_cfgrw()
|
/freebsd/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);
|
/freebsd/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()
|
/freebsd/sys/i386/i386/ |
H A D | mp_clock.c | 116 d = pci_read_config(dev, PCIR_COMMAND, 2); in piix_probe()
|
/freebsd/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()
|
/freebsd/sys/dev/pci/ |
H A D | pci.c | 718 cfg->cmdreg = REG(PCIR_COMMAND, 2); in pci_fill_devinfo() 3077 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_read_bar() 3078 pci_write_config(dev, PCIR_COMMAND, in pci_read_bar() 3109 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_read_bar() 3187 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_bar_enabled() 3339 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_add_map() 3341 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_add_map() 3344 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in pci_add_map() 3346 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in pci_add_map() 5516 pci_write_config(child, PCIR_COMMAND, in pci_reserve_map() [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()
|
H A D | pcireg.h | 86 #define PCIR_COMMAND 0x04 macro
|
H A D | pci_dw.c | 343 DBI_WR2(sc, PCIR_COMMAND, in pci_dw_setup_hw()
|
H A D | pci_pci.c | 1524 command = pci_read_config(dev, PCIR_COMMAND, 2); in pcib_cfg_save() 1545 command = pci_read_config(sc->dev, PCIR_COMMAND, 2); in pcib_cfg_restore() 1844 pci_write_config(dev, PCIR_COMMAND, pci_get_cmdreg(dev), 2); in pcib_resume()
|
/freebsd/sys/arm/mv/ |
H A D | mv_pci.c | 608 val = bus_space_read_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND); in mv_pcib_enable() 611 bus_space_write_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND, val); in mv_pcib_enable() 832 func, PCIR_COMMAND, 1); in mv_pcib_init() 835 PCIR_COMMAND, command, 1); in mv_pcib_init() 846 PCIR_COMMAND, command, 1); in mv_pcib_init()
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_pci.c | 170 command = pci_read_config(sc->aac_dev, PCIR_COMMAND, 2); in aacraid_pci_attach()
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_osdep.h | 118 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
/freebsd/sys/dev/ixl/ |
H A D | i40e_osdep.h | 93 #define PCI_COMMAND_REGISTER PCIR_COMMAND
|
/freebsd/sys/dev/isp/ |
H A D | isp_pci.c | 125 #ifndef PCIR_COMMAND 126 #define PCIR_COMMAND 0x04 macro 586 cmd = pci_read_config(dev, PCIR_COMMAND, 2); in isp_pci_attach() 589 pci_write_config(dev, PCIR_COMMAND, cmd, 2); in isp_pci_attach()
|
/freebsd/sys/dev/ath/ |
H A D | if_ath_pci.c | 319 (void) pci_read_config(dev, PCIR_COMMAND, 4); in ath_pci_detach()
|
/freebsd/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()
|
/freebsd/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()
|
/freebsd/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()
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | pci.h | 113 #define PCI_COMMAND PCIR_COMMAND 1444 return ((pci_read_config(pdev->dev.bsddev, PCIR_COMMAND, 2) & in pci_is_enabled()
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_main.c | 530 command = pci_read_config(softs->os_specific.pqi_dev, PCIR_COMMAND, 2); in smartpqi_attach()
|