Lines Matching defs:asid
54 struct qcom_iommu_ctx *ctxs[]; /* indexed by asid */
62 u8 asid; /* asid and ctx bank # are 1:1 */
92 static struct qcom_iommu_ctx * to_ctx(struct qcom_iommu_domain *d, unsigned asid)
97 return qcom_iommu->ctxs[asid];
151 iommu_writel(ctx, ARM_SMMU_CB_S1_TLBIASID, ctx->asid);
171 iova |= ctx->asid;
217 fsr, iova, fsynr, ctx->asid);
268 ret = qcom_scm_restore_sec_cfg(qcom_iommu->sec_id, ctx->asid);
292 FIELD_PREP(ARM_SMMU_TTBRn_ASID, ctx->asid));
527 unsigned asid = args->args[0];
542 /* make sure the asid specified in dt is valid, so we don't have
545 if (WARN_ON(asid > qcom_iommu->max_asid) ||
546 WARN_ON(qcom_iommu->ctxs[asid] == NULL)) {
564 return iommu_fwspec_add_ids(dev, &asid, 1);
633 int asid;
636 * of the context bank, and calculate the asid from that:
646 if (!of_property_read_u32(np, "qcom,ctx-asid", &val))
647 asid = val;
649 asid = reg / 0x1000;
651 return asid;
701 ctx->asid = ret;
703 dev_dbg(dev, "found asid %u\n", ctx->asid);
705 qcom_iommu->ctxs[ctx->asid] = ctx;
717 qcom_iommu->ctxs[ctx->asid] = NULL;
761 /* find the max asid (which is 1:1 to ctx bank idx), so we know how