Lines Matching refs:desc
484 struct qi_desc desc[3]; in intel_drain_pasid_prq() local
531 memset(desc, 0, sizeof(desc)); in intel_drain_pasid_prq()
532 desc[0].qw0 = QI_IWD_STATUS_DATA(QI_DONE) | in intel_drain_pasid_prq()
535 desc[1].qw0 = QI_EIOTLB_PASID(pasid) | in intel_drain_pasid_prq()
539 desc[2].qw0 = QI_DEV_EIOTLB_PASID(pasid) | in intel_drain_pasid_prq()
546 qi_submit_sync(iommu, desc, 3, QI_OPT_WAIT_DRAIN); in intel_drain_pasid_prq()
570 struct page_req_dsc *desc) in intel_svm_prq_report() argument
580 event.fault.prm.addr = (u64)desc->addr << VTD_PAGE_SHIFT; in intel_svm_prq_report()
581 event.fault.prm.pasid = desc->pasid; in intel_svm_prq_report()
582 event.fault.prm.grpid = desc->prg_index; in intel_svm_prq_report()
583 event.fault.prm.perm = prq_to_iommu_prot(desc); in intel_svm_prq_report()
585 if (desc->lpig) in intel_svm_prq_report()
587 if (desc->pasid_present) { in intel_svm_prq_report()
591 if (desc->priv_data_present) { in intel_svm_prq_report()
600 event.fault.prm.private_data[0] = desc->priv_data[0]; in intel_svm_prq_report()
601 event.fault.prm.private_data[1] = desc->priv_data[1]; in intel_svm_prq_report()
616 struct qi_desc desc; in handle_bad_prq_event() local
632 desc.qw0 = QI_PGRP_PASID(req->pasid) | in handle_bad_prq_event()
638 desc.qw1 = QI_PGRP_IDX(req->prg_index) | in handle_bad_prq_event()
642 desc.qw2 = req->priv_data[0]; in handle_bad_prq_event()
643 desc.qw3 = req->priv_data[1]; in handle_bad_prq_event()
645 desc.qw2 = 0; in handle_bad_prq_event()
646 desc.qw3 = 0; in handle_bad_prq_event()
649 qi_submit_sync(iommu, &desc, 1, 0); in handle_bad_prq_event()
795 struct qi_desc desc; in intel_svm_page_response() local
797 desc.qw0 = QI_PGRP_PASID(prm->pasid) | QI_PGRP_DID(sid) | in intel_svm_page_response()
802 desc.qw1 = QI_PGRP_IDX(prm->grpid) | QI_PGRP_LPIG(last_page); in intel_svm_page_response()
803 desc.qw2 = 0; in intel_svm_page_response()
804 desc.qw3 = 0; in intel_svm_page_response()
807 desc.qw2 = prm->private_data[0]; in intel_svm_page_response()
808 desc.qw3 = prm->private_data[1]; in intel_svm_page_response()
814 qi_submit_sync(iommu, &desc, 1, 0); in intel_svm_page_response()