| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_reset.c | 208 if (i * 4 == PCI_COMMAND) in mthca_reset() 219 if (pci_write_config_dword(bridge, PCI_COMMAND, in mthca_reset() 220 bridge_header[PCI_COMMAND / 4])) { in mthca_reset() 258 if (i * 4 == PCI_COMMAND) in mthca_reset() 269 if (pci_write_config_dword(mdev->pdev, PCI_COMMAND, in mthca_reset() 270 hca_header[PCI_COMMAND / 4])) { in mthca_reset()
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_pci_device_test.c | 66 command = vfio_pci_config_readw(self->device, PCI_COMMAND); in TEST_F() 69 vfio_pci_config_writew(self->device, PCI_COMMAND, command | PCI_COMMAND_MASTER); in TEST_F() 70 command = vfio_pci_config_readw(self->device, PCI_COMMAND); in TEST_F() 74 vfio_pci_config_writew(self->device, PCI_COMMAND, command & ~PCI_COMMAND_MASTER); in TEST_F() 75 command = vfio_pci_config_readw(self->device, PCI_COMMAND); in TEST_F()
|
| /linux/drivers/pci/ |
| H A D | irq.c | 203 BUILD_BUG_ON(PCI_COMMAND % 4); in pci_check_and_set_intx_mask() 204 BUILD_BUG_ON(PCI_COMMAND + 2 != PCI_STATUS); in pci_check_and_set_intx_mask() 208 bus->ops->read(bus, dev->devfn, PCI_COMMAND, 4, &cmd_status_dword); in pci_check_and_set_intx_mask() 227 bus->ops->write(bus, dev->devfn, PCI_COMMAND, 2, newcmd); in pci_check_and_set_intx_mask()
|
| H A D | pci-bridge-emul.c | 52 [PCI_COMMAND / 4] = { 403 bridge->pci_regs_behavior[PCI_COMMAND / 4].ro &= in pci_bridge_emul_init() 429 bridge->pci_regs_behavior[PCI_COMMAND / 4].ro |= PCI_COMMAND_IO; in pci_bridge_emul_init() 430 bridge->pci_regs_behavior[PCI_COMMAND / 4].rw &= ~PCI_COMMAND_IO; in pci_bridge_emul_init()
|
| /linux/arch/xtensa/lib/ |
| H A D | pci-auto.c | 211 pci_read_config_dword(dev, PCI_COMMAND, &cmdstat); in pciauto_postscan_setup_bridge() 212 pci_write_config_dword(dev, PCI_COMMAND, in pciauto_postscan_setup_bridge() 302 pci_read_config_dword(dev, PCI_COMMAND, &cmdstat); in pciauto_bus_scan() 303 pci_write_config_dword(dev, PCI_COMMAND, in pciauto_bus_scan()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | reset.c | 161 if (i * 4 == PCI_COMMAND) in mlx4_reset() 173 if (pci_write_config_dword(dev->persist->pdev, PCI_COMMAND, in mlx4_reset() 174 hca_header[PCI_COMMAND / 4])) { in mlx4_reset()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ath9k_pci_owl_loader.c | 76 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in ath9k_pci_fixup() 78 pci_write_config_word(pdev, PCI_COMMAND, cmd); in ath9k_pci_fixup() 100 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in ath9k_pci_fixup() 102 pci_write_config_word(pdev, PCI_COMMAND, cmd); in ath9k_pci_fixup()
|
| /linux/arch/m68k/kernel/ |
| H A D | pcibios.c | 58 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pcibios_enable_device() 63 pci_write_config_word(dev, PCI_COMMAND, newcmd); in pcibios_enable_device()
|
| /linux/drivers/pci/hotplug/ |
| H A D | pciehp_pci.c | 132 pci_read_config_word(dev, PCI_COMMAND, &command); in pciehp_unconfigure_device() 135 pci_write_config_word(dev, PCI_COMMAND, command); in pciehp_unconfigure_device()
|
| /linux/arch/mips/pci/ |
| H A D | fixup-malta.c | 114 pci_read_config_word(pdev, PCI_COMMAND, ®_val16); in malta_piix_func0_fixup() 115 pci_write_config_word(pdev, PCI_COMMAND, in malta_piix_func0_fixup()
|
| H A D | fixup-cobalt.c | 74 pci_read_config_word(dev, PCI_COMMAND, &cfgword); in qube_raq_via_bmIDE_fixup() 76 pci_write_config_word(dev, PCI_COMMAND, cfgword); in qube_raq_via_bmIDE_fixup()
|
| H A D | fixup-fuloong2e.c | 140 pci_write_config_byte(pdev, PCI_COMMAND, in loongson2e_686b_func1_fixup() 185 pci_write_config_byte(pdev, PCI_COMMAND, in loongson2e_686b_func5_fixup()
|
| H A D | pci-sb1250.c | 226 PCI_COMMAND)); in sb1250_pcibios_init() 255 PCI_COMMAND)); in sb1250_pcibios_init()
|
| H A D | pci-rt3883.c | 518 val = rt3883_pci_read_cfg32(rpc, 0, 0x01, 0, PCI_COMMAND); in rt3883_pci_probe() 520 rt3883_pci_write_cfg32(rpc, 0, 0x01, 0, PCI_COMMAND, val); in rt3883_pci_probe() 523 val = rt3883_pci_read_cfg32(rpc, 0, 0x00, 0, PCI_COMMAND); in rt3883_pci_probe() 525 rt3883_pci_write_cfg32(rpc, 0, 0x00, 0, PCI_COMMAND, val); in rt3883_pci_probe()
|
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_config.c | 407 u16 cmd = le16_to_cpu(*(__le16 *)&vdev->vconfig[PCI_COMMAND]); in __vfio_pci_memory_enabled() 443 pci_user_read_config_word(pdev, PCI_COMMAND, &cmd); in vfio_bar_restore() 445 pci_user_write_config_word(pdev, PCI_COMMAND, cmd); in vfio_bar_restore() 536 if (offset == PCI_COMMAND && vdev->pdev->no_command_memory) { in vfio_basic_config_read() 537 u16 cmd = le16_to_cpu(*(__le16 *)&vdev->vconfig[PCI_COMMAND]); in vfio_basic_config_read() 573 virt_cmd = (__le16 *)&vdev->vconfig[PCI_COMMAND]; in vfio_basic_config_write() 575 if (offset == PCI_COMMAND) { in vfio_basic_config_write() 579 ret = pci_user_read_config_word(pdev, PCI_COMMAND, &phys_cmd); in vfio_basic_config_write() 618 if (offset == PCI_COMMAND) in vfio_basic_config_write() 627 if (offset == PCI_COMMAND) { in vfio_basic_config_write() [all …]
|
| /linux/arch/mips/loongson2ef/common/cs5536/ |
| H A D | cs5536_acc.c | 20 case PCI_COMMAND: in pci_acc_write_reg() 72 case PCI_COMMAND: in pci_acc_read_reg()
|
| H A D | cs5536_ohci.c | 20 case PCI_COMMAND: in pci_ohci_write_reg() 80 case PCI_COMMAND: in pci_ohci_read_reg()
|
| H A D | cs5536_ehci.c | 20 case PCI_COMMAND: in pci_ehci_write_reg() 85 case PCI_COMMAND: in pci_ehci_read_reg()
|
| H A D | cs5536_ide.c | 20 case PCI_COMMAND: in pci_ide_write_reg() 106 case PCI_COMMAND: in pci_ide_read_reg()
|
| /linux/arch/powerpc/platforms/powermac/ |
| H A D | pci.c | 547 early_read_config_word(hose, bus, devfn, PCI_COMMAND, &cmd); in init_second_ohare() 550 early_write_config_word(hose, bus, devfn, PCI_COMMAND, cmd); in init_second_ohare() 1006 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pmac_pci_enable_device_hook() 1009 pci_write_config_word(dev, PCI_COMMAND, cmd); in pmac_pci_enable_device_hook() 1153 pci_read_config_word(dev, PCI_COMMAND, &cmd); in fixup_k2_sata() 1155 pci_write_config_word(dev, PCI_COMMAND, cmd); in fixup_k2_sata() 1163 pci_read_config_word(dev, PCI_COMMAND, &cmd); in fixup_k2_sata() 1165 pci_write_config_word(dev, PCI_COMMAND, cmd); in fixup_k2_sata()
|
| /linux/drivers/pci/controller/ |
| H A D | pci-versatile.c | 124 val = readl(local_pci_cfg_base + PCI_COMMAND); in versatile_pci_probe() 126 writel(val, local_pci_cfg_base + PCI_COMMAND); in versatile_pci_probe()
|
| /linux/drivers/fpga/ |
| H A D | altera-cvp.c | 615 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in altera_cvp_probe() 618 pci_write_config_word(pdev, PCI_COMMAND, cmd); in altera_cvp_probe() 661 pci_write_config_word(pdev, PCI_COMMAND, cmd); in altera_cvp_probe() 675 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in altera_cvp_remove() 677 pci_write_config_word(pdev, PCI_COMMAND, cmd); in altera_cvp_remove()
|
| /linux/drivers/mfd/ |
| H A D | ls2k-bmc-core.c | 219 pci_write_config_dword(parent, PCI_COMMAND, ddata->bridge_pci_data.pci_command); in ls2k_bmc_restore_bridge_pci_data() 285 pci_write_config_dword(pdev, PCI_COMMAND, ddata->bmc_pci_data.pci_command); in ls2k_bmc_recover_pci_data() 334 pci_read_config_dword(parent, PCI_COMMAND, &ddata->bridge_pci_data.pci_command); in ls2k_bmc_save_pci_data() 361 pci_read_config_dword(pdev, PCI_COMMAND, &ddata->bmc_pci_data.pci_command); in ls2k_bmc_save_pci_data()
|
| /linux/arch/x86/kernel/ |
| H A D | early_printk.c | 307 cmdreg = read_pci_config(bus, slot, func, PCI_COMMAND); in early_pci_serial_init() 327 write_pci_config(bus, slot, func, PCI_COMMAND, in early_pci_serial_init() 339 write_pci_config(bus, slot, func, PCI_COMMAND, in early_pci_serial_init()
|
| /linux/arch/parisc/kernel/ |
| H A D | pci.c | 236 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pcibios_enable_device() 250 pci_write_config_word(dev, PCI_COMMAND, cmd); in pcibios_enable_device()
|