diff options
Diffstat (limited to 'drivers/misc/cxl/native.c')
-rw-r--r-- | drivers/misc/cxl/native.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c index d47532e8f4f1..9a5a442269a8 100644 --- a/drivers/misc/cxl/native.c +++ b/drivers/misc/cxl/native.c | |||
@@ -637,18 +637,18 @@ int cxl_detach_process(struct cxl_context *ctx) | |||
637 | return detach_process_native_afu_directed(ctx); | 637 | return detach_process_native_afu_directed(ctx); |
638 | } | 638 | } |
639 | 639 | ||
640 | int cxl_get_irq(struct cxl_context *ctx, struct cxl_irq_info *info) | 640 | int cxl_get_irq(struct cxl_afu *afu, struct cxl_irq_info *info) |
641 | { | 641 | { |
642 | u64 pidtid; | 642 | u64 pidtid; |
643 | 643 | ||
644 | info->dsisr = cxl_p2n_read(ctx->afu, CXL_PSL_DSISR_An); | 644 | info->dsisr = cxl_p2n_read(afu, CXL_PSL_DSISR_An); |
645 | info->dar = cxl_p2n_read(ctx->afu, CXL_PSL_DAR_An); | 645 | info->dar = cxl_p2n_read(afu, CXL_PSL_DAR_An); |
646 | info->dsr = cxl_p2n_read(ctx->afu, CXL_PSL_DSR_An); | 646 | info->dsr = cxl_p2n_read(afu, CXL_PSL_DSR_An); |
647 | pidtid = cxl_p2n_read(ctx->afu, CXL_PSL_PID_TID_An); | 647 | pidtid = cxl_p2n_read(afu, CXL_PSL_PID_TID_An); |
648 | info->pid = pidtid >> 32; | 648 | info->pid = pidtid >> 32; |
649 | info->tid = pidtid & 0xffffffff; | 649 | info->tid = pidtid & 0xffffffff; |
650 | info->afu_err = cxl_p2n_read(ctx->afu, CXL_AFU_ERR_An); | 650 | info->afu_err = cxl_p2n_read(afu, CXL_AFU_ERR_An); |
651 | info->errstat = cxl_p2n_read(ctx->afu, CXL_PSL_ErrStat_An); | 651 | info->errstat = cxl_p2n_read(afu, CXL_PSL_ErrStat_An); |
652 | 652 | ||
653 | return 0; | 653 | return 0; |
654 | } | 654 | } |