Home
last modified time | relevance | path

Searched refs:PCI_COMMAND (Results 1 – 25 of 119) sorted by relevance

12345

/drivers/infiniband/hw/mthca/
Dmthca_reset.c208 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()
/drivers/net/ethernet/mellanox/mlx4/
Dreset.c161 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()
/drivers/gpu/drm/i915/gvt/
Dcfg_space.c49 [PCI_COMMAND] = 0xff, 0x07,
205 vgpu_cfg_space(vgpu)[PCI_COMMAND] & PCI_COMMAND_MEMORY; in emulate_pci_bar_write()
282 if (IS_ALIGNED(offset, 2) && offset == PCI_COMMAND) { in intel_vgpu_emulate_cfg_write()
349 vgpu_cfg_space(vgpu)[PCI_COMMAND] &= ~(PCI_COMMAND_IO in intel_vgpu_init_cfg_space()
374 u8 cmd = vgpu_cfg_space(vgpu)[PCI_COMMAND]; in intel_vgpu_reset_cfg_space()
/drivers/pci/
Dsetup-res.c97 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_std_update_resource()
98 pci_write_config_word(dev, PCI_COMMAND, in pci_std_update_resource()
121 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_std_update_resource()
406 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_enable_resources()
442 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_enable_resources()
Dpci.c1329 pci_read_config_word(dev, PCI_COMMAND, &cmd); in do_pci_enable_device()
1331 pci_write_config_word(dev, PCI_COMMAND, in do_pci_enable_device()
1609 pci_read_config_word(dev, PCI_COMMAND, &pci_command); in do_pci_disable_device()
1612 pci_write_config_word(dev, PCI_COMMAND, pci_command); in do_pci_disable_device()
3589 pci_read_config_word(dev, PCI_COMMAND, &old_cmd); in __pci_set_master()
3597 pci_write_config_word(dev, PCI_COMMAND, cmd); in __pci_set_master()
3723 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_set_mwi()
3727 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_set_mwi()
3764 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_clear_mwi()
3767 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_clear_mwi()
[all …]
Dprobe.c187 pci_read_config_word(dev, PCI_COMMAND, &orig_cmd); in __pci_read_base()
189 pci_write_config_word(dev, PCI_COMMAND, in __pci_read_base()
249 pci_write_config_word(dev, PCI_COMMAND, orig_cmd); in __pci_read_base()
1372 pci_read_config_word(dev, PCI_COMMAND, &orig); in pci_intx_mask_broken()
1374 pci_write_config_word(dev, PCI_COMMAND, toggle); in pci_intx_mask_broken()
1375 pci_read_config_word(dev, PCI_COMMAND, &new); in pci_intx_mask_broken()
1377 pci_write_config_word(dev, PCI_COMMAND, orig); in pci_intx_mask_broken()
1450 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_setup_device()
1455 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_setup_device()
1621 pci_read_config_word(dev, PCI_COMMAND, &pci_cmd); in program_hpp_type0()
[all …]
/drivers/fpga/
Daltera-cvp.c442 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in altera_cvp_probe()
445 pci_write_config_word(pdev, PCI_COMMAND, cmd); in altera_cvp_probe()
486 pci_write_config_word(pdev, PCI_COMMAND, cmd); in altera_cvp_probe()
500 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in altera_cvp_remove()
502 pci_write_config_word(pdev, PCI_COMMAND, cmd); in altera_cvp_remove()
/drivers/ide/
Dsetup-pci.c152 pci_read_config_word(dev, PCI_COMMAND, &pcicmd); in ide_pci_set_master()
157 if (pci_read_config_word(dev, PCI_COMMAND, &pcicmd) || in ide_pci_set_master()
249 pci_write_config_word(dev, PCI_COMMAND, pcicmd | PCI_COMMAND_IO)) { in ide_pci_configure()
254 if (pci_read_config_word(dev, PCI_COMMAND, &pcicmd)) { in ide_pci_configure()
418 ret = pci_read_config_word(dev, PCI_COMMAND, &pcicmd); in ide_setup_pci_controller()
Dide-pci-generic.c140 pci_read_config_word(dev, PCI_COMMAND, &command); in generic_init_one()
Dsgiioc4.c156 pci_read_config_dword(dev, PCI_COMMAND, in sgiioc4_clearirq()
165 pci_write_config_dword(dev, PCI_COMMAND, 0x00000146); in sgiioc4_clearirq()
/drivers/pci/hotplug/
Dpciehp_pci.c124 pci_read_config_word(dev, PCI_COMMAND, &command); in pciehp_unconfigure_device()
127 pci_write_config_word(dev, PCI_COMMAND, command); in pciehp_unconfigure_device()
/drivers/vfio/pci/
Dvfio_pci_config.c424 pci_user_read_config_word(pdev, PCI_COMMAND, &cmd); in vfio_bar_restore()
426 pci_user_write_config_word(pdev, PCI_COMMAND, cmd); in vfio_bar_restore()
512 if (offset == PCI_COMMAND && vdev->pdev->is_virtfn) { in vfio_basic_config_read()
513 u16 cmd = le16_to_cpu(*(__le16 *)&vdev->vconfig[PCI_COMMAND]); in vfio_basic_config_read()
549 virt_cmd = (__le16 *)&vdev->vconfig[PCI_COMMAND]; in vfio_basic_config_write()
551 if (offset == PCI_COMMAND) { in vfio_basic_config_write()
555 ret = pci_user_read_config_word(pdev, PCI_COMMAND, &phys_cmd); in vfio_basic_config_write()
591 if (offset == PCI_COMMAND) { in vfio_basic_config_write()
599 if (offset >= PCI_COMMAND && offset <= PCI_COMMAND + 1) { in vfio_basic_config_write()
637 p_setw(perm, PCI_COMMAND, PCI_COMMAND_INTX_DISABLE, (u16)ALL_WRITE); in init_pci_cap_basic_perm()
Dvfio_pci.c253 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in vfio_pci_enable()
256 pci_write_config_word(pdev, PCI_COMMAND, cmd); in vfio_pci_enable()
363 pci_write_config_word(pdev, PCI_COMMAND, PCI_COMMAND_INTX_DISABLE); in vfio_pci_disable()
740 pci_read_config_word(pdev, PCI_COMMAND, &orig_cmd); in vfio_pci_ioctl()
741 pci_write_config_word(pdev, PCI_COMMAND, in vfio_pci_ioctl()
752 pci_write_config_word(pdev, PCI_COMMAND, orig_cmd); in vfio_pci_ioctl()
/drivers/xen/xen-pciback/
Dpciback_ops.c132 pci_read_config_word(dev, PCI_COMMAND, &cmd); in xen_pcibk_reset_device()
135 pci_write_config_word(dev, PCI_COMMAND, cmd); in xen_pcibk_reset_device()
231 pci_read_config_word(pci_physfn(dev), PCI_COMMAND, &cmd); in xen_pcibk_enable_msix()
Dconf_space_header.c41 err = pci_read_config_word(dev, PCI_COMMAND, &cmd->val); in command_init()
320 .offset = PCI_COMMAND,
/drivers/pci/host/
Dpci-versatile.c180 val = readl(local_pci_cfg_base + PCI_COMMAND); in versatile_pci_probe()
182 writel(val, local_pci_cfg_base + PCI_COMMAND); in versatile_pci_probe()
Dpci-rcar-gen2.c267 val = ioread32(reg + PCI_COMMAND); in rcar_pci_setup()
270 iowrite32(val, reg + PCI_COMMAND); in rcar_pci_setup()
/drivers/mtd/devices/
Dpmc551.c399 pci_read_config_word(dev, PCI_COMMAND, &cmd); in fixup_pmc551()
401 pci_write_config_word(dev, PCI_COMMAND, tmp); in fixup_pmc551()
557 pci_write_config_word(dev, PCI_COMMAND, in fixup_pmc551()
613 pci_read_config_word(dev, PCI_COMMAND, &cmd); in fixup_pmc551()
/drivers/ssb/
Ddriver_gige.c208 gige_pcicfg_write16(dev, PCI_COMMAND, in ssb_gige_probe()
209 gige_pcicfg_read16(dev, PCI_COMMAND) in ssb_gige_probe()
/drivers/pci/dwc/
Dpci-dra7xx.c772 val = dw_pcie_readl_dbi(pci, PCI_COMMAND); in dra7xx_pcie_suspend()
774 dw_pcie_writel_dbi(pci, PCI_COMMAND, val); in dra7xx_pcie_suspend()
789 val = dw_pcie_readl_dbi(pci, PCI_COMMAND); in dra7xx_pcie_resume()
791 dw_pcie_writel_dbi(pci, PCI_COMMAND, val); in dra7xx_pcie_resume()
/drivers/parisc/
Dsuperio.c199 pci_read_config_word (pdev, PCI_COMMAND, &word); in superio_init()
201 pci_write_config_word (pdev, PCI_COMMAND, word); in superio_init()
/drivers/misc/
Dioc4.c351 pci_read_config_dword(idd->idd_pdev, PCI_COMMAND, &pcmd); in ioc4_probe()
352 pci_write_config_dword(idd->idd_pdev, PCI_COMMAND, in ioc4_probe()
/drivers/video/fbdev/
Dchipsfb.c388 pci_read_config_word(dp, PCI_COMMAND, &cmd); in chipsfb_pci_init()
390 pci_write_config_word(dp, PCI_COMMAND, cmd); in chipsfb_pci_init()
/drivers/usb/early/
Dxhci-dbc.c83 byte = read_pci_config_byte(bus, dev, func, PCI_COMMAND); in xdbc_map_pci_mmio()
86 write_pci_config_byte(bus, dev, func, PCI_COMMAND, byte); in xdbc_map_pci_mmio()
767 cmd = read_pci_config_byte(xdbc.bus, xdbc.dev, xdbc.func, PCI_COMMAND); in xdbc_handle_events()
770 write_pci_config_byte(xdbc.bus, xdbc.dev, xdbc.func, PCI_COMMAND, cmd); in xdbc_handle_events()
/drivers/media/pci/bt8xx/
Dbt878.c525 pci_read_config_byte(bt->dev, PCI_COMMAND, &command); in bt878_remove()
528 pci_write_config_byte(bt->dev, PCI_COMMAND, command); in bt878_remove()

12345