Lines Matching refs:satp
255 uint64_t satp, gatp, pte; in riscv_iommu_spa_fetch() local
270 satp = get_field(ctx->satp, RISCV_IOMMU_ATP_MODE_FIELD); in riscv_iommu_spa_fetch()
273 en_s = satp != RISCV_IOMMU_DC_FSC_MODE_BARE; in riscv_iommu_spa_fetch()
312 switch (pass ? gatp : satp) { in riscv_iommu_spa_fetch()
332 switch (pass ? gatp : satp) { in riscv_iommu_spa_fetch()
373 satp = PPN_PHYS(get_field(ctx->satp, RISCV_IOMMU_ATP_PPN_FIELD)); in riscv_iommu_spa_fetch()
374 addr = (en_s && en_g) ? satp : iotlb->iova; in riscv_iommu_spa_fetch()
375 base = en_g ? gatp : satp; in riscv_iommu_spa_fetch()
748 fsc_mode = get_field(ctx->satp, RISCV_IOMMU_DC_FSC_MODE); in riscv_iommu_validate_device_ctx()
825 if (get_field(ctx->satp, RISCV_IOMMU_PC_FSC_RESERVED)) { in riscv_iommu_validate_process_ctx()
829 mode = get_field(ctx->satp, RISCV_IOMMU_DC_FSC_MODE); in riscv_iommu_validate_process_ctx()
896 ctx->satp = set_field(0, RISCV_IOMMU_ATP_MODE_FIELD, in riscv_iommu_ctx_fetch()
980 ctx->satp = le64_to_cpu(dc.fsc); in riscv_iommu_ctx_fetch()
995 mode = get_field(ctx->satp, RISCV_IOMMU_DC_FSC_MODE); in riscv_iommu_ctx_fetch()
996 addr = PPN_PHYS(get_field(ctx->satp, RISCV_IOMMU_DC_FSC_PPN)); in riscv_iommu_ctx_fetch()
1013 ctx->satp = 0ULL; in riscv_iommu_ctx_fetch()
1063 ctx->satp = le64_to_cpu(dc.fsc); in riscv_iommu_ctx_fetch()
1400 uint64_t satp = get_field(ctx->satp, RISCV_IOMMU_ATP_MODE_FIELD); in riscv_iommu_get_transtag() local
1403 if (satp == RISCV_IOMMU_DC_FSC_MODE_BARE) { in riscv_iommu_get_transtag()