Lines Matching refs:sbdf
54 u32 sbdf; member
86 static struct device_state *__get_device_state(u32 sbdf) in __get_device_state() argument
91 if (dev_state->sbdf == sbdf) in __get_device_state()
98 static struct device_state *get_device_state(u32 sbdf) in get_device_state() argument
104 dev_state = __get_device_state(sbdf); in get_device_state()
528 seg_id = PCI_SBDF_TO_SEGID(iommu_fault->sbdf); in ppr_notifier()
529 devid = PCI_SBDF_TO_DEVID(iommu_fault->sbdf); in ppr_notifier()
544 dev_state = get_device_state(iommu_fault->sbdf); in ppr_notifier()
603 u32 sbdf; in amd_iommu_bind_pasid() local
611 sbdf = get_pci_sbdf_id(pdev); in amd_iommu_bind_pasid()
612 dev_state = get_device_state(sbdf); in amd_iommu_bind_pasid()
686 u32 sbdf; in amd_iommu_unbind_pasid() local
693 sbdf = get_pci_sbdf_id(pdev); in amd_iommu_unbind_pasid()
694 dev_state = get_device_state(sbdf); in amd_iommu_unbind_pasid()
736 u32 sbdf; in amd_iommu_init_device() local
753 sbdf = get_pci_sbdf_id(pdev); in amd_iommu_init_device()
762 dev_state->sbdf = sbdf; in amd_iommu_init_device()
802 if (__get_device_state(sbdf) != NULL) { in amd_iommu_init_device()
834 u32 sbdf; in amd_iommu_free_device() local
839 sbdf = get_pci_sbdf_id(pdev); in amd_iommu_free_device()
843 dev_state = __get_device_state(sbdf); in amd_iommu_free_device()
863 u32 sbdf; in amd_iommu_set_invalid_ppr_cb() local
869 sbdf = get_pci_sbdf_id(pdev); in amd_iommu_set_invalid_ppr_cb()
874 dev_state = __get_device_state(sbdf); in amd_iommu_set_invalid_ppr_cb()
894 u32 sbdf; in amd_iommu_set_invalidate_ctx_cb() local
900 sbdf = get_pci_sbdf_id(pdev); in amd_iommu_set_invalidate_ctx_cb()
905 dev_state = __get_device_state(sbdf); in amd_iommu_set_invalidate_ctx_cb()