Home
last modified time | relevance | path

Searched refs:ecap (Results 1 – 5 of 5) sorted by relevance

/drivers/iommu/
Dintel_irq_remapping.c119 if (mask > ecap_max_handle_mask(iommu->ecap)) { in alloc_irte()
122 ecap_max_handle_mask(iommu->ecap)); in alloc_irte()
621 if (!ecap_ir_support(iommu->ecap)) in iommu_disable_irq_remapping()
661 if (ecap_ir_support(iommu->ecap)) { in intel_cleanup_irq_remapping()
700 if (!ecap_ir_support(iommu->ecap)) in intel_prepare_irq_remapping()
713 if (eim && !ecap_eim_support(iommu->ecap)) { in intel_prepare_irq_remapping()
940 if (!ecap_ir_support(iommu->ecap)) in parse_ioapics_under_ir()
990 if (!ecap_ir_support(iommu->ecap)) in disable_irq_remapping()
1017 if (!ecap_ir_support(iommu->ecap)) in reenable_irq_remapping()
1417 if (eim && !ecap_eim_support(iommu->ecap)) { in dmar_ir_add()
[all …]
Ddmar.c852 u64 cap, ecap; in dmar_validate_one_drhd() local
870 ecap = dmar_readq(addr + DMAR_ECAP_REG); in dmar_validate_one_drhd()
877 if (cap == (uint64_t)-1 && ecap == (uint64_t)-1) { in dmar_validate_one_drhd()
952 iommu->ecap = dmar_readq(iommu->reg + DMAR_ECAP_REG); in map_iommu()
954 if (iommu->cap == (uint64_t)-1 && iommu->ecap == (uint64_t)-1) { in map_iommu()
961 map_size = max_t(int, ecap_max_iotlb_offset(iommu->ecap), in map_iommu()
1068 (unsigned long long)iommu->ecap); in alloc_iommu()
1361 if (!ecap_qis(iommu->ecap)) in dmar_disable_qi()
1425 if (!ecap_qis(iommu->ecap)) in dmar_enable_qi()
1736 if (!ecap_qis(iommu->ecap)) in dmar_reenable_qi()
Dintel-iommu.c536 #define ecs_enabled(iommu) (intel_iommu_ecs && ecap_ecs(iommu->ecap) && \
537 (intel_iommu_pasid28 || !ecap_broken_pasid(iommu->ecap)))
541 (ecap_pasid(iommu->ecap) || ecap_broken_pasid(iommu->ecap)))
772 if (!ecap_coherent(g_iommus[i]->ecap)) { in domain_update_iommu_coherency()
783 if (!ecap_coherent(iommu->ecap)) { in domain_update_iommu_coherency()
800 if (!ecap_sc_support(iommu->ecap)) { in domain_update_iommu_snooping()
1406 int tlb_offset = ecap_iotlb_offset(iommu->ecap); in __iommu_flush_iotlb()
1781 if (ecap_prs(iommu->ecap)) in free_dmar_iommu()
1950 if (ecap_coherent(iommu->ecap)) in domain_init()
1955 if (ecap_sc_support(iommu->ecap)) in domain_init()
[all …]
Dintel-svm.c43 iommu->pasid_max = 2 << ecap_pss(iommu->ecap); in intel_svm_alloc_pasid_tables()
63 if (ecap_dis(iommu->ecap)) { in intel_svm_alloc_pasid_tables()
316 if (!ecap_srs(iommu->ecap)) in intel_svm_bind_mm()
/drivers/vfio/pci/
Dvfio_pci_config.c1303 static int vfio_ext_cap_len(struct vfio_pci_device *vdev, u16 ecap, u16 epos) in vfio_ext_cap_len() argument
1310 switch (ecap) { in vfio_ext_cap_len()
1371 dev_name(&pdev->dev), __func__, ecap, epos); in vfio_ext_cap_len()
1527 u16 ecap; in vfio_ecap_init() local
1535 ecap = PCI_EXT_CAP_ID(header); in vfio_ecap_init()
1537 if (ecap <= PCI_EXT_CAP_ID_MAX) { in vfio_ecap_init()
1538 len = pci_ext_cap_length[ecap]; in vfio_ecap_init()
1540 len = vfio_ext_cap_len(vdev, ecap, epos); in vfio_ecap_init()
1548 __func__, dev_name(&pdev->dev), ecap, epos); in vfio_ecap_init()
1572 epos + i, map[epos + i], ecap); in vfio_ecap_init()
[all …]