Home
last modified time | relevance | path

Searched refs:msi_cap (Results 1 – 21 of 21) sorted by relevance

/drivers/pci/msi/
Dpcidev_msi.c16 dev->msi_cap = pci_find_capability(dev, PCI_CAP_ID_MSI); in pci_msi_init()
17 if (!dev->msi_cap) in pci_msi_init()
20 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &ctrl); in pci_msi_init()
22 pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, in pci_msi_init()
Dmsi.c166 int pos = dev->msi_cap; in __pci_read_msi_msg()
186 int pos = dev->msi_cap; in pci_write_msg_msi()
274 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &control); in pci_msi_set_enable()
278 pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, control); in pci_msi_set_enable()
290 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &control); in msi_setup_msi_desc()
307 desc.pci.mask_pos = dev->msi_cap + PCI_MSI_MASK_64; in msi_setup_msi_desc()
309 desc.pci.mask_pos = dev->msi_cap + PCI_MSI_MASK_32; in msi_setup_msi_desc()
483 if (!dev->msi_cap) in pci_msi_vec_count()
486 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &msgctl); in pci_msi_vec_count()
517 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &control); in __pci_restore_msi_state()
[all …]
/drivers/pci/controller/dwc/
Dpcie-designware-ep.c335 if (!ep_func || !ep_func->msi_cap) in dw_pcie_ep_get_msi()
340 reg = ep_func->msi_cap + func_offset + PCI_MSI_FLAGS; in dw_pcie_ep_get_msi()
360 if (!ep_func || !ep_func->msi_cap) in dw_pcie_ep_set_msi()
365 reg = ep_func->msi_cap + func_offset + PCI_MSI_FLAGS; in dw_pcie_ep_set_msi()
516 if (!ep_func || !ep_func->msi_cap) in dw_pcie_ep_raise_msi_irq()
522 reg = ep_func->msi_cap + func_offset + PCI_MSI_FLAGS; in dw_pcie_ep_raise_msi_irq()
525 reg = ep_func->msi_cap + func_offset + PCI_MSI_ADDRESS_LO; in dw_pcie_ep_raise_msi_irq()
528 reg = ep_func->msi_cap + func_offset + PCI_MSI_ADDRESS_HI; in dw_pcie_ep_raise_msi_irq()
530 reg = ep_func->msi_cap + func_offset + PCI_MSI_DATA_64; in dw_pcie_ep_raise_msi_irq()
534 reg = ep_func->msi_cap + func_offset + PCI_MSI_DATA_32; in dw_pcie_ep_raise_msi_irq()
[all …]
Dpci-layerscape-ep.c164 pcie->ls_epc->msi_capable = ep_func->msi_cap ? true : false; in ls_pcie_ep_init()
Dpcie-designware.h349 u8 msi_cap; /* MSI capability offset */ member
/drivers/pci/controller/
Dpci-loongson.c173 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &val); in loongson_pci_msi_quirk()
175 pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, val); in loongson_pci_msi_quirk()
/drivers/net/wireless/ath/ath11k/
Dpci.c391 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &control); in ath11k_pci_msi_config()
398 pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, control); in ath11k_pci_msi_config()
452 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_LO, in ath11k_pci_alloc_msi()
456 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_HI, in ath11k_pci_alloc_msi()
/drivers/xen/xen-pciback/
Dconf_space.c295 if (dev->msi_cap) { in xen_pcibk_get_interrupt_type()
297 dev->msi_cap + PCI_MSI_FLAGS, in xen_pcibk_get_interrupt_type()
/drivers/infiniband/hw/qib/
Dqib_pcie.c228 qib_cache_msi_info(dd, dd->pcidev->msi_cap); in qib_pcie_params()
304 pos = dd->pcidev->msi_cap; in qib_reinit_intr()
/drivers/net/wireless/ath/ath12k/
Dpci.c656 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &control); in ath12k_pci_msi_config()
663 pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, control); in ath12k_pci_msi_config()
932 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_LO, in ath12k_pci_get_msi_address()
936 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_HI, in ath12k_pci_get_msi_address()
/drivers/net/wireless/realtek/rtw88/
Drtw8822b.h40 u8 msi_cap; member
Drtw8821c.h40 u8 msi_cap; member
Drtw8822c.h32 u8 msi_cap; member
/drivers/net/ethernet/alacritech/
Dslic.h386 u8 msi_cap; /* 21 MSI capabilities */ member
/drivers/crypto/hisilicon/
Dqm.c1761 pci_write_config_dword(pdev, pdev->msi_cap + PCI_MSI_MASK_64, in qm_set_msi()
1764 pci_write_config_dword(pdev, pdev->msi_cap + PCI_MSI_MASK_64, in qm_set_msi()
1787 pci_read_config_dword(pdev, pdev->msi_cap + in qm_wait_msi_finish()
1819 pci_read_config_dword(pdev, pdev->msi_cap, &cmd); in qm_set_msi_v3()
1825 pci_write_config_dword(pdev, pdev->msi_cap, cmd); in qm_set_msi_v3()
1828 pci_read_config_dword(pdev, pdev->msi_cap, &cmd); in qm_set_msi_v3()
/drivers/gpu/drm/i915/gvt/
Dkvmgt.c1733 info->msi_cap_offset = pdev->msi_cap; in init_device_info()
/drivers/net/ethernet/broadcom/
Dtg3.h3270 int msi_cap; member
Dtg3.c8999 tp->msi_cap + PCI_MSI_FLAGS, in tg3_restore_pci_state()
9002 tp->msi_cap + PCI_MSI_FLAGS, in tg3_restore_pci_state()
16300 tp->msi_cap = tp->pdev->msi_cap; in tg3_get_invariants()
Dbnx2.c8180 if (pdev->msi_cap) in bnx2_init_board()
/drivers/vfio/pci/
Dvfio_pci_core.c747 pos = vdev->pdev->msi_cap; in vfio_pci_get_irq_count()
/drivers/iommu/amd/
Dinit.c2527 else if (iommu->dev->msi_cap) in iommu_init_irq()