Lines Matching full:raw

81 static bool ppr_is_valid(struct amd_iommu *iommu, u64 *raw)  in ppr_is_valid()  argument
84 u16 devid = PPR_DEVID(raw[0]); in ppr_is_valid()
86 if (!(PPR_FLAGS(raw[0]) & PPR_FLAG_GN)) { in ppr_is_valid()
90 PPR_PASID(raw[0]), raw[1], PPR_FLAGS(raw[0]), PPR_TAG(raw[0])); in ppr_is_valid()
94 if (PPR_FLAGS(raw[0]) & PPR_FLAG_RVSD) { in ppr_is_valid()
98 PPR_PASID(raw[0]), raw[1], PPR_FLAGS(raw[0]), PPR_TAG(raw[0])); in ppr_is_valid()
105 static void iommu_call_iopf_notifier(struct amd_iommu *iommu, u64 *raw) in iommu_call_iopf_notifier() argument
110 u16 devid = PPR_DEVID(raw[0]); in iommu_call_iopf_notifier()
112 if (PPR_REQ_TYPE(raw[0]) != PPR_REQ_FAULT) { in iommu_call_iopf_notifier()
122 if (!ppr_is_valid(iommu, raw)) in iommu_call_iopf_notifier()
128 event.fault.prm.perm = ppr_flag_to_fault_perm(PPR_FLAGS(raw[0])); in iommu_call_iopf_notifier()
129 event.fault.prm.addr = (u64)(raw[1] & PAGE_MASK); in iommu_call_iopf_notifier()
130 event.fault.prm.pasid = PPR_PASID(raw[0]); in iommu_call_iopf_notifier()
131 event.fault.prm.grpid = PPR_TAG(raw[0]) & 0x1FF; in iommu_call_iopf_notifier()
147 if (PPR_TAG(raw[0]) & 0x200) in iommu_call_iopf_notifier()
157 amd_iommu_complete_ppr(&pdev->dev, PPR_PASID(raw[0]), in iommu_call_iopf_notifier()
159 PPR_TAG(raw[0]) & 0x1FF); in iommu_call_iopf_notifier()
173 volatile u64 *raw; in amd_iommu_poll_ppr_log() local
177 raw = (u64 *)(iommu->ppr_log + head); in amd_iommu_poll_ppr_log()
185 if (PPR_REQ_TYPE(raw[0]) != 0) in amd_iommu_poll_ppr_log()
191 entry[0] = raw[0]; in amd_iommu_poll_ppr_log()
192 entry[1] = raw[1]; in amd_iommu_poll_ppr_log()
201 raw[0] = raw[1] = 0UL; in amd_iommu_poll_ppr_log()