Searched refs:PCIR_COMMAND (Results 1 - 25 of 46) sorted by relevance

12

/freebsd-13-stable/sys/dev/e1000/
H A De1000_osdep.c59 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND,
66 pci_write_config(((struct e1000_osdep *)hw->back)->dev, PCIR_COMMAND,
H A De1000_osdep.h121 #define PCI_COMMAND_REGISTER PCIR_COMMAND
/freebsd-13-stable/sys/i386/i386/
H A Dmp_clock.c118 d = pci_read_config(dev, PCIR_COMMAND, 2);
/freebsd-13-stable/sys/arm/versatile/
H A Dversatile_pci.c213 val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND);
215 versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val);
251 val = versatile_pci_conf_read_4((12 << 11) + PCIR_COMMAND);
264 val = versatile_pci_conf_read_4((slot << 11) + PCIR_COMMAND);
266 versatile_pci_conf_write_4((slot << 11) + PCIR_COMMAND, val);
/freebsd-13-stable/sys/mips/atheros/
H A Dar724x_pci.c232 ar724x_pci_write(AR724X_PCI_CRP_BASE, PCIR_COMMAND, reg, 2);
299 val = ar724x_pci_read_config(dev, 0, 0, 0, PCIR_COMMAND, 2);
301 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, val, 2);
318 val = ar724x_pci_read_config(dev, 0, 0, 0, PCIR_COMMAND, 2);
320 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND, val, 2);
434 ar724x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND,
H A Dar71xx_pci.c307 val = ar71xx_pci_read_config(dev, bus, slot, func, PCIR_COMMAND, 2);
309 ar71xx_pci_write_config(dev, bus, slot, func, PCIR_COMMAND, val, 2);
324 val = ar71xx_pci_read_config(dev, bus, slot, func, PCIR_COMMAND, 2);
326 ar71xx_pci_write_config(dev, bus, slot, func, PCIR_COMMAND, val, 2);
449 ar71xx_pci_local_write(dev, PCIR_COMMAND,
H A Dqca955x_pci.c230 qca955x_pci_write(sc->sc_pci_crp_base, PCIR_COMMAND, reg, 2);
358 qca955x_pci_write_config(dev, 0, 0, 0, PCIR_COMMAND,
/freebsd-13-stable/usr.sbin/bhyve/
H A Dpci_passthru.c610 pci_set_cfgdata16(pi, PCIR_COMMAND, read_config(&sc->psc_sel,
611 PCIR_COMMAND, 2));
779 if (coff == PCIR_COMMAND) {
783 pci_get_cfgdata16(pi, PCIR_COMMAND);
856 if (coff == PCIR_COMMAND && bytes == 2)
862 if (coff == PCIR_COMMAND) {
863 cmd_old = pci_get_cfgdata16(pi, PCIR_COMMAND);
865 pci_set_cfgdata8(pi, PCIR_COMMAND, val);
867 pci_set_cfgdata16(pi, PCIR_COMMAND, val);
H A Dpci_emul.c532 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND);
543 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND);
676 cmd = pci_get_cfgdata16(pdi, PCIR_COMMAND);
678 pci_set_cfgdata16(pdi, PCIR_COMMAND, cmd | enbit);
764 pci_set_cfgdata8(pdi, PCIR_COMMAND, PCIM_CMD_BUSMASTEREN);
1495 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND);
1713 new = pci_get_cfgdata16(pi, PCIR_COMMAND);
1762 cmd = pci_get_cfgdata16(pi, PCIR_COMMAND); /* stash old value */
1914 } else if (coff >= PCIR_COMMAND && coff < PCIR_REVID) {
/freebsd-13-stable/sys/dev/mpt/
H A Dmpt_pci.c385 val = pci_read_config(dev, PCIR_COMMAND, 2);
388 pci_write_config(dev, PCIR_COMMAND, val, 2);
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-stable/sys/dev/aic7xxx/
H A Daic79xx_pci.c409 command = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2);
411 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, command, /*bytes*/2);
474 cmd = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2);
475 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND,
544 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2);
991 aic_pci_write_config(pci, PCIR_COMMAND, 0, /*bytes*/2);
H A Daic7xxx_pci.c840 command = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2);
843 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2);
1011 aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1);
1267 cmd = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2);
1268 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND,
1334 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, cmd, /*bytes*/2);
2127 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND,
2352 command = aic_pci_read_config(pci, PCIR_COMMAND, /*bytes*/1);
2354 aic_pci_write_config(pci, PCIR_COMMAND, command, /*bytes*/1);
/freebsd-13-stable/sys/dev/firewire/
H A Dfwohci_pci.c209 cmd = pci_read_config(self, PCIR_COMMAND, 2);
214 pci_write_config(self, PCIR_COMMAND, cmd, 2);
/freebsd-13-stable/sys/dev/aacraid/
H A Daacraid_pci.c174 command = pci_read_config(sc->aac_dev, PCIR_COMMAND, 2);
/freebsd-13-stable/sys/mips/cavium/
H A Doctopci.c566 command = octopci_read_config(dev, b, s, f, PCIR_COMMAND, 1);
568 octopci_write_config(dev, b, s, f, PCIR_COMMAND, command, 1);
597 octopci_write_config(dev, b, s, f, PCIR_COMMAND, command, 1);
654 octopci_write_config(dev, b, s, f, PCIR_COMMAND, command, 1);
/freebsd-13-stable/sys/dev/ixgbe/
H A Dixgbe_osdep.h123 #define PCI_COMMAND_REGISTER PCIR_COMMAND
/freebsd-13-stable/sys/dev/ixl/
H A Di40e_osdep.h94 #define PCI_COMMAND_REGISTER PCIR_COMMAND
/freebsd-13-stable/sys/arm/mv/
H A Dmv_pci.c601 val = bus_space_read_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND);
604 bus_space_write_4(sc->sc_bst, sc->sc_bsh, PCIR_COMMAND, val);
825 func, PCIR_COMMAND, 1);
828 PCIR_COMMAND, command, 1);
839 PCIR_COMMAND, command, 1);
/freebsd-13-stable/sys/dev/pci/
H A Dpci.c717 cfg->cmdreg = REG(PCIR_COMMAND, 2);
2890 command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
2892 PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2);
2900 command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2);
2902 PCI_WRITE_CONFIG(dev, child, PCIR_COMMAND, command, 2);
3022 return (pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_PORTEN) != 0;
3028 return (pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_MEMEN) != 0;
3068 cmd = pci_read_config(dev, PCIR_COMMAND, 2);
3069 pci_write_config(dev, PCIR_COMMAND,
3100 pci_write_config(dev, PCIR_COMMAND, cm
[all...]
H A Dvga_pci.c127 config = pci_read_config(dev, PCIR_COMMAND, 2);
136 pci_write_config(dev, PCIR_COMMAND, config | PCIM_CMD_INTxDIS, 2);
/freebsd-13-stable/sys/dev/ocs_fc/
H A Docs_pci.c835 val = pci_read_config(ocs->dev, PCIR_COMMAND, 2);
837 pci_write_config(ocs->dev, PCIR_COMMAND, val, 2);
/freebsd-13-stable/sys/dev/isp/
H A Disp_pci.c118 #ifndef PCIR_COMMAND
119 #define PCIR_COMMAND 0x04 macro
572 cmd = pci_read_config(dev, PCIR_COMMAND, 2);
575 pci_write_config(dev, PCIR_COMMAND, cmd, 2);
/freebsd-13-stable/sys/dev/ath/
H A Dif_ath_pci.c321 (void) pci_read_config(dev, PCIR_COMMAND, 4);
/freebsd-13-stable/sys/dev/mn/
H A Dif_mn.c1347 u = pci_read_config(self, PCIR_COMMAND, 2);
1349 pci_write_config(self, PCIR_COMMAND, u | PCIM_CMD_PERRESPEN | PCIM_CMD_BUSMASTEREN, 2);
1351 pci_write_config(self, PCIR_COMMAND, 0x02800046, 4);
1353 u = pci_read_config(self, PCIR_COMMAND, 1);
/freebsd-13-stable/sys/dev/aac/
H A Daac_pci.c360 if (!(pci_read_config(dev, PCIR_COMMAND, 2) & PCIM_CMD_BUSMASTEREN)) {

Completed in 367 milliseconds

12